  :root { color-scheme: light dark; --g: #15803d; --pos: #16a34a; --neg: #dc2626; --f: #2563eb;
    --c0: #2563eb; --c1: #d97706; --c2: #9333ea; --c3: #0d9488; font-family: system-ui, sans-serif; }
  @media (prefers-color-scheme: dark) { :root { --pos: #4ade80; --neg: #f87171; --f: #60a5fa; } }
  body { margin: 0 auto; max-width: 640px; padding: 1rem; }
  header { display: flex; justify-content: space-between; align-items: center; }
  h1 { margin: .2rem 0 1rem; font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
  section { margin-bottom: 1.5rem; }
  label { display: block; margin: .5rem 0; }
  input, button { font: inherit; padding: .5rem; box-sizing: border-box; }
  input[type=text] { width: 100%; min-height: 44px; }
  input[type=number] { width: 5rem; }
  input[type=checkbox] { width: 1.4rem; height: 1.4rem; }
  button { background: var(--g); color: #fff; border: 0; border-radius: .5rem; padding: .6rem 1rem; min-height: 44px; }
  button.ghost { background: none; color: inherit; border: 1px solid currentColor; }
  button:focus-visible, input:focus-visible { outline: 3px solid var(--f); outline-offset: 2px; }
  button:disabled { opacity: .4; }
  table { width: 100%; border-collapse: collapse; }
  th, td { padding: .6rem .35rem; text-align: right; border-bottom: 1px solid #8884; }
  th:nth-child(-n+2), td:nth-child(-n+2) { text-align: left; }
  thead th { position: sticky; top: 0; background: Canvas; }
  tfoot td { font-weight: bold; font-size: 1.1rem; border-top: 2px solid currentColor; }
  tbody tr { cursor: pointer; }
  .pos { color: var(--pos); } .neg { color: var(--neg); }
  .row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
  .row > label { flex: 1 1 8rem; }
  .checks label { display: flex; gap: .5rem; align-items: center; min-height: 44px; }
  [hidden] { display: none !important; }
  fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
  legend { font-weight: 600; padding: 0; margin-bottom: .35rem; }
  .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
  .chip { flex: 1 1 auto; min-width: 44px; background: none; color: inherit; border: 2px solid #8887; padding: .4rem .6rem; }
  .chip[aria-pressed=true] { background: var(--g); border-color: var(--g); color: #fff; font-weight: 700; }
  .chips.pl .chip { flex: 1 1 40%; border-left: 6px solid var(--c); }
  .chips.pl .chip[aria-pressed=true] { background: var(--c); border-color: var(--c); }
  .chips.pl .chip:disabled { text-decoration: line-through; }
  .chip:disabled { opacity: .3; }
  .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
  .grid .chip { min-height: 48px; padding: .2rem; font-size: 1.1rem; }
  .grid .chip.ok { background: #16a34a26; } .grid .chip.no { background: #dc262620; }
  .grid .chip[aria-pressed=true].ok { background: var(--pos); border-color: var(--pos); color: #000; }
  .grid .chip[aria-pressed=true].no { background: var(--neg); border-color: var(--neg); color: #000; }
  .grid .chip.t { box-shadow: 0 0 0 3px var(--f); }
  small.hint { opacity: .75; display: block; margin-top: .35rem; }
  #result { font-weight: 700; font-size: 1.2rem; margin: .5rem 0 .3rem; min-height: 1.5em; }
  .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1rem; }
  .card { border: 1px solid #8886; border-top: 5px solid var(--c); border-radius: .5rem; padding: .4rem .2rem; text-align: center; min-width: 0; }
  .card b { display: block; font-size: 1.6rem; line-height: 1.2; }
  .card span { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #roundForm > button { width: 100%; font-weight: 700; }
  .order li { display: flex; align-items: center; gap: .5rem; margin: .25rem 0; }
  .order li span { flex: 1; }
  .order button { min-width: 44px; min-height: 44px; padding: 0; }
  header a { color: inherit; border: 1px solid currentColor; border-radius: .5rem; padding: .6rem 1rem; text-decoration: none; }
  .board { width: 100%; table-layout: fixed; }
  .board td, .board th { text-align: center !important; }
  .board td.done { cursor: pointer; }
