/* Name pending shared UI: tokens, app shell and components (DESIGN.md). Linked as the first item of every
   board's <helmet>: a board's own rules win over these at equal specificity, and boards keep only page layout
   (page-scoped classes such as .lord-grid). Edit here, not per board. */

/* ---------- Tokens ---------- */
.sw{
  /* spacing scale: 4 8 12 16 24 32 48 64 */
  --s-1:4px;--s-2:8px;--s-3:12px;--s-4:16px;--s-5:24px;--s-6:32px;--s-7:48px;--s-8:64px;
  /* type (DESIGN "Typography", owner 2 Nov: sample D faces, sample B sizes): Unbounded for titles and hero figures, Figtree for all other text.
     Scale: H1 56 · H2 24 · hero 48 (dense rows 40) · body 15 · label 13. Labels never below 13 (DESIGN "Text size and grey text") */
  --f-display:'Unbounded',ui-sans-serif,system-ui,sans-serif;
  --f-mono:ui-monospace,Consolas,'Courier New',monospace;
  --f-text:'Figtree',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --t-h1:56px;--w-h1:700;--t-h2:24px;--w-h2:600;--t-fig-hero:48px;--t-fig-dense:40px;--w-fig-hero:600;
  --t-body:15px;--t-label:13px;--w-label:600;--w-fig:600;
  font-family:var(--f-text);font-size:var(--t-body);
  /* metric colours (--power --merits --gather --healed --deaths --economy, one set per theme, appended below); wounded joins deaths */
  --wounded:var(--deaths);
  /* text tints of metric colours that fail 4.5:1 as small text (gathered #037f17 is 4.05:1 on black); the strong colour stays for figures */
  --gather-ink:#3fb950;--power-ink:#6ea8ff;
  /* game resource colours (gold, wood, ore, mana), sampled from the game's resource bar; owner 2 Dec. They override
     the violet "resources" of DESIGN for these four. Dark themes use the game hue (7.2:1 or better on every dark surface);
     the light theme below uses a darker tint of each hue (4.5:1 or better on the light surfaces) */
  --res-gold:#f7c115;--res-wood:#d6945c;--res-ore:#bfc8d1;--res-mana:#43d1ef;
  /* direction (gain/loss, arriving/leaving): one pair site-wide, distinct from the metric colours; always with a sign */
  --up:#9ad957;--down:#ff7e95;
  /* team comparison (Team 1 vs Team 2) */
  --team-1:#ECEDEE;--team-2:#ff9f43;--team-3:#5fd4f0;--team-4:#ff6fb7;--team-5:#d7e86a;--team-6:#c4a7ff;
  --container:1600px;
  /* field spacing: one rule for every form (see "Field spacing" below). label text -> control, control -> its message,
     message -> message, and group -> the next group or button. Owner 9 Nov: 6, 6, 4, 16 px. */
  --f-label:6px;--f-msg:6px;--f-msg-2:4px;--f-group:16px;
  /* Discord presence (tags .tag.dc): indigo, lighter on dark themes; the light theme overrides it below */
  --dc:#8b93ff;
  /* red text that passes 4.5:1 on the dark themes (--bad is for dots and borders; Offline tag text, 9 Nov) */
  --bad-ink:#ff7770;
}
/* boards set metric colours per theme at (0,2,0); match it so wounded = deaths red in every theme */
.sw[data-theme],[data-theme] .sw{--wounded:var(--deaths)}
/* Charts (owner 10 Nov; DESIGN "Charts"): one palette for every chart. Faction colours are the game's banner hues (HSL 201 blue, 112 green, 3 red), stepped per surface so validate_palette.js passes on every dark and light surface; dark red-green CVD is a WARN (7.4 ΔE), carried by the 2px gaps and the labelled legend */
.sw{--faction-order:#1F7BAD;--faction-spring:#2D9C1C;--faction-wild:#ED615A;--chart-ord-1:#A9E4F7;--chart-ord-2:#4FB2DB;--chart-ord-3:#2A7FA8;--chart-unknown:#6B7079;--chart-track:var(--line-2);--chart-grid:var(--line);--chart-grid-base:var(--line-3);--chart-col-max:24px}
.sw[data-theme="light"],[data-theme="light"] .sw{--faction-order:#1F7BAD;--faction-spring:#2FA51D;--faction-wild:#CA1F16;--chart-ord-1:#4FA3CF;--chart-ord-2:#2B7DAE;--chart-ord-3:#14507A;--chart-unknown:#7A7F88}
.sw[data-theme="light"],[data-theme="light"] .sw{--res-gold:#7d5a00;--res-wood:#7a4a22;--res-ore:#4d5763;--res-mana:#005f75;--wounded:var(--deaths);--dc:#4348c9;--bad-ink:#b10000;--up:#3d7a10;--down:#c22f4b;--team-1:#16171A;--team-2:#b85a00;--team-3:#0b7fa0;--team-4:#c2307a;--team-5:#5f7a00;--team-6:#6b4fd6;--gather-ink:#056b25;--power-ink:#1f5fbf}

/* ---------- App shell: sidebar + one content container ---------- */
.side[data-shell]{position:sticky;top:0;height:100vh;align-self:flex-start;flex:0 0 var(--sw-side-size,240px);box-sizing:border-box;
  padding:16px 12px 14px;border-right:1px solid var(--line);background:var(--side);display:flex;flex-direction:column;gap:16px;overflow-y:auto}
.side[data-shell] .side-brand{display:flex;align-items:center;height:30px;padding:0 10px;font-size:15px;color:var(--ink);text-decoration:none}
.nv{display:flex;align-items:center;gap:12px;height:36px;padding:0 10px;border-radius:9px;font-size:var(--t-body);text-decoration:none;color:var(--ink-2);transition:background .15s ease-out,color .15s ease-out}
.nv:hover{background:var(--hover);color:var(--ink)}
.nv[aria-current="page"]{background:var(--sel);color:var(--ink)}
/* Team in the sidebar: a button that looks like a nav item; its sub-items sit under it and are links in tab order when open */
.side-nav .side-toggle{width:100%;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}
.side-nav .side-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.side-chev{margin-left:auto;flex:none;color:var(--ink-3)}
/* the rotate animates only where the site allows motion (shell.js answers this media query from the Appearance setting) */
@media(prefers-reduced-motion:no-preference){.side-chev{transition:transform .15s ease-out}}
.side-toggle[aria-expanded="true"] .side-chev{transform:rotate(180deg)}
/* the release line in the sidebar footer (muted label; What's new is a real button) */
/* the last thing in the sidebar: a divider in the sidebar's line colour, then the release line and its button */
.side-version{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px 0;border-top:1px solid var(--line);font-size:13px;color:var(--ink-2)}
.side-version[hidden]{display:none}
.side-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--up);margin-left:6px;flex:none}
.side-dot[hidden]{display:none}
/* Finish setup reminder (shell.js): a menu line and a dot on the avatar while a player or a team is missing */
.side-setup[hidden],.side-setup-dot[hidden]{display:none}
.side-avatar{position:relative}
.side-setup-dot{position:absolute;top:-2px;right:-2px;margin:0;width:8px;height:8px;border:2px solid var(--bg);background:var(--warn)}
/* ---------- Collapsed sidebar rail (sw-side-collapsed; the resize handle and rail decorator are in each board's keyboard script,
   which sets data-collapsed on the sidebar). Shared here so the shell's sidebar folds the same way on every board. ---------- */
@media(min-width:760.01px){
  [data-resizable]{position:relative;overflow:visible}
  [data-resizable][data-collapsed="true"] .side-brand{font-size:0!important;justify-content:center}
  [data-resizable][data-collapsed="true"] .side-brand>*{display:none!important}
  .side[data-shell][data-resizable][data-collapsed="true"] .side-brand::before{content:"SW";display:block;position:static;transform:none;left:auto;top:auto;z-index:auto;padding:0;border:0;background:transparent;box-shadow:none;pointer-events:none;color:var(--ink);font-size:13px;font-weight:700}
  [data-resizable][data-collapsed="true"] nav>.lbl{display:none!important}
  [data-resizable][data-collapsed="true"]{overflow:visible!important} /* the rail's flyout draws past the rail's edge */
  [data-resizable][data-collapsed="true"] .side-nav{overflow:visible!important}
  [data-resizable][data-collapsed="true"] .side-item{position:relative;font-size:0!important;gap:0!important;padding-inline:0!important;justify-content:center!important;box-sizing:border-box;min-width:0;width:100%}
  [data-resizable][data-collapsed="true"] .side-item>:not(.side-icon){display:none!important}
  [data-resizable][data-collapsed="true"] .side-icon{display:block;flex-shrink:0;font-size:13px}
  [data-resizable][data-collapsed="true"] .side-item::before{content:attr(data-side-name);position:absolute;z-index:40;left:100%;top:50%;transform:translateY(-50%);padding:7px 12px;border:1px solid var(--line-2);border-radius:8px;background:var(--raised);color:var(--ink);font-size:13px;font-weight:400;line-height:1.45;white-space:nowrap;display:none;pointer-events:none}
  [data-resizable][data-collapsed="true"] .side-item:is(:hover,:focus-visible)::before{display:block}
  [data-resizable][data-collapsed="true"] .side-account{justify-content:center;padding-inline:0!important}
  /* the avatar and the sign-in circle are centred grids; the rail's icon rule must not turn them into blocks (letter top-left) */
  [data-resizable][data-collapsed="true"] .side-avatar{display:grid!important;place-items:center}
  [data-resizable][data-collapsed="true"] .side-account>:not(:first-child){display:none!important}
  /* the release line: only the icon button stays in the rail (no text, no dot) */
  [data-resizable][data-collapsed="true"] .side-version{justify-content:center;padding:8px 0 0}
  [data-resizable][data-collapsed="true"] .side-version>span{display:none}
  [data-resizable][data-collapsed="true"] .side-version .btn{width:100%;min-width:0}
  /* Team in the rail: its sub-items are a flyout beside the Team item, shown on hover or keyboard focus of the group */
  [data-resizable][data-collapsed="true"] .side-team{position:relative}
  [data-resizable][data-collapsed="true"] .side-sub{display:flex!important;visibility:hidden;opacity:0;position:absolute;left:calc(100% + 12px);top:0;z-index:40;width:max-content;min-width:184px;margin:0;padding:6px;border:1px solid var(--line-2);border-radius:12px;background:var(--raised);box-shadow:0 8px 24px var(--shadow);transition:opacity .15s ease-out}
  [data-resizable][data-collapsed="true"] .side-team:is(:hover,:focus-within) .side-sub{visibility:visible;opacity:1}
  [data-resizable][data-collapsed="true"] .side-sub .side-item{font-size:var(--t-label)!important;justify-content:flex-start!important;padding-inline:10px!important;gap:0!important;width:auto}
  [data-resizable][data-collapsed="true"] .side-sub .side-item::before,[data-resizable][data-collapsed="true"] .side-sub .side-icon,[data-resizable][data-collapsed="true"] .side-sub svg{display:none!important}
}
.side-version .btn{height:28px;padding:0 10px;font-size:13px}
.side-version .side-icon{display:none} /* the sparkle shows in the collapsed rail only */
.side-sub{display:flex;flex-direction:column;gap:2px;margin:0 0 4px 22px;padding-left:8px;border-left:1px solid var(--line)}
.side-sub[hidden]{display:none}
.side-sub .nv{height:32px;font-size:var(--t-label)}
.side[data-shell] .side-brand{font-stretch:125%;font-weight:700;letter-spacing:-.015em}
.side-search{height:36px;display:flex;align-items:center;gap:10px;padding:0 10px;border-radius:9px;border:1px solid var(--line-2);background:transparent;color:var(--ink-2);font-size:13px;text-align:left;cursor:pointer}
.side-search:hover{border-color:var(--line-3);color:var(--ink)}
.side-search kbd{margin-left:auto;font:inherit;font-size:var(--t-label);padding:0 6px;border-radius:5px;border:1px solid var(--line-2)}
.side-group{display:flex;flex-direction:column;gap:2px}
.side-group>.lbl{padding:8px 10px 6px}
.side-foot{margin-top:auto;position:relative;display:flex;flex-direction:column;gap:8px}
.side-account{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 10px;border-radius:9px;border:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.side-account:hover,.side-account[aria-expanded="true"]{background:var(--hover);border-color:var(--line-2)}
a.side-account{text-decoration:none;box-sizing:border-box} /* signed out: the Sign in link fills the same slot, same box as the button */
.side-avatar{flex:0 0 28px;height:28px;border-radius:50%;background:var(--sel);display:grid;place-items:center;font-size:var(--t-label);font-weight:600}
.side-who{display:flex;flex-direction:column;min-width:0;font-size:14px;line-height:1.3}
.side-who small{font-size:var(--t-label);color:var(--ink-2)}
/* F170: the menu is in the sidebar's flow, above the account button: the clock and Help move up, nothing is covered */
.side-menu{min-width:220px;width:100%;box-sizing:border-box;padding:6px;border:1px solid var(--line-2);border-radius:12px;background:var(--raised);
  display:flex;flex-direction:column;gap:2px}
.side-menu[hidden]{display:none}
.side-menu hr{width:100%;border:0;border-top:1px solid var(--line);margin:4px 0}
.side-theme{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:0 10px;font-size:14px;color:var(--ink-2)}
.sw .side-theme select{min-height:0;height:32px;width:auto;padding:0 6px;border-radius:7px;border:1px solid var(--line-2);background:var(--bg);color:var(--ink);font:inherit;font-size:13px}
.sw .side-theme .sw-select-btn{height:32px;width:auto;padding:0 8px 0 10px;border-radius:7px;font-size:13px}
.sw .side-menu button.nv{width:100%;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}
[data-collapsed="true"] .side-theme,[data-collapsed="true"] .side-search kbd{display:none}
@media(prefers-reduced-motion:no-preference){.side-menu:not([hidden]){animation:sw-pop .16s ease-out}}
@keyframes sw-pop{from{opacity:0;transform:translateY(4px)}}

.main{flex:1 1 0;min-width:0;box-sizing:border-box;padding:32px 32px 72px}
/* !important: some boards still carry inline page caps (e.g. 1760px); DESIGN allows one container only */
.main>*{max-width:var(--container)!important;margin-inline:auto!important}
@media(max-width:760px){.main{padding:16px 16px 88px}}

/* ---------- Typography (DESIGN "Typography"): Unbounded = page titles, section titles, hero figures; Figtree = everything else ---------- */
/* .sw prefix: beats the boards' own element rules (h1 {…}) at equal specificity, so one edit here restyles every board */
.sw h1,.sw .h1{margin:0;font-family:var(--f-display);font-size:var(--t-h1);line-height:1.05;font-weight:var(--w-h1);letter-spacing:-.02em}
.sw h2,.sw .h2{margin:0;font-family:var(--f-display);font-size:var(--t-h2);line-height:1.2;font-weight:var(--w-h2);letter-spacing:-.01em}
/* hero / stat figure: metric colour (set by the caller), tabular; its unit (K, M, B, T) is a .unit child at 0.5em in ink-2, so the number can count */
.sw .hero{font-family:var(--f-display);font-size:var(--t-fig-hero);font-weight:var(--w-fig-hero);line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.sw .hero.dense{font-size:var(--t-fig-dense)}
.sw .hero .unit{font-size:.5em;font-weight:500;letter-spacing:0;color:var(--ink-2);margin-inline-start:.08em}
/* resource figures (Gold, Wood, Ore, Mana): the game's colour per resource, on every board that shows them */
.sw .res-gold{color:var(--res-gold)}.sw .res-wood{color:var(--res-wood)}.sw .res-ore{color:var(--res-ore)}.sw .res-mana{color:var(--res-mana)}
/* .sub: subtitles and status lines are readable sentences: body size, ink (grey is for short labels only) */
.sub{margin:0;font-size:var(--t-body);color:var(--ink)}
/* labels and column heads: Figtree 13px 600 */
.lbl{font-size:var(--t-label);font-weight:var(--w-label);color:var(--ink-2)}
.fig,.num{font-variant-numeric:tabular-nums}
.sw .fig,.sw .num{font-weight:var(--w-fig)}
/* phone: 56px titles do not fit a 390px column; phone pages keep a smaller title (desktop-first rule, DESIGN "Desktop first") */
@media(max-width:600px){.sw h1,.sw .h1{font-size:36px}.sw .hero{font-size:40px}}
/* names of lords, servers and zones: one class (.name-link), underline on hover only */
.fresh{margin:4px 0 0;font-size:var(--t-body);color:var(--ink)}

/* ---------- Button: primary filled, secondary outlined, tertiary quiet, destructive ---------- */
.btn{box-sizing:border-box;height:36px;padding:0 14px;border-radius:9px;border:1px solid var(--line-3);background:transparent;color:var(--ink);font-size:var(--t-body);font-weight:500;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none;cursor:pointer;transition:background .15s ease-out,border-color .15s ease-out}
.show-more{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:20px}
.btn:hover{background:var(--hover);border-color:var(--ink-3)}
.btn.pri{background:var(--inv);color:var(--on-inv);border-color:var(--inv);font-weight:600}
.btn.pri{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.btn.pri:hover{background:color-mix(in srgb,var(--accent) 84%,var(--ink-2));border-color:color-mix(in srgb,var(--accent) 84%,var(--ink-2))}
/* tertiary: no outline, quiet fill so it still reads as a button (owner rule: no underlined-text buttons) */
.btn.ter{border-color:transparent;background:var(--sel);color:var(--ink-2)}
.btn.ter:hover{color:var(--ink);background:var(--hover)}
.btn.danger{border-color:color-mix(in srgb,var(--bad) 75%,transparent);color:var(--ink)}
.btn.danger:hover{background:color-mix(in srgb,var(--bad) 18%,transparent)}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
/* destructive sits last, separated from the rest of its group */
.actions>.btn.danger:not(:first-child){margin-left:16px}

/* ---------- Tabs: underline, switch views within a page ---------- */
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tab{position:relative;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0;border:0;background:none;color:var(--ink-2);font-size:var(--t-body);
  text-decoration:none;white-space:nowrap;cursor:pointer;transition:color .15s ease-out}
.tab:hover{color:var(--ink)}
/* underline as inset shadow: ::after is taken by the accessibility hit area (inline accessibility.css) */
.tab{margin-bottom:-1px}
.tab[aria-selected="true"],.tab[aria-current="page"]{color:var(--ink);font-weight:600;box-shadow:inset 0 -2px 0 var(--accent)}

/* ---------- SegmentedControl: the one period and filter chooser (DESIGN "Components"; the public player page's look). Each segment is as
   wide as its label plus the same padding. The sliding thumb is the group's ::before, anchored to the pressed segment with CSS anchor
   positioning (as the hit areas are), so the layout engine keeps it on the pressed segment with no script. Unpressed labels are ink-2 at
   400 and turn ink on hover; the pressed label is ink at 600 on the thumb. ---------- */
.segs{position:relative;display:inline-flex;align-items:stretch;max-width:100%;anchor-scope:--seg;padding:3px;border-radius:10px;border:1px solid var(--line-2)}
.segs::before{content:"";position:absolute;position-anchor:--seg;top:3px;bottom:3px;left:anchor(left,3px);width:anchor-size(width,0px);border-radius:7px;background:var(--sel);box-shadow:inset 0 0 0 1px var(--line-2);pointer-events:none}
@media (prefers-reduced-motion: no-preference){.segs::before{transition:left .2s ease-out,width .2s ease-out}}
@media (max-width:760px){.segs{overflow-x:auto;scrollbar-width:none}}
.segs>.seg{position:relative;z-index:1;flex:none;height:28px;padding:0 11px;border:0;border-radius:7px;background:transparent;color:var(--ink-2);font-size:var(--t-body);font-weight:400;white-space:nowrap;cursor:pointer}
.segs>.seg[aria-pressed="true"],.segs>.seg[aria-checked="true"]{anchor-name:--seg;color:var(--ink);font-weight:600}
.segs>.seg:hover{color:var(--ink)}
.segs>.seg[aria-disabled="true"],.segs>.seg[aria-disabled="true"]:hover{color:var(--ink-3);cursor:not-allowed}
/* no CSS anchor positioning (Firefox, older Safari): no sliding thumb; the pressed segment fills itself with the thumb's tokens */
@supports not (anchor-name: --a) { .segs::before{display:none} .segs>.seg[aria-pressed="true"],.segs>.seg[aria-checked="true"]{background:var(--sel);box-shadow:inset 0 0 0 1px var(--line-2);border-radius:7px} }

/* ---------- Chip: filter tokens and search suggestions only ---------- */
.chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:14px;border:1px solid var(--line-2);background:transparent;font-size:var(--t-label);color:var(--ink);white-space:nowrap;text-decoration:none}
a.chip:hover,button.chip:hover{background:var(--hover)}
/* ---------- Tag (round 2, owner picked mockup A, 9 Nov): role, presence, away and "Now" status. Never a filter: filters use .chip.
   The text carries the meaning; the colour and the dot repeat it. Tags sit in one row right after a name (.tag-row). ---------- */
.tag{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;height:20px;padding:0 8px;border-radius:999px;border:1px solid var(--line-2);background:transparent;color:var(--ink);font-family:var(--f-text);font-size:12px;font-weight:600;line-height:1;white-space:nowrap;vertical-align:middle}
.tag .dot{flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}
.tag.role.mgmt{background:var(--inv);border-color:var(--inv);color:var(--on-inv)}
.tag.on{color:var(--good);border-color:color-mix(in srgb,var(--good) 35%,transparent)}
.tag.on .dot{background:var(--good);box-shadow:0 0 0 3px color-mix(in srgb,var(--good) 20%,transparent)}
.tag.dc{color:var(--dc);border-color:color-mix(in srgb,var(--dc) 35%,transparent)}
.tag.dc .dot{background:var(--dc)}
.tag.off{color:var(--bad-ink);border-color:color-mix(in srgb,var(--bad) 30%,transparent)}
.tag.off .dot{background:var(--bad)}
.tag.away{color:var(--warn);border-color:color-mix(in srgb,var(--warn) 35%,transparent)}
.tag-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
/* Activity panel in a team section (F075): flat like its section, not a raised card. Beats the board's .team-rail panel rule. */
.sec.team-rail{background:none;padding:16px 0 0;border-radius:0}
/* Section heading with a meta line under the title (History day-by-day; Overview day-by-day and activity; F055) */
.hd-head{display:flex;flex-direction:column;gap:4px;min-width:0}
/* Day-by-day table (F055): History's day log, shared with the Overview's table views (one version per element) */
.day-log{width:100%;border-collapse:collapse;font-size:14px}
.day-log th,.day-log td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.day-log thead th{font-size:13px;font-weight:500;color:var(--ink-2)}
.day-log th:first-child{text-align:left}
.day-log tbody th{font-weight:600}
/* Activity strip (ACTIVITY.md, owner 17 Nov): one square per saved day, oldest first. Active is filled, not active is dark and
   unknown (no saved data) is striped. The words in the line above it carry the meaning too. */
.day-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;height:20px;max-width:100%;margin:0 0 8px}
.day-cell{display:block;height:100%;border-radius:4px;background:var(--line)}
.day-cell.is-active{background:var(--good)}
.day-cell.is-unknown{background:repeating-linear-gradient(135deg,var(--line-3) 0 3px,transparent 3px 6px);box-shadow:inset 0 0 0 1px var(--line-2)}
.day-log td[data-zero="true"]{color:var(--ink-3)}
.day-log .dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}
.day-log tbody tr:hover{background:var(--hover)}
/* Invite form (F075): one spacing step between fields, 8px between a label and its control */
.invite-form{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:flex-end}
.invite-form label{display:flex;flex-direction:column;gap:8px}

/* ---------- SectionHeader: title (+ description) left, actions right ---------- */
.sh{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px}
.sh>.actions{margin-left:auto;align-self:center;justify-content:flex-end}
/* toolbar: search, filters, range, then secondary actions at the far right, directly above the table.
   It stacks above the content below it, so a popover it opens (Filter lords) draws over the caption and the list (F125). */
.toolbar{position:relative;z-index:5;display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px}
.toolbar>.end{margin-left:auto}
/* labelled toolbars (owner 24 Nov): the label sits above its control; every field, date, select and button is one control
   height and they all sit on the bottom line, so buttons and status text line up with the fields, not the labels */
.toolbar>label{display:flex;flex-direction:column;gap:6px;min-width:0}
.toolbar .field,.toolbar .sw-date-text,.toolbar .sw-select-btn,.toolbar .btn{height:var(--field-h);box-sizing:border-box}
.toolbar>.sub,.toolbar>.field-msg{margin:0;align-self:flex-end;line-height:var(--field-h);display:inline-flex;align-items:center}
/* room under the last control while an unsaved-changes toast is up (site.js Site.unsaved sets --unsaved-space) */
.unsaved-space{height:var(--unsaved-space,0px)}

/* ---------- Layout rules (owner 9 Nov; docs/CONSISTENCY.md "Layout rules"). One place for the page's vertical rhythm,
   the filter bar, its applied-filter chips and the signed-out block. Every list page uses these classes, no page sets its own gaps.
     --rhythm-title-desc     8px   h1 -> its description
     --rhythm-desc-filter   16px   description -> the filter bar (or the content when a page has no filter bar)
     --rhythm-filter-chips   8px   filter bar -> its applied-filter chips
     --rhythm-chips-content 24px   filter bar or chips -> the content below (KvK's F100 spacing)
     --field-h              36px   every field, select, picker and filter button (the Clear button matches it) */
:root{--field-h:36px;--rhythm-title-desc:8px;--rhythm-desc-filter:16px;--rhythm-filter-chips:8px;--rhythm-chips-content:24px}
.page-head{display:grid;gap:var(--rhythm-title-desc);margin:0 0 var(--rhythm-desc-filter);min-width:0}
.page-head .sub,.page-head .fresh{margin:0}
/* one page header on every desktop board: h1, then the freshness line, then the description. A title row holds the h1 with its action (Untracked's Switch server) */
.page-head .title-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.sh>.page-head{margin:0}
.back-link{font-size:13px;text-decoration:none;color:var(--ink-2)}.back-link:hover{color:var(--ink)}
@media (max-width:760px){.back-link{font-size:14px;min-height:40px;display:inline-flex;align-items:center}}
/* a heading row's value with its as-of note at the right end (Lifetime merits) */
.sh-total{display:flex;align-items:baseline;gap:8px}
/* the activity grid (ChartBoard.glance), phone: one 16px column per shown day, the grid scrolls sideways (desktop fills the width) */
@media (max-width:760px){
  .heat-scroll{overflow-x:auto}
  .heat{min-width:927px}
  .heat-row{grid-template-columns:repeat(var(--heat-days,42),16px)!important}
}
.h1>.shimmer{display:inline-block;width:min(360px,70vw);height:.9em;border-radius:12px;vertical-align:middle}
/* the filter bar: labels sit above their fields, so every control (and the Clear button) bottoms out on the field line */
.filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;min-width:0;margin:0 0 var(--rhythm-chips-content);grid-column:1/-1;position:relative;z-index:2}
.filter-bar>label{display:flex;flex-direction:column;gap:var(--f-label);min-width:0}
.filter-bar .field,.filter-bar .btn{height:var(--field-h)}
.filter-bar:has(+.filter-chips){margin-bottom:var(--rhythm-filter-chips)}
/* applied-filter chips: one chip per filter, the same chip everywhere (Players, KvK, Migrations, Activity) */
.filter-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;margin:0 0 var(--rhythm-chips-content);grid-column:1/-1}
.filter-chips .chip{height:28px}
.filter-chips .chip>button,.filter-chips .chip>a{display:inline-grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ink-2);font:inherit;text-decoration:none;cursor:pointer}
.filter-chips .chip>button:hover,.filter-chips .chip>a:hover{background:var(--hover);color:var(--ink)}
/* More filters: the last button of the filter row. Its panel opens attached below it (DESIGN.md "Where feedback appears") and
   closes on an outside click or Escape (site.js, details[data-popover]). Its count sits in the label: "More filters · 2" */
