/* Vela design system — EXTRACTED FROM THE WIREFRAMES, not invented.
 *
 * Source: PRD_Study/ux/wireframes/*.html. All twenty-four carry the same token block inline; this
 * is that block plus the primitives and shell built on it, lifted out ONCE so the running product
 * and the design cannot drift apart by being written twice.
 *
 * The thin UI never used any of it. ADR-075 called the P1 routing shell throwaway, so the screens
 * grew outward from the engines rather than from the design — which is how a front desk ended up
 * with a dropdown and two buttons where A3 specifies a six-step check-in with a live progress rail.
 * This file is the first half of correcting that; the screens are the second.
 *
 * WHAT BELONGS HERE: tokens, and anything used by more than one screen — chips, buttons, the top
 * bar, the sidebar, cards, KPI tiles, alerts, list tables. A screen's own furniture (A1's rack
 * timeline, A3's wizard steps) lives beside that screen.
 */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Fira+Sans:wght@300;400;500;600;700&display=swap');
  :root{
    /* ---- THE ACCENT RAMP. Redefined per surface below; nothing else is. ----------------------
     * `--primary` keeps its name on purpose: thirty rules here and every screen already say
     * `var(--primary)`, so a surface changes its identity by redefining five values rather than
     * by anybody editing a screen.
     *
     * `--accent` and `--danger` are NOT new names. Four screens have always written
     * `var(--accent, #1e5fb4)` and `var(--danger, #b4321e)` for their links — and neither token
     * had ever been defined, anywhere, so every link in the product rendered a fallback colour
     * that is in no palette on earth, and two screens disagreed about which red a dangerous link
     * is. They are defined here, as aliases, so the phantom resolves to the real thing. */
    --primary:#1E40AF; --primary-2:#3B82F6; --primary-3:#DBEAFE;
    --primary-line:#BFD3FB; --primary-ink:#1B3AA0;
    --accent:var(--primary); --accent-2:var(--primary-2);
    --cta:#F59E0B; --cta-ink:#3B2500; --cta-hover:#E08C06;

    /* ---- THE RAIL. The sidebar was four hard-coded navy values; it is a ramp now, because the
     * operator console has to read as a different system at a glance and the ground is the
     * loudest way to say so without leaving the type and spacing behind. ---------------------- */
    --rail:#0B1220; --rail-ink:#AEBAD0; --rail-hover:#151F33; --rail-faint:#5C6B85;

    /* ---- SHARED BY EVERY SURFACE. Neutrals, semantics, type, shape. ------------------------- */
    --bg:#F8FAFC; --surface:#FFFFFF; --surface-2:#F1F5F9; --surface-3:#FBFCFE;
    --ink:#0F172A; --muted:#475569;
    /* #94A3B8 UNTIL NOW, WHICH IS 2.56:1 ON WHITE — under the 4.5:1 floor for body text and
       under even the 3:1 one for large text. It is not only a label colour: `.hint` is drawn in
       it, and so is the reservation number under a guest's name on Today and the whole
       explanation on Housekeeping's discrepancy card. #64748B is 4.76:1 on the surface and
       4.55:1 on the page, and still a clear step lighter than --muted's 7.58:1, so the three-way
       hierarchy survives. (On --surface-2 it reads 4.34:1; nothing sets prose in it there.) */
    --faint:#64748B;
    --line:#E2E8F0; --line-2:#EEF2F6;
    /* A quiet border a step darker than --line: Today's grey counter (Out of order), drawn outlined in William's design. */
    --quiet-line:#CBD5E1;
    --ok:#15803D; --ok-bg:#DCFCE7; --ok-line:#A7E3BC; --ok-fill:#D6F0DE;
    /* CLEAN IS NOT INSPECTED (A7, Inc 101). The board painted both green, so a property whose
       check-in needs an inspection could not tell the rooms it may give out from the ones it may
       not at a glance. A7 draws Clean in its own cyan; these are its values. */
    --clean:#0E7490; --clean-bg:#CFFAFE; --clean-line:#A5E9F2;
    --warn:#B45309; --warn-bg:#FEF3C7; --warn-line:#F3D28B; --warn-fill:#FDECC8;
    --bad:#B91C1C; --bad-bg:#FEE2E2; --bad-line:#F3B4B4; --bad-ink:#9B1616;
    --danger:var(--bad);
    --occ-fill:#DCE3EC; --own:#EDE9FE; --own-line:#C9BEF3; --own-ink:#5B21B6; --own-dot:#7C3AED;
    /* THE GRID'S BARS (Inc 141, William's design): solid by where the stay is — white text on each clears 4.5:1 at
       11px bold — with a dark chip on them for the source, and the bill's two pills. */
    --bar-stay:#1F6FB2; --bar-in:#0B7A6E; --bar-arr:#5145CD; --bar-out:#A85D00; --bar-late:#C63A3A;
    --on-fill-chip:rgba(0, 0, 0, .26);
    /* B-015 (William, 2026-11-25, answers 1A 3A): the quiet bars — a stayover light blue, due out pale amber, a booking still
       to come outlined in the arriving indigo. Each ink clears 7:1 on its ground. */
    --bar-stay-soft:#E4EEF9; --bar-stay-line:#A9C8EA; --bar-stay-ink:#123F6B;
    --bar-out-soft:#FFF6DB; --bar-out-line:#E9C46A; --bar-out-ink:#7A4300;
    --bar-fut-line:#8F88E6; --bar-fut-ink:#3B32A8; --bar-fut-chip:#EEEDFD;
    --tag-due-bg:#FFF1D6; --tag-due:#8A4B00; --tag-paid-bg:#E3F6EC; --tag-paid:#0B6B3A;
    /* ONE COLOUR CODE (Inc 142, William 2026-11-21: "需要统一的color code"): the Arrivals due counter in the arriving
       bar's own indigo (its text is --bar-arr, 5.8:1 on this ground), and Unassigned in a pinker violet so the two never
       read as one. */
    --arr-bg:#EEEDFD; --arr-line:#C4C0F4;
    --un-ink:#8E2FB0; --un-bg:#F8EEFB; --un-line:#E7C3F2;
    /* B-027 (William, 2026-11-28, his colour table): TODAY'S STATES — a light fill and its colour for text and edge; each text
       colour clears 4.5:1 on its fill (in house 6.1, arriving 5.2, due out 4.8, out of order 6.9). Overdue keeps --bar-late; the
       No Show looks keep --warn-bg / --warn-line / --warn; an owner's stay keeps --own. */
    --st-inh-bg:#EBF5FF; --st-inh:#1D4ED8;
    --st-arr-bg:#ECFDF5; --st-arr:#047857;
    --st-out-bg:#FFFBEB; --st-out:#B45309;
    --st-ooo-bg:#F3F4F6; --st-ooo-2:#E5E7EB; --st-ooo:#4B5563;
    /* A12 (Inc 105): the two series a chart compares — this year, and last year. Run through the
       dataviz palette validator on the light surface (lightness, chroma, colour-blind separation,
       contrast all pass); a slate grey for last year failed the chroma floor. */
    --chart-now:#2563EB; --chart-ly:#D97706;
    /* The weekend tint. Two grids — the rate calendar and the housekeeping planner — shade
       Saturday and Sunday, and both had written the same two literals. It is one idea, so it is
       one pair of tokens. */
    --weekend:#F4F7FC; --weekend-2:#EEF2F9;
    /* SEASON LEVELS (B-013, ADR-213): a hotel names its own levels and picks one of six colours by key (s1…s6), so the
       Grid's and the Rates calendar's day headers stay readable whatever it calls them. Each is a tint for the header and
       an ink for its short name and top edge — every ink clears 4.5:1 on its own tint. */
    --lv-s1:#DDF3E4; --lv-s1-ink:#166534;
    --lv-s2:#DCEEFB; --lv-s2-ink:#075985;
    --lv-s3:#FDEBC8; --lv-s3-ink:#8A3B0C;
    --lv-s4:#FFDCC2; --lv-s4-ink:#9A3412;
    --lv-s5:#FBD5D5; --lv-s5-ink:#9F1239;
    --lv-s6:#E9DDFB; --lv-s6-ink:#5B21B6;
    /* Print. `border-color:#999` appeared in two @media print blocks; on paper the screen's
       hairline disappears, so the border needs its own value rather than the screen's. */
    --print-line:#9AA4B2;
    --mono:'Fira Code',ui-monospace,Menlo,monospace;
    --shadow:0 1px 2px rgba(15,23,42,.06),0 1px 3px rgba(15,23,42,.05);
    --shadow-lg:0 10px 30px rgba(15,23,42,.14);
    /* Three screens pin an action bar to the bottom of the viewport and lift it off the content
       with the same shadow; one draws a diagonal hatch with the same ink. Written out four times
       between them, so they are tokens. */
    --shadow-up:0 -4px 14px rgba(15,23,42,.10);
    --hatch:rgba(15,23,42,.028);
    --veil:rgba(15,23,42,.45);
    --r:10px;
  }

  /* ================================================================================================
   * THE FOUR SURFACES.
   *
   * One system, four audiences. Everything structural — type, spacing, shadow, the components
   * below — is shared and defined once above. Guest and owner change only the ground and the
   * corner radius, as their wireframes do; the operator console changes the accent ramp and the
   * rail. That is what makes four products look like one product without making a guest's
   * booking page look like a back office.
   *
   * `ops` is the one that carries a safety argument rather than a brand argument. An operator can
   * hold a tenant cookie and an operator cookie at the same time, with a hotel's own screens one
   * tab over, and "which system am I in" must be answerable at a glance rather than by reading
   * the URL. It was a wholly separate dark sepia skin for that reason. It is the same system now,
   * so the signal has to be carried by the accent, the warm rail and the spine instead — which is
   * weaker than a different skin, and is the trade this unification is making on purpose.
   * ============================================================================================== */
  /* GUEST AND OWNER WEAR THE STAFF BLUE — THE WIREFRAMES' OWN CHOICE (Inc 96, ADR-163).
     Inc 87 gave them teal and green, the colours the two pages "already wore"; B1, B2, C1 and C2
     all declare `--primary:#1E40AF`, and B1's notes say "same colour system as staff; different,
     consumer tone". The tone is carried where the drawings carry it: a softer ground and rounder
     corners. Nothing else is redefined. */
  [data-surface="owner"]{ --bg:#F5F7FA; --r:12px; }
  [data-surface="guest"]{ --bg:#EEF1F5; --r:14px; }
  [data-surface="ops"]{
    --primary:#92400E; --primary-2:#D97706; --primary-3:#FEF0D5;
    --primary-line:#F0CF9B; --primary-ink:#7A350B;
    --rail:#1A1410; --rail-ink:#CDBBA2; --rail-hover:#2A2017; --rail-faint:#7D6B55;
  }
  /* The spine. `ops` wears it; the others do not. A 3px bar across the top of every operator
     screen, in the accent, above everything — the one piece of chrome that is not shared. */
  [data-surface="ops"] body::before{
    content:''; position:fixed; inset:0 0 auto 0; height:3px; background:var(--primary-2);
    z-index:200; pointer-events:none;
  }
  *{box-sizing:border-box}html,body{margin:0}
  body{background:var(--bg);color:var(--ink);font-family:'Fira Sans',ui-sans-serif,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:13px;line-height:1.4;-webkit-font-smoothing:antialiased}
  .num{font-family:var(--mono);font-feature-settings:"tnum" 1}
  svg{display:block}.ico{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.ico.sm{width:15px;height:15px}
  button,.click{cursor:pointer;font-family:inherit}
  :focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--primary-2);border-radius:6px}
  .rad{position:absolute;opacity:0;pointer-events:none}

  /* chips + buttons */
  .chip{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;border-radius:20px;padding:2px 9px;border:1px solid var(--line);background:var(--surface-2);color:var(--muted)}
  .chip.ok{background:var(--ok-bg);border-color:var(--ok-line);color:var(--ok)}
  .chip.warn{background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn)}
  .chip.bad{background:var(--bad-bg);border-color:var(--bad-line);color:var(--bad)}
  .chip.info{background:var(--primary-3);border-color:var(--primary-line);color:var(--primary)}
  .chip.own{background:var(--own);border-color:var(--own-line);color:var(--own-ink)}
  .chip.clean{background:var(--clean-bg);border-color:var(--clean-line);color:var(--clean)}
  .btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:6px 12px;background:var(--surface);color:var(--ink);font-size:12.5px;font-weight:600;transition:background .15s,border-color .15s,box-shadow .15s;white-space:nowrap}
  .btn:hover{background:var(--surface-2);border-color:var(--primary-2)}
  .btn:disabled{opacity:.55;cursor:not-allowed}
  .btn:disabled:hover{background:var(--surface);border-color:var(--line);box-shadow:none}
  .btn.primary:disabled:hover{background:var(--primary);border-color:var(--primary);box-shadow:none}
  .btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-ink);box-shadow:var(--shadow-lg)}
  .btn.cta{background:var(--cta);border-color:var(--cta);color:var(--cta-ink)}.btn.cta:hover{background:var(--cta-hover)}
  .btn.ghost{border-color:transparent;color:var(--muted);font-weight:500}.btn.ghost:hover{background:var(--surface-2);border-color:var(--line)}
  .btn.sm{padding:4px 9px;font-size:11.5px}
  /* `.lg` was defined in checkout.css and audit.css, with different padding in each — the same
     modifier meaning two sizes depending on which screen the button stood on. */
  .btn.lg{padding:10px 15px;font-size:13.5px}

  /* top bar */
  .top{display:flex;align-items:center;gap:14px;padding:10px 20px;background:var(--surface);border-bottom:1px solid var(--line)}
  .brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:15px}
  .brand .mark{width:24px;height:24px;border-radius:6px;background:linear-gradient(135deg,var(--primary-2),var(--primary));display:flex;align-items:center;justify-content:center}
  .switch-prop{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:5px 10px;font-weight:600}
  .switch-prop .cap{font-size:10px;color:var(--faint);font-weight:500;display:block;line-height:1}
  .search{flex:1;max-width:460px;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:7px 11px;background:var(--surface-2);color:var(--faint)}
  .search kbd{margin-left:auto;font-family:var(--mono);font-size:10px;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:1px 6px;color:var(--muted)}
  .top .right{margin-left:auto;display:flex;align-items:center;gap:8px}
  .iconbtn{position:relative;width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--surface);display:flex;align-items:center;justify-content:center;color:var(--muted)}
  .iconbtn:hover{background:var(--surface-2);color:var(--ink);border-color:var(--primary-2)}
  .iconbtn .dot{position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;background:var(--bad);color:#fff;border-radius:8px;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px;font-family:var(--mono)}
  .avatar{width:28px;height:28px;border-radius:50%;background:var(--primary-3);color:var(--primary);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;border:0;cursor:pointer;padding:0}

  /* view switch (the page header itself is `.pagehd`, below) */
  .vsw{display:flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}
  .vsw label{display:flex;align-items:center;gap:7px;padding:7px 14px;font-size:12.5px;font-weight:600;color:var(--muted);border-right:1px solid var(--line)}
  .vsw label:last-child{border-right:none}
  .vsw label:hover{background:var(--surface-2);color:var(--ink)}

  /* context strip: counters + alerts toggle */
  .ctx{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 0 14px}
  /* THE COUNTER CHIP. Today and Housekeeping both built one — same idea, same job, same place on
     the screen, two components: `.kpi` here with a row layout and no pressed state, `.hk-count`
     there with a column layout and one. They are one component now, with the pressed state the
     row version never had, because on both screens clicking a counter filters the list under it
     and a filter that does not look applied is a filter nobody trusts. */
  .kpi{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:7px 12px;background:var(--surface);box-shadow:var(--shadow);text-align:left;transition:border-color .15s,background .15s}
  .kpi:hover{border-color:var(--primary-2)}
  .kpi .n{font-family:var(--mono);font-size:18px;font-weight:600;line-height:1}
  .kpi .l{font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);white-space:nowrap}
  .kpi.on{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
  .kpi.on .l{color:var(--primary)}
  .kpi.warn,.kpi.attn{border-color:var(--warn-line)}.kpi.warn .n,.kpi.attn .n{color:var(--warn)}
  .kpi.bad{border-color:var(--bad-line)}.kpi.bad .n{color:var(--bad)}
  .kpi.ok{border-color:var(--ok-line)}.kpi.ok .n{color:var(--ok)}
  .kpi.info{border-color:var(--primary-line)}.kpi.info .n{color:var(--primary)}
  .kpi.clean{border-color:var(--clean-line)}.kpi.clean .n{color:var(--clean)}
  /* Stacked, for a strip of eight rather than a strip of five. */
  .kpi.stack{flex-direction:column;align-items:flex-start;gap:1px;padding:5px 11px 6px}
  .kpi.stack .n{font-size:16px;font-weight:700;line-height:1.15;font-family:inherit}
  .alerttoggle{margin-left:auto;display:flex;align-items:center;gap:8px;border:1px solid var(--bad-line);background:var(--bad-bg);color:var(--bad);border-radius:9px;padding:7px 12px;font-weight:700;font-size:12.5px}
  .alerttoggle:hover{box-shadow:var(--shadow)}
  .alerttoggle .cv{transition:transform .18s}

  /* alert panel (collapsible) — SHOWN BY DEFAULT, HIDDEN BY [hidden].
     It used to be `display:none` lifted only by `#alertsOpen:checked`, which is the wireframe's
     CSS-only toggle: a hidden checkbox the rebuilt shell never carried. So the panel could not be
     opened by anything, and A1's bell and its "N alerts need action" button had never once shown
     a thing. A screen toggles `panel.hidden`; that is the only mechanism now. */
  .alertpanel{display:block;padding:0 0 7px}
  .alert{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-left-width:4px;border-radius:9px;padding:9px 13px;background:var(--surface);box-shadow:var(--shadow);margin-bottom:7px}
  .alert .txt{flex:1;font-size:12.5px}.alert .txt b{font-weight:700}
  .alert.bad{border-left-color:var(--bad);background:linear-gradient(0deg,var(--bad-bg),var(--bad-bg)),var(--surface)}.alert.bad .ai{color:var(--bad)}
  .alert.warn{border-left-color:var(--cta)}.alert.warn .ai{color:var(--warn)}
  .xbtn{color:var(--faint);background:none;border:none;padding:4px;border-radius:6px;display:flex}.xbtn:hover{background:var(--surface-2);color:var(--ink)}
  .alertpanel .foot{font-size:11px;color:var(--faint);padding:2px 2px 0}

  /* main + card */
  .main{padding:0 0 8px}
  .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);position:relative}
  .cardhd{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid var(--line-2)}
  .cardhd h3{margin:0;font-size:14px;font-weight:700}
  .bd{padding:13px 15px}
  .toolbar{display:flex;align-items:center;gap:8px;margin-left:auto}
  /* THE RIGHT-HAND NOTE IN A CARD HEADER — "4 rooms", "last 5", "none open". Housekeeping
     defined it as `.hk-r` and styled it; Night audit and Rates emitted `.r` and nothing styled
     that at all, so five of these were plain text sitting against the title instead of pushed to
     the other end of the header. One name, defined once. */
  .cardhd .r, .r{margin-left:auto;font-size:11.5px;color:var(--muted);font-weight:400}
  .seg{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
  .seg span{padding:4px 10px;font-size:12px;color:var(--muted);border-right:1px solid var(--line)}
  .seg span:last-child{border-right:none}.seg span.on{background:var(--primary-3);color:var(--primary);font-weight:700}
  .legend{display:flex;flex-wrap:wrap;gap:14px;padding:10px 14px;font-size:11px;color:var(--muted);border-top:1px solid var(--line-2)}
  .legend span{display:inline-flex;align-items:center;gap:6px}
  .sw{width:13px;height:13px;border-radius:3px;border:1px solid var(--line);display:inline-block}

  /* ---- app shell (sidebar) ---- */
  .app{display:grid;grid-template-columns:220px 1fr;min-height:100vh}
  .shellmain{min-width:0;display:flex;flex-direction:column}
  .side{background:var(--rail);color:var(--rail-ink);display:flex;flex-direction:column;gap:1px;padding:14px 12px}
  .side .sbrand{display:flex;align-items:center;gap:9px;color:#fff;font-weight:700;font-size:15px;padding:6px 8px 14px}
  .side .sbmark{width:26px;height:26px;border-radius:7px;background:linear-gradient(135deg,var(--primary-2),var(--primary));display:flex;align-items:center;justify-content:center}
  .nav{display:flex;flex-direction:column;gap:1px}
  .nav a{display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:8px;color:var(--rail-ink);text-decoration:none;font-size:13px;font-weight:500;transition:background .15s,color .15s}
  .nav a .ico{width:18px;height:18px;stroke-width:1.7}
  .nav a:hover{background:var(--rail-hover);color:#fff}
  .nav a.active{background:var(--primary);color:#fff}
  .nav a .nav-n{margin-left:auto;font-family:var(--mono);font-size:10.5px;font-weight:700;background:var(--warn);color:#fff;border-radius:20px;padding:0 6px;line-height:17px}
  .nav .grp{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:var(--rail-faint);padding:12px 10px 4px;font-weight:600}
  .side .sfoot{margin-top:auto;font-size:11px;color:var(--rail-faint);padding:8px 10px}

  /* ---- list view ---- */
  .ltabs{display:flex;gap:4px;padding:11px 14px;border-bottom:1px solid var(--line-2)}
  .ltab{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:8px;background:transparent;border:1px solid transparent;color:var(--muted);font-size:13px;font-weight:600}
  .ltab.on{background:var(--primary-3);color:var(--primary);border-color:var(--primary-line)}
  .ltab .cnt{font-family:var(--mono);font-size:11px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:0 6px}
  table.lt{width:100%;border-collapse:collapse}
  table.lt th{font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);font-weight:600;text-align:left;padding:8px 14px;background:var(--surface-3);border-bottom:1px solid var(--line)}
  table.lt td{padding:10px 14px;border-bottom:1px solid var(--line-2);vertical-align:middle}
  table.lt tr:hover{background:var(--surface-3)}
  .lt .gn{font-weight:600}.lt .gs{color:var(--muted);font-size:11px}
  .lt .chips{display:flex;gap:5px;flex-wrap:wrap}

  @media(max-width:1024px){.app{grid-template-columns:1fr}.side{display:none}}
  @media(max-width:900px){.floorwrap{grid-template-columns:1fr}.search{display:none}}

/* ================================================================================================
 * SHELL FURNITURE — the parts the wireframes show but do not style, because a static wireframe has
 * no sessions, no loading and no errors. Built on the same tokens so they cannot drift.
 * ============================================================================================== */
/* `hidden` MUST HIDE. The wireframes are static, so none of them needed this — and the shell
   hides six controls with the attribute (the property switcher, search, the bell, the avatar, Sign
   out, the alert panel). Without the rule the browser default loses to any `display` a class sets,
   and the SIGN-IN SCREEN offered a property switcher, a bell with a red alert dot, an empty avatar
   and a Sign out button. The old UI had this rule; extracting the design system dropped it. */
[hidden] { display:none !important; }

main#screen { padding:18px 22px 40px; }
.pad { padding:14px 16px 18px; }
.loading { color:var(--faint); padding:28px 4px; font-size:14px; }

/* A screen that has not been ported yet says so and offers the way through, rather than pretending
   to be empty. This is scaffolding with an expiry date: it goes when the last screen moves. */
.notyet { background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
          padding:26px 24px; max-width:64ch; box-shadow:var(--shadow); }
.notyet h2 { margin:0 0 8px; font-size:17px; }
.notyet p  { margin:0 0 16px; color:var(--muted); line-height:1.65; font-size:14px; }

.signin { display:grid; place-items:center; padding:6vh 0; }
.signin .card { width:min(420px,92vw); }
/* ---- ONE FIELD ---------------------------------------------------------------------------------
 * The wireframes draw one input — a label over `.input`, 8px corners, 8px 11px of padding
 * (A2_new_reservation.html:70–75). Six screens wrote `class: 'inp'` thirty-seven times, each file's
 * header saying `.inp` "lives in vela.css" — and it never did, except inside the ask dialog. So the
 * Night audit's close policy, both Rates pickers and New reservation's Source rendered as the
 * browser's own square, inset controls, and the rest as four different local copies (Inc 96).
 *
 * `:where()` keeps the bare-element half at a class's weight, so a screen's own rule for a width or
 * a compact row still wins without restating the field. The staff app only: the standalone pages
 * style their own forms. */
.inp,
.app :where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color]), select, textarea) {
  font:inherit; font-size:13px; line-height:1.4; color:var(--ink); background:var(--surface);
  border:1px solid var(--line); border-radius:8px; padding:8px 11px; }
.inp:disabled, .app :where(input, select, textarea):disabled {
  background:var(--surface-2); color:var(--faint); cursor:not-allowed; }
/* Compact, for a control inside a table row or beside a `.btn.sm`. */
.inp.sm, .app :where(select.sm, input.sm) { padding:4px 8px; font-size:12.5px; }

.field { display:block; margin-bottom:12px; }
.field span { display:block; font-size:11px; letter-spacing:.4px; text-transform:uppercase;
              color:var(--muted); font-weight:600; margin-bottom:5px; }
.field input { width:100%; }

/* The top-bar search is a pill with a field inside it (A1:51): the pill is the border, so the
   field has none. It had the browser's own inset box, white inside the grey pill. */
.top .search input { flex:1; min-width:0; border:0; padding:0; background:transparent;
                     font:inherit; color:var(--ink); }
.top .search input:focus-visible { box-shadow:none; }
.search:focus-within { border-color:var(--primary-2); background:var(--surface); }

/* ---- ONE STEP NUMBER ---------------------------------------------------------------------------
 * A numbered circle on a step's card header (A3:58, A5:53, A6:53). A2, A5 and A6 typed the number
 * into the title instead — "1 · Settle the balance". */
.stepn { width:26px; height:26px; flex:0 0 26px; border-radius:50%; background:var(--primary);
         color:#fff; font-family:var(--mono); font-size:12px; font-weight:700;
         display:inline-flex; align-items:center; justify-content:center; }
.stepn.done { background:var(--ok-bg); color:var(--ok); border:1px solid var(--ok-line); }
.btn.wide { width:100%; justify-content:center; }
.hint { margin:14px 0 0; color:var(--faint); font-size:12px; line-height:1.7; }
/* A COMPULSORY FIELD (Inc 133): a red asterisk after its label — the registration card's, wherever it is asked, and
   the Setup card that decides which. */
/* `.field span` styles a field's label as a grey block; the asterisk inside one stays red and inline. */
.req, .field span.req { display:inline; color:var(--bad); font-weight:700; margin:0 0 0 3px; }

/* A session that ended is a thing to explain, not an error to swallow (ADR-114). */
.veil { position:fixed; inset:0; background:var(--veil); display:flex; align-items:center;
        justify-content:center; z-index:80; backdrop-filter:blur(2px); }
.signedout { background:var(--surface); border-radius:12px; padding:24px 26px; max-width:460px;
             box-shadow:var(--shadow-lg); }
.signedout h2 { margin:0 0 8px; font-size:17px; }
.signedout p { margin:0 0 18px; color:var(--muted); line-height:1.65; font-size:14px; }

.toaststack { position:fixed; right:18px; bottom:18px; display:flex; flex-direction:column;
              gap:8px; z-index:90; max-width:min(460px,86vw); }
.toast { background:var(--ink); color:#fff; padding:11px 14px; border-radius:9px; font-size:13.5px;
         line-height:1.55; box-shadow:var(--shadow-lg); }
.toast.bad { background:var(--bad); }
.toast.ok  { background:var(--ok); }
.toast.warn { background:var(--warn); }
/* B-021 step 6: a message with Undo — the button on the message's own colour. */
.toast:has(.toast-undo) { display:flex; align-items:center; gap:12px; }
.toast-undo { border:1px solid currentColor; background:transparent; color:inherit; border-radius:6px; padding:3px 10px;
              font:inherit; font-weight:700; cursor:pointer; }
.toast-undo:hover, .toast-undo:focus-visible { background:color-mix(in srgb, currentColor 16%, transparent); }

/* ---- NAVIGATION ON A TABLET -------------------------------------------------------------------
 * The wireframe hides the sidebar below 1024px and puts nothing in its place — which is fine for a
 * static mockup and not fine for the device a front desk actually holds (stage 6 walked all
 * twenty-four screens at 768px for exactly this reason). Below 1024 the rail becomes a horizontal
 * strip that scrolls: same links, same order, same active state, no hamburger to discover.
 * ---------------------------------------------------------------------------------------------- */
@media (max-width:1024px) {
  .app { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .side { display:flex !important; flex-direction:row; align-items:center; gap:4px;
          width:auto; height:auto; padding:6px 10px; overflow-x:auto; overflow-y:hidden;
          border-right:0; border-bottom:1px solid var(--line); }
  .side .sbrand { margin:0 10px 0 0; padding:0; border:0; flex:0 0 auto; }
  .side .sfoot  { display:none; }
  .nav { display:flex; flex-direction:row; gap:4px; padding:0; overflow-x:auto; }
  .nav a { white-space:nowrap; padding:7px 11px; }
  .nav .grp { display:none; }              /* a section heading in a horizontal strip is noise */
}

/* ---- THE MENU FOLDS AWAY (William, 2026-11-26) -----------------------------------------------------
 * On a computer screen the rail is icons only, each still one click from its page with its name on hover; the Vela mark
 * (a button) opens the names, sliding OVER the page so nothing under it moves, and picking a page folds it again (shell.js
 * `wireNavFold`). Group headings become a thin line while folded. The rail stays in view as the page scrolls.
 * Below 1024px nothing here applies: the strip across the top keeps its names.
 * ---------------------------------------------------------------------------------------------- */
.side .sbrand { background:none; border:0; font:inherit; color:#fff; font-weight:700; font-size:15px; cursor:pointer;
                text-align:left; border-radius:8px; }
.side .sbrand:focus-visible { outline:2px solid var(--primary-2); outline-offset:2px; }
@media (min-width:1025px) {
  .app { grid-template-columns:60px 1fr; }
  .app > .shellmain { grid-column:2; }          /* the opened rail leaves the grid; the page keeps its place */
  .side { position:sticky; top:0; align-self:start; height:100vh; overflow-y:auto; overflow-x:hidden;
          padding:14px 8px; z-index:40; }
  .side.open { position:fixed; left:0; top:0; bottom:0; height:auto; align-self:stretch; width:220px; padding:14px 12px; z-index:60;
               box-shadow:var(--shadow-lg); }
  .side.open .sbrand { width:100%; }
  .side:not(.open) .sname, .side:not(.open) .sfoot, .side:not(.open) .nav .nl { display:none; }
  .side:not(.open) .sbrand { justify-content:center; padding:6px 0 14px; }
  .side:not(.open) .nav a { justify-content:center; padding:9px 0; position:relative; }
  .side:not(.open) .nav .grp { font-size:0; padding:0; height:1px; margin:8px 6px; background:var(--rail-hover); }
  .side:not(.open) .nav a .nav-n { position:absolute; top:2px; right:3px; margin:0; font-size:9px; line-height:14px; padding:0 4px; }
}
@media (min-width:1025px) and (prefers-reduced-motion:no-preference) {
  .side.open { animation:side-in .16s ease-out; }
  @keyframes side-in { from { transform:translateX(-12px); opacity:.6; } to { transform:none; opacity:1; } }
}

/* A control the current screen cannot serve says so rather than swallowing what you type. */
.search.off { opacity:.55; }
.search input:disabled { cursor:not-allowed; }
.iconbtn:disabled { opacity:.45; cursor:not-allowed; }
.switch-prop.live { cursor:pointer; }
.switch-prop.live:hover { border-color:var(--primary-2); }
.switch-prop.live:focus-visible { outline:2px solid var(--primary-2); outline-offset:1px; }

/* One value, asked for without `window.prompt` — which is suppressed in embedded contexts and
   throws rather than falling back (Inc 66; the lesson was first written in hk.js in Inc 51). */
.askbox { background:var(--surface); border-radius:12px; padding:22px 24px; width:min(460px,88vw);
          box-shadow:var(--shadow-lg);
          /* A TALL QUESTION SCROLLS INSIDE ITSELF (Inc 127): a centred box taller than the screen had its title
             above the top edge and, on a short tablet, its buttons below the bottom — with nothing to scroll. */
          max-height:calc(100dvh - 32px); overflow-y:auto; overscroll-behavior:contain; }
.askbox h2 { margin:0 0 8px; font-size:17px; }
.askbox p { margin:0 0 14px; color:var(--muted); line-height:1.65; font-size:13.5px; white-space:pre-line; }
.askbox .inp { width:100%; }
.askacts { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
/* Before and after, side by side (2026-11-13) — `compareTable()` in the shell. */
.askcmp { width:100%; border-collapse:collapse; margin:0 0 12px; font-size:13.5px; font-variant-numeric:tabular-nums; }
.askcmp th, .askcmp td { text-align:left; padding:7px 10px; border-bottom:1px solid var(--line); }
.askcmp thead th { font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.askcmp tbody th { font-weight:500; color:var(--muted); white-space:nowrap; }
.askcmp tbody td:nth-child(2) { color:var(--muted); }
.askcmp tr.chg td:nth-child(3) { font-weight:700; color:var(--ink); }
.askcmp tr.chg td:nth-child(2) { text-decoration:line-through; text-decoration-color:var(--faint); }
.askcmp tr.foot th, .askcmp tr.foot td { border-bottom:0; font-weight:700; color:var(--ink); }
/* B-030: what stays the same — the value, and a teal ✓ in a small disc beside it. */
.askcmp .same { display:inline-flex; align-items:center; gap:6px; }
.askcmp .ok { display:inline-flex; align-items:center; justify-content:center; flex:none; width:18px; height:18px; border-radius:50%;
              background:var(--clean-bg); color:var(--clean); }
.askcmp .ok .ico { width:12px; height:12px; stroke-width:3; }
/* Said under a before/after table when something is charged now (B-025 b's nights already passed). */
.askwarn { margin:0 0 12px; font-size:12.5px; color:var(--warn); background:var(--warn-bg); border-radius:8px; padding:6px 10px; }
/* Several answers in one question (Inc 125) — `askForm()` in the shell. */
.askbox.wide { width:min(560px,92vw); }
/* The role editor's permissions (People, Inc 139) — in the dialog, which sits outside the screen's own styles. */
.rpm { max-height:52vh; overflow:auto; border:1px solid var(--line-2); border-radius:8px; padding:8px 12px; }
.rpm-area { margin:6px 0 10px; }
.rpm-key { display:flex; gap:8px; align-items:flex-start; padding:4px 0; font-size:12.5px; }
.rpm-key .hint { display:block; }
.rpm-child { padding-left:22px; }
.rpm-no { color:var(--warn); }
.askfield { display:block; margin:0 0 12px; }
.asklabel { font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.askchoices { display:flex; flex-direction:column; gap:6px; }
.askchoice { display:flex; gap:10px; align-items:flex-start; padding:9px 11px; border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.askchoice:has(input:checked) { border-color:var(--primary-2); background:color-mix(in srgb, var(--primary-2) 7%, transparent); }
.askchoice.off { opacity:.55; cursor:not-allowed; }
.askchoice input { margin-top:3px; }
.askchoice span { display:flex; flex-direction:column; gap:2px; font-size:13.5px; }
.askchoice .hint { color:var(--muted); font-size:12.5px; font-weight:400; }
.askfield .hint{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5}
.inp.pin{max-width:12em}
.inp.pin:not(:placeholder-shown){letter-spacing:.4em}
.pinuses{width:100%;border-collapse:collapse;font-size:13px;margin:6px 0 10px}
.pinuses td{padding:4px 6px;border-top:1px solid var(--line)}
.askerr { color:var(--bad); margin:0 0 8px; font-size:13px; }
.upglist { display:flex; flex-direction:column; gap:10px; max-height:55vh; overflow:auto; margin:0 0 6px; }
.upgrow { border:1px solid var(--line); border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:6px; font-size:13.5px; }
.upgrow .hint { color:var(--muted); font-size:12.5px; }
.upgrow .acts { display:flex; gap:6px; flex-wrap:wrap; }

/* ---- ONE "DONE" (Inc 96) — `done()` in the shell, measured off _success_states.html ------------- */
.donebox { width:min(420px,92vw); background:var(--surface); border:1px solid var(--line);
           border-radius:12px; box-shadow:var(--shadow-lg); padding:22px; text-align:center; }
.donetick { width:56px; height:56px; border-radius:50%; background:var(--ok-bg); border:1px solid var(--ok-line);
            color:var(--ok); display:flex; align-items:center; justify-content:center; margin:0 auto 14px; }
.donetick .ico { width:30px; height:30px; stroke-width:2.4; }
.donebox.warn .donetick { background:var(--warn-bg); border-color:var(--warn-line); color:var(--warn); }
.donebox h2 { margin:0 0 4px; font-size:18px; }
.donesub { margin:0; color:var(--muted); font-size:12.5px; }
.donerows { text-align:left; background:var(--surface-2); border:1px solid var(--line); border-radius:10px;
            padding:11px 13px; margin:16px 0; }
.donerow { display:flex; align-items:baseline; gap:12px; padding:5px 0; font-size:12.5px; }
.donerow .k { color:var(--muted); }
.donerow .v { margin-left:auto; font-weight:600; text-align:right; }
.donebox > .btn.wide { margin-top:2px; }
.doneacts { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:8px; }
.doneextra { text-align:left; margin:0 0 14px; display:flex; flex-direction:column; gap:10px; }
.doneplace { display:flex; justify-content:center; padding:18px 0 28px; }

/* The inline add-form (Inc 67 moved it here from setup.css, because a second screen wanted it and
   a copied component is two components the moment one of them is fixed). */
.addform { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
/* Its fields are the shared field; a button beside one is as tall as it. */
.addform .btn { align-self:stretch; }

/* ================================================================================================
 * THE COMPONENTS EVERY SCREEN NEEDED AND THE SYSTEM NEVER HAD.
 *
 * Each of these was invented separately by between three and six screens, which is how one product
 * came to hold four page headers, four copies of one link, and five ways of saying "this part is
 * not built yet". A copied component is two components the moment one of them is fixed — the
 * lesson `.addform` already carries at the top of this file, applied to the rest of the furniture.
 * ============================================================================================== */

/* ---- ONE PAGE HEADER ---------------------------------------------------------------------------
 * Replaces `.subbar`, `.owners-head`, `.people-head`, `.setup-head`, and the nothing-at-all that
 * Housekeeping, Rates and Night audit had — three screens opened with no title on them, so the
 * only way to know which one you were looking at was the sidebar's highlight.
 *   <div class=pagehd>
 *     <div class=pt><h1>Title <span class=date>…</span> <span class=chip>…</span></h1>
 *                   <p class=sub>what this screen is for</p></div>
 *     <div class=right>…actions…</div>
 *   </div>
 */
.pagehd { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:0 0 16px; }
.pagehd .pt { flex:1 1 340px; min-width:0; display:flex; flex-direction:column; gap:5px; }
.pagehd h1 { margin:0; font-size:19px; letter-spacing:-.2px; line-height:1.25;
             display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-weight:700; }
.pagehd .sub { margin:0; color:var(--muted); font-size:12.5px; line-height:1.55; max-width:80ch; }
.pagehd .date { color:var(--muted); font-size:12.5px; font-weight:400; }
.pagehd .right { margin-left:auto; display:flex; align-items:center; gap:8px; flex-wrap:wrap;
                 justify-content:flex-end; }
/* A back link belongs to the header, not above it: three detail screens drew their own. */
.pagehd .back { display:inline-flex; align-items:center; gap:5px; color:var(--muted);
                background:none; border:0; font:inherit; font-size:12.5px; font-weight:600;
                cursor:pointer; padding:2px 0; }
.pagehd .back:hover { color:var(--primary); }

/* ---- ONE SECTION HEADER ------------------------------------------------------------------------
 * Eight screens open a card with `.cardhd > h3` — 11px of air and a rule under it. Owners, Setup
 * and People open one with a bare `<h2>` instead, and `.card` carries no padding of its own, so
 * on those three the section title sat hard against the card's own border while the identical
 * title everywhere else was inset. Same element, same job, two results.
 *
 * The short form is not worth rewriting three screens to remove — it is less markup for a card
 * whose body is one table. So the short form is made to render as the long one, and the body it
 * introduces gets the padding the card never gave it. A table stays full-bleed, as it is under
 * `.cardhd`. */
/* SCOPED TO THE STAFF APP (review #12). Inc 87 loaded this stylesheet into the five standalone
   documents too, and three of them — /legacy, /owner, /ops — define `.card > h2` themselves, so
   the body-padding rules below reached into every one of their cards and double-inset them. The
   standalone pages take the PALETTE from here; these components are the staff app's. */
/* Where the account stands with Vela (Inc 93) — one line above every screen, only when it matters. */
.app .standing { margin:12px 22px 0; padding:9px 12px; border:1px solid var(--warn-line); border-radius:9px;
  background:var(--warn-bg); color:var(--warn); font-size:12.5px; }
.app .standing b { color:inherit; }
.app .standing.bad { border-color:var(--bad-line); background:var(--bad-bg); color:var(--bad); }
.app .card > h2 { margin:0; font-size:14px; font-weight:700; padding:11px 14px;
             border-bottom:1px solid var(--line-2); display:flex; align-items:baseline;
             gap:4px; flex-wrap:wrap; }
.app .card > h2 .sub, .app .card > h2 .gloss { color:var(--muted); font-weight:400; font-size:12.5px; }
.app .card > h2 ~ *:not(table) { margin-left:14px; margin-right:14px; }
.app .card > h2 ~ *:last-child { margin-bottom:13px; }
.app .card > h2 + *:not(table) { margin-top:13px; }

/* ---- ONE LINK-BUTTON ---------------------------------------------------------------------------
 * `Rename` `Archive` `Edit` `Retire` `Open` `Report`. Four screens defined this, all four as
 * `var(--accent, #1e5fb4)` against a token that did not exist — so every one of them rendered a
 * blue that is in no palette, and `.danger` split into two different reds because two screens
 * reached for `--danger` and two for `--bad`. One definition, real tokens, and a focus ring: it
 * is a <button>, so it must look like something when tabbed to. */
.lnk { background:none; border:0; padding:2px 0; font:inherit; font-size:12.5px; font-weight:600;
       color:var(--primary); cursor:pointer; border-radius:4px; }
.lnk:hover { text-decoration:underline; }
.lnk.danger { color:var(--bad); }
.lnk:disabled { color:var(--faint); cursor:not-allowed; text-decoration:none; }
/* TWO LINKS IN A ROW NEED AIR BETWEEN THEM. The four screen-local copies each carried a
   horizontal padding to get it; the shared one has none, because padding on a link-button also
   pushes it away from the edge it is aligned to. A margin between siblings does the one job. */
/* ON THE CONTAINER, not the sibling (review #12): a margin between links stacked with the flex
   `gap` of every container that already spaced them, so the same two links were 14px apart in a
   table row and 26px apart on a room tile. A table cell is not a flex box, so it spaces them. */
td.acts .lnk + .lnk { margin-left:14px; }

/* ---- THE DESTRUCTIVE CONFIRM -------------------------------------------------------------------
 * `ask({ danger:true })` has emitted `class="btn danger"` since the dialog was written, and
 * `.btn.danger` was never defined anywhere — so "Refund this card" and "Rename this room" offered
 * the identical grey button. The one button in the product whose job is to look different did not. */
.btn.danger { background:var(--bad); border-color:var(--bad); color:#fff; }
.btn.danger:hover { background:var(--bad-ink); box-shadow:var(--shadow-lg); }
.btn.danger:disabled:hover { background:var(--bad); border-color:var(--bad); box-shadow:none; }

/* ---- THE ADD BUTTON ----------------------------------------------------------------------------
 * `+ Add a room type` was a typed plus sign, and `✎ Set the floor for a range` a typed pencil, in
 * a product that carries a stroked icon set used by every item in the sidebar. The glyph is drawn
 * by the rule now, at the weight the rest of the iconography uses. */
.btn.add::before { content:''; width:13px; height:13px; flex:0 0 13px;
                   background:currentColor; -webkit-mask:var(--plus) center/13px no-repeat;
                   mask:var(--plus) center/13px no-repeat; }
:root { --plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }

/* ---- "NOT BUILT YET", SAID ONCE ----------------------------------------------------------------
 * Seven screens carried a block of text addressed to whoever was building them: "On the wireframe,
 * not in the system", "M04 (channel manager) is Phase 2", "ADR-044", "Rostering is Phase 2". A
 * hotel manager cannot read any of that, and a pilot customer was reading all of it.
 *
 * The honesty is worth keeping — a manager who cannot tell "not built" from "broken" will ring
 * somebody about the second when it is the first. So it stays, in their words, folded shut at the
 * foot of the screen rather than open in the middle of it, in ONE shape instead of five. */
.notebox { border:1px solid var(--line); border-radius:var(--r); background:var(--surface-2);
           margin:20px 0 0; max-width:82ch; }
.notebox > summary { display:flex; align-items:center; gap:8px; padding:10px 14px; cursor:pointer;
                     color:var(--muted); font-size:12.5px; font-weight:600; list-style:none; }
.notebox > summary::-webkit-details-marker { display:none; }
.notebox > summary::after { content:''; width:14px; height:14px; margin-left:auto; flex:0 0 14px;
                            background:currentColor; transition:transform .18s;
                            -webkit-mask:var(--chev) center/14px no-repeat;
                            mask:var(--chev) center/14px no-repeat; }
.notebox[open] > summary::after { transform:rotate(180deg); }
.notebox > summary:hover { color:var(--ink); }
.notebox .nb { padding:2px 14px 14px; margin:0; }
.notebox .nb dt { font-weight:600; color:var(--ink); font-size:12.5px; margin:12px 0 0; }
.notebox .nb dt:first-child { margin-top:0; }
.notebox .nb dd { margin:3px 0 0; color:var(--muted); font-size:12.5px; line-height:1.6; }
:root { --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

/* ---- ONE NOTE ----------------------------------------------------------------------------------
 * Three screens defined `.note` and two of them gave `.note.warn` a surface with `color-mix` on a
 * token that did not exist. A note is a sentence about the screen; a note with a tone is a finding
 * and gets a surface to sit on. */
.app .note { color:var(--muted); font-size:12.5px; line-height:1.6; margin:12px 0 0; max-width:78ch; }
.app .note.warn, .app .note.bad, .app .note.ok { padding:10px 12px; border-radius:8px; border:1px solid var(--line); }
.app .note.warn { color:var(--warn); background:var(--warn-bg); border-color:var(--warn-line); }
.app .note.bad  { color:var(--bad);  background:var(--bad-bg);  border-color:var(--bad-line); }
.app .note.ok   { color:var(--ok);   background:var(--ok-bg);   border-color:var(--ok-line); }
.app .note code { font-family:var(--mono); font-size:11.5px; }

/* ---- ONE SETUP-STYLE TABLE ---------------------------------------------------------------------
 * `table.grid` existed three times, character for character, in owners.css, people.css and
 * setup.css. It is the table the "set it up once" screens use, as distinct from `table.lt`, the
 * dense list table the operational screens use. Two tables is a decision; three copies of one of
 * them is an accident. The responsive collapse below 700px came from people.css, where it was the
 * only copy that had it — so the same table reflowed on one screen and ran off the edge on two. */
table.grid { width:100%; border-collapse:collapse; }
table.grid th { text-align:left; font-size:10px; text-transform:uppercase; letter-spacing:.4px;
                color:var(--muted); font-weight:600; border-bottom:1px solid var(--line);
                padding:8px; background:var(--surface-3); }
table.grid td { padding:9px 8px; border-bottom:1px solid var(--line-2); vertical-align:top; }
table.grid tr:hover td { background:var(--surface-3); }
table.grid .num, table.grid th.num { text-align:right; font-variant-numeric:tabular-nums; }
table.grid .acts { white-space:nowrap; text-align:right; }
table.grid tr.gone td { opacity:.55; }
table.grid tr.open td { background:var(--primary-3); }
@media (max-width:700px) {
  table.grid thead { display:none; }
  table.grid td { display:block; border:0; padding:2px 0; }
  table.grid td.acts { white-space:normal; text-align:left; padding-top:6px; }
  table.grid tr { display:block; border-bottom:1px solid var(--line); padding:10px 0; }
  table.grid tr:hover td { background:none; }
}
.app .empty { color:var(--muted); font-size:12.5px; line-height:1.6; margin:8px 0 0; max-width:70ch; }

/* SEASON LEVELS (B-013, ADR-213) — one class per palette key sets the pair a screen paints with; the swatch is the level's
   short name on its own colour, for a key or a list. */
.lv-s1 { --lv:var(--lv-s1); --lv-ink:var(--lv-s1-ink); }
.lv-s2 { --lv:var(--lv-s2); --lv-ink:var(--lv-s2-ink); }
.lv-s3 { --lv:var(--lv-s3); --lv-ink:var(--lv-s3-ink); }
.lv-s4 { --lv:var(--lv-s4); --lv-ink:var(--lv-s4-ink); }
.lv-s5 { --lv:var(--lv-s5); --lv-ink:var(--lv-s5-ink); }
.lv-s6 { --lv:var(--lv-s6); --lv-ink:var(--lv-s6-ink); }
.lv-key { display:inline-flex; align-items:center; gap:5px; }
.lv-sw { display:inline-block; min-width:24px; padding:1px 5px; border-radius:4px; background:var(--lv); color:var(--lv-ink);
         box-shadow:inset 0 2px 0 var(--lv-ink); font:700 10px/1.4 var(--mono); font-style:normal; text-align:center; }