.filter-more{position:relative;align-self:flex-end}
.filter-more>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap}
.filter-more>summary::-webkit-details-marker{display:none}
.filter-more-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:4;display:grid;gap:16px;box-sizing:border-box;min-width:260px;padding:16px;border:1px solid var(--line-2);border-radius:12px;background:var(--panel);box-shadow:0 8px 24px var(--shadow)}
.filter-more:not([open])>.filter-more-panel{display:none} /* a closed details keeps its panel's box in Chrome: hide it, so it takes no place and no measure */
.filter-more-panel>label{display:flex;flex-direction:column;gap:var(--f-label);min-width:0}
.filter-more-panel .field{box-sizing:border-box;width:100%}
/* Clear filters in the chips row (from two filters on): a normal secondary (outlined) button at the chips' height, last in the row */
.filter-chips .filter-clear{height:30px;padding:0 10px;font-size:var(--t-label)}
/* signed-out state: the page title and description stay; this block is one sentence and one normal primary Sign in button.
   The button is /signin?next=…, which settings.js opens as the sign-in popup on every page. */
.signed-out{display:flex;flex-direction:column;align-items:flex-start;gap:var(--rhythm-title-desc);min-width:0;grid-column:1/-1}
.signed-out>.sub{margin:0}
.signed-out>.btn{margin-top:calc(var(--f-group) - var(--rhythm-title-desc))}
/* Team: the page's gap (48px between sections) sits above the signed-out block; the heading takes the title-to-sentence gap instead */
.team-heading:has(+ div > .signed-out){margin-bottom:calc(var(--rhythm-title-desc) - 48px)}
.team-heading:has(+ div > .signed-out) .page-head{margin-bottom:0}
.page-head:has(+.signed-out){margin-bottom:var(--rhythm-title-desc)}
.page-head>:empty{display:none}
/* a container that already has a gap (.sec, .server-list, .kvk-listing) supplies the filter-bar gap itself: the bar's own margin is cancelled there */
.sec>.filter-bar,.server-list>.filter-bar{margin-bottom:calc(var(--rhythm-chips-content) - 16px)}
.sec .filter-chips,.server-list .filter-chips{margin-bottom:calc(var(--rhythm-chips-content) - 16px)}
.sec>.filter-bar:has(+.filter-chips),.server-list>.filter-bar:has(+.filter-chips){margin-bottom:calc(var(--rhythm-filter-chips) - 16px)}
.kvk-listing>.filter-bar,.kvk-listing>.filter-chips{margin-bottom:calc(var(--rhythm-chips-content) - 32px)}
.kvk-listing>.filter-bar:has(+.filter-chips){margin-bottom:calc(var(--rhythm-filter-chips) - 32px)}
/* Servers, KvK and Players: the page's own grid gap is the rhythm between header, tabs, filter bar, chips and content */
.sw .server-page,.sw .kvk-page,.sw .lords-page{row-gap:var(--rhythm-desc-filter)}
.sw .server-page>.page-head,.sw .kvk-page>.page-head,.sw .lords-page>.page-head{margin-bottom:0}
/* KvK: the freshness line and the intro under it sit one under the other with no gap (check_kvk pins it) */
.sw .kvk-page>.page-head>.sub{margin-top:calc(var(--rhythm-title-desc) * -1)}
.sw .lords-page>.filter-bar{margin-bottom:calc(var(--rhythm-chips-content) - var(--rhythm-desc-filter))}
.sw .lords-page>.filter-bar:has(+.filter-chips){margin-bottom:calc(var(--rhythm-filter-chips) - var(--rhythm-desc-filter))}
.sw .lords-page>.filter-chips{margin-bottom:calc(var(--rhythm-chips-content) - var(--rhythm-desc-filter))}
.server-page>.page-head{margin-bottom:0}

/* ---------- Table ---------- */
/* row hover: --sel, since --hover is too faint on OLED black; a row that is a link does not underline its cells */
.tr[role="row"]:hover,a.tr:hover{background:var(--sel)}
/* a row with a primary control is one target (site.js rowPrimary): pointer, and an inset hover that also shows over a tinted selected row */
[data-row]:has([data-row-primary]){cursor:pointer}
[data-row]:has([data-row-primary]):hover{box-shadow:inset 0 0 0 999px var(--sel)}
tr[data-row]:has([data-row-primary]):hover{background:var(--sel)} /* table rows take no box-shadow */
.th{font-size:var(--t-label);font-weight:var(--w-label);color:var(--ink-3)}
/* table cells: Figtree at body size, whatever the board's own cell rules say (they carry 14px); column heads and labels keep their 13px */
.sw td:not(.lbl,.th),.sw [role="cell"]:not(.lbl,.th),.sw [role="gridcell"]:not(.lbl,.th){font-family:var(--f-text);font-size:var(--t-body);font-variant-numeric:tabular-nums}
.num,.th .num{text-align:right;justify-content:flex-end;font-variant-numeric:tabular-nums}
/* a caption under a table or chart explains the numbers above it: body size, ink */
.caption{margin:0;font-size:var(--t-body);color:var(--ink)}
/* sortable headers: boards mark them data-sort-table / aria-sort; the keyboard adapter (inline keyboard.js) sorts */
.bar{display:inline-block;width:min(160px,100%);height:4px;border-radius:2px;background:var(--line);vertical-align:middle}
.bar>span{display:block;height:100%;border-radius:2px}
.up{color:var(--up)}.down{color:var(--down)}
/* missing value: a dash with a "No data" hover title (shell.js marks it); zero is never a dash */
.nd{cursor:help}

/* ---------- EmptyState: one line, or several zeros merged into one strip ---------- */
.empty{margin:0;font-size:var(--t-body);color:var(--ink)}
/* An empty filtered result sits in the table's own space (one full-width row where the rows go), so nothing above the table moves. */
.table-empty{grid-column:1/-1;margin:0;padding:16px 0;font-size:var(--t-body);color:var(--ink)}
.strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin:0;padding:12px 16px;border:1px solid var(--line);border-radius:10px;font-size:var(--t-body);color:var(--ink)}
.strip>*+*{position:relative}
.strip>*+*::before{content:"·";position:absolute;left:-12px;color:var(--ink-3)}
.strip--ranks{gap:8px 20px;padding:12px 0;border:0;border-radius:0}
.strip--ranks>span{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.strip--ranks>span>i{width:8px;height:8px;flex:none;border-radius:50%}
.strip--ranks>strong+span::before{content:none}
/* action links inside a strip read as links at rest */
.strip a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--ink-3)}
.strip a:hover{text-decoration-color:var(--ink)}

/* ---------- StatList: label over number, in a row ---------- */
.stats{display:flex;flex-wrap:wrap;gap:16px 48px;margin:0}
.stats>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.stats dt{font-size:var(--t-label);color:var(--ink-2)}
.stats dd{margin:0;font-family:var(--f-display);font-size:var(--t-fig-dense);font-weight:var(--w-fig-hero);line-height:1.1;font-variant-numeric:tabular-nums}

/* ---------- FormSection: label + description left, controls right ---------- */
/* wraps to one column when the content area (not the viewport) is too narrow: label 220px + gap + controls 320px */
.form-section{display:flex;flex-wrap:wrap;gap:16px 48px;padding:24px 0;border-top:1px solid var(--line)}
.form-section>:first-child{flex:1 1 220px;max-width:300px;display:flex;flex-direction:column;gap:4px}
.form-section>:last-child{flex:999 1 320px;max-width:640px;display:flex;flex-direction:column;gap:16px;min-width:0}

/* ---------- Text input / select field (same values as the boards' base .field) ---------- */
.field{height:var(--field-h);padding:0 12px;border-radius:9px;border:1px solid var(--line-2);background:var(--bg);color:var(--ink);font:inherit;font-size:var(--t-body);box-sizing:border-box}
/* ---------- Field spacing (owner 9 Nov): one rule for every form ----------
   A field group is its label (text, then the control), then the group's messages (an error, a hint), then the next group or button.
     --f-label  6px   label text -> control (the label's gap)
     --f-msg    6px   control -> its message (an error or a hint); inside a label or a password box the message's own margin is the difference
     --f-msg-2  4px   message -> the next message (an error above its hint)
     --f-group  16px  group -> the next group or button (a form's gap, or a section's gap)
   Messages and hints take these margins wherever they sit, so no board sets its own. Hints stay outside their label, so the
   control's name does not read them. Checkbox and radio labels keep their own layout. */
.sw label:has(>.field),.sw label:has(>sw-picker),.sw label:not(.side-theme):has(>select),.sw label:not(.side-theme):has(>sw-select),.sw label:has(>sw-date),.sw label:has(>sw-range),.sw label:has(>input:not([type=checkbox]):not([type=radio])),.sw label:has(>textarea){display:inline-flex;flex-direction:column;gap:var(--f-label);min-width:0}
.sw label:has(>.field)>.field-msg,.sw label:has(>input:not([type=checkbox]):not([type=radio]))>.field-msg,.sw label:has(>sw-picker)>.field-msg,.sw label:has(>sw-select)>.field-msg,.sw label:has(>sw-date)>.field-msg,.sw label:has(>sw-range)>.field-msg,.sw label:has(>textarea)>.field-msg,.sw label:has(>select)>.field-msg{margin-top:calc(var(--f-msg) - var(--f-label))}
/* a group (.field-group) holds a label, its messages and hint: the hint sits --f-msg under the control, --f-msg-2 under a message */
.field-group{display:flex;flex-direction:column;gap:0;min-width:0}
.field-group>.caption{margin-top:var(--f-msg)}
.sw label:has(>.field-msg)+.caption,.field-msg+.caption{margin-top:var(--f-msg-2)}

/* Picker (sw-picker in site.js): the field is the input in the board; the list is a body-level .sw list under it */
sw-picker{display:inline-block;position:relative;max-width:100%;vertical-align:middle}
.picker-list{position:fixed;z-index:65;box-sizing:border-box;max-height:min(360px,60vh);overflow:auto;padding:4px;border:1px solid var(--line-2);border-radius:10px;background:var(--raised);box-shadow:0 12px 32px var(--shadow);color:var(--ink);font-size:var(--t-body)}.picker-list[hidden]{display:none}
.picker-list ul{list-style:none;margin:0;padding:0}
.picker-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:2px 12px;min-height:44px;padding:6px 10px;border-radius:8px;cursor:pointer}
.picker-list li[data-active]{background:var(--sel)}
/* data-list="all" (Lords sort, F103): compact rows, so ten options fit under the field without scrolling */
.picker-list[data-list="all"] li{min-height:36px;padding:4px 10px}
.picker-list li[aria-disabled="true"]{color:var(--ink-2);cursor:default}
.picker-list .pk-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.picker-list .pk-meta{grid-column:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--t-label);color:var(--ink-2)}
.picker-list .pk-power{grid-column:2;grid-row:1;font-variant-numeric:tabular-nums;text-align:right}
.picker-list .pk-chosen{grid-column:3;grid-row:1;color:var(--ink)}
/* a row with a second line (meta) lets its power and tick span both lines; a one-line row must not reserve a second, empty one (Lords sort) */
.picker-list li:has(.pk-meta)>.pk-power,.picker-list li:has(.pk-meta)>.pk-chosen{grid-row:1 / span 2}
.picker-list .pk-note{margin:0;padding:10px;color:var(--ink)}

/* ---------- Form controls (F013, site.js): <sw-select> and <sw-date> wrap the board's native select / date input, which is not drawn ---------- */
sw-select,sw-date{display:inline-block;position:relative;max-width:100%;vertical-align:middle}
sw-select>select,sw-date>input[type=date]{display:none!important} /* !important: .btn and the phone boards set display on their selects */
.sw-select-btn{box-sizing:border-box;height:36px;min-width:0;max-width:100%;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px 0 12px;text-align:left;cursor:pointer;white-space:nowrap}
.sw-select-btn.btn{height:36px;padding:0 12px 0 14px}
.sw-select-btn[aria-expanded="true"]{border-color:var(--ink-3)}
.sw-select-btn:disabled{opacity:.5;cursor:not-allowed}
.sw-select-btn .sw-val{display:grid;min-width:0;text-align:left}
.sw-select-btn .sw-val>span{grid-area:1 / 1;overflow:hidden;text-overflow:ellipsis;visibility:hidden}
.sw-select-btn .sw-val>span[data-on]{visibility:visible}
.sw-select-btn svg{flex:none;color:var(--ink-2)}
/* a long select's search field, above its options (F156) */
.picker-list .sw-search{box-sizing:border-box;width:calc(100% - 16px);margin:8px 8px 4px}
.picker-list .sw-search[hidden]{display:none}
.picker-list .pk-none{padding:8px 12px;font-size:14px;color:var(--ink-2);list-style:none}
.sw-select-btn:focus-visible,.sw-cal:focus-visible,.dp-day:focus-visible,.dp-nav:focus-visible{outline:2px solid var(--ink-2);outline-offset:2px}
sw-date{width:168px}
/* a date range is one field, "1 to 6 Nov" (F162): its two day fields stay in the DOM, hidden */
sw-range{display:inline-block;position:relative;max-width:100%;vertical-align:middle}
sw-range>sw-date{display:none}
sw-range>.sw-date-box{width:200px}
.sw-date-box{position:relative;display:block}
.sw-date-box>.sw-date-text{width:100%;padding-right:42px}
.sw-cal{position:absolute;top:0;right:0;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:0 9px 9px 0;background:transparent;color:var(--ink-2);cursor:pointer}
.sw-cal:hover{color:var(--ink)}
.sw-cal:disabled{opacity:.5;cursor:not-allowed}
/* <sw-time> (site.js): one 24-hour time control. The same field and clock button as <sw-date>; the dialog has an hour and a minute column */
sw-time{width:120px;display:inline-block;position:relative;max-width:100%;vertical-align:middle}
sw-time>input[type=time]{display:none!important}
.time-pop{position:fixed;z-index:65;box-sizing:border-box;width:200px;padding:12px;border:1px solid var(--line-2);border-radius:12px;background:var(--raised);box-shadow:0 12px 32px var(--shadow);color:var(--ink);font-size:var(--t-body)}
.time-pop[hidden]{display:none}
.tp-cols{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tp-col{position:relative;max-height:240px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.tp-opt{height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-variant-numeric:tabular-nums;text-align:left;cursor:pointer}
.tp-opt:hover{background:var(--hover)}
.tp-opt[aria-pressed="true"]{background:var(--inv);color:var(--on-inv);font-weight:600}
.tp-opt:focus-visible{outline:2px solid var(--ink-2);outline-offset:2px}
.tp-foot{display:flex;justify-content:flex-end;margin-top:8px}
/* the date and time dialogs open the same way as the picker lists (owner 24 Nov) */
@media(prefers-reduced-motion:no-preference){.date-pop:not([hidden]),.time-pop:not([hidden]){animation:sw-pop .16s ease-out}}
/* validation message: the site's own, under the field, body size in the down colour, with an icon (aria-describedby) */
.field-msg{display:flex;align-items:flex-start;gap:6px;margin:var(--f-msg) 0 0;font-size:var(--t-body);line-height:1.4;color:var(--down)}
.field-msg svg{flex:none;margin-top:2px}
/* calendar dialog: body-level, attached under its date field; the grid is a role=grid of day buttons */
.date-pop{position:fixed;z-index:65;box-sizing:border-box;width:284px;padding:12px;overflow-y:auto;border:1px solid var(--line-2);border-radius:12px;background:var(--raised);box-shadow:0 12px 32px var(--shadow);color:var(--ink);font-size:var(--t-body)}
.date-pop[hidden]{display:none}
.dp-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.dp-title{margin:0;font-size:var(--t-body);font-weight:600}
.dp-nav{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--line-2);border-radius:8px;background:transparent;color:var(--ink);cursor:pointer}
.dp-nav:hover{background:var(--hover)}
.dp-grid{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:2px}
.dp-grid th{padding:4px 0;font-size:var(--t-label);font-weight:500;color:var(--ink-2)}
.dp-grid td{padding:0;text-align:center}
.dp-day{width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-variant-numeric:tabular-nums;cursor:pointer}
.dp-day:hover{background:var(--hover)}
.dp-day.today{box-shadow:inset 0 0 0 1px var(--ink-3)}
td[aria-selected="true"] .dp-day{background:var(--inv);color:var(--on-inv);font-weight:600}
.dp-day[aria-disabled="true"]{opacity:.35;cursor:default;background:transparent}
.dp-day.in-range{background:var(--hover);border-radius:0}
.dp-hint{margin:8px 0 0;font-size:var(--t-label);color:var(--ink-2)}
/* End of KvK: a choice under the calendar; disabled with the reason when the team's server has no KvK end (owner, 10 Nov) */
.dp-kvk{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.dp-kvk[hidden]{display:none}
.dp-kvk-note{margin:0;font-size:var(--t-label);color:var(--ink-2)}

/* ---------- Phone bar: desktop-only boards (no phone twin) hide the sidebar at <=600px; the shell shows only its bottom bar ---------- */
.side-bottom{display:none}
@media(max-width:600px){
  .sw>aside.side[data-shell]{display:block!important;position:fixed!important;left:0;right:0;bottom:0;top:auto;width:auto;height:auto;padding:0 0 env(safe-area-inset-bottom,0px);border:0;border-top:1px solid var(--line);background:var(--side);z-index:40;overflow:visible}
  .sw>aside.side[data-shell]>:not(.side-bottom){display:none!important}
  .side-bottom{display:flex;justify-content:space-around}
  .side-bottom .nv{flex:1 1 0;flex-direction:column;justify-content:center;gap:4px;height:60px;padding:0;border:0;border-radius:0;background:transparent;font:inherit;font-size:var(--t-label);color:var(--ink-2)}
  .side-bottom .nv[aria-current="page"]{background:transparent;color:var(--ink)}
  /* the calculators' tab bar (calc app): the current tab is tinted and bold (a full-width tint, not a stripe) */
  .side-tabs .nv[aria-current="page"]{background:var(--sel);font-weight:600}
  .sw>main,.sw>main#content{padding-bottom:96px!important}
}

/* ---------- Confirm in place (DESIGN "Where feedback appears"): the control's own row/button group becomes the question ---------- */
.confirm{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:36px;font-size:var(--t-body);color:var(--ink)}
.confirm>.q{margin-right:4px}
@media(prefers-reduced-motion:no-preference){.confirm{animation:sw-pop .15s ease-out}}

/* ---------- Toasts: one stack at the bottom centre; results, errors and confirmations (Site.toast / Site.confirm in site.js) ---------- */
/* the stack has no surface and is only as wide as its widest toast (F084): each board's .sw rule paints its page colour, so .sw.toasts beats it */
.toasts{position:fixed;left:0;right:0;margin:0 auto;bottom:28px;z-index:60;display:flex;flex-direction:column;align-items:center;width:max-content;max-width:min(560px,calc(100% - 32px));box-sizing:border-box;pointer-events:none}
.sw.toasts{background:transparent}
.toasts>.toast{margin-top:8px} /* spacing is each toast's margin, so a leaving toast can collapse its own (site.js drop, F086) */
.toast{pointer-events:auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;max-width:min(560px,100%);box-sizing:border-box;padding:10px 10px 10px 16px;border-radius:12px;
  background:var(--inv);color:var(--on-inv);font-size:var(--t-body);box-shadow:0 18px 50px var(--shadow)}
.toast>span{min-width:0;overflow-wrap:anywhere}
.toast .btn{height:30px;padding:0 12px;border-color:transparent;background:color-mix(in srgb,var(--on-inv) 12%,transparent);color:var(--on-inv)}
.toast .btn{white-space:nowrap}
.toast-actions{display:inline-flex;flex:none;gap:8px;margin-left:auto} /* F164: a confirmation's answers stay in one row */
/* one page-level notice (F169, "Work in progress"): a status line near the title, not a banner; reuse it, do not restyle */
.notice{margin:8px 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;max-width:720px;box-sizing:border-box;padding:12px 16px;border:1px solid var(--line-2);border-left:3px solid var(--warn);border-radius:9px;background:var(--panel);color:var(--ink);font-size:var(--t-body);line-height:1.4}
.notice strong{font-weight:600}
/* a value shown once, with its copy action (an API key): the box and the value on its own line. Reuse it; do not restyle */
.once-box{display:grid;gap:8px;box-sizing:border-box;max-width:720px;padding:16px;border:1px solid var(--line-2);border-radius:12px}
.once-value{margin:0;font-family:var(--f-mono);overflow-wrap:anywhere;user-select:all}
.toast .btn:hover{background:color-mix(in srgb,var(--on-inv) 22%,transparent)}
/* error toasts: a rose bar, in the rose that reads on the inverted toast surface (light in dark themes, dark in light) */
.toast[data-kind="error"]{border-left:5px solid color-mix(in srgb,var(--down) 75%,#000)}
[data-theme="light"] .toast[data-kind="error"]{border-left-color:var(--down)}
/* a loading toast that finished (F157): a green check beside "Loaded"; colour and icon, the text says it too */
.toast-ok{display:inline-flex;flex:none;color:var(--good)}
.toast .btn.pri{background:var(--on-inv);color:var(--inv);font-weight:600}
.toast .btn.pri:hover{background:var(--on-inv);opacity:.85}
.toast .btn.danger{background:color-mix(in srgb,var(--bad) 80%,#000);border-color:transparent;color:#fff;font-weight:600}
.toast .btn.danger:hover{background:color-mix(in srgb,var(--bad) 70%,#000)}
@media(max-width:600px){.toasts{bottom:84px}.toast[data-kind="confirm"]{justify-content:flex-end}.toast[data-kind="confirm"]>span{flex-basis:100%}}

/* script-focused landing targets (headings, #content) are not controls: no focus box when a #hash link lands on them */
.sw [tabindex="-1"]:focus{outline:none}

/* ---------- Personal appearance (F081): prefs.js sets these attributes on <html> before first paint ---------- */
/* accent: neutral is the site's own ink (the primary button stays white on black); the others are the Settings swatches */
.sw{--accent:var(--inv);--on-accent:var(--on-inv)}
html[data-accent="blue"] .sw{--accent:#4f8ff7;--on-accent:#000}
html[data-accent="teal"] .sw{--accent:#2ccfb0;--on-accent:#000}
html[data-accent="green"] .sw{--accent:#4cc26b;--on-accent:#000}
html[data-accent="amber"] .sw{--accent:#f5b335;--on-accent:#000}
html[data-accent="rose"] .sw{--accent:#f0708f;--on-accent:#000}
html[data-accent="violet"] .sw{--accent:#a58bff;--on-accent:#000}
html[data-accent="blue"][data-theme="light"] .sw{--accent:#1f5fd1;--on-accent:#fff}
html[data-accent="teal"][data-theme="light"] .sw{--accent:#0b7f6d;--on-accent:#fff}
html[data-accent="green"][data-theme="light"] .sw{--accent:#1d7a36;--on-accent:#fff}
html[data-accent="amber"][data-theme="light"] .sw{--accent:#9a5b00;--on-accent:#fff}
html[data-accent="rose"][data-theme="light"] .sw{--accent:#b1214b;--on-accent:#fff}
html[data-accent="violet"][data-theme="light"] .sw{--accent:#5b3fd1;--on-accent:#fff}
/* F093/F082 batch 3: three more accents (dark and light), from the same swatch rule as the others */
html[data-accent="red"] .sw{--accent:#ff4d5e;--on-accent:#000}
html[data-accent="orange"] .sw{--accent:#ff8c3a;--on-accent:#000}
html[data-accent="cyan"] .sw{--accent:#2ec4e6;--on-accent:#000}
html[data-accent="red"][data-theme="light"] .sw{--accent:#b3203a;--on-accent:#fff}
html[data-accent="orange"][data-theme="light"] .sw{--accent:#b35400;--on-accent:#fff}
html[data-accent="cyan"][data-theme="light"] .sw{--accent:#00718a;--on-accent:#fff}
/* gain and loss: the default pair is lime and rose (the token block above); the presets replace --up and --down */
html[data-gain="green-red"] .sw{--up:#2fbf5b;--down:#ff5c5c}
html[data-gain="blue-orange"] .sw{--up:#5aa9ff;--down:#ff9f43}
html[data-gain="green-red"][data-theme="light"] .sw{--up:#14772f;--down:#c42a2a}
html[data-gain="blue-orange"][data-theme="light"] .sw{--up:#1f5fd1;--down:#b85a00}
/* team colours: Team 1 and Team 2 never share a metric colour */
html[data-team="cyan-pink"] .sw{--team-1:#5fd4f0;--team-2:#ff6fb7}
html[data-team="cyan-yellow"] .sw{--team-1:#5fd4f0;--team-2:#ffd84d}
html[data-team="cyan-pink"][data-theme="light"] .sw{--team-1:#0b7fa0;--team-2:#c2307a}
html[data-team="cyan-yellow"][data-theme="light"] .sw{--team-1:#0b7fa0;--team-2:#8a6500}
/* density: compact trims the gaps between sections and the row height of tables */
html[data-density="compact"] .sw .sec{gap:var(--s-2)}
html[data-density="compact"] .sw .tr{min-height:36px}
/* text size scales the page content (the boards use px sizes); the sidebar and popups keep their size */
html{--text-scale:1}
html[data-text="90"]{--text-scale:.9}
html[data-text="112"]{--text-scale:1.12}
html[data-text="125"]{--text-scale:1.25}
.sw main{zoom:var(--text-scale)}
/* background: a quiet layer behind the page, no image files */
html[data-bg="gradient"] .sw{background-image:linear-gradient(170deg,color-mix(in srgb,var(--accent) 14%,var(--bg)) 0,var(--bg) 60%)}
html[data-bg="vignette"] .sw{background-image:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--panel) 85%,transparent) 0,transparent 62%)}
html[data-bg="topo"] .sw{background-image:repeating-radial-gradient(circle at 30% 20%,transparent 0 22px,var(--line) 22px 23px)}
html[data-bg] .sw.toasts{background-image:none}

/* ---------- Settings and Account popups (F066, F083) ---------- */
.pop-host{position:fixed;inset:0;z-index:55} /* under the toast stack (60): results still show over a popup */
/* the host is also .sw, which paints the page colour: transparent, so the page behind shows through the backdrop (F098) */
.sw.pop-host{background:transparent}
html[data-bg] .sw.pop-host{background-image:none}
/* F144: a translucent tint keeps context without filtering the entire page on each frame. */
.pop-backdrop{position:absolute;inset:0;display:grid;place-items:center;box-sizing:border-box;padding:var(--s-6);background:color-mix(in srgb,var(--bg) 75%,transparent)}
.account-characters{min-width:0}
.character-list{list-style:none;margin:0;padding:0;max-height:240px;overflow:auto}
.character-list li{display:flex;flex-wrap:wrap;gap:8px 16px;padding:8px 0;border-bottom:1px solid var(--line)}
.character-list li span{color:var(--ink-2)}
.heat-row.lbl>span:last-child{justify-self:end}
.pop{box-sizing:border-box;width:min(1040px,100%);height:min(720px,100%);display:grid;grid-template-columns:260px minmax(0,1fr);border:1px solid var(--line-2);border-radius:16px;background:var(--panel);box-shadow:0 24px 64px var(--shadow);overflow:hidden;color:var(--ink)}
.pop:focus{outline:none}
.pop-nav{display:flex;flex-direction:column;gap:var(--s-3);min-height:0;padding:var(--s-5) var(--s-4) var(--s-4);border-right:1px solid var(--line);background:var(--side);overflow-y:auto}
.pop-nav h2{margin:0}
.pop-nav small{color:var(--ink-2)}
.pop-group{display:flex;flex-direction:column;gap:2px}
.pop-group-label{padding:0 10px;font-size:var(--t-label);font-weight:var(--w-label);color:var(--ink-3)}
.pop-item{display:flex;align-items:center;min-height:36px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--ink-2);font-size:var(--t-body);text-align:left;cursor:pointer}
.pop-item:hover{background:var(--hover);color:var(--ink)}
.pop-item[aria-current="page"]{background:var(--sel);color:var(--ink)}
.pop-me{margin-top:auto;display:flex;align-items:center;gap:10px;height:52px;padding:8px 10px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
a.pop-me{text-decoration:none;box-sizing:border-box} /* signed out: the Sign in link fills the account slot, same box as the button (F128) */
.pop-me small{display:block;color:var(--ink-2);font-size:var(--t-label)}
.pop-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.pop-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s-4);padding:var(--s-5) var(--s-5) var(--s-4) var(--s-6);border-bottom:1px solid var(--line)}
.pop-title{margin:0;font-size:var(--t-h2);line-height:1.2}
.pop-title span{color:var(--ink-2)}
.pop-actions{display:flex;align-items:center;gap:var(--s-2)}
.pop-x{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--ink-2);cursor:pointer}
.pop-x:hover{background:var(--hover);color:var(--ink)}
.pop-body{position:relative;display:flex;flex-direction:column;gap:var(--s-5);min-height:0;padding:var(--s-4) var(--s-5) var(--s-6) var(--s-6);overflow-y:auto}
.pop-section{display:flex;flex-direction:column;gap:var(--s-3);min-width:0}
.pop-section>h3{margin:0;font-size:var(--t-label);font-weight:var(--w-label);color:var(--ink-2)}
.pop-card{border:1px solid var(--line);border-radius:12px;padding:0 var(--s-4);background:var(--panel)}
.pop-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--s-4);min-height:56px;padding:var(--s-3) 0;border-top:1px solid var(--line)}
.pop-card>.pop-row:first-child{border-top:0}
.pop-row p{margin:2px 0 0;font-size:var(--t-label);color:var(--ink-2)}
.pop-empty{padding:var(--s-5) 0;color:var(--ink-2)}
.pop-control{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:var(--s-3)}
.pop-control sw-select{min-width:180px}
.swatches{display:flex;flex-wrap:wrap;gap:var(--s-2)}
.swatch{width:28px;height:28px;padding:0;border:0;border-radius:50%;background:var(--sw);box-shadow:0 0 0 1px var(--line-3);cursor:pointer}
.swatch[aria-pressed="true"]{box-shadow:0 0 0 2px var(--panel),0 0 0 4px var(--ink)}
/* the knob is ::before: ::after is the accessibility hit area (accessibility.css), which would take over the knob's box */
.switch{position:relative;box-sizing:border-box;width:44px;height:26px;padding:0;border:1px solid var(--ink-3);border-radius:13px;background:var(--sel);cursor:pointer;
  transition:background-color .18s ease-out,border-color .18s ease-out}
.switch::before{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--ink-2);transition:transform .18s ease-out,background-color .18s ease-out}
.switch[aria-checked="true"]{background:var(--accent);border-color:var(--accent)}
.switch[aria-checked="true"]::before{transform:translateX(18px);background:var(--on-accent)}
.pop-sample{display:inline-flex;align-items:center;gap:var(--s-2);font-variant-numeric:tabular-nums}
.team-dot{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--c)}
/* the account rows (moved from the old Account page) */
.pop .account-section{display:flex;flex-direction:column;gap:var(--s-3);padding:var(--s-4) 0;border-top:1px solid var(--line)}
.pop .account-section:first-child{border-top:0;padding-top:0}
.pop .account-section>h3,.pop .account-section .sh>h3{margin:0;font-family:var(--f-display);font-size:var(--t-h2);line-height:1.2;font-weight:var(--w-h2);color:var(--ink)}
.pop .account-controls{display:flex;flex-direction:column;gap:var(--s-3);min-width:0}
.pop .account-form{display:grid;gap:var(--f-group);max-width:440px}
.pop .account-form label,.pop .passkey-row label{display:flex;flex-direction:column;gap:var(--f-label);min-width:0}
/* a sign-in or create section: its groups and the choices under them are one column, the group gap between them (owner 9 Nov) */
.pop .pop-section.fields{gap:var(--f-group)}
/* the passkey row and the password form open and close in place (owner 9 Nov): the row animates from 0 to its height, and a closed
   one is hidden from focus and clicks. Each padding sits inside the collapsing box, so a closed one leaves no gap behind. */
.collapse{display:grid;grid-template-rows:1fr;visibility:visible}
.collapse[data-open="false"]{grid-template-rows:0fr;visibility:hidden}
.collapse>.collapse-in{min-height:0;overflow:clip;overflow-clip-margin:6px}
.pop .choices{display:flex;flex-direction:column;gap:0;min-width:0}
.pop .passkey-block{padding-bottom:var(--f-group)}
.pop .passkey-block .pop-error{margin-top:var(--f-msg)}
.pop .pw-block{padding-top:var(--f-group)}
.pop .actions.discord{margin-top:var(--f-group)}
@media (prefers-reduced-motion: no-preference){.collapse{transition:grid-template-rows .2s ease-out,visibility .2s}}
.pop [hidden]{display:none!important}
.pop .sh{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s-3)}
/* Add passkey: the form opens in the header row where its button was (F001) */
.pop .passkey-add{width:280px;max-width:100%;margin-left:auto;align-self:flex-start}
.pop .sh:has(>.passkey-add){align-items:flex-start}
.pop .pop-row strong{font-weight:600}
.pop input,.pop textarea{width:100%;min-width:0;caret-color:var(--ink);color-scheme:dark}
.pop textarea{height:auto;padding:12px;resize:vertical}
.pop input::placeholder{color:var(--ink-2);opacity:1}
.pop pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;color:var(--ink-2)}
.pop summary{cursor:pointer}
.pop details[open]>summary{margin-bottom:var(--s-3)}
.pop .account-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:var(--s-4);padding-block:var(--s-3);border-top:1px solid var(--line)}
.pop .account-row p{margin:4px 0 0}
.pop .account-row-end{display:flex;justify-content:flex-end}
/* Finish setup and team popups (popups/setup.html): one set of numbered step rows, and the claim search host (claim-search.js) */
.setup-steps{display:grid;margin:0;padding:0;list-style:none}
.setup-step{display:grid;gap:var(--s-3);padding-block:var(--s-4);border-top:1px solid var(--line)}
.setup-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-3)}
.setup-mark{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--sel);font-size:var(--t-label);flex:none}
.setup-step[data-done="true"] .setup-mark{color:var(--up)}
.setup-title{margin:0;font-size:var(--t-body);font-weight:600;color:var(--ink)}
.setup-optional{font-size:var(--t-label);font-weight:400;color:var(--ink-2)}
.setup-text{margin:0;font-size:var(--t-body);color:var(--ink)}
.setup-actions{display:flex;flex-wrap:wrap;gap:var(--s-3)}
.setup-skip{justify-content:flex-end}
.claim-host{display:grid;gap:var(--s-3);min-width:0}
.claim-search .claim-form{display:grid;gap:var(--s-3)}
.claim-search .field-msg[hidden]{display:none}
.pop .passkey-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,1fr) auto;align-items:end;gap:var(--s-4);padding-block:var(--s-4);border-top:1px solid var(--line)}
.pop .passkey-dates{display:flex;flex-wrap:wrap;gap:8px 24px;font-variant-numeric:tabular-nums}
.pop .passkey-dates p{margin:0}
@media (max-width:1000px){.pop .passkey-row{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){
  .pop-backdrop{padding:0}
  .pop{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);width:100%;height:100%;border:0;border-radius:0}
  .pop-nav{max-height:40dvh;border-right:0;border-bottom:1px solid var(--line)}
  .pop-head{padding:var(--s-4) var(--s-4) var(--s-3)}
  .pop-body{padding:var(--s-4)}
  .pop-row{grid-template-columns:minmax(0,1fr)}
  .pop-control{justify-content:flex-start}
  .pop .passkey-row,.pop .account-row{grid-template-columns:minmax(0,1fr)}
  .pop input{font-size:16px}
}
@media (prefers-reduced-motion: reduce){.switch,.switch::before{transition:none}}

/* Motion (F106): one set for every board, the Team timings and easings (TeamBoard was the reference). .stagger on a
   container animates its direct children once, on first paint. swap-a / swap-b alternate when a period, tab, measure,
   filter or sort changes, so the same animation restarts. .shimmer holds a place while data loads. Bars and chart bars
   grow in. The Animations setting (Settings / Appearance) turns all of it off through the reduce rule below (shell.js). */
/* backwards, not both: a forwards fill keeps a transform after the enter, which makes a stacking context that paints
   over later panels (F163: the Me away panel sat under the weekly section). The start frame still holds during the delay. */
.page{animation:enter .45s cubic-bezier(.2,.8,.2,1) backwards}
.stagger>*{animation:enter .55s cubic-bezier(.2,.8,.2,1) backwards}
.stagger>*:nth-child(2){animation-delay:.05s}.stagger>*:nth-child(3){animation-delay:.1s}.stagger>*:nth-child(4){animation-delay:.15s}.stagger>*:nth-child(5){animation-delay:.2s}.stagger>*:nth-child(6){animation-delay:.25s}.stagger>*:nth-child(7){animation-delay:.3s}.stagger>*:nth-child(n+8){animation-delay:.35s}
.shimmer{display:block;background:linear-gradient(90deg,var(--sel) 0%,var(--raised) 50%,var(--sel) 100%);background-size:200% 100%;animation:shimmer 1.4s linear infinite}
.skel{display:grid;gap:16px}.skel>.shimmer{height:56px;border-radius:12px}
.fresh>.shimmer,.sub>.shimmer{display:inline-block;width:min(320px,70vw);height:.9em;border-radius:6px;vertical-align:middle}
.swap-a{animation:swapIn .3s cubic-bezier(.2,.8,.2,1) both}
.swap-b{animation:swapIn2 .3s cubic-bezier(.2,.8,.2,1) both}
.track>span{transform-origin:left center;animation:growx .9s cubic-bezier(.2,.8,.2,1) both;transition:width .6s cubic-bezier(.2,.8,.2,1),transform .6s cubic-bezier(.2,.8,.2,1)}
.vb{transform-origin:center bottom;animation:growy .8s cubic-bezier(.2,.8,.2,1) both}
@keyframes enter{from{opacity:0;transform:translateY(8px)}}
@keyframes shimmer{to{background-position:-200% 0}}
@keyframes growx{from{transform:scaleX(0)}}
@keyframes growy{from{transform:scaleY(0)}}
@keyframes swapIn{from{opacity:0;filter:blur(4px);transform:translateY(4px)}}
@keyframes swapIn2{from{opacity:0;filter:blur(4px);transform:translateY(4px)}}
@media (prefers-reduced-motion: reduce){.sw *{animation:none !important;transition:none !important}}

/* ---------- Moved from the boards (CSS1, 3 Nov 2026): one copy per shared element ---------- */
body{margin:0}
.sw[data-theme="graphite"]{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#111214;--side:#0C0D0F;--panel:#16171A;--raised:#1C1E22;--line:rgba(255,255,255,.07);--line-2:rgba(255,255,255,.12);--line-3:rgba(255,255,255,.22);--ink:#ECEDEE;--ink-2:#A1A4AA;--ink-3:#8F939B;--hover:#18191C;--sel:#1D2024;--inv:#ECEDEE;--on-inv:#111214;--shadow:rgba(0,0,0,.45)}
[data-theme="graphite"] .sw{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#111214;--side:#0C0D0F;--panel:#16171A;--raised:#1C1E22;--line:rgba(255,255,255,.07);--line-2:rgba(255,255,255,.12);--line-3:rgba(255,255,255,.22);--ink:#ECEDEE;--ink-2:#A1A4AA;--ink-3:#8F939B;--hover:#18191C;--sel:#1D2024;--inv:#ECEDEE;--on-inv:#111214;--shadow:rgba(0,0,0,.45)}
.sw[data-theme="navy"]{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#0D1424;--side:#0A1020;--panel:#121B2E;--raised:#18233A;--line:rgba(170,195,255,.08);--line-2:rgba(170,195,255,.15);--line-3:rgba(170,195,255,.26);--ink:#E6ECF5;--ink-2:#A3AEC2;--ink-3:#8998AE;--hover:#131D31;--sel:#1A263F;--inv:#E6ECF5;--on-inv:#0D1424;--shadow:rgba(0,0,0,.45)}
[data-theme="navy"] .sw{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#0D1424;--side:#0A1020;--panel:#121B2E;--raised:#18233A;--line:rgba(170,195,255,.08);--line-2:rgba(170,195,255,.15);--line-3:rgba(170,195,255,.26);--ink:#E6ECF5;--ink-2:#A3AEC2;--ink-3:#8998AE;--hover:#131D31;--sel:#1A263F;--inv:#E6ECF5;--on-inv:#0D1424;--shadow:rgba(0,0,0,.45)}
/* F093/F082 batch 3: two more dark themes, each a full token set (metric colours stay the graphite set: same meaning everywhere) */
.sw[data-theme="forest"]{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#0B130F;--side:#08100C;--panel:#111D17;--raised:#17261E;--line:rgba(190,255,215,.08);--line-2:rgba(190,255,215,.15);--line-3:rgba(190,255,215,.26);--ink:#E7F1EA;--ink-2:#A3B8AA;--ink-3:#8CA596;--hover:#13211A;--sel:#1A2D23;--inv:#E7F1EA;--on-inv:#0B130F;--shadow:rgba(0,0,0,.5)}
[data-theme="forest"] .sw{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#0B130F;--side:#08100C;--panel:#111D17;--raised:#17261E;--line:rgba(190,255,215,.08);--line-2:rgba(190,255,215,.15);--line-3:rgba(190,255,215,.26);--ink:#E7F1EA;--ink-2:#A3B8AA;--ink-3:#8CA596;--hover:#13211A;--sel:#1A2D23;--inv:#E7F1EA;--on-inv:#0B130F;--shadow:rgba(0,0,0,.5)}
.sw[data-theme="plum"]{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#140E17;--side:#0F0A12;--panel:#1B1320;--raised:#241A2A;--line:rgba(240,210,255,.08);--line-2:rgba(240,210,255,.15);--line-3:rgba(240,210,255,.26);--ink:#F2EAF5;--ink-2:#B6A8BE;--ink-3:#9C8FA6;--hover:#1A1220;--sel:#271D2F;--inv:#F2EAF5;--on-inv:#140E17;--shadow:rgba(0,0,0,.5)}
[data-theme="plum"] .sw{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#140E17;--side:#0F0A12;--panel:#1B1320;--raised:#241A2A;--line:rgba(240,210,255,.08);--line-2:rgba(240,210,255,.15);--line-3:rgba(240,210,255,.26);--ink:#F2EAF5;--ink-2:#B6A8BE;--ink-3:#9C8FA6;--hover:#1A1220;--sel:#271D2F;--inv:#F2EAF5;--on-inv:#140E17;--shadow:rgba(0,0,0,.5)}
.sw[data-theme="ember"]{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#15110E;--side:#110E0B;--panel:#1B1612;--raised:#231D18;--line:rgba(255,228,200,.08);--line-2:rgba(255,228,200,.14);--line-3:rgba(255,228,200,.25);--ink:#F2EAE2;--ink-2:#B4A89D;--ink-3:#9D9186;--hover:#1C1713;--sel:#261F1A;--inv:#F2EAE2;--on-inv:#15110E;--shadow:rgba(0,0,0,.45)}
[data-theme="ember"] .sw{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--wounded:#d04d84;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#15110E;--side:#110E0B;--panel:#1B1612;--raised:#231D18;--line:rgba(255,228,200,.08);--line-2:rgba(255,228,200,.14);--line-3:rgba(255,228,200,.25);--ink:#F2EAE2;--ink-2:#B4A89D;--ink-3:#9D9186;--hover:#1C1713;--sel:#261F1A;--inv:#F2EAE2;--on-inv:#15110E;--shadow:rgba(0,0,0,.45)}
.sw button{font:inherit;color:inherit;cursor:pointer}
.sw a{color:inherit}
.sw :focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.wide{font-stretch:125%;font-weight:700;letter-spacing:-0.015em}
.keyboard-hair{position:absolute;top:0;bottom:0;width:1px;background:var(--line-3);pointer-events:none;transition:left .16s cubic-bezier(.16,1,.3,1)}
[data-chart]{position:relative}
.h3{margin:0;font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px}
.row{transition:background-color .15s;border-radius:8px}
.row:hover{background:var(--hover)}
.mk{display:inline-block;width:8px;height:8px;border-radius:2px;flex:0 0 auto}
.btn:active{transform:scale(.98)}
.seg:active{transform:scale(.98)}
.tr:active{transform:scale(.98)}
@keyframes popIn{from{opacity:0;transform:translateY(6px) scale(.98)}}
.name-link:hover{background-size:100% 1px}
.spin{display:inline-block;width:12px;height:12px;box-sizing:border-box;border-radius:50%;border:2px solid var(--line-2);border-top-color:var(--ink);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes enter2{from{opacity:0;transform:translateY(8px)}}
@keyframes cellIn{from{opacity:0;transform:scale(.5)}}
@keyframes cellIn2{from{opacity:0;transform:scale(.5)}}
@keyframes reveal{from{clip-path:circle(0% at 8% 92%)}to{clip-path:circle(150% at 8% 92%)}}
@keyframes reveal2{from{clip-path:circle(0% at 8% 92%)}to{clip-path:circle(150% at 8% 92%)}}
@keyframes sheetUp{from{transform:translateY(100%)}}
@keyframes blink{50%{opacity:0}}
@media (prefers-reduced-motion: reduce){.sw:not(.force-motion) *{animation:none !important;transition:none !important}}
[data-name]{min-width:0;overflow-wrap:anywhere}
.name-cell{min-width:0}
.name-cell>[data-name]{max-width:100%}
.table-scroll>*{min-width:var(--table-width,0);box-sizing:border-box}
.table-scroll .tr{box-sizing:border-box}
.table-scroll .th{box-sizing:border-box}
.tr [data-name]{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.sec{border-top:1px solid var(--line);padding-top:16px;display:flex;flex-direction:column;gap:16px;min-width:0}
.tr{display:grid;align-items:center;gap:16px;border-top:1px solid var(--line);min-height:46px;padding:0 8px;text-decoration:none;border-radius:8px}
.track{display:block;height:4px;border-radius:4px;background:var(--chart-track)}
.dl{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:2px;padding:12px 0;border-top:1px solid var(--line)}
.dl-figure{grid-row:span 2;align-self:center;font-size:24px}
.ex{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;background:color-mix(in srgb,var(--warn) 12%,var(--bg));font-size:13px}
.dashed{border:1px dashed var(--line-2);border-radius:16px;padding:22px 24px;display:flex;flex-direction:column;gap:18px}
.figp{font-stretch:75%;font-weight:600;font-variant-numeric:tabular-nums}
.name-link{color:inherit;text-decoration:none;border-radius:3px;background-image:linear-gradient(currentColor,currentColor);background-size:0 1px;background-position:0 100%;background-repeat:no-repeat;transition:background-size .25s cubic-bezier(.2,.8,.2,1)}
.heat-row.lbl>span:last-child{justify-self:end}
.sw td.fig{text-align:right}
.sw select{font:inherit;color:inherit}
.sw input{font:inherit;color:inherit}
.sw textarea{font:inherit;color:inherit}
.cell-action{font:inherit;color:inherit;text-align:inherit;text-decoration:none;background:none;border:0;padding:0;cursor:pointer}
.cell-action.sr-only:focus{position:static;width:auto;height:auto;clip-path:none}
.th .cell-action{display:inline-flex;align-items:center;gap:6px} /* F153: a space between the label and the sort arrow */
.th .cell-action>span+span{margin-left:6px} /* the same space where the head is display:block (Servers, Players) */
.skip-link{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus{position:fixed;top:12px;left:12px;width:auto;height:auto;padding:8px 12px;clip-path:none;z-index:100;background:var(--bg);color:var(--ink);outline:2px solid var(--ink);outline-offset:2px}
.a11y-toggle{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.a11y-toggle:focus{position:fixed;top:12px;left:12px;width:auto;height:auto;padding:8px 12px;clip-path:none;z-index:100;background:var(--bg);color:var(--ink);outline:2px solid var(--ink);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.th>[role="columnheader"]:not([style*="display: flex"])>.cell-action{display:block;width:100%;min-width:0}
.grid{display:grid;align-items:start}
/* F082: tinted gradient surfaces. The accent fades into the panel, so every theme and accent applies; .tint on any card or panel */
.tint{background:linear-gradient(160deg,color-mix(in srgb,var(--accent) 10%,var(--panel)) 0,var(--panel) 72%)}
.rail{background:linear-gradient(160deg,color-mix(in srgb,var(--accent) 10%,var(--panel)) 0,var(--panel) 72%);border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;padding:22px 24px}
.table-scroll{max-width:100%;overflow-x:auto}
/* .table-scroll-bar: the proxy scrollbar of a wide table (site.js syncScrollBars adds it after each .table-scroll). Sticks to the window's
   bottom while the table's own bottom edge is below the window; hidden otherwise, when the table's own scrollbar is in view. */
/* fixed to the window bottom and out of flow: a sticky bar sat in the section's 16px flex gap and added 17px of page height. left and width follow the table (site.js). */
.table-scroll-bar{position:fixed;bottom:0;z-index:5;overflow-x:auto;overflow-y:hidden;background:var(--bg)}
.table-scroll-bar[hidden]{display:none}
.table-scroll-bar>div{height:1px}
/* One loading bar for every page (owner, 26 Nov). site.js sets body[data-loading] while a data request runs (after 150 ms, so quick
   reads do not flash it). It is fixed to the top edge of the main area, right of the sidebar; phones have no sidebar. The first load
   shows .shimmer blocks instead. */
.load-bar{display:none;position:fixed;top:0;left:var(--sw-side-size,240px);right:0;height:2px;z-index:60;overflow:hidden;background:var(--line);pointer-events:none}
body[data-loading] .load-bar{display:block}
@media(max-width:600px){.load-bar{left:0}}
.load-bar::after{content:"";position:absolute;top:0;bottom:0;left:0;width:30%;background:var(--ink-2);animation:loadBar 1.1s cubic-bezier(.4,0,.2,1) infinite}
@keyframes loadBar{from{transform:translateX(-100%)}to{transform:translateX(340%)}}
/* board properties that ui.css lacked, merged in (majority first) */
.sw{--power:#387ee6;--kills:#e94f1f;--healed:#21b18a;--merits:#d39300;--gather:#037f17;--economy:#8878eb;--deaths:#ec6e6d;--good:#20a00a;--warn:#fdb50f;--bad:#c92a1f;--arrive:#64dcf7;--leave:#ef7cf0;--bg:#000;--side:#000;--panel:#0C0C0C;--raised:#141414;--line:rgba(255,255,255,.09);--line-2:rgba(255,255,255,.16);--line-3:rgba(255,255,255,.28);--ink:#EDEDED;--ink-2:#A3A3A3;--ink-3:#898989;--hover:#0F0F0F;--sel:#1A1A1A;--inv:#EDEDED;--on-inv:#000;--shadow:rgba(0,0,0,.6);-webkit-font-smoothing:antialiased;background:var(--bg);color:var(--ink);line-height:1.45}
.sw[data-theme="light"]{--power:#3177e1;--kills:#e56932;--healed:#25be82;--merits:#feac00;--gather:#008503;--economy:#3f25d1;--deaths:#e0414b;--good:#1d6e30;--warn:#976400;--bad:#c10000;--arrive:#199bb9;--leave:#ce24d6;--bg:#F7F8FA;--side:#EEF0F3;--panel:#FFFFFF;--raised:#FFFFFF;--line:rgba(20,23,28,.08);--line-2:rgba(20,23,28,.14);--line-3:rgba(20,23,28,.28);--ink:#15171C;--ink-2:#4E535C;--ink-3:#62666F;--hover:#EEF0F3;--sel:#E4E7EC;--inv:#15171C;--on-inv:#FFFFFF;--shadow:rgba(20,23,28,.14)}
[data-theme="light"] .sw{--power:#3177e1;--kills:#e56932;--healed:#25be82;--merits:#feac00;--gather:#008503;--economy:#3f25d1;--deaths:#e0414b;--good:#1d6e30;--warn:#976400;--bad:#c10000;--arrive:#199bb9;--leave:#ce24d6;--bg:#F7F8FA;--side:#EEF0F3;--panel:#FFFFFF;--raised:#FFFFFF;--line:rgba(20,23,28,.08);--line-2:rgba(20,23,28,.14);--line-3:rgba(20,23,28,.28);--ink:#15171C;--ink-2:#4E535C;--ink-3:#62666F;--hover:#EEF0F3;--sel:#E4E7EC;--inv:#15171C;--on-inv:#FFFFFF;--shadow:rgba(20,23,28,.14)}
.main{container:main / inline-size}
.fig{font-stretch:75%;font-weight:600}
.seg{transition:background-color .15s,border-color .15s,color .2s,transform .12s}
.th{display:grid;align-items:end;gap:16px;padding:0 8px 8px}
/* Shared table of plain rows (round 2, item 4; decisions 6-8 of 3 Nov): 46 px one-line rows, 15 px cells, and the head is the
   .th label (13 px, 600, ink-3, no rule). Alignment: .txt left, .num right (the .num rule is the table's, so it beats the default). */
.day-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.day-table th,.day-table td{padding:0 8px;text-align:left;font-size:var(--t-body);font-weight:400;vertical-align:middle}
.day-table tbody tr{height:46px;border-top:1px solid var(--line)}
.day-table thead th{font-size:var(--t-label);font-weight:var(--w-label);color:var(--ink-3);padding:0 8px 8px;vertical-align:bottom}
.day-table .txt{text-align:left}
.day-table .num{text-align:right}
.pop{position:absolute;z-index:30;animation:popIn .2s cubic-bezier(.2,.8,.2,1) both}
.track>span{display:block;height:100%;border-radius:4px;width:100%;transform:scaleX(var(--fill,1))}
/* Charts: the shared elements. A board places them; it does not restyle them */
/* a column chart: the plot is the box; each slot is one day and its full height is the hit target (the readout) */
/* One column element for every daily chart (owner 10 Nov). ChartBoard.column (charts.js) makes the heights and segments;
   the plot is --chart-height (160px unless a board sets it). A column is 60% of its slot, at most --chart-col-max, square
   at the baseline, 4px round at the top, with a 2px surface gap between stacked parts. The whole slot is the hit target. */
.col-frame{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:8px}
.col-plot{position:relative;height:var(--chart-height,160px)}
.col-slots{position:absolute;inset:0;display:flex}
.col-slot{flex:1 1 0;display:flex;align-items:flex-end;justify-content:center;padding:0 1px;min-width:0}
.col-mark{width:60%;max-width:var(--chart-col-max);height:100%;display:flex;flex-direction:column-reverse;gap:2px}
.col-seg{flex:1 1 0;min-height:0;display:block;transform-origin:center bottom;animation:growy .8s cubic-bezier(.2,.8,.2,1) both}
.col-seg:last-child{border-radius:4px 4px 0 0}
/* gridlines: 1px, one step off the surface; the baseline is the strongest */
.col-gridline{position:absolute;left:0;right:0;height:1px;background:var(--chart-grid)}
.col-gridline.col-baseline{background:var(--chart-grid-base)}
.col-tick{position:absolute;right:0;transform:translateY(-50%);font-size:13px;font-weight:500;color:var(--ink-3)}
/* a whole split into parts: each part its own colour, a 2px surface gap between them, sized by its count (--fill) */
.seg-bar{display:flex;height:10px;border-radius:5px;overflow:hidden;gap:2px}
.seg-bar>span{display:block;height:100%;flex:var(--fill,1) 1 0;min-width:0}
/* an inline bar row: ONE line at every width. Name and ID (ellipsis) | the track, at most 160px | the value, right-aligned, in ink.
   The row keeps the shared .tr height and hover (46px, --sel); its cells are the same role=cell order the checks read */
.inline-bar-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,160px) 10ch;column-gap:16px;align-items:center;min-width:0}
.inline-bar-row>.inline-bar-name{min-width:0;overflow:hidden}
.inline-bar-row>.inline-bar-name .name-cell{display:flex;align-items:baseline;gap:8px;min-width:0;overflow:hidden}
.inline-bar-row>.inline-bar-name .name-cell>a{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inline-bar-row [data-name]{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important} /* one line: .tr [data-name] lets table names wrap */
.inline-bar-row>.inline-bar-name .name-cell>.lbl{flex:none;white-space:nowrap}
.inline-bar-row>.track{width:100%;max-width:160px}
.inline-bar-row>.inline-bar-value{justify-self:end;text-align:right;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}

/* ---------- Info tip: an "i" that shows its text on hover, focus or tap (one copy; boards used to repeat it) ---------- */
/* doubled class: beats ".sw button{font:inherit}" */
.info-tip.info-tip{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;width:24px;height:24px;margin:-3px 0;padding:0;border:0;background:transparent;color:var(--ink-2);font-style:italic;font-weight:600;font-size:13px;line-height:1;font-family:var(--f-text);letter-spacing:0;cursor:help;vertical-align:middle}
.chart-sub{display:flex;align-items:center;gap:8px;min-width:0}
.chart-best{position:absolute;width:max-content;max-width:100%;overflow-wrap:anywhere;font-size:13px;color:var(--ink-2);background:var(--bg);pointer-events:none}
/* the day-by-day card (profile and Overview): one element, its layout lives here, not in the board */
.chart-card{display:flex;flex-direction:column;gap:8px;min-width:0}
.chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.chart-title{display:flex;flex-direction:column;gap:3px;min-width:0}
.chart-readout{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:0 0 auto}
.chart-readout>.figp{font-size:22px;line-height:1}
.chart-x{display:flex;justify-content:space-between;gap:8px;padding-top:7px}.chart-x>span{white-space:nowrap}
.chart-xh{position:absolute;top:0;bottom:0;width:1px;background:var(--line-3);transition:left .16s cubic-bezier(.16,1,.3,1)}
.chart-hits{position:absolute;inset:0;display:flex}.chart-hits>span{flex:1 1 0}
.info-tip::before{content:"i";position:absolute;inset:3px;display:grid;place-items:center;border:1px solid var(--line-3);border-radius:50%;transition:border-color .15s}
.info-tip:hover,.info-tip:focus-visible,.info-tip[data-open]{color:var(--ink)}.info-tip:hover::before,.info-tip:focus-visible::before,.info-tip[data-open]::before{border-color:var(--ink-2)}
.info-tip::after{content:attr(data-tip);position:absolute;left:-6px;top:calc(100% + 6px);width:max-content;max-width:min(340px,80vw);padding:10px 12px;border-radius:10px;background:var(--raised);border:1px solid var(--line-2);box-shadow:0 8px 24px var(--shadow);color:var(--ink);font-size:13px;font-style:normal;font-weight:400;line-height:1.5;text-align:left;white-space:normal;display:none;pointer-events:none;z-index:60}
.info-tip:hover::after,.info-tip:focus-visible::after,.info-tip[data-open]::after{display:block}
/* a word that explains itself on hover or focus (no icon, no link look): the info-tip bubble */
.tip-word{position:relative;display:inline-block;color:var(--down);cursor:help;border-radius:4px}
.tip-word:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.tip-word::after{content:attr(data-tip);position:absolute;left:-6px;top:calc(100% + 6px);width:max-content;max-width:min(340px,80vw);padding:10px 12px;border-radius:10px;background:var(--raised);border:1px solid var(--line-2);box-shadow:0 8px 24px var(--shadow);color:var(--ink);font-size:13px;font-style:normal;font-weight:400;line-height:1.5;text-align:left;white-space:normal;display:none;pointer-events:none;z-index:60}
.tip-word:hover::after,.tip-word:focus-visible::after{display:block}
@media(max-width:760px){.info-tip.info-tip{width:44px;height:44px;margin:-13px -10px}.info-tip::before{inset:13px}.info-tip::after{left:4px}}
/* a heading with an info-tip: the tip sits 8px after the heading text, the same gap the lord chart headers use */
.h2>.info-tip{margin-left:8px;vertical-align:-.23em}

/* ---------- Search field (DESIGN decision 18: 36px, 15px, icon left); sized to its content ---------- */
.search-field{display:inline-flex;align-items:center;gap:10px;box-sizing:border-box;width:max-content;max-width:100%;height:36px;padding:0 10px;border:1px solid var(--line-2);border-radius:9px;font-size:var(--t-body);color:var(--ink-2)}
.search-field:focus-within{outline:2px solid var(--ink);outline-offset:2px}
.search-field svg{flex:none}
.search-field input{box-sizing:border-box;width:21ch;min-width:0;height:100%;margin:0;padding:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:var(--t-body);text-align:left;-webkit-appearance:none;appearance:none}
.search-field input::-webkit-search-cancel-button{display:none}

/* ---------- Picked value (Compare): the chosen lord shows as a 38px field, not a chip (decision 11) ---------- */
.picked{display:inline-flex;align-items:center;gap:10px;box-sizing:border-box;height:36px;padding:0 6px 0 12px;border:1px solid var(--line-2);border-radius:9px;font-size:var(--t-body);color:var(--ink);white-space:nowrap}

/* ---------- Desktop scale (owner 4 Nov): Auto grows gently above 1920 CSS px ----------
   shell.js sets --ui-zoom = clamp(1, 1 + (width / 1920 - 1) * 0.6, 2), or the Settings page size.
   The zoom goes on the site's own elements appended to <body> (#dc-root, and every .sw element there: popup hosts,
   toasts, pickers, the date dialog, the clock bar), not on <html> or <body>: F146. A password manager appends its inline
   icon to <html> or <body> at a field's getBoundingClientRect(); a zoomed html scaled that icon a second time and it landed
   away from the field. Descendants keep the same effective zoom, so the layout is unchanged. The sidebar divides the viewport
   height by the zoom to stay one screen tall. */
/* body>x-dc: the raw board markup painted before support.js swaps in #dc-root (no zoom there = one frame at zoom 1 on every page switch). */
body>.sw,body>#dc-root,body>x-dc{zoom:var(--ui-zoom,1)}
.side[data-shell]{height:calc(100vh / var(--ui-zoom,1))}

/* DKP breakdown (F032; charts.js DkpBreakdown): Me and the lord page's Team block. Each counted stat is a row with its bar. */
.stat-breakdown{display:flex;flex-direction:column;gap:4px;min-width:0}
.stat-breakdown-rows,.stat-breakdown-folded{margin:0;padding:0;list-style:none}
.stat-breakdown-row{display:flex;flex-direction:column;gap:8px;padding:10px 0;border-top:1px solid var(--line)}
.stat-breakdown-line{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(72px,auto);align-items:baseline;gap:16px;font-size:var(--t-body)}
.stat-breakdown-name{min-width:0;font-weight:600;overflow-wrap:anywhere}
.stat-breakdown-calc,.stat-breakdown-points{text-align:right;color:var(--ink);white-space:nowrap}
.stat-breakdown-points{font-weight:600}
.stat-breakdown-track{display:block;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.stat-breakdown-track i{display:block;height:100%;border-radius:inherit}
.stat-breakdown-fold{padding-top:8px;border-top:1px solid var(--line)}
.stat-breakdown-fold>summary{font-size:var(--t-label);color:var(--ink-2);cursor:pointer}
.stat-breakdown-folded .stat-breakdown-row{padding:8px 0}

/* Sign in and Account → Password (F003): a password field is one box, its Show/Hide button at the right end inside it.
   The input ends before the button, so a password manager's icon pinned to the input sits left of the button. */
/* a password box: its label, the box and the box's message (inside the stack, so the message sits under the box) */
.pw-stack{display:grid;gap:var(--f-label);min-width:0}
.pw-stack>.field-msg,.pw-stack>.caption{margin-top:calc(var(--f-msg) - var(--f-label))}
.pw-field{display:flex;align-items:center;min-width:0;border:1px solid var(--line-2);border-radius:9px;background:var(--bg)}
.pw-field:focus-within{border-color:var(--ink-2)}
.pw-field>.field{flex:1 1 auto;min-width:0;height:36px;border:0;background:transparent}
.pw-toggle{flex:0 0 auto;height:36px;padding:0 12px;border:0;border-radius:0 9px 9px 0;background:transparent;color:var(--ink-2);font:inherit;font-size:var(--t-label);font-weight:600;cursor:pointer}
.pw-toggle:hover,.pw-toggle[aria-pressed="true"]{color:var(--ink)}
.pw-toggle:focus-visible{outline:2px solid var(--ink-2);outline-offset:-2px}
.pop-error{margin:0;font-size:var(--t-body);color:var(--down)}
.pop-error:empty{display:none} /* an empty alert is not a flex item: it no longer adds a gap above the first control (F174) */
/* the shared field focus ring (owner 9 Nov): the field keeps its size and border; the white ring sits 3px outside, rounded like the field */
.sw .field:focus-visible,.sw .pw-field:has(>.field:focus-visible){outline:2px solid var(--ink);outline-offset:3px}
.sw .pw-field>.field:focus-visible{outline:0}
/* errors appear with a short fade and slide: a general alert (.pop-error) or a message under a field (.field-msg) */
@media (prefers-reduced-motion: no-preference){
  .pop-error:not(:empty),.field-msg{animation:sw-msg-in .18s ease-out}
  /* the sign-in and create-account sections swap with a slide and fade; the popup body animates its height in settings.js */
  .pop-solo #sign-in-mode,.pop-solo #create-account-mode{animation:sw-mode-in .18s ease-out}
  /* "Use a password": the panel opens and closes on height and opacity; the content stays until a close finishes */
  .pop{interpolate-size:allow-keywords}
  .pop details::details-content{block-size:0;opacity:0;overflow:clip;transition:block-size .2s ease-out,opacity .16s ease-out,content-visibility .2s allow-discrete}
  .pop details[open]::details-content{block-size:auto;opacity:1}
}
@keyframes sw-msg-in{from{opacity:0;transform:translateY(-4px)}}
@keyframes sw-mode-in{from{opacity:0;transform:translateY(6px)}}
/* busy and disabled buttons keep their size: a page rule for disabled buttons (height:auto; min-height:44px) must not resize .btn */
.sw .btn:disabled{height:36px;min-height:36px;white-space:nowrap}
/* the sign-in dialog: one column, the Settings and Account shell without a category nav */
/* a flex column so the body can shrink under max-height and scroll inside (F175): a grid row sized to content was cut off */
.pop.pop-solo{display:flex;flex-direction:column;width:min(440px,100%);height:auto;max-height:calc(100vh - 2 * var(--s-6))}
.pop.pop-solo>.pop-main{flex:1 1 auto}
/* F174: the gap above the Sign in / Create account tabs, now 32px (was 40px with the empty alert's gap) */
.pop.pop-solo .pop-body{padding-top:var(--s-6)}

.sw label:has(input[type=checkbox]){display:inline-flex;flex-direction:row;align-items:center;gap:8px;color:var(--ink)}
/* one checkbox look for every board (owner 9 Nov): the box fills and the check scales in on tick */
.sw input[type=checkbox]{--check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  flex:none;appearance:none;display:inline-grid;place-content:center;width:16px;height:16px;margin:0;border:1px solid var(--ink-2);border-radius:4px;background:var(--bg);cursor:pointer}
.sw input[type=checkbox]::before{content:"";width:10px;height:10px;background:var(--bg);-webkit-mask:var(--check) center/contain no-repeat;mask:var(--check) center/contain no-repeat;transform:scale(0);opacity:0}
.sw input[type=checkbox]:checked{background:var(--ink);border-color:var(--ink)}
.sw input[type=checkbox]:checked::before{transform:scale(1);opacity:1}
@media (prefers-reduced-motion: no-preference){
  .sw input[type=checkbox]{transition:background-color .15s ease-out,border-color .15s ease-out}
  .sw input[type=checkbox]::before{transition:transform .16s ease-out,opacity .16s ease-out}
}

/* ---------- UTC clock: site day boundary, shared by desktop and phone ---------- */
.side[data-shell] .side-nav{display:flex;flex:1 1 0;flex-direction:column;gap:2px;min-height:0;overflow-y:auto}
.side-nav>.side-group,.side[data-shell] .side-foot{flex-shrink:0}
.utc-clock{display:flex;flex-direction:column;gap:var(--s-1);padding:var(--s-3);border:1px solid var(--line);border-radius:12px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.utc-clock-face{display:flex;align-items:baseline;gap:var(--s-2)}
.utc-clock time{font-size:var(--t-h2);font-weight:var(--w-fig);line-height:1.2}
.utc-clock-tag,.utc-clock-next{font-size:var(--t-label);color:var(--ink-2)}
.utc-clock-tag{font-weight:var(--w-label)}
.utc-clock-bar{display:none;position:sticky;top:0;z-index:41;justify-content:center;background:var(--side);border-bottom:1px solid var(--line);padding:var(--s-2) var(--s-4);height:var(--s-8);box-sizing:border-box}
.utc-clock-bar .utc-clock{padding:0;border:0;align-items:center}
.utc-clock-bar time{font-size:var(--t-body)}
html[data-side-collapsed="true"] .utc-clock-bar,body:not(:has(#dc-root aside[data-shell])) .utc-clock-bar{display:flex}
html[data-side-collapsed="true"] .side[data-shell] .utc-clock{display:none}
html[data-side-collapsed="true"],html:not(:has(#dc-root aside[data-shell])){--sw-top-bar:64px;scroll-padding-top:var(--sw-top-bar)}
@media(min-width:761px){
  html[data-side-collapsed="true"] .side[data-shell]{top:var(--s-8);height:calc(100vh / var(--ui-zoom,1) - var(--s-8))}
}
@media(max-width:760px){
  html:has(.utc-clock-bar){--sw-top-bar:64px;scroll-padding-top:var(--sw-top-bar)}
  .utc-clock-bar{display:flex}
  .side[data-shell] .utc-clock{display:none}
}

/* ---------- Accent (F171, owner, 8 Nov, from the accent mockups): one rule set for every board, popup, menu and toast.
   --accent is the Settings accent (neutral = the ink). Metric colours never use it. Phone rules further up keep their own. ---------- */
.nv[aria-current="page"]{background:color-mix(in srgb,var(--accent) 16%,var(--sel));box-shadow:inset 3px 0 0 var(--accent)}
/* owner 9 Nov: every section title (h2.h2, inside .sh or not) carries the accent line, same size and offset */
h2.h2::before{content:"";display:inline-block;width:4px;height:.8em;margin-right:10px;border-radius:2px;background:var(--accent);vertical-align:-.04em}
.btn:not(.pri):not(.ter):not(.danger){border-color:color-mix(in srgb,var(--accent) 45%,var(--line-3))}
.btn:not(.pri):not(.ter):not(.danger):hover{background:color-mix(in srgb,var(--accent) 14%,var(--hover));border-color:color-mix(in srgb,var(--accent) 65%,var(--ink-3))}
@media (prefers-reduced-motion: no-preference){.btn{transition:background-color .18s ease-out,border-color .18s ease-out}}
.rail{background:linear-gradient(160deg,color-mix(in srgb,var(--accent) 14%,var(--panel)) 0,var(--panel) 72%);box-shadow:inset 0 2px 0 var(--accent)}
.tab[aria-selected="true"],.tab[aria-current="page"]{box-shadow:inset 0 -3px 0 var(--accent)}
.tr[role="row"]:hover,a.tr:hover{background:color-mix(in srgb,var(--accent) 12%,var(--bg))}
[data-row]:has([data-row-primary]):hover{box-shadow:inset 0 0 0 999px color-mix(in srgb,var(--accent) 12%,var(--bg))}
tr[data-row]:has([data-row-primary]):hover{background:color-mix(in srgb,var(--accent) 12%,var(--bg))}
.tr[aria-selected="true"],.tr[data-selected="true"],[data-row][aria-selected="true"],[data-row][data-selected="true"]{background:color-mix(in srgb,var(--accent) 20%,var(--bg));box-shadow:inset 3px 0 0 var(--accent)}
tr[aria-selected="true"]>td:first-child,tr[data-selected="true"]>td:first-child{box-shadow:inset 3px 0 0 var(--accent)}
.picker-list li[data-active]{background:color-mix(in srgb,var(--accent) 18%,var(--sel))}
.pop-item[aria-current="page"]{background:color-mix(in srgb,var(--accent) 16%,var(--sel))}
.sw-select-btn:focus-visible,.sw-cal:focus-visible,.dp-day:focus-visible,.dp-nav:focus-visible,.sw :focus-visible{outline-color:var(--accent)}

/* ---------- Custom colours (F172): "custom" takes the picked colours from prefs.js (--c-*). Each rule is one token set. ---------- */
html[data-accent="custom"] .sw{--accent:var(--c-accent);--on-accent:var(--c-on-accent)}
html[data-gain="custom"] .sw{--up:var(--c-up);--down:var(--c-down)}
html[data-team="custom"] .sw{--team-1:var(--c-team-1);--team-2:var(--c-team-2)}
/* <sw-color> (site.js): the trigger, its warning and the picker panel (body level, so it carries the .sw tokens) */
sw-color{display:inline-block;position:relative;max-width:100%;vertical-align:middle}
sw-color[hidden]{display:none}
.sw-color-box{display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:100%}
.sw-color-btn{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 10px;border:1px solid var(--line-2);border-radius:9px;background:transparent;color:inherit;font:inherit;font-variant-numeric:tabular-nums;cursor:pointer}
.sw-color-btn:hover{border-color:var(--ink-3)}
.sw-color-btn[aria-expanded="true"]{border-color:var(--ink-3)}
.sw-color-btn.swatch{width:36px;height:36px;padding:0;border-radius:9px;background:var(--sw)}
.sw-color-dot{width:10px;height:10px;border-radius:3px;flex:none}
.sw-color-warn{margin:0;font-size:var(--t-label);line-height:1.3}
.sw-color-pop{position:fixed;z-index:70;box-sizing:border-box;width:280px;padding:12px;display:flex;flex-direction:column;gap:12px;border:1px solid var(--line-2);border-radius:12px;background:var(--raised);box-shadow:0 12px 32px var(--shadow);color:var(--ink)}
.sw-color-pop[hidden]{display:none}
.sw-color-sv{position:relative;height:160px;border-radius:9px;cursor:crosshair;touch-action:none;outline-offset:2px}
.sw-color-sv>i,.sw-color-hue>i{position:absolute;top:50%;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #000;transform:translate(-50%,-50%);pointer-events:none}
.sw-color-sv>i{top:0}
.sw-color-hue{position:relative;height:14px;border-radius:7px;cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}
.sw-color-hue>i{background:transparent}
.sw-color-row{display:flex;align-items:flex-end;gap:12px}
.sw-color-preview{flex:none;width:36px;height:36px;border-radius:9px;border:1px solid var(--line-2)}
.sw-color-hex{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0;font-size:var(--t-label);color:var(--ink-2)}
.sw-color-hex input{width:100%;box-sizing:border-box;font-variant-numeric:tabular-nums;text-transform:lowercase}
.sw-color-hex input[aria-invalid="true"]{border-color:var(--down)}
.sw-color-done{display:flex;justify-content:flex-end}
/* a Settings row's sample (the preview): it sits before its select, the select stays first in the markup (label activation) */
.pop-control>.pop-sample{order:-1;display:inline-flex;align-items:center;flex-wrap:wrap;gap:12px}
.pop-control>.pop-sample>[hidden]{display:none}
.pop-control>.pop-sample>span:not([hidden]){display:inline-flex;align-items:center;gap:12px}

/* ---------- First paint of a board page (before support.js renders it) ----------
   Every board's served HTML is <x-dc> around one root div.sw. support.js swaps that root for #dc-root only at
   DOMContentLoaded (after a second fetch), so until then the raw template paints: {{...}} text (25-200 ms per page switch)
   and inline sw-select spans, which keep their own visibility. Until the board has rendered (html[data-dc-ready]), the
   root's children are hidden except the shell-owned sidebar and phone bottom bar, which stay visible and styled. */
html:not([data-dc-ready]) x-dc>.sw>:not(.side):not(.phone-bottom){display:none}

/* ---------- Phone tap targets (9 Nov, scripts/check_phone.py): at 760 px and below every button, chip, summary and link
   in a list, row, header, pager or section action is at least 40 px tall. Inline links in running text stay inline. ---------- */
/* scoped to .sw (every board's root) so desktop boards keep their own 44 px rules and nothing repeats them */
@media (max-width:760px){
  .sw button,.sw [role="button"],.sw summary,.sw .btn,.sw .seg,.sw .pop-item,.sw .sw-select-btn,.sw .sw-color-box button{min-height:44px}
  .sw summary{display:flex;align-items:center}
  .sw .seg{height:auto}
  .sw header a,.sw .sh a,.sw .actions a,.sw .page>a,.sw .sec>a,.sw td a,.sw th a,.sw li>a,.sw article a,.sw .home-lord-row a,.sw .home-zone a,.sw .mrow-main a,.sw .name-link,.sw .fig a,.sw nav:not([aria-label="Main"]) a{display:inline-flex;align-items:center;min-height:44px}
}

/* Daily line chart (shared element). site.js drawLineChart builds it into a host; positions are CSS custom properties set from JS
   (--x, --y), colours are classes (.s1..s8 series slots, .tm0..tm6 team markers, .off = a switched-off key). */
.sw{--series-1:#3987e5;--series-2:#d95926;--series-3:#199e70;--series-4:#c98500;--series-5:#d55181;--series-6:#0ca30c;--series-7:#9085e9;--series-8:#e66767}
.sw[data-theme="light"],[data-theme="light"] .sw{--series-1:#2a78d6;--series-2:#eb6834;--series-3:#1baf7a;--series-4:#eda100;--series-5:#e87ba4;--series-6:#008300;--series-7:#6250d6;--series-8:#e34948}
.line-chart{display:flex;flex-direction:column;gap:16px;min-width:0}
.line-chart .s1{--c:var(--series-1)}.line-chart .s2{--c:var(--series-2)}.line-chart .s3{--c:var(--series-3)}.line-chart .s4{--c:var(--series-4)}
.line-chart .s5{--c:var(--series-5)}.line-chart .s6{--c:var(--series-6)}.line-chart .s7{--c:var(--series-7)}.line-chart .s8{--c:var(--series-8)}
.line-chart .off{--c:var(--line-3)}
.line-chart .tm0{--c:var(--ink-2)}.line-chart .tm1{--c:var(--team-1)}.line-chart .tm2{--c:var(--team-2)}.line-chart .tm3{--c:var(--team-3)}
.line-chart .tm4{--c:var(--team-4)}.line-chart .tm5{--c:var(--team-5)}.line-chart .tm6{--c:var(--team-6)}
.line-chart .lc-readout{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;min-height:24px;font-size:var(--t-body);color:var(--ink);font-variant-numeric:tabular-nums}
.line-chart .lc-read{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
.line-chart .lc-read i{display:block;width:10px;height:10px;border-radius:3px;background:var(--c)}
.line-chart .lc-read b{font-weight:600;font-variant-numeric:tabular-nums}
.line-chart .lc-frame{display:grid;grid-template-columns:72px minmax(0,1fr) 200px;column-gap:8px}
.line-chart .lc-y,.line-chart .lc-plot{position:relative;height:var(--lc-h,320px)}
.line-chart .lc-endcol{position:relative;height:var(--lc-h,320px);min-width:0}
.line-chart .lc-y span,.line-chart .lc-x span{position:absolute;font-size:13px;font-weight:500;color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.line-chart .lc-y span{right:0;top:var(--y);transform:translateY(-50%)}
.line-chart .lc-grid span{position:absolute;left:0;right:0;top:var(--y);height:1px;background:var(--chart-grid)}
.line-chart .lc-grid span.base{background:var(--chart-grid-base)}
.line-chart .lc-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.line-chart .lc-line{fill:none;stroke:var(--c);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.line-chart .lc-cursor{position:absolute;top:0;bottom:0;left:var(--x);width:1px;background:var(--line-3);pointer-events:none;opacity:0}
.line-chart .lc-cursor.on{opacity:1}
.line-chart .lc-dot{position:absolute;left:var(--x);top:var(--y);width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px var(--bg);pointer-events:none}
.line-chart .lc-hits{position:absolute;inset:0;display:flex}
.line-chart .lc-hits span{flex:1 1 0;min-width:0}
.line-chart .lc-leaders{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.line-chart .lc-leader{stroke:var(--c);stroke-width:1;vector-effect:non-scaling-stroke}
.line-chart .lc-end{position:absolute;left:14px;right:0;top:var(--y);transform:translateY(-50%);display:flex;align-items:center;gap:8px;font-size:14px;line-height:16px;color:var(--ink);white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.line-chart .lc-end i{display:block;width:14px;height:2px;border-radius:1px;background:var(--c);flex:none}
.line-chart .lc-x{position:relative;grid-column:2;height:24px;margin-top:8px}
.line-chart .lc-x span{top:0;left:var(--x);transform:translateX(-50%)}
.line-chart .lc-x span.edge-start{transform:none}
.line-chart .lc-x span.edge-end{transform:translateX(-100%)}
.line-chart .lc-legend{display:flex;flex-wrap:wrap;gap:8px}
.line-chart .lc-toggle{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border:1px solid var(--line-2);border-radius:999px;background:transparent;color:var(--ink);font-size:14px;cursor:pointer}
.line-chart .lc-toggle:hover{background:var(--hover)}
.line-chart .lc-toggle[aria-pressed="true"]{background:var(--sel);border-color:var(--line-3)}
.line-chart .lc-toggle:disabled{opacity:.45;cursor:not-allowed}
.line-chart .lc-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.line-chart .lc-key{display:block;width:14px;height:2px;border-radius:1px;background:var(--c)}
.line-chart .lc-team{display:block;width:8px;height:8px;border-radius:2px;background:var(--c)}
@media (max-width:760px){.line-chart .lc-frame{grid-template-columns:56px minmax(0,1fr)}.line-chart .lc-endcol{display:none}}
@media(prefers-reduced-motion:no-preference){
  .line-chart .lc-draw{animation:lc-draw .25s ease-out}
  .line-chart .lc-toggle{transition:background-color .15s ease-out,border-color .15s ease-out,transform .15s ease-out}
  .line-chart .lc-toggle:active{transform:scale(.98)}
}
@keyframes lc-draw{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}

/* KvK sections on the KvK lists: the territory map (kvkTerritoryDraw, now on the KvK page's Map tab) and the list's own columns. */
.kvk-map-stage{position:relative;min-width:0;width:100%}
.kvk-map-img{display:block;width:100%;height:auto}
.kvk-map-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.kvk-map-svg path{fill-opacity:.16;stroke-width:1.5;outline:none}
.kvk-map-svg path:is(:hover,:focus-visible){fill-opacity:.4;stroke-width:3}
@media (prefers-reduced-motion: no-preference){.kvk-map-svg path{transition:fill-opacity .15s ease-out,stroke-width .15s ease-out}}
.kvk-map-readout{margin:8px 0 0;min-height:1.5em;font-size:14px;color:var(--ink)}
.kvk-legend{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0;padding:0;list-style:none;font-size:14px}
.kvk-legend li{display:flex;align-items:center;gap:8px;min-width:0}
.kvk-swatch{width:12px;height:12px;border-radius:3px;flex-shrink:0}
.kvk-kingdoms{display:flex;flex-wrap:wrap;gap:4px 16px;min-width:0}
.kvk-start{display:grid;gap:2px;min-width:0}
.kvk-start-meta{font-size:13px}
.kvk-table.kvk-soon{grid-template-columns:max-content minmax(0,1fr) max-content minmax(0,1.2fr) max-content}
.kvk-you{color:var(--ink);font-size:13px;font-weight:600}
.kvk-augur{display:grid;gap:2px;min-width:0}
.kvk-augur>span:last-child{font-size:13px}
@media (max-width:700px){.kvk-table.kvk-soon .th{display:none}.kvk-table.kvk-soon .tr{row-gap:6px;padding:12px 0}}

/* KvK page (V2Zone on desktop, S2PhoneZone on phones): one owned host painted by kvk-page.js. Prefix kvkp-; no style attributes
   (widths and offsets arrive as --w and --x). Sections: Overview, Servers, Players, Augurstone, Map. Charts are .line-chart. */
.kvkp{--aug:#d39300;--aug-ink:#f0c04a;display:flex;flex-direction:column;gap:32px;min-width:0;max-width:100%}
.kvkp-app,.sw.board-fill{min-height:100vh;display:flex;align-items:stretch}
.kvkp-head{display:flex;flex-direction:column;gap:14px;min-width:0}
.kvkp-back{font-size:14px;color:var(--ink-2);text-decoration:none}
.kvkp-back:hover{color:var(--ink)}
.kvkp-titlerow{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px}
.kvkp-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;color:var(--ink-2);font-size:15px}
.kvkp-meta b{color:var(--ink);font-weight:600}
.kvkp-clock{display:flex;flex-direction:column;gap:10px;padding-top:8px}
.kvkp-bar{position:relative;height:10px;border-radius:5px;background:var(--line)}
.kvkp-done{position:absolute;top:0;bottom:0;left:0;width:var(--w,0%);border-radius:5px;background:var(--line-3)}
.kvkp-tick{position:absolute;top:-4px;bottom:-4px;width:2px;left:var(--x,0%);background:var(--ink-3)}
.kvkp-now{position:absolute;top:-8px;bottom:-8px;width:2px;left:var(--x,0%);background:var(--ink)}
.kvkp-labels{position:relative;height:36px;font-size:13px;color:var(--ink-2)}
.kvkp-labels>span{position:absolute;left:var(--x,0%);transform:translateX(-50%);white-space:nowrap;text-align:center;line-height:1.3}
.kvkp-labels>span b{display:block;color:var(--ink);font-weight:600}
.kvkp-labels>span.kvkp-first{transform:none;text-align:left}
.kvkp-labels>span.kvkp-last{transform:translateX(-100%);text-align:right}
.kvkp-augline{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding-top:12px;border-top:1px solid var(--line);font-size:15px}
.kvkp-k{font-weight:600}
.kvkp-muted,.kvk-muted{color:var(--ink-2);font-size:14px}
.kvkp-tag{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid var(--line-3)}
.kvkp-tag-observed{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.kvkp-tag-pass{border-color:var(--aug);color:var(--aug-ink)}
.kvkp-tag-timer{border-style:dashed;color:var(--ink-2)}
.kvkp-end{margin-left:auto}
.kvkp-tabs{display:flex;flex-wrap:wrap;gap:4px 28px;border-bottom:1px solid var(--line)}
.kvkp-tabs button{background:none;border:0;padding:0 0 12px;margin-bottom:-1px;color:var(--ink-2);font:600 15px var(--f-text);cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap}
.kvkp-tabs button:hover{color:var(--ink)}
.kvkp-tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--ink)}
.kvkp-n{color:var(--ink-3);font-weight:500;margin-left:6px}
.kvkp-panel{display:flex;flex-direction:column;gap:40px;min-width:0}
.kvkp-sec{display:flex;flex-direction:column;gap:16px;min-width:0}
.kvkp-sh{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px}
.kvkp-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;min-width:0}
.kvkp-two-b{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.kvkp-multiples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;min-width:0}
.kvkp-multiples>div{display:flex;flex-direction:column;gap:12px;min-width:0}
.kvkp-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;color:var(--ink-2)}
.kvkp-legend span{display:inline-flex;align-items:center;gap:8px}
.kvkp-sw{display:inline-block;width:10px;height:10px;border-radius:3px;flex:0 0 10px}
.kvkp-sw.s1{background:var(--series-1)}.kvkp-sw.s2{background:var(--series-2)}.kvkp-sw.s3{background:var(--series-3)}.kvkp-sw.s4{background:var(--series-4)}
.kvkp-sw.s5{background:var(--series-5)}.kvkp-sw.s6{background:var(--series-6)}.kvkp-sw.s7{background:var(--series-7)}.kvkp-sw.s8{background:var(--series-8)}
.kvkp-srv{display:inline-flex;align-items:center;gap:10px;font-weight:600}
.kvkp-rank{display:inline-block;width:20px;font-weight:400}
.kvkp-dim{color:var(--ink-3)}
.kvkp-plus{color:var(--up)}
.kvkp-minus{color:var(--down)}
.kvkp-num{font-variant-numeric:tabular-nums}
/* contain: paint keeps a wide table's overflow inside this box while an ancestor's enter animation (opacity, on load) runs;
   without it the page reports the table's width as its own for ~1 s and a 390 check sees the page scroll sideways */
.kvkp-tw{max-width:100%;overflow-x:auto;min-width:0;contain:paint}
.kvkp-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.kvkp-table th,.kvkp-table td{text-align:right;padding:11px 0 11px 18px;border-bottom:1px solid var(--line);white-space:nowrap}
.kvkp-table thead th{font-size:13px;font-weight:600;color:var(--ink-2);padding:8px 0 8px 18px;border-bottom:1px solid var(--line-2)}
.kvkp-table tbody th{font-weight:400;text-align:left;padding-left:0}
.kvkp-table thead th:first-child{text-align:left;padding-left:0}
.kvkp-table thead th.on{color:var(--ink)}
.kvkp-th{background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer}
.kvkp-th:hover{color:var(--ink)}
.kvkp-table th.on .kvkp-th::after{content:"";display:inline-block;margin-left:6px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.kvkp-barcell{display:inline-flex;align-items:center;gap:12px;justify-content:flex-end}
.kvkp-cbar{display:block;width:180px;height:6px;border-radius:3px;background:var(--line);overflow:hidden;flex:0 0 auto}
.kvkp-cbar i{display:block;height:100%;width:var(--w,0%);border-radius:3px;background:var(--merits)}
.kvkp-track{display:block;flex:1;max-width:220px;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.kvkp-track i{display:block;height:100%;width:var(--w,0%);background:var(--ink)}
.kvkp-chart{min-width:0}
.kvkp-small{--lc-h:190px}
.kvkp-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 20px}
.kvkp-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.kvkp-field>span{font-size:13px;color:var(--ink-2)}
.kvkp-field select{min-height:36px;padding:0 10px;border-radius:9px;border:1px solid var(--line-2);background:var(--bg);color:var(--ink);font:inherit}
.kvkp-mlist{display:flex;flex-direction:column}
.kvkp-mlist>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;font-size:14px}
.kvkp-aug-now{display:flex;flex-direction:column;gap:6px;max-width:72ch}
.kvkp-lbl{margin:0;font-size:13px;color:var(--ink-2);font-weight:600}
.kvkp-chap{margin:0;font:600 26px/1.2 var(--f-display);color:var(--ink)}
.kvkp-obj,.kvkp-when{margin:0;font-size:15px;color:var(--ink)}
.kvkp-when b{font-weight:600}
.kvkp-prog{display:flex;align-items:center;gap:12px}
.kvkp-src{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.kvkp-up ul{list-style:none;margin:0;padding:0}
.kvkp-up li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:15px}
.kvkp-t{font-variant-numeric:tabular-nums;color:var(--ink-2)}
.kvkp-track-wrap{display:flex;flex-direction:column;gap:8px;min-width:0}
.kvkp-chapters{position:relative;display:flex;height:22px;gap:2px;min-width:0}
.kvkp-seg{display:block;height:100%;border-radius:4px;background:var(--line)}
.kvkp-seg.done{background:var(--line-3)}
.kvkp-seg.cur{background:var(--aug)}
.kvkp-band{position:absolute;top:-5px;bottom:-5px;left:var(--x,0%);width:var(--w,0%);border:1px dashed var(--aug-ink);border-radius:6px;pointer-events:none}
.kvkp-nowline{position:absolute;top:-6px;bottom:-6px;left:var(--x,0%);width:2px;background:var(--ink)}
.kvkp-axis{display:flex;justify-content:space-between;font-size:12px;color:var(--ink-3)}
.kvkp-key{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--ink-2)}
.kvkp-key span{display:inline-flex;align-items:center;gap:6px}
.kvkp-key i{display:inline-block;width:10px;height:10px;border-radius:3px}
.kvkp-k-done{background:var(--line-3)}
.kvkp-k-now{background:var(--aug)}
.kvkp-k-band{background:transparent;border:1px dashed var(--aug-ink)}
.kvkp-k-ahead{background:var(--line)}
.kvkp-all>summary{cursor:pointer;font-size:15px;font-weight:600;padding:8px 0}
.kvkp-ch td:nth-child(2){text-align:left;white-space:normal}
.kvkp-ch td:nth-child(2) small{display:block;color:var(--ink-2);font-size:14px;font-weight:400;white-space:normal}
.kvkp-ch tr.cur td{background:linear-gradient(90deg,rgba(211,147,0,.16),transparent 70%)}
.kvkp-st-now{color:var(--aug-ink)}
.kvkp-st-done,.kvkp-st-ended{color:var(--ink-3)}
.kvkp-st-missed{color:var(--down)}
.kvkp-st-ahead{color:var(--ink-2)}
@media (max-width:1200px){.kvkp-multiples{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){
  .kvkp-two,.kvkp-two-b{grid-template-columns:minmax(0,1fr)}
  .kvkp-multiples{grid-template-columns:minmax(0,1fr)}
  .kvkp-cbar{width:70px}
  .kvkp-labels>span:not(.kvkp-first):not(.kvkp-last){display:none}
  .kvkp-end{margin-left:0}
  .kvkp-chart .lc-frame{grid-template-columns:52px minmax(0,1fr) 24px}
  .kvkp-chart .lc-end{display:none}
}

/* Players ladder (V2Lords, S2PhoneLords): the status chip beside the name, the desktop Server and Alliance columns, and the
   phone's one muted line under the name (server and alliance). Classes only: the boards carry no inline styles for these. */
.ladder-who{display:flex;align-items:center;gap:8px;min-width:0}
.ladder-who .ladder-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ladder-who .tag{flex:none}
.ladder-stack{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0}
.ladder-meta{font-size:13px;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- Board CSS: one copy for every board (it was pasted into 32 boards). The desktop core comes first;
   the variants after it are scoped with :where() to the boards that render them (no added specificity). ---------- */
/* F4b: text-safe status inks leave the measured stat/status marks unchanged. */
.sw{--bad-ink:#ff7770;--good-ink:#50bf3a;--warn-ink:#fdb50f;--hit-size:24px}
.sw[data-theme="light"],[data-theme="light"] .sw{--bad-ink:#b10000;--good-ink:#175b28;--warn-ink:#805400}
.sw input::placeholder{color:var(--ink-2);opacity:1}
.sw input:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* F6b-2: the ring draws on the search box; the inner input keeps a (transparent) outline so the focus gate still sees one. */
.sw .search-box:focus-within{outline:2px solid var(--ink);outline-offset:2px}
.sw .search-box input:focus-visible{outline-color:transparent}
/* Transparent hit areas do not participate in layout. Neighbouring targets are audited by hit testing. */
.sw :is(a,button):not(.skip-link,.a11y-toggle,.sr-only){anchor-name:--hit;anchor-scope:--hit}
.sw :is(a,button):not(.skip-link,.a11y-toggle,.sr-only,.info-tip,.sort-head)::after{content:"";position:fixed;z-index:1;position-anchor:--hit;left:anchor(center);top:anchor(center);transform:translate(-50%,-50%);width:max(anchor-size(width),var(--hit-size));height:max(anchor-size(height),var(--hit-size))}
.phone-board{--hit-size:44px}
@media(max-width:600px){.sw{--hit-size:44px}}

:where(.board-settings) .role-confirm{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0;font-size:13px}

.phone-rankings{row-gap:17px!important}
.phone-migrations{row-gap:17px!important}

/* G4: the separator owns a 12px hit area; only its hairline changes colour. */
.side-fallback{display:none}
.side-resize{position:absolute;inset:0 0 0 auto;width:12px;z-index:25;cursor:col-resize;touch-action:none;user-select:none}
.side-resize::before{content:"";position:absolute;inset:0 0 0 auto;width:1px;background:var(--line);transition:background-color .15s}
.side-resize:hover::before,[data-dragging]>.side-resize::before{background:var(--ink-2)}
.side-resize:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
[data-dragging],[data-dragging] *{user-select:none!important;cursor:col-resize!important}
@media(min-width:760.01px){
  :is(.app>.side,aside[aria-label="Navigation"]):not(.side-demo){width:var(--sw-side-size,var(--sw-side-width,240px))!important;flex-basis:var(--sw-side-size,var(--sw-side-width,240px))!important}
  [data-resizable]{position:relative;transition:none!important;overflow:visible}
  [data-resizable]+main{container:main / inline-size}
  [data-resizable][data-collapsed="true"] .side-brand{font-size:0!important;justify-content:center}
  [data-resizable][data-collapsed="true"] .side-brand>*{display:none!important}
  [data-resizable][data-collapsed="true"] .side-brand::before{content:"SW";font-size:13px;font-weight:700}
  [data-resizable][data-collapsed="true"] nav>.lbl{display:none!important}
  [data-resizable][data-collapsed="true"] .side-item{position:relative;font-size:0!important;gap:0!important;padding-inline:0!important;justify-content:center!important;box-sizing:border-box;min-width:0;width:100%}
  [data-resizable][data-collapsed="true"] .side-item>:not(.side-icon){display:none!important}
  [data-resizable][data-collapsed="true"] .side-icon{display:block;flex-shrink:0;font-size:13px}
  [data-resizable][data-collapsed="true"] .side-item::before{content:attr(data-side-name);position:absolute;z-index:40;left:100%;top:50%;transform:translateY(-50%);padding:7px 12px;border:1px solid var(--line-2);border-radius:8px;background:var(--raised);color:var(--ink);font-size:13px;font-weight:400;line-height:1.45;white-space:nowrap;display:none}
  [data-resizable][data-collapsed="true"] .side-item:is(:hover,:focus-visible):not([data-tip-dismissed])::before{display:block}
  [data-resizable][data-collapsed="true"] .side-account{justify-content:center;padding-inline:0!important}
  [data-resizable][data-collapsed="true"] .side-account>:not(:first-child){display:none!important}
}
@media(max-width:760px){.side-resize{display:none!important}}
@media(prefers-reduced-motion:reduce){.side-resize::before{transition:none}}

.side-palette{box-sizing:border-box;inset:10vh 0 auto;margin:0 auto;width:min(640px,calc(100% - 32px));max-height:80vh;padding:20px;border:1px solid var(--line-2);border-radius:14px;background:var(--raised);color:var(--ink)}
.side-palette::backdrop{background:var(--shadow)}
.side-palette input{box-sizing:border-box;width:calc(100% - 100px);height:58px;margin-right:12px;padding:0 12px;background:var(--bg);border:1px solid var(--line-2);border-radius:9px;font-size:16px}
.side-palette nav{display:grid;gap:8px;margin-top:16px}.side-palette [hidden]{display:none!important}
.side-palette nav .btn{height:auto;min-height:48px;display:grid;grid-template-columns:minmax(0,1fr) auto;text-align:left;text-decoration:none;padding:10px 12px;gap:2px 12px}
.side-palette nav strong{overflow-wrap:anywhere}.side-palette nav small{grid-column:1;color:var(--ink-2)}.side-palette nav .btn>span{grid-column:2;grid-row:1 / 3;font-variant-numeric:tabular-nums}
.side-palette nav [data-selected="true"]{background:var(--sel);border-color:var(--ink-2)}.side-palette h2{margin:8px 12px 0}.palette-hint{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line)}
@media(max-width:759px){.side-palette{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:max(16px,env(safe-area-inset-top,0px)) 16px 24px;border:0;border-radius:0;overscroll-behavior:contain}}
.side-demo-grid{display:flex;flex-wrap:wrap;gap:40px}.side-demo{position:relative;box-sizing:border-box;width:var(--sw-side-size);padding:16px 12px 14px;border:1px solid var(--line);background:var(--side);display:flex;flex-direction:column;gap:16px;min-height:620px}
.side-demo .side-brand{display:flex;align-items:baseline;gap:8px;height:30px;padding:6px 10px 0}
.side-demo nav{display:flex;flex-direction:column;gap:2px}.side-demo .side-item{display:flex;align-items:center;gap:12px;min-height:36px;padding:0 10px;border:0;border-radius:9px;text-decoration:none;background:transparent;color:var(--ink-2);text-align:left}
.side-demo .side-item:hover{background:var(--hover);color:var(--ink)}.side-demo .side-item[aria-current="page"]{background:var(--sel);color:var(--ink)}
.side-demo a.side-team{min-height:46px;border:1px solid var(--line-2)}.side-demo .side-icon{flex-shrink:0}
.side-demo .side-account{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 10px 0}
/* Unsupported prototype actions keep their reason visible at phone widths. */
.sw button:disabled{white-space:normal;height:auto;min-height:44px;max-width:100%;overflow-wrap:anywhere}
.sw select{min-height:44px;min-width:100px;background:var(--bg);color:var(--ink)}
.sw select.field{border:1px solid var(--line-2);border-radius:10px;padding:0 12px}
.sw [data-phone-management] input,.sw [data-phone-management] textarea{box-sizing:border-box;width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line-2);border-radius:10px;padding:10px 12px;min-height:44px}
.phone-bottom .bn{display:flex!important;flex-direction:column;gap:4px;height:60px!important;font-size:13px!important}
.phone-bottom svg{width:20px;height:20px;flex-shrink:0}
.alliance-board [role="table"]{display:block!important;overflow-x:auto;max-width:100%;width:100%;scrollbar-color:var(--ink-3) var(--bg)}
.alliance-board [role="table"] [role="row"]{min-width:900px}
.alliance-board .sec>div{min-width:0;max-width:100%;flex-wrap:wrap}
.alliance-board input{max-width:100%}
@media(max-width:600px){
  .sw [aria-label="Team tabs"]{gap:8px!important;flex-wrap:nowrap!important;justify-content:space-between}
  .sw [aria-label="Team tabs"] .ptab{font-size:13px;white-space:nowrap;gap:3px}
  .sw [aria-label="Team tabs"] .ptab>span[aria-hidden]{margin-left:0!important;min-width:16px!important;padding:0 3px!important}
  .alliance-board>aside.side{display:none!important}
  .alliance-board>main{padding:24px 16px 64px!important;width:100%}
  .alliance-board .grid{display:flex;flex-direction:column;gap:28px}
  .alliance-board .grid>*{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
  .alliance-board .ex{flex-wrap:wrap}
  .alliance-board header{flex-wrap:wrap}
}
.board-team-nav{display:flex;flex-direction:column;gap:2px}
.board-team-nav a{display:flex;align-items:center;gap:12px;min-height:36px;padding:0 10px;border-radius:9px;text-decoration:none;color:var(--ink-2)}
.board-team-nav a:hover{background:var(--hover);color:var(--ink)}
.board-team-nav .side-fallback,nav[aria-label="Main"] a[href*="Alliances.dc.html"] .side-fallback{display:block}
/* Info tip (owner, 29 Oct): definitions and method notes sit behind an "i" next to the heading, shown on hover, focus or tap. */
/* doubled class: beats ".sw button{font:inherit}" */
:where(.board-tips-phone) .info-tip.info-tip{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;width:24px;height:24px;margin:-3px 0;padding:0;border:0;background:transparent;color:var(--ink-2);font-style:italic;font-weight:600;font-size:13px;line-height:1;font-family:inherit;letter-spacing:0;cursor:help;vertical-align:middle}
:where(.board-tips-phone) .info-tip::before{content:"i";position:absolute;inset:3px;display:grid;place-items:center;border:1px solid var(--line-3);border-radius:50%;transition:border-color .15s}
:where(.board-tips-phone) .info-tip:hover,:where(.board-tips-phone) .info-tip:focus-visible,:where(.board-tips-phone) .info-tip[data-open]{color:var(--ink)}:where(.board-tips-phone) .info-tip:hover::before,:where(.board-tips-phone) .info-tip:focus-visible::before,:where(.board-tips-phone) .info-tip[data-open]::before{border-color:var(--ink-2)}
:where(.board-tips-phone) .info-tip::after{content:attr(data-tip);position:absolute;left:-6px;top:calc(100% + 6px);width:max-content;max-width:min(340px,80vw);padding:10px 12px;border-radius:10px;background:var(--raised);border:1px solid var(--line-2);box-shadow:0 8px 24px var(--shadow);color:var(--ink);font-size:13px;font-style:normal;font-weight:400;line-height:1.5;text-align:left;white-space:normal;display:none;pointer-events:none;z-index:60}
:where(.board-tips-phone) .info-tip:hover::after,:where(.board-tips-phone) .info-tip:focus-visible::after,:where(.board-tips-phone) .info-tip[data-open]::after{display:block}
@media(max-width:760px){:where(.board-tips-phone) .info-tip.info-tip{width:44px;height:44px;margin:-13px -10px}:where(.board-tips-phone) .info-tip::before{inset:13px}:where(.board-tips-phone) .info-tip::after{left:4px}}

/* Phone frame: the S2Phone boards that carry board-phone-frame */
:where(.board-phone-frame).phone-board{width:100%!important;max-width:390px;min-height:100dvh!important;margin-inline:auto;box-sizing:border-box;display:flex;flex-direction:column}
:where(.board-phone-frame).phone-board>main{flex:1}
:where(.board-phone-frame).phone-board>.more-sheet{width:100%}
:where(.board-phone-frame).phone-board main{box-sizing:border-box;min-width:0}
:where(.board-phone-frame).phone-board a:focus-visible,:where(.board-phone-frame).phone-board button:focus-visible,:where(.board-phone-frame).phone-board input:focus-visible,:where(.board-phone-frame).phone-board select:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
:where(.board-phone-frame).phone-board [data-desktop]{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
:where(.board-phone-frame).phone-board .opt{padding-inline:6px;height:auto;min-height:44px}
:where(.board-phone-frame).phone-board input.field{box-sizing:border-box;width:100%;min-height:44px;font-size:16px}
:where(.board-phone-frame).phone-board label{min-width:0}
:where(.board-phone-frame).phone-board .chip{min-height:44px;box-sizing:border-box}
:where(.board-phone-frame).phone-board .sub{line-height:1.45}
:where(.board-phone-frame).phone-board a,:where(.board-phone-frame).phone-board button{touch-action:manipulation}

/* Team page: TeamBoard and S2PhoneTeam (no other markup carries .team-page) */
.team-page{display:flex;flex-direction:column;gap:48px}

/* ---------- Board CSS: the responsive rules that were copied into 3+ desktop boards (step 1b). Each board
   carries its own board-* class on its root; :where() adds no specificity, so each rule keeps the weight it
   had. The root is the board itself, so the .app rule is a compound (:where(...).app), not a descendant. ---------- */
:where(.board-member-home,.board-team,.board-v2-home,.board-v2-lords,.board-v2-me,.board-migrations,.board-v2-server,.board-v2-zone) .side .btn{box-sizing:border-box}
:where(.board-member-home,.board-v2-home,.board-v2-server) .heroes>div{padding-inline:16px!important;min-width:0}
:where(.board-member-home,.board-v2-home,.board-v2-server) .heroes [role="row"]{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center;gap:4px!important;min-height:72px!important}
:where(.board-member-home,.board-v2-home,.board-v2-server) .heroes [data-name]{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
@container main (max-width:1399.98px){
  :where(.board-member-home,.board-team,.board-v2-home,.board-migrations,.board-v2-server) .rail{position:static}
}
@container main (min-width:900px) and (max-width:1399.98px){
  :where(.board-member-home,.board-team,.board-v2-home,.board-migrations,.board-v2-server,.board-v2-zone) .grid>.md-6{grid-column:span 6!important}
}
@media (max-width:760px){
  :where(.board-member-home,.board-servers,.board-team,.board-v2-home,.board-v2-lord,.board-v2-me,.board-migrations,.board-v2-server,.board-v2-zone,.board-compare,.board-lord-history,.board-lord-lifetime).app{flex-direction:column}
  :where(.board-member-home,.board-servers,.board-team,.board-v2-home,.board-v2-lord,.board-v2-me,.board-migrations,.board-v2-server,.board-v2-zone) .side{flex-basis:auto!important;width:100%;border-right:0!important;border-bottom:1px solid var(--line)}
  :where(.board-member-home,.board-servers,.board-team,.board-v2-home,.board-v2-lord,.board-v2-me,.board-migrations,.board-v2-server,.board-v2-zone,.board-compare,.board-lord-history,.board-lord-lifetime) .side nav{flex-direction:row!important;flex-wrap:wrap}
  :where(.board-member-home,.board-servers,.board-team,.board-v2-home,.board-v2-lord,.board-v2-me,.board-migrations,.board-v2-server,.board-v2-zone,.board-compare,.board-lord-history,.board-lord-lifetime) .side nav>a{flex:1 1 130px}
  :where(.board-member-home,.board-servers,.board-team,.board-v2-home,.board-v2-lord,.board-v2-me,.board-migrations,.board-v2-server,.board-v2-zone,.board-compare,.board-lord-history,.board-lord-lifetime) .side nav>button{flex:1 1 130px}
  :where(.board-member-home,.board-servers,.board-team,.board-v2-home,.board-v2-lord,.board-v2-me,.board-migrations,.board-v2-server,.board-v2-zone) .side nav>.lbl{width:100%}
  :where(.board-member-home,.board-team,.board-v2-home,.board-v2-lord,.board-migrations,.board-v2-server,.board-v2-zone) .main{padding:24px 16px 48px!important}
  :where(.board-member-home,.board-v2-home,.board-v2-lord,.board-migrations,.board-v2-server,.board-v2-zone) .main .h1{font-size:clamp(28px,8vw,36px)!important;overflow-wrap:anywhere}
  :where(.board-member-home,.board-team,.board-v2-home,.board-v2-lord,.board-migrations,.board-v2-server,.board-v2-zone) .main header>div{min-width:0;flex-wrap:wrap}
  :where(.board-member-home,.board-team,.board-v2-home,.board-v2-lord,.board-migrations,.board-v2-server,.board-v2-zone) .rail>div{min-width:0;flex-wrap:wrap}
  :where(.board-member-home,.board-team,.board-v2-home,.board-v2-lord,.board-migrations,.board-v2-server,.board-v2-zone) .main .ex{flex-wrap:wrap;flex-basis:auto!important}
  :where(.board-member-home,.board-team,.board-v2-home,.board-v2-lord,.board-migrations,.board-v2-server,.board-v2-zone) .grid>div:not(.main-col){flex-wrap:wrap}
  :where(.board-member-home,.board-team,.board-v2-home,.board-v2-lord,.board-migrations,.board-v2-server,.board-v2-zone) .main .segs{max-width:100%;box-sizing:border-box}
  :where(.board-member-home,.board-team,.board-v2-home,.board-v2-lord,.board-migrations,.board-v2-server,.board-v2-zone) .main [role="tablist"]{flex-wrap:wrap;gap:12px!important}
  :where(.board-member-home,.board-team,.board-v2-home,.board-v2-lord,.board-migrations,.board-v2-server,.board-v2-zone) .main [aria-label="Profile"]{flex-wrap:wrap;gap:12px!important}
  :where(.board-member-home,.board-servers,.board-team,.board-v2-home,.board-v2-lord,.board-v2-me,.board-migrations,.board-v2-server,.board-v2-zone,.board-compare,.board-lord-history,.board-lord-lifetime) .btn{min-height:44px}
  :where(.board-member-home,.board-servers,.board-team,.board-v2-home,.board-v2-lord,.board-v2-me,.board-migrations,.board-v2-server,.board-v2-zone,.board-compare) .seg{min-height:44px}
  :where(.board-servers,.board-compare,.board-lord-history,.board-lord-lifetime) main{padding:24px 16px 48px!important}
  :where(.board-servers,.board-compare,.board-lord-history,.board-lord-lifetime) .grid{column-gap:0!important}
  :where(.board-compare,.board-lord-history,.board-lord-lifetime) .side{flex-basis:auto!important;width:100%;border-right:0!important}
}

/* ---------- Team shared elements (T2, 23 Nov 2026): one version each, reused by every Team page (DESIGN.md "One version per element") ---------- */
.sw{--t-fig-compact:32px;--neutral:var(--ink-3)}
/* .pop-panel: the one popover panel (Team Members Columns): attached under its button, raised, hairline border. Placement (left/right) is the page's. */
.pop-panel{position:absolute;top:100%;z-index:20;margin-top:var(--s-2);padding:var(--s-3);border:1px solid var(--line-2);border-radius:10px;background:var(--raised)}
.pop-panel[hidden]{display:none}
/* one open motion for every menu, popover and select list (owner 24 Nov): the .side-menu's 160 ms ease-out, from its control */
@media(prefers-reduced-motion:no-preference){.picker-list:not([hidden]),.pop-panel:not([hidden]){animation:sw-pop .16s ease-out}}
/* .hero.compact: 32px stat figure for dense Team rows (.hero 48px, .hero.dense 40px) */
.sw .hero.compact{font-size:var(--t-fig-compact)}
/* .data-table (+ .dense): the one table style for Team tables, a real <table>. Sortable heads are .sort-head buttons in a th
   with aria-sort (Site.sortTable). .sticky and .sticky-2 pin the first two columns; the page sets --sticky-left and --sticky-left-2. */
.data-table{width:100%;border-collapse:collapse;font-size:var(--t-body);color:var(--ink);font-variant-numeric:tabular-nums}
.data-table th,.data-table td{padding:10px 12px;text-align:left;vertical-align:middle;white-space:nowrap;border-top:1px solid var(--line);font-weight:400}
.data-table thead th{padding-top:0;border-top:0;font-size:var(--t-label);font-weight:600;color:var(--ink-2);vertical-align:bottom}
.data-table caption{caption-side:top;text-align:left;padding:0 0 8px}
.data-table .num{text-align:right}
/* the sort arrow is the head's ::after (the accessibility hit area is off on .sort-head, so the arrow is never positioned over the label).
   Number columns: the arrow goes left of the label, so the label keeps the numbers' right edge. */
.data-table .num .sort-head{flex-direction:row-reverse}
.data-table.dense th,.data-table.dense td{padding:6px 10px}
.data-table tbody tr:hover>*{background:var(--sel)}
.data-table .sort-head{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.data-table .sort-head:hover{color:var(--ink)}
.data-table th[aria-sort="ascending"] .sort-head::after{content:"↑"}
.data-table th[aria-sort="descending"] .sort-head::after{content:"↓"}
.data-table .sticky,.data-table .sticky-2{position:sticky;z-index:1;background:var(--bg)}
.data-table .sticky{left:var(--sticky-left,0)}
.data-table .sticky-2{left:var(--sticky-left-2,0)}
.data-table thead .sticky,.data-table thead .sticky-2{z-index:2}
/* .status (+ .good .warn .bad .neutral): 8px dot and its label in ink. The label always says the status; colour is never the only signal. */
.status{display:inline-flex;align-items:center;gap:var(--s-2);color:var(--ink);white-space:nowrap}
.status::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--neutral)}
.status.good::before{background:var(--good)}
.status.warn::before{background:var(--warn)}
.status.bad::before{background:var(--bad)}
.status.neutral::before{background:var(--neutral)}
/* .mark-behemoth: behemoth marker, a 10px diamond in --behemoth: its own hue (not a metric, team or status colour), 3:1 or better on every theme */
.sw{--behemoth:#ff4fd8}
.sw[data-theme="light"],[data-theme="light"] .sw{--behemoth:#a3127f}
.mark-behemoth{display:inline-block;flex:none;width:10px;height:10px;background:var(--behemoth);transform:rotate(45deg);vertical-align:middle}
/* .mark-battle: battle marker, a hollow 10px ring in the text ink: a shape, so it never reads as a metric colour */
.mark-battle{display:inline-block;flex:none;box-sizing:content-box;width:6px;height:6px;border:2px solid var(--ink);border-radius:50%;vertical-align:middle}

/* Notes and to-dos (TEAM-DESIGN 4.7): one row look for the Notes page and a player's officers' notes. Plain rows separated by hairlines; the page grid stays page-scoped. */
.notes-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.todo-row,.note-row{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid var(--line)}
.todo-check{display:flex;align-items:center;gap:12px}
.todo-meta,.note-meta{margin:0}
.note-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.note-text{margin:0;color:var(--ink)}
.note-actions{display:flex;flex-wrap:wrap;gap:8px}
.form-block{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--line-2);border-radius:10px}

/* ---------- Timeline (Lanes; KvK page): one date axis, one row per kind of event. Markers and chapter fills are ink tints, not
   metric colours (deaths, power, merits, healed and alliance help are metrics): shape carries the kind, colour only the state ---------- */
.sw{--tl-behemoth:var(--ink);--tl-pass:var(--ink);--tl-fort:var(--ink-2);--tl-other:var(--ink-3);
  --tl-done:color-mix(in srgb,var(--ink) 34%,transparent);--tl-now:var(--ink);--tl-coming:color-mix(in srgb,var(--ink) 12%,transparent);
  --tl-summary:repeating-linear-gradient(135deg,color-mix(in srgb,var(--ink) 30%,transparent) 0 6px,color-mix(in srgb,var(--ink) 12%,transparent) 6px 12px)}
.tl{position:relative;min-width:720px;padding-top:24px;font-size:var(--t-label)}
.tl-row{display:grid;grid-template-columns:132px minmax(0,1fr)}
.tl-lab{display:flex;align-items:center;height:44px;font-size:var(--t-label);font-weight:600;color:var(--ink-2);border-top:1px solid var(--line)}
.tl-lane{position:relative;height:44px;border-top:1px solid var(--line)}
.tl-week{position:absolute;top:0;bottom:0;width:1px;background:var(--line);pointer-events:none}
.tl-now{position:absolute;top:-8px;bottom:-8px;width:2px;background:var(--ink);pointer-events:none}
.tl-now span{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-weight:700;white-space:nowrap}
.tl-ch{position:absolute;top:10px;height:24px;min-width:6px;box-sizing:border-box;border-radius:4px;display:grid;place-items:center;overflow:hidden;
  white-space:nowrap;font-size:12px;font-weight:700;color:var(--ink);cursor:default}
.tl-ch.done{background:var(--tl-done)}
.tl-ch.coming{background:var(--tl-coming);border:1px solid var(--line-3)}
.tl-ch.now{background:var(--tl-now);color:var(--bg)}
.tl-ch.sum{background:var(--tl-summary)}
.tl-item{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;white-space:nowrap;cursor:default}
.tl-item.past{opacity:.45}
.tl-dot{display:block;flex:none;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--tl-behemoth)}
.tl-dot.fort{width:9px;height:9px;border-radius:0;background:var(--tl-fort);transform:rotate(45deg)}
.tl-dot.oth{background:none;border:1.5px solid var(--tl-other)}
.tl-dot.pass{width:14px;height:14px;margin-left:-7px;border-radius:3px;border:1.5px solid var(--tl-pass);background:none}
.tl-dot.pass.open{background:var(--tl-pass)}
.tl-lbl{margin-left:6px;font-size:var(--t-label);font-weight:600;color:var(--ink)}
.tl-ch:focus-visible,.tl-item:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.tl-axis{position:relative;height:24px;margin-top:6px;font-size:var(--t-label);color:var(--ink-2)}
.tl-tick{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.tl-tick.first{transform:none}
.tl-tick.end{transform:translateX(-100%)}
/* the hover card: one copy, shown at its anchor by placeHoverCard (site.js); the look is the info-tip bubble's */
.hover-card{position:fixed;z-index:50;width:max-content;max-width:min(340px,80vw);box-sizing:border-box;padding:12px 14px;border-radius:10px;
  background:var(--raised);border:1px solid var(--line-2);box-shadow:0 8px 24px var(--shadow);color:var(--ink);font-size:var(--t-body);line-height:1.45;pointer-events:none}
.hover-card[hidden]{display:none}
.hover-card strong{display:block;margin-bottom:4px;font-weight:600}
.hover-card p,.hover-card ul{margin:4px 0 0}
.hover-card ul{padding-left:18px}
.hover-card .hc-meta{font-size:var(--t-label);color:var(--ink-2)}
/* A member's rank cell reads "#34 of 140": wide enough for the text, on one line (Members, ONBOARDING-MEMBERS 6) */
.members-table .members-rank.own{width:auto;min-width:96px;white-space:nowrap}

/* ---------- Customisable Home (home-blocks.js): every Home board's blocks sit in this one grid. Half-width blocks pair up
   side by side on desktop; below 1100 px every block is full width (phones too). Order and on/off are set by home-blocks.js. ---------- */
.home-blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;align-items:start}
.home-blocks>*{min-width:0}
.home-blocks>[data-width="full"]{grid-column:1 / -1}
.home-blocks>[hidden]{display:none}
@media (max-width:1100px){.home-blocks{grid-template-columns:minmax(0,1fr)}.home-blocks>*{grid-column:1 / -1}}

/* ---------- Research tree: the tech node, its prerequisite lines and the info popover (Research board only) ----------
   .tech-tree is the scrolling box, .tech-node one tech, .tech-line one prerequisite edge (gold when the prerequisite has a
   level, solid, no glow), .tech-pop the info popover anchored to a node. The board sets each node's left/top from the
   game's panel coordinates; everything else here is the look. */
.sw .tech-tree{--tech-gold:#d6a53a;--tech-dim:#3a3d44;position:relative;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.sw .tech-stage{position:relative;user-select:none}
.sw .tech-lines{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
.sw .tech-line{fill:none}
.sw .tech-line.is-lit{stroke:var(--tech-gold);stroke-width:3;stroke-linecap:butt}
.sw .tech-line.is-dim{stroke:var(--tech-dim);stroke-width:2;stroke-linecap:butt}
.sw .tech-node{position:absolute;box-sizing:border-box;margin:0;padding:0;border:0;background:none;color:var(--ink);font:inherit;cursor:pointer;border-radius:8px}
.sw .tech-node:not(.is-locked):hover .tech-tile{filter:brightness(1.12)}
.sw .tech-node:focus-visible{outline:2px solid var(--ink-2);outline-offset:4px}
.sw .tech-node.is-open{outline:2px solid var(--ink-2);outline-offset:4px}
.sw .tech-node.is-path{outline:2px solid var(--ink);outline-offset:4px}
.sw .tech-tile{position:absolute;inset:0;border-radius:8px;transition:filter .15s ease-out}
.sw .tech-node.is-locked .tech-tile{filter:grayscale(1) brightness(.4)}
.sw .tech-bg,.sw .tech-ico,.sw .tech-frame{position:absolute;display:block;pointer-events:none}
.sw .tech-bg{inset:0;width:100%;height:100%;border-radius:8px;object-fit:cover}
.sw .tech-ico{left:12%;top:12%;width:76%;height:76%;object-fit:contain}
.sw .tech-frame{left:-37.2%;top:-37.2%;width:174.4%;height:174.4%}
.sw .tech-badge{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);padding:0 6px;border:1px solid var(--line-3);border-radius:5px;background:var(--bg);color:var(--ink);font-size:13px;font-weight:600;line-height:18px;white-space:nowrap}
.sw .tech-node.is-maxed .tech-badge{border-color:var(--tech-gold);font-weight:700}
.sw .tech-name{position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);width:156px;text-align:center;color:var(--ink);font-size:13px;font-weight:600;line-height:1.2;pointer-events:none}
.sw .tech-pop{position:absolute;z-index:5;box-sizing:border-box;width:340px;padding:var(--s-4);border:1px solid var(--line-3);border-radius:12px;background:var(--raised);color:var(--ink);font-size:14px;line-height:1.45;cursor:default}
.sw .tech-pop-title{margin:0;font-size:18px;font-weight:600;line-height:1.25}
.sw .tech-pop-state{margin:var(--s-1) 0 var(--s-3);color:var(--ink-2);font-size:13px;font-weight:600}
.sw .tech-pop-text{margin:0 0 var(--s-3)}
.sw .tech-pop-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px var(--s-4);margin:0 0 var(--s-3)}
.sw .tech-pop-facts dt{color:var(--ink-2);font-size:13px;font-weight:600;padding-top:1px}
.sw .tech-pop-facts dd{margin:0;font-variant-numeric:tabular-nums}
.sw .tech-pop-head{margin:var(--s-3) 0 var(--s-2);color:var(--ink-2);font-size:13px;font-weight:600}
.sw .tech-pop-list{display:grid;gap:var(--s-1);margin:0;padding:0;list-style:none}
.sw .tech-pop-list li{display:flex;justify-content:space-between;align-items:center;gap:var(--s-3)}
.sw .tech-pop-list .btn{height:30px;padding:0 10px;font-size:14px}
.sw .tech-pop-met{color:var(--ink-2);font-size:13px;white-space:nowrap}
.sw .tech-pop-close{position:absolute;right:var(--s-2);top:var(--s-2)}
/* the level stepper in the info (every width): − and + are the same raise/lower as Ctrl+click */
.sw .tech-pop-step{display:flex;align-items:center;gap:var(--s-3);margin:0 0 var(--s-3)}
.sw .tech-pop-lvl{min-width:84px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums}
.sw .tech-step{width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.sw .tech-step:disabled{height:44px;min-height:44px;opacity:.4;cursor:default}
.sw .tech-step svg{pointer-events:none}
/* on a phone the info is a bottom sheet over the page (the board attaches it to its root, not to the node) */
.sw .tech-pop.is-sheet{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:50;width:auto;max-height:72dvh;overflow:auto;box-sizing:border-box;padding:var(--s-3) var(--s-4) max(var(--s-4),env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line-3);border-radius:20px 20px 0 0;font-size:15px}
.sw .tech-pop.is-sheet .tech-pop-close{top:var(--s-3);right:var(--s-4)}
.sw .tech-sheet-grip{display:block;width:36px;height:4px;margin:0 auto var(--s-3);border-radius:4px;background:var(--ink-2)}
@media (prefers-reduced-motion: no-preference){.sw .tech-pop.is-sheet.is-enter{animation:tech-sheet-in .2s ease-out}}
@keyframes tech-sheet-in{from{transform:translateY(100%)}to{transform:none}}
/* calculator summary bar (Research, Buildings): desktop keeps the side panel as it is; on a phone the board's side panel
   folds into this bar (the main time and Show totals), above the bottom bar. The board's own CSS places it. */
.calc-bar{display:none;align-items:center;justify-content:space-between;gap:var(--s-3);box-sizing:border-box;min-height:56px;padding:var(--s-2) var(--s-4);border-top:1px solid var(--line-2);background:var(--raised)}
.calc-bar-fig{display:grid;gap:2px;min-width:0}
.sw .calc-bar .hero.compact{font-size:20px;line-height:1.1;white-space:nowrap}
@media (max-width:900px){.calc-bar{display:flex}}
/* research board motion: 150-200 ms ease-out; the Animations setting turns it all off (prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference){
.sw .tech-node{outline:2px solid transparent;transition:outline-color .2s ease-out}
.sw .tech-line{transition:stroke .2s ease-out}
.sw .tech-tile{transition:filter .2s ease-out}
.sw .tech-node.is-bump .tech-badge{animation:tech-bump .2s ease-out}
.sw .tech-pop.is-enter{animation:tech-pop-in .15s ease-out}
.sw .tech-pop.is-leave{animation:tech-pop-out .15s ease-out forwards}
.sw .tech-stage.is-fade{animation:tech-fade .15s ease-out}
@keyframes tech-bump{0%{transform:translateX(-50%) scale(1.35)}100%{transform:translateX(-50%) scale(1)}}
@keyframes tech-pop-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@keyframes tech-pop-out{to{opacity:0;transform:scale(.96)}}
@keyframes tech-fade{from{opacity:.25}to{opacity:1}}
}
