/* Layout: navy crest band, then one calm reading column; the calendar is home. Dark-first, after the guild crest; amber is reserved for SR bonus numbers. */
:root {
  color-scheme: dark;
  --bg: #0a1222; --surface: #101c33; --surface-2: #16263f; --line: #233657; --line-soft: #1a2b48;
  --fg: #e9eef6; --muted: #9aabc6; --faint: #8091b3;
  --accent: #9fc2ff; --accent-ink: #0a1222; --accent-soft: rgba(159, 194, 255, .13);
  --ember: #f2b872; --ember-soft: rgba(242, 184, 114, .14);
  --good: #7fd1a2; --good-soft: rgba(127, 209, 162, .13);
  --warn: #ecc867; --warn-soft: rgba(236, 200, 103, .14);
  --crit: #f08a80; --crit-soft: rgba(240, 138, 128, .14);
  --band: #0f2147; --band-2: #142b5c; --band-fg: #f1f5fb; --band-muted: #a9bbd9; --band-line: #2a4377;
  --c-warrior: #C69B6D; --c-mage: #3FC7EB; --c-priest: #F4F4F4; --c-rogue: #FFF468; --c-druid: #FF7C0A; --c-hunter: #AAD372; --c-warlock: #8788EE; --c-paladin: #F48CBA; --c-shaman: #2D8CFF;
  --on-raid: #10131a; --r-hs: #f08a5d; --r-ony: #c3a6ff; --r-bd: #6fa8dc;
  --q-common: #f2f2f2; --q-uncommon: #4fdc5c; --q-rare: #4da3ff; --q-epic: #c084fc; --q-legendary: #ff9f45; --bonus-bg: #e4ebf7; --bonus-fg: #0d1a33;
  --fillmix: 42%; --ts: 0 1px 2px rgba(4, 8, 18, .9);
  --fillmix-d: 78%; --ovmix: 62%; --r-zg: #3fb6c9;
  --hl-fg: #ffe14d; --tick-mix: #ffffff; --tick-amt: 24%;
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f1f4f9; --surface: #ffffff; --surface-2: #eef2f8; --line: #cdd7e6; --line-soft: #e1e7f0;
    --fg: #0f1b31; --muted: #4c5d7c; --faint: #5e6d87;
    --accent: #1d4f9e; --accent-ink: #ffffff; --accent-soft: rgba(29, 79, 158, .09);
    --ember: #a0570f; --ember-soft: rgba(160, 87, 15, .10);
    --good: #1d7547; --good-soft: rgba(29, 117, 71, .10);
    --warn: #8a6200; --warn-soft: rgba(138, 98, 0, .10);
    --crit: #b0372d; --crit-soft: rgba(176, 55, 45, .10);
    --band: #163463; --band-2: #1c3f78; --band-fg: #f4f7fc; --band-muted: #b7c7e2; --band-line: #2d4c82;
    --c-warrior: #8a5a2b; --c-mage: #0b7499; --c-priest: #5d6575; --c-rogue: #8a7400; --c-druid: #c05600; --c-hunter: #4c7a1c; --c-warlock: #5354b8; --c-paladin: #b0457a; --c-shaman: #0a5bc0;
    --on-raid: #ffffff; --r-hs: #b4471c; --r-ony: #6b47b8; --r-bd: #2f6aa3;
    --q-common: #3b4252; --q-uncommon: #15803d; --q-rare: #1d4ed8; --q-epic: #7e22ce; --q-legendary: #b45309; --bonus-bg: #163463; --bonus-fg: #ffffff;
    --fillmix: 30%; --ts: 0 0 3px rgba(255, 255, 255, .95), 0 0 1px rgba(255, 255, 255, 1);
    --fillmix-d: 62%; --ovmix: 45%; --r-zg: #0e7490;
    --hl-fg: #946f00; --tick-mix: #000000; --tick-amt: 34%;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f4f9; --surface: #ffffff; --surface-2: #eef2f8; --line: #cdd7e6; --line-soft: #e1e7f0;
  --fg: #0f1b31; --muted: #4c5d7c; --faint: #5e6d87;
  --accent: #1d4f9e; --accent-ink: #ffffff; --accent-soft: rgba(29, 79, 158, .09);
  --ember: #a0570f; --ember-soft: rgba(160, 87, 15, .10);
  --good: #1d7547; --good-soft: rgba(29, 117, 71, .10);
  --warn: #8a6200; --warn-soft: rgba(138, 98, 0, .10);
  --crit: #b0372d; --crit-soft: rgba(176, 55, 45, .10);
  --band: #163463; --band-2: #1c3f78; --band-fg: #f4f7fc; --band-muted: #b7c7e2; --band-line: #2d4c82;
  --c-warrior: #8a5a2b; --c-mage: #0b7499; --c-priest: #5d6575; --c-rogue: #8a7400; --c-druid: #c05600; --c-hunter: #4c7a1c; --c-warlock: #5354b8; --c-paladin: #b0457a; --c-shaman: #0a5bc0;
  --on-raid: #ffffff; --r-hs: #b4471c; --r-ony: #6b47b8; --r-bd: #2f6aa3;
    --q-common: #3b4252; --q-uncommon: #15803d; --q-rare: #1d4ed8; --q-epic: #7e22ce; --q-legendary: #b45309; --bonus-bg: #163463; --bonus-fg: #ffffff;
    --fillmix: 30%; --ts: 0 0 3px rgba(255, 255, 255, .95), 0 0 1px rgba(255, 255, 255, 1);
    --fillmix-d: 62%; --ovmix: 45%; --r-zg: #0e7490;
    --hl-fg: #946f00; --tick-mix: #000000; --tick-amt: 34%;
}

/* ===== Night parchment, site-wide: navy stone frames, slate tiles that sit quietly on the navy, brass trim, cream ink. Umber plates stay on the calendar's paper. ===== */
html.theme-night:root {
  color-scheme: dark;
  --bg: #1c2538; --surface: #0e1626; --surface-2: #1c2538; --line: #384660; --line-soft: #243049;
  --fg: #f1e8d4; --muted: #c2b496; --faint: #9c8f74;
  --accent: #e8cf8f; --accent-ink: #1a1208; --accent-soft: rgba(232, 207, 143, .13);
  --ember: #f2b872; --ember-soft: rgba(242, 184, 114, .14);
  --good: #8fe0a8; --good-soft: rgba(143, 224, 168, .13);
  --warn: #ecc867; --warn-soft: rgba(236, 200, 103, .14);
  --crit: #ff9a8a; --crit-soft: rgba(255, 154, 138, .14);
  --band: #0a1220; --band-2: #111d33; --band-fg: #efe3c4; --band-muted: #b8ab8f; --band-line: #7a6a45;
  --c-warrior: #C69B6D; --c-mage: #3FC7EB; --c-priest: #F4F4F4; --c-rogue: #FFF468; --c-druid: #FF7C0A; --c-hunter: #AAD372; --c-warlock: #8788EE; --c-paladin: #F48CBA; --c-shaman: #2D8CFF;
  --on-raid: #10131a; --r-hs: #f08a5d; --r-ony: #c3a6ff; --r-bd: #6fa8dc; --r-zg: #3fb6c9;
  --q-common: #f6f1e6; --q-uncommon: #5fe06b; --q-rare: #58a8ff; --q-epic: #c084fc; --q-legendary: #ff9f45; --bonus-bg: #eadfc4; --bonus-fg: #2a1d0c;
  --fillmix: 42%; --fillmix-d: 78%; --ovmix: 62%; --ts: 0 1px 2px rgba(0, 0, 0, .9);
  --hl-fg: #ffe14d; --tick-mix: #ffffff; --tick-amt: 24%;
  --nt-frame: #0f1828; --nt-frame-2: #0a111e; --nt-edge: #2b3b5a; --nt-brass: #c9a766; --nt-brass-hi: #e8cf8f; --nt-brass-edge: #9c8656; --nt-title: #efe3c4;
}
html.theme-night body { background-color: #070b14;
  background-image: radial-gradient(ellipse at 50% -10%, rgba(40, 62, 110, .35), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .5), transparent 60%); background-attachment: fixed; }
html.theme-night .band { border-bottom: 1px solid var(--band-line); box-shadow: 0 1px 0 #03060c, 0 4px 14px rgba(0, 0, 0, .45); }
html.theme-night .brand-name { color: var(--nt-title); text-shadow: 0 1px 2px #000; }
html.theme-night .nav button[aria-current="page"] { color: var(--nt-brass-hi); border-bottom-color: var(--nt-brass-hi); }
html.theme-night .demo-strip { border-bottom-color: #1a2640; }
html.theme-night .demo-strip select { background: var(--nt-frame); border-color: var(--nt-edge); }
/* frames */
html.theme-night .card:not(.calcard), html.theme-night details.more {
  background: linear-gradient(180deg, var(--nt-frame), var(--nt-frame-2)); border-color: var(--nt-edge);
  box-shadow: inset 0 0 0 1px #03060c, inset 0 0 28px rgba(0, 0, 0, .45), 0 6px 18px rgba(0, 0, 0, .3); }
html.theme-night details.more.admin { border-color: var(--nt-brass-edge); }
html.theme-night .title, html.theme-night .h2 { color: var(--nt-title); text-shadow: 0 1px 2px #000; }
html.theme-night .eyebrow, html.theme-night :where(#app) th, html.theme-night .rslot .lbl, html.theme-night .rcol-h { color: var(--nt-brass); }
html.theme-night :where(#app) th { border-bottom-color: #3a3a40; }
/* slate tiles: every inset tile, input and slot */
html.theme-night .rcard, html.theme-night .orow, html.theme-night .rslot, html.theme-night .datebox, html.theme-night .ccol, html.theme-night .qcard, html.theme-night .formula,
html.theme-night select.in, html.theme-night input.in, html.theme-night textarea.in { border-color: var(--line); box-shadow: inset 0 0 10px rgba(0, 0, 0, .3); }
html.theme-night .rcard:hover, html.theme-night .orow:hover { border-color: var(--nt-brass-hi); }
html.theme-night select.in, html.theme-night input.in, html.theme-night textarea.in { background: #121a2a; }
/* text on the slate tiles sits nearer to white than the cream used on the frames; the raid cards in Your raids and Open for signup brightest of all */
html.theme-night .rslot, html.theme-night .ccol, html.theme-night .qcard, html.theme-night .formula,
html.theme-night select.in, html.theme-night input.in, html.theme-night textarea.in { --fg: #f8f6f1; --muted: #cfc8b9; color: var(--fg); }
html.theme-night .rcard, html.theme-night .orow { --fg: #faf8f3; --muted: #d2cbbd; --faint: #a69a82; color: var(--fg); }
html.theme-night .rcard .datebox .dd { color: var(--fg); }
/* +SR bubbles take the colour of the text around them */
html.theme-night .bn:not(.zero) { background: var(--fg); color: var(--bonus-fg); }
html.theme-night { accent-color: #e8cf8f; }
html.theme-night .demo-strip select { color-scheme: dark; }
html.theme-night .datebox .dd { color: var(--nt-title); }
html.theme-night .opens, html.theme-night .lkstrip { border-top-color: #243049; }
/* buttons: navy plates with brass edges, primary in brass */
html.theme-night .btn { background: linear-gradient(180deg, #22355a, #101b31); border-color: var(--nt-brass-edge); color: var(--nt-title); box-shadow: inset 0 1px 0 rgba(255, 220, 150, .15); }
html.theme-night .btn:hover { border-color: var(--nt-brass-hi); filter: brightness(1.12); }
html.theme-night .btn.primary { background: linear-gradient(180deg, #f0d99d, #c9a766); color: var(--accent-ink); border-color: #f0d99d; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
html.theme-night .btn.ghost { background: none; border-color: var(--line); box-shadow: none; }
html.theme-night .btn.danger { color: var(--crit); }
html.theme-night .rc-clear { background: var(--nt-frame); border-color: var(--nt-brass-edge); color: var(--nt-title); }
html.theme-night .msg.info { border: 1px solid rgba(232, 207, 143, .22); }
html.theme-night .toast { background: #eadfc4; color: #2a1d0c; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
/* Parchment calendar: a carved frame, weekday tabs and aged-paper day tiles, in the spirit of an in-game calendar.
   Every colour is a token so the Night variant can re-tint it without touching the layout. */
.calcard.parch {
  --pa-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32 0 0 0 0 .2 0 0 0 0 .07 0 0 0 .42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --pa-frame: #241b12; --pa-frame-2: #15100a; --pa-edge: #5c4730; --pa-frame-ink: #0b0805; --pa-text: #f2e4c4;
  --pa-gold: #e2b55a; --pa-gold-hi: #ffd977;
  --pa-plate-1: #3d2e1e; --pa-plate-2: #1d150d; --pa-plate-edge: #9a7741; --pa-title: #fbecc0;
  --pa-btn-1: #6a4516; --pa-btn-2: #2d1c08; --pa-btn-edge: #c8963f; --pa-btn-fg: #ffd977;
  --pa-grid: #110c07; --pa-grid-edge: #4a3a26;
  --pa-tab-1: #d07b22; --pa-tab-2: #8c430e; --pa-tab-edge: #3c1f06; --pa-tab-fg: #fff0c6; --pa-tab-shadow: #2a1200; --pa-tab-hi: rgba(255, 225, 160, .5);
  --pa-paper: #d8b46f; --pa-paper-old: #c9a35f; --pa-paper-today: #e6c27c; --pa-hi: rgba(255, 242, 205, .5); --pa-lo: rgba(110, 62, 16, .32);
  --pa-tile-shadow: rgba(92, 52, 10, .55); --pa-tile-edge: rgba(62, 36, 10, .55); --pa-void: #34271a;
  --pa-num: #fff6df; --pa-num-old: #f0e2bf; --pa-outline: #2a1805; --pa-label: #3a2408;
  --pa-today-ring: #ffd977; --pa-today-glow: rgba(255, 196, 60, .6); --pa-today-halo: rgba(255, 200, 70, .55); --pa-today-num-bg: #2b1a07; --pa-today-num: #ffd977;
  --pa-legend: #9fe0b0;
  --pa-plate: #2b1f12; --pa-c-fg: #f6eacf; --pa-c-muted: #b9a684; --pa-c-faint: #9a876a; --pa-c-line: #6a5438; --pa-c-accent: #ffd36b; --pa-c-warn: #ffd36b; --pa-c-shadow: rgba(40, 20, 0, .55);
  --pa-fade-fg: #3e2a12; --pa-fade-muted: #5e4627; --pa-fade-bg: rgba(92, 60, 24, .2); --pa-fade-hover: rgba(92, 60, 24, .32); --pa-fade-edge: rgba(80, 50, 18, .35);
  --pa-fade-edge-hi: rgba(80, 50, 18, .5); --pa-fade-rc: #6b5233; --pa-fade-stripe: rgba(80, 50, 18, .18); --pa-fade-outline: #241404;
  background: linear-gradient(180deg, var(--pa-frame), var(--pa-frame-2)); border: 1px solid var(--pa-edge);
  box-shadow: inset 0 0 0 1px var(--pa-frame-ink), inset 0 0 28px rgba(0, 0, 0, .55), 0 6px 18px rgba(0, 0, 0, .35); color: var(--pa-text);
}
/* Night: the same materials after dark. Navy stone and slate tabs from the guild colours, tea-dark vellum, umber event plates close in hue to the paper, brass trim, a brass-lit today */
.calcard.parch.night {
  --pa-frame: #0e1626; --pa-frame-2: #070b14; --pa-edge: #2b3b5a; --pa-frame-ink: #03060c; --pa-text: #e6dcc4;
  --pa-gold: #c9a766; --pa-gold-hi: #e8cf8f;
  --pa-plate-1: #1b2a45; --pa-plate-2: #0d1628; --pa-plate-edge: #7a6a45; --pa-title: #efe3c4;
  --pa-btn-1: #22355a; --pa-btn-2: #101b31; --pa-btn-edge: #9c8656; --pa-btn-fg: #e8cf8f;
  --pa-grid: #05080f; --pa-grid-edge: #1f2d47;
  --pa-tab-1: #223f74; --pa-tab-2: #13264b; --pa-tab-edge: #07112a; --pa-tab-fg: #eadfc3; --pa-tab-shadow: #040a18; --pa-tab-hi: rgba(180, 205, 255, .22);
  --pa-paper: #574a37; --pa-paper-old: #493e2f; --pa-paper-today: #625440; --pa-hi: rgba(255, 236, 196, .13); --pa-lo: rgba(8, 14, 30, .38);
  --pa-tile-shadow: rgba(4, 8, 18, .62); --pa-tile-edge: rgba(0, 0, 0, .5); --pa-void: #111827;
  --pa-num: #f3e8cf; --pa-num-old: #c9bb9b; --pa-outline: #0b0f18; --pa-label: #e8cf8f;
  --pa-today-ring: #e8cf8f; --pa-today-glow: rgba(232, 207, 143, .28); --pa-today-halo: rgba(232, 207, 143, .35); --pa-today-num-bg: #e8cf8f; --pa-today-num: #1a1208;
  --pa-legend: #7fd1a2;
  --pa-plate: #3a2f21; --pa-c-fg: #faf8f3; --pa-c-muted: #d2cbbd; --pa-c-faint: #a69a82; --pa-c-line: #55483a; --pa-c-accent: #e8cf8f; --pa-c-warn: #ecc867; --pa-c-shadow: rgba(0, 0, 0, .5);
  --pa-fade-fg: #d3c6a6; --pa-fade-muted: #ab9c7c; --pa-fade-bg: rgba(0, 0, 0, .2); --pa-fade-hover: rgba(0, 0, 0, .3); --pa-fade-edge: rgba(255, 240, 210, .12);
  --pa-fade-edge-hi: #e8cf8f; --pa-fade-rc: #6d6350; --pa-fade-stripe: rgba(255, 240, 210, .07); --pa-fade-outline: #0b0f18;
}
.calcard.parch .cal-head { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 10px; }
.calcard.parch .cal-head > * { grid-row: 1; }
.calcard.parch .cal-head [data-d="-1"] { grid-column: 2; }
.calcard.parch .cal-head .h2 { grid-column: 3; }
.calcard.parch .cal-head [data-d="1"] { grid-column: 4; }
.calcard.parch .cal-head [data-d="0"] { grid-column: 1; justify-self: start; color: var(--pa-gold-hi); }
.calcard.parch .cal-head .legend { grid-column: 5; justify-self: end; }
.calcard.parch .cal-head .h2 { display: flex; flex-direction: column; align-items: center; min-width: 10.5em; margin: 0; padding: 5px 24px 4px; line-height: 1.05;
  font-family: var(--font-display); font-weight: 700; color: var(--pa-title); text-shadow: 0 1px 2px #000; letter-spacing: .04em;
  background: linear-gradient(180deg, var(--pa-plate-1), var(--pa-plate-2)); border: 1px solid var(--pa-plate-edge); border-radius: 6px; box-shadow: inset 0 0 0 1px #000, inset 0 1px 0 rgba(255, 220, 150, .15), 0 2px 4px rgba(0, 0, 0, .5); }
.calcard.parch .cal-head .yr { font-size: 11px; font-weight: 600; letter-spacing: .28em; color: var(--pa-gold); margin-top: 2px; }
.calcard.parch .cal-head .btn.cal-nav { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: var(--pa-btn-fg);
  background: linear-gradient(180deg, var(--pa-btn-1), var(--pa-btn-2)); border: 1px solid var(--pa-btn-edge); border-radius: 5px; box-shadow: inset 0 0 0 1px #000, inset 0 1px 0 rgba(255, 220, 150, .3); }
.calcard.parch .cal-head .btn.cal-nav:hover { filter: brightness(1.2); }
.calcard.parch .legend span { color: var(--pa-legend) !important; }
.calcard.parch .cal { background: var(--pa-grid); gap: 4px; padding: 4px; border: 1px solid var(--pa-grid-edge); border-radius: 6px; box-shadow: inset 0 0 0 1px #000; }
.calcard.parch .cal .dow { text-align: center; padding: 5px 4px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: none;
  color: var(--pa-tab-fg); text-shadow: 0 1px 1px var(--pa-tab-shadow); background: linear-gradient(180deg, var(--pa-tab-1), var(--pa-tab-2)); border: 1px solid var(--pa-tab-edge); border-radius: 4px 4px 1px 1px; box-shadow: inset 0 1px 0 var(--pa-tab-hi); }
.calcard.parch .cal .day { border-radius: 3px; background-color: var(--pa-paper);
  background-image: var(--pa-noise), radial-gradient(ellipse at 28% 22%, var(--pa-hi), transparent 62%), radial-gradient(ellipse at 82% 88%, var(--pa-lo), transparent 58%);
  box-shadow: inset 0 0 12px var(--pa-tile-shadow), inset 0 0 0 1px var(--pa-tile-edge); }
.calcard.parch .cal .day.past { background-color: var(--pa-paper-old); }
.calcard.parch .cal .day.out { background-color: var(--pa-void); background-image: var(--pa-noise); box-shadow: inset 0 0 14px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(0, 0, 0, .6); }
.calcard.parch .day .dnum { background: none; color: var(--pa-num); font-weight: 700; text-shadow: 0 0 2px var(--pa-outline), 0 1px 1px var(--pa-outline), 1px 0 1px var(--pa-outline), -1px 0 1px var(--pa-outline); }
.calcard.parch .day.past .dnum { color: var(--pa-num-old); opacity: .85; }
.calcard.parch .cal .day.today { background-color: var(--pa-paper-today); box-shadow: inset 0 0 0 2px var(--pa-today-ring), inset 0 0 16px var(--pa-today-glow), 0 0 10px var(--pa-today-halo); }
.calcard.parch .day.today .dnum { background: var(--pa-today-num-bg); color: var(--pa-today-num); text-shadow: none; }
.calcard.parch .day .tt { color: var(--pa-label); font-weight: 700; }
/* event plates on the paper keep a dark palette so their states read the same; the plate is solid so the queue strip matches it */
.calcard.parch .chip, .calcard.parch .agenda {
  --surface-2: var(--pa-plate); --fg: var(--pa-c-fg); --muted: var(--pa-c-muted); --faint: var(--pa-c-faint); --line: var(--pa-c-line); --line-soft: var(--pa-c-line);
  --accent: var(--pa-c-accent); --good: #8fe0a8; --warn: var(--pa-c-warn); --crit: #ff9a8a;
  --r-hs: #f08a5d; --r-ony: #c3a6ff; --r-bd: #6fa8dc; --r-zg: #3fb6c9;
  --fillmix: 42%; --fillmix-d: 78%; --ovmix: 62%; --ts: 0 1px 2px rgba(0, 0, 0, .9); --tick-mix: #ffffff; --tick-amt: 24%; --bg: var(--pa-plate); --surface: var(--pa-plate);
}
.calcard.parch .chip { border-radius: 4px; box-shadow: 0 1px 2px var(--pa-c-shadow); }
.calcard.parch .agenda { padding: 10px; border-radius: 6px; background-color: var(--pa-paper);
  background-image: var(--pa-noise), radial-gradient(ellipse at 30% 10%, var(--pa-hi), transparent 60%);
  box-shadow: inset 0 0 14px var(--pa-tile-shadow), inset 0 0 0 1px var(--pa-tile-edge); }
.calcard.parch .agenda .eyebrow { color: var(--pa-label); font-weight: 700; }
/* finished and overdue entries read as worn ink on the paper; overdue keeps its bright status text */
.calcard.parch .chip.past, .calcard.parch .chip.lockedout, .calcard.parch .chip.cancelled, .calcard.parch .chip.overdue {
  opacity: 1; filter: none; --ts: none; --fg: var(--pa-fade-fg); --muted: var(--pa-fade-muted); background-color: var(--pa-fade-bg); box-shadow: inset 0 0 0 1px var(--pa-fade-edge);
  border-color: transparent; border-left-color: color-mix(in srgb, var(--rc) 45%, var(--pa-fade-rc));
  --rcf: color-mix(in srgb, color-mix(in srgb, var(--rc) 55%, var(--pa-fade-rc)) 34%, transparent); } /* the attendance fill stays, worn like the rest of the plate */
.calcard.parch .chip.cancelled { background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--pa-fade-stripe) 6px 8px), linear-gradient(to right, var(--rcf) var(--pct, 0%), transparent var(--pct, 0%)); }
.calcard.parch .chip.overdue .m { text-shadow: 0 0 2px var(--pa-fade-outline), 0 1px 1px var(--pa-fade-outline), 1px 0 1px var(--pa-fade-outline), -1px 0 1px var(--pa-fade-outline); }
.calcard.parch .chip.past:hover, .calcard.parch .chip.lockedout:hover, .calcard.parch .chip.cancelled:hover, .calcard.parch .chip.overdue:hover { background-color: var(--pa-fade-hover); border-color: var(--pa-fade-edge-hi); border-left-color: var(--rc); }
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.45; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 66ch; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { background: linear-gradient(180deg, var(--band-2), var(--band)); color: var(--band-fg); border-bottom: 1px solid var(--band-line); }
.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 12px 4px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-align: left; }
.brand img { width: 54px; height: 54px; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: .04em; line-height: 1.1; }
.brand-sub { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--band-muted); }
.me { position: relative; text-align: right; line-height: 1.25; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
/* top right: the character (it opens a list of the account's characters, names only) and @discord (My character), with the
   class and rank under the name and how many characters under @discord */
.meg { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: end; gap: 1px 4px; }
.mem { position: relative; min-width: 0; }
.mem > summary { list-style: none; }
.mem > summary::-webkit-details-marker { display: none; }
.mebtn { display: flex; align-items: center; gap: 6px; max-width: 300px; padding: 4px 8px 4px 10px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; user-select: none; }
.mebtn:hover, .mem[open] > .mebtn { border-color: var(--band-line); background: rgba(255, 255, 255, .05); }
.mebtn:focus-visible, .meacct:focus-visible { outline: 2px solid var(--band-fg); outline-offset: 2px; }
.meb-n { font-weight: 700; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meb-first { display: none; font-weight: 700; font-size: 16px; }
.meb-caret { width: 13px; height: 13px; color: var(--band-muted); flex: none; transition: transform .15s ease; }
.mem[open] .meb-caret { transform: rotate(180deg); }
.meacct { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 3px 10px; margin-right: 0; border: 1px solid var(--band-line); border-radius: 10px; background: none; color: var(--band-fg); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.meacct:hover { border-color: var(--band-fg); background: rgba(255, 255, 255, .06); }
html.theme-night .meacct { color: var(--nt-brass-hi); border-color: var(--nt-brass-edge); } /* outlined: it's a button (My character) */
html.theme-night .meacct:hover { border-color: var(--nt-brass-hi); }
.meacct .nbadge { margin-left: 0; }
.meb-d { justify-self: start; padding-left: 11px; font-size: 13px; color: var(--band-muted); text-align: left; white-space: nowrap; }
.meb-c { justify-self: end; font-size: 13px; color: var(--band-muted); text-align: right; white-space: nowrap; }
.mp { position: absolute; right: -8px; top: calc(100% + 6px); z-index: 60; width: 340px; max-width: calc(100vw - 24px); text-align: left; line-height: 1.35;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); padding: 4px 0; }
html.theme-night .mp { background: linear-gradient(180deg, var(--nt-frame), var(--nt-frame-2)); border-color: var(--nt-edge); }
.mem .mem-p { left: 0; right: auto; width: auto; min-width: 220px; padding: 6px; } /* names only, like the one on My character */
.mp-chars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-char { width: 100%; display: flex; align-items: baseline; gap: 8px; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.mp-char:hover, .mp-char:focus-visible { background: var(--accent-soft); outline: none; }
.mp-char.cur { background: var(--me-bg); box-shadow: inset 3px 0 0 var(--me-edge); cursor: default; }
.mp-cn { font-weight: 700; }
@media (max-width: 600px) {
  .top { flex-wrap: nowrap; gap: 10px; }
  .brand { min-width: 0; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 19px; }
  .brand-sub { display: none; }
  .meb-n, .meb-d, .meb-c, .me .dlink { display: none; }
  .meb-first { display: inline; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .meg { grid-template-columns: auto; justify-items: end; gap: 2px; }
  .mebtn { padding: 4px 8px; margin-right: -8px; border-color: var(--band-line); }
  .meacct { font-size: 13px; font-weight: 600; padding: 1px 8px; margin-right: 0; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; display: block; }
  .mem .mem-p { left: auto; right: -8px; max-width: calc(100vw - 24px); }
  .me-time .tmode { margin-top: 2px; }
  .me-time .tm-x { display: none; }
  .me-time .tmode button { white-space: nowrap; padding: 1px 8px; }
}
.nav { display: flex; gap: 2px; overflow-x: auto; }
.nav button { background: none; border: 0; color: var(--band-muted); padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-size: 16px; }
.nav button[aria-current="page"] { color: var(--band-fg); border-bottom-color: var(--band-fg); }
.nav button:hover { color: var(--band-fg); }
.nav .sep { width: 1px; background: var(--band-line); margin: 10px 6px; flex: none; }
.nav .adm { font-size: 14px; }

.demo-strip { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.demo-strip .wrap { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; padding-block: 8px; }
.demo-strip b { color: var(--fg); font-weight: 500; }
.demo-strip .dsg { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; } /* a label stays with its list when the strip wraps */
.demo-strip select { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }

main.wrap { padding-block: 28px 72px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.title { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: .02em; line-height: 1.15; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: .02em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 15px; }
.tiny { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.back { align-self: flex-start; }
/* raid page header: what the raid is on the left, how it stands on the right */
.rtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn.back { gap: 4px; padding-left: 10px; }
.btn.back .chev { font-size: 1.2em; line-height: 1; margin-top: -2px; }
.rhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 28px; align-items: end; }
.rhead .rh-l { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rhead .rh-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.rhead .spots { font-size: 20px; line-height: 1.2; white-space: nowrap; }
.rhead .spots b { font-family: var(--font-mono); font-weight: 600; }
@media (max-width: 640px) { .rhead { grid-template-columns: minmax(0, 1fr); } .rhead .rh-r { align-items: flex-start; text-align: left; } }
/* Who's going: role, then class, then each raider with their reserves */
.wlist { display: flex; flex-direction: column; gap: 14px; }
.wsec { display: flex; flex-direction: column; gap: 2px; }
.wsec-h { display: flex; align-items: baseline; gap: 8px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-bottom: 2px; }
.wsec-h .n { font-family: var(--font-mono); font-weight: 600; font-size: 21px; letter-spacing: 0; color: var(--fg); }
html.theme-night .wsec-h { color: var(--nt-brass); }
html .wsec-h.r-tank { color: var(--av-tank); } html .wsec-h.r-healer { color: var(--av-heal); }
tr.bossrow th { padding-top: 18px; color: var(--muted); }
tr.bossrow:first-child th { padding-top: 8px; }
@media (max-width: 640px) { table.stackable tr.bossrow { display: block; padding: 12px 0 0; border-bottom: 0; } table.stackable tr.bossrow th { display: block; padding: 0 0 4px; }
  table.stackable.byitem td.c-wide { font-size: inherit; }
  table.stackable.byitem tr.bossrow.others { border-top: 2px solid var(--line); padding-top: 18px; } table.stackable.byitem tr.bossrow.others th { border-top: 0; padding-top: 0; }
  table.byitem tr.item { border-bottom: 0; } table.byitem tr.item + tr.item { border-top: 1px dotted var(--line); } table.byitem tr.item + tr.item td { border-top: 0; }
  table.byitem tr.passrow { border-bottom: 0; border-top: 1px solid var(--line); } table.byitem tr.passrow td { border-top: 0; } }
.rcls { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 0 14px; border-bottom: 1px solid var(--line-soft); }
.rcls:last-of-type { border-bottom: 0; }
.rcls-h { font-size: 15px; padding: 6px 0; }
.rcls-h .faint { font-family: var(--font-mono); font-size: 13px; }
.rr { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline; padding: 6px 0; }
.rr + .rr { border-top: 1px dotted var(--line); }
/* footnote marks: a short sign inline, what it means in the key under the list */
.fn { font-family: var(--font-body); font-size: .9em; font-weight: 700; color: var(--accent); vertical-align: .35em; line-height: 0; margin-left: 2px; letter-spacing: .08em; cursor: help; }
html.theme-night .fn { color: var(--nt-brass); }
.lockm { display: inline-flex; color: var(--muted); cursor: help; vertical-align: -2px; }
.fnotes { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fnotes .fn { vertical-align: baseline; font-size: 13px; margin-right: 3px; cursor: default; }
.fnotes .lockm { margin-right: 3px; cursor: default; }
/* By item: a solid line between sources, dotted between items */
table.byitem { font-size: 17px; }
table.byitem th { font-size: 14px; letter-spacing: .1em; }
table.byitem td { border-bottom: 0; }
table.byitem tr.bossrow.others th { padding-top: 28px; border-top: 2px solid var(--line); }
table.byitem tr.item + tr.item td { border-top: 1px dotted var(--line); }
table.byitem tr.bossrow th { border-bottom: 1px solid var(--line); }
table.byitem tr.item.passrow td, table.byitem tr.item + tr.item.passrow td { border-top: 1px solid var(--line); }
.rr-n { min-width: 0; }
.rr-res { min-width: 0; }
.rr-st { justify-self: end; }
.wsec.bench { border-top: 1px dashed var(--line-soft); padding-top: 10px; }
@media (max-width: 760px) { .rcls { grid-template-columns: minmax(0, 1fr); } .rcls-h { padding-bottom: 0; } .rr { grid-template-columns: minmax(0, 1fr) auto; } .rr-res { grid-column: 1 / -1; grid-row: 2; } }
/* April Fools: on April 1 every font on the site is Comic Sans */
html.fools *, html.fools *::before, html.fools *::after { font-family: 'Comic Sans MS', 'Comic Sans', 'Comic Neue', 'Chalkboard SE', cursive !important; letter-spacing: normal !important; }

.name { font-weight: 700; white-space: nowrap; }
.tag { font-size: 13px; color: var(--faint); font-weight: 400; }
.bn { display: inline-block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: .82em; line-height: 1.35; padding: 0 .5em; border-radius: 999px; background: var(--bonus-bg); color: var(--bonus-fg); white-space: nowrap; vertical-align: .08em; }
.bn.zero { background: none; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }
.bn.big { font-size: 21px; padding: 2px 12px; vertical-align: 0; }
.bn.huge { font-size: 30px; padding: 2px 14px; vertical-align: 0; }
.it { font-weight: 700; }
.it.q-common { color: var(--q-common); }
.it.q-uncommon { color: var(--q-uncommon); }
.it.q-rare { color: var(--q-rare); }
.it.q-epic { color: var(--q-epic); }
.it.q-legendary { color: var(--q-legendary); }
.myraids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .myraids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .myraids { grid-template-columns: minmax(0, 1fr); } }
.rcard { border: 1px solid var(--line); border-top: 3px solid var(--rc); border-radius: 10px; padding: 14px; background-color: var(--bg); display: flex; flex-direction: column; gap: 12px; min-width: 0; color: var(--fg); text-decoration: none; cursor: pointer; }
.rcard:hover { border-color: var(--accent); border-top-color: var(--rc); }
.rc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.octa { color: var(--accent); font-weight: 700; white-space: nowrap; }
.rc-top { display: flex; gap: 12px; align-items: flex-start; }
.rc-name { font-size: 18px; line-height: 1.2; }
.hl { font-weight: 700; color: var(--hl-fg); align-self: flex-start; }
.rcard .pill { align-self: flex-start; }
.rc-item .row { justify-content: space-between; flex-wrap: nowrap; align-items: baseline; }
.datebox.sm { width: 58px; flex: none; }
.datebox.sm .dd { font-size: 24px; }
.datebox.sm .mo { font-size: 11px; }
.gbar { display: block; font-size: 11.5px; font-weight: 700; padding: 1px 5px; margin-top: 3px; border-radius: 3px; background-color: var(--bg); border-left: 3px solid var(--rc); white-space: nowrap; overflow: hidden; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); border-left: 4px solid var(--rc, var(--line)); border-radius: 8px; padding: 8px 14px; background-color: var(--surface); cursor: pointer; color: var(--fg); display: inline-flex; gap: 8px; align-items: baseline; }
.tab:hover { border-color: var(--accent); border-left-color: var(--rc, var(--accent)); }
.tab[aria-selected="true"] { outline: 2px solid var(--accent); outline-offset: -1px; }
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .cmp { grid-template-columns: minmax(0, 1fr); } }
.ccol { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); min-width: 0; }
.chead { padding: 12px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--rc); display: flex; flex-direction: column; gap: 2px; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); }
.crow:last-child { border-bottom: 0; }
.ccol .crow { border-bottom: 0; border-top: 1px dotted var(--line); }
.ccol .crow.rfirst { border-top: 1px solid var(--line); }
.ccol .chead + .crow { border-top: 0; }
.cname { display: flex; align-items: center; gap: 0 6px; flex-wrap: wrap; min-width: 0; }
.cname .also { display: inline-flex; gap: 3px; }
.cmp-roles { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 4px 0 2px; }
.cmp-roles .rcol-h { border: 0; padding: 0; margin: 0; display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; }
.cmp-roles .rcol-h .ricon { align-self: center; }
.cmp-roles .rcol-h .cnt { font-size: 17px; letter-spacing: 0; }
.lkstrip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line-soft); padding-top: 10px; margin-top: 2px; }
.lkstrip .eyebrow { margin: 0; }
.lkstrip .linkish { margin-left: auto; font-size: 12px; }
.lkbs { display: flex; gap: 6px; flex-wrap: wrap; }
.lkb { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; border: 1.5px solid var(--rc); background: transparent; color: var(--text); cursor: default; }
.lkb .rs { font-weight: 500; opacity: .75; padding-left: 5px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 35%, transparent); }
.lkb svg { width: 12px; height: 12px; }
.lkb.free { border-style: dashed; border-color: color-mix(in srgb, var(--rc) 70%, transparent); color: var(--muted); }
.lkb.signed { background: color-mix(in srgb, var(--rc) 22%, transparent); }
.lkb.saved { background: var(--rc); color: var(--on-raid); }
button.lkb { cursor: pointer; transition: box-shadow .15s, transform .15s; }
button.lkb:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 30%, transparent); }
@media (max-width: 520px) { .lkbs { order: 3; width: 100%; gap: 4px; } .lkb { padding: 0 6px; gap: 3px; font-size: 11px; } .lkb .rs { padding-left: 4px; } }
.opens { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 10px; } /* never wider than a small phone */
.orow-foot, .orow-l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.orow-l1 .on { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow-l1 .od { white-space: nowrap; }
.otime { margin-left: 6px; }
.orow-foot { margin-top: 2px; }
.orow { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--rc); border-radius: 8px; background-color: var(--bg); cursor: pointer; text-align: left; color: var(--fg); width: 100%; }
.orow:hover { border-color: var(--accent); border-left-color: var(--rc); }
.ot { display: flex; flex-direction: column; min-width: 0; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; padding: 2px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill.open { background: var(--accent-soft); color: var(--accent); }
.pill.locked { background: var(--warn-soft); color: var(--warn); }
.pill.done { background: var(--good-soft); color: var(--good); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.pill.plain { border-color: var(--line); color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 9px 16px; cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font-weight: 500; font-size: 16px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.small { padding: 5px 12px; font-size: 15px; }
.btn.ghost { background: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 14px; color: var(--muted); }
select.in, input.in, textarea.in { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-width: 0; width: 100%; }
textarea.in { font-family: var(--font-mono); font-size: 13px; min-height: 92px; resize: vertical; word-break: break-all; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
@media (max-width: 720px) { .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 480px) { .grid3 { grid-template-columns: minmax(0, 1fr); } .grid3 > * { grid-column: auto !important; } } /* phones: one field a row */
.grid3 .wide { grid-column: 1 / -1; }
.rsec { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.rdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rc); margin-right: 8px; vertical-align: 0; }
.in.swatch { width: 56px; height: 40px; padding: 4px; flex: none; }
.in.static { display: flex; align-items: center; color: var(--muted); }
.in.sm { padding: 4px 6px; font-size: 14px; width: auto; }
textarea.in.plain { font-family: inherit; font-size: 15px; min-height: 0; word-break: normal; }
.itemtbl th { padding-top: 12px; }
.itemscroll { max-height: max(320px, 50vh); overflow: auto; border: 1px solid var(--line-soft); border-radius: 8px; padding: 0 10px; } /* half the window: room to scroll through a long table */
.whid { gap: 8px; flex-wrap: nowrap; align-items: flex-end; } .whid .in { min-width: 0; flex: 1 1 auto; } .whfill { white-space: nowrap; flex: 0 0 auto; }
label .whid { display: flex; }
.whrow .field > span:first-child { white-space: nowrap; }
.whgot { margin: 0; color: var(--muted); }
.whimp { display: flex; flex-direction: column; gap: 10px; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; }
.whprev { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.whlast { margin: 0; }
.whlist .itemtbl td { padding-top: 6px; padding-bottom: 6px; }
.whlist tr.off .it, .whlist tr.have .it { opacity: .62; }
.whlist tr.have .sub2 { opacity: .8; }
.whtick { gap: 8px; align-items: flex-start; }
.whtick input { margin-top: 3px; }
.whhave { display: inline-block; padding-left: 26px; }
.itemscroll .itemtbl th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.in.wid { width: 96px; }
.itemtbl td { vertical-align: top; }
.itemtbl .sub2 { font-size: 13px; color: var(--faint); }
.itemtbl .hcell { display: flex; flex-direction: column; gap: 4px; }
.itemtbl .gocheck { font-size: 13px; gap: 6px; white-space: nowrap; color: var(--muted); }
.itemtbl .acts { white-space: nowrap; }
.itemtbl th .tiny { font-weight: 400; }
.itemtbl tr.editrow > td { background: var(--surface-2); border-radius: 8px; }
.iedit { display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; }
.srcpick { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.srcpick label.check { font-size: 14px; }
@media (max-width: 560px) {
  .itemtbl, .itemtbl > tbody { display: block; width: 100%; }
  .itemtbl tr:not(.editrow) { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
  .itemtbl tr:not(.editrow) > td, .itemtbl tr:not(.editrow) > th { border: 0; padding: 0; }
  .itemtbl tr:not(.editrow) > td:first-child, .itemtbl tr > th { flex: 1 1 100%; }
  .itemtbl tr.editrow { display: block; }
  .itemtbl tr.editrow > td { display: block; }
}
.addbox { display: flex; flex-direction: column; gap: 8px; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
details.raidset { border-top: 3px solid var(--rc); }
details.raidset > summary b { font-weight: 700; }
.whtip { position: fixed; z-index: 90; width: 260px; padding: 8px 10px; border-radius: 6px; background: #0b0f17; border: 1px solid #3a4660; color: #f1ead8; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.whtip[hidden] { display: none; }
.it[data-wowhead] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
@media (max-width: 560px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
details.more.inline { border-radius: 8px; }
details.more.inline > summary { padding: 8px 12px; font-size: 15px; }
details.more.inline > .inner { padding: 0 12px 12px; gap: 4px; }
details.more.inline > summary .s { font-size: 14px; }
.lt { display: flex; flex-direction: column; gap: 8px; }
.lt p { margin: 0; }
.lt .row { align-items: flex-end; }
.lt-top { display: flex; flex-direction: column; gap: 6px; padding: 2px 0 6px; }
.lt-head { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.lt-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.lt-time { display: inline-flex; align-items: center; gap: 6px; }
.lt-actions select.in { width: auto; padding: 5px 8px; }
.lt-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.lt-steps li.now { color: var(--fg); }
.lt details.more.inline > .inner, .lt .stack { gap: 10px; }
.bal { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bal p { margin: 0; }
.bal-g { display: flex; gap: 6px 10px; align-items: baseline; flex-wrap: wrap; }
.bal-plan { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.msg { font-size: 15px; padding: 9px 12px; border-radius: 8px; }
.msg.err { background: var(--crit-soft); color: var(--crit); }
.msg.ok { background: var(--good-soft); color: var(--good); }
.msg.info { background: var(--accent-soft); color: var(--fg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mlist { display: flex; flex-direction: column; gap: 10px; }
.mgroup { display: flex; flex-direction: column; gap: 6px; }
.mloot { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 6px 14px; align-items: start; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.mloot.off { opacity: .5; }
.mloot .mwho { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mloot .mwho label.check { font-size: 14px; }
@media (max-width: 560px) { .mloot { grid-template-columns: 1fr; } }
.matchcard { padding: 12px 16px; }
main.wrap.wide { max-width: 1840px; }
.planner { display: grid; grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); gap: 18px; align-items: start; }
.plleft { align-self: stretch; min-width: 0; } /* the column; the tray inside it moves */
.pltray { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plleft .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.plright { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 1000px) { .planner { grid-template-columns: minmax(0, 1fr); } .plright { order: -1; } .plleft { align-self: start; } .trayspace { display: none; } }
.pgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pdow { background: var(--surface); padding: 6px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); display: flex; flex-direction: column; gap: 4px; }
.pdow .avbar { width: 100%; height: 5px; }
.pday { background: var(--surface); min-height: 92px; padding: 5px 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pday.past { opacity: .55; }
.pday.beyond { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(127, 127, 127, .07) 8px 16px); }
.pday.today .pdn { color: var(--accent); font-weight: 700; }
.pday.m-blackout { box-shadow: inset 0 0 0 9999px var(--crit-soft); }
.pday.m-avoid { box-shadow: inset 0 0 0 9999px var(--warn-soft); }
.pdh { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); min-height: 20px; }
.pdn { font-variant-numeric: tabular-nums; white-space: nowrap; }
.preset { font-size: 11.5px; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 0 5px; white-space: nowrap; }
.padd { margin-left: auto; width: 20px; height: 20px; border-radius: 5px; border: 1px dashed var(--line); background: transparent; color: var(--muted); line-height: 1; cursor: pointer; opacity: 0; flex: none; }
.pday:hover .padd, .pday.daysel .padd, .padd:focus-visible { opacity: 1; }
@media (hover: none) { .padd { opacity: 1; } }
.pmark { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.pday.m-blackout .pmark { color: var(--crit); }
.pcard { display: flex; align-items: center; gap: 5px; font-size: 13px; padding: 2px 6px; border-radius: 5px; border: 1px solid transparent; border-left: 3px solid var(--rc); background: var(--surface-2); cursor: pointer; user-select: none; min-width: 0; overflow: hidden; white-space: nowrap; }
.pcard[draggable="true"] { cursor: grab; }
.pcard .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.pcard .n { margin-left: auto; font-size: 12px; color: var(--faint); }
.pcard.ghost { background: transparent; border: 1px dashed var(--rc); border-left-width: 3px; opacity: .85; }
.pcard.draft { border: 1px solid var(--accent); border-left: 3px solid var(--rc); background: var(--accent-soft); opacity: 1; }
.pcard.draftsrc { box-shadow: 0 0 0 1px var(--accent); }
.pcard.leaving, .pcard.cxl { text-decoration: line-through; opacity: .5; }
.pcard.done { opacity: .6; }
.pcard.warn .t { color: var(--warn); }
.pcard.sel { box-shadow: 0 0 0 2px var(--accent); }
.pcard.dragging { opacity: .4; }
.pday.over { outline: 2px solid var(--good); outline-offset: -2px; }
.pday.over.over-warn { outline-color: var(--warn); }
.pday.over.over-bad { outline-color: var(--crit); }
.pleg { gap: 6px 14px; margin-top: 8px; }
.lg { display: inline-block; width: 16px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.lg.solid { background: var(--surface-2); border-left: 3px solid var(--accent); }
.lg.ghost { border: 1px dashed var(--muted); }
.lg.draft { background: var(--accent-soft); border: 1px solid var(--accent); }
.lg.leaving { background: linear-gradient(transparent 40%, var(--muted) 40% 60%, transparent 60%); }

.pltools { align-items: flex-end; gap: 8px 10px; }
.pltools .btn, .pltools .linkish { margin-bottom: 4px; }
.pday { position: relative; cursor: pointer; }
.pday.daysel::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--accent); pointer-events: none; }
.pday.lk, .pday.dl { background-color: color-mix(in srgb, var(--lk) 9%, var(--surface)); }
.pday.dl { --lk: var(--dlk); }
.pday.lk::after, .pday.dl::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 0 solid var(--lk); }
.pday.lk-t::after, .pday.dl-t::after { border-top-width: 2px; }
.pday.lk-b::after, .pday.dl-b::after { border-bottom-width: 2px; }
.pday.lk-l::after, .pday.dl-l::after { border-left-width: 2px; }
.pday.lk-r::after, .pday.dl-r::after { border-right-width: 2px; }
.lg.lk { border: 2px solid var(--lk); }
details.sxsec { border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); }
details.sxsec[open] { border-color: var(--line); }
details.sxsec.dirty { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); }
details.sxsec > summary { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; }
details.sxsec > summary::-webkit-details-marker { display: none; }
details.sxsec > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 5px 4px 0 auto; flex: none; transition: transform .15s; }
details.sxsec[open] > summary::after { transform: rotate(-135deg); margin-top: 10px; }
details.sxsec > summary .rdot { margin-top: 7px; flex: none; }
details.sxsec > summary .sbody { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sxbody { padding: 12px; border-top: 1px solid var(--line-soft); }
.sxbody .sxed { border: 0; padding: 0; }
.sxtag { font-size: 12px; line-height: 18px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--warn); color: var(--warn); }
.sxtag.new { border-color: var(--accent); color: var(--accent); }
.sxfoot { border-top: 1px solid var(--line-soft); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.sxplan { border-left: 3px solid var(--rc); padding-left: 10px; }
.sxplan ul.plain { margin: 4px 0 0; }
.sxbtns .sxsp { flex: 1 1 auto; }
.btn[data-quiet] { opacity: .55; } /* nothing to save yet; clicking says so */
:root { --av-tank: #4f97ea; --av-heal: #27a877; --av-ranged: #f0a050; --av-melee: #e2675c; } /* one color per role for lines and words, site-wide */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --av-tank: #1d63c4; --av-heal: #00781f; --av-ranged: #a85300; --av-melee: #b42318; } }
:root[data-theme="light"] { --av-tank: #1d63c4; --av-heal: #00781f; --av-ranged: #a85300; --av-melee: #b42318; }
html.theme-night:root { --av-tank: #4f97ea; --av-heal: #27a877; --av-ranged: #f0a050; --av-melee: #e2675c; }
.rtag.r-ranged, html .rcol-h.r-ranged, html .wsec-h.r-ranged { color: var(--av-ranged); }
.rtag.r-melee, html .rcol-h.r-melee, html .wsec-h.r-melee { color: var(--av-melee); }
/* role icons: a shield, a cross, a bow and a sword, each in its role's color */
.ricon { width: 16px; height: 16px; flex: none; align-self: center; vertical-align: -3px; }
.rword .ricon { align-self: center; }
.ricon.sm { width: 11px; height: 11px; opacity: .9; cursor: help; vertical-align: 0; }
.ricon.r-tank { color: var(--av-tank); } .ricon.r-healer { color: var(--av-heal); } .ricon.r-ranged { color: var(--av-ranged); } .ricon.r-melee { color: var(--av-melee); }
.rolecols .rcol-h .ricon { width: 18px; height: 18px; }
.gname .also { display: inline-flex; gap: 3px; align-self: center; }
/* a role written the way Who's going heads its columns */
.rword { display: inline-flex; align-items: baseline; gap: 5px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.rword.r-tank { color: var(--av-tank); } .rword.r-healer { color: var(--av-heal); } .rword.r-ranged { color: var(--av-ranged); } .rword.r-melee { color: var(--av-melee); }
.rtag.r-ranged { border-color: color-mix(in srgb, var(--av-ranged) 55%, var(--line)); }
.rtag.r-melee { border-color: color-mix(in srgb, var(--av-melee) 55%, var(--line)); }
.w-tank, .rtag.r-tank, html .rcol-h.r-tank, th.w-tank { color: var(--av-tank); }
.w-heal, .rtag.r-healer, html .rcol-h.r-healer, th.w-heal { color: var(--av-heal); }
.rtag.r-tank { border-color: color-mix(in srgb, var(--av-tank) 55%, var(--line)); }
.rtag.r-healer { border-color: color-mix(in srgb, var(--av-heal) 55%, var(--line)); }
.tmode { display: inline-flex; margin-top: 4px; border: 1px solid var(--band-line, var(--line)); border-radius: 999px; overflow: hidden; }
.tmode button { background: none; border: 0; padding: 1px 9px; font-size: 12px; color: var(--band-muted, var(--muted)); cursor: pointer; }
.tmode button[aria-pressed="true"] { background: var(--accent-soft); color: var(--band-fg, var(--fg)); }
.pcard.gev { border-left-color: var(--muted); border-style: dashed; border-left-style: solid; background: color-mix(in srgb, var(--muted) 10%, transparent); }
.pcard.gev .gn { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lg.gev { border: 1px dashed var(--muted); border-left: 3px solid var(--muted); }
.avr.gev { background: color-mix(in srgb, var(--muted) 12%, transparent); border-left-color: var(--muted); border-style: dashed; border-left-style: solid; color: var(--muted); }
.chip.gchip { --rc: var(--muted); border-style: dashed; border-left-style: solid; }
.sxtag.end { border-color: var(--crit); color: var(--crit); }
details.sxsec.ending { border-color: color-mix(in srgb, var(--crit) 55%, var(--line)); }
.lochint { font-style: normal; font-size: 12px; color: var(--muted); }
.plleft .field > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plsel .card-head .seg button { padding: 3px 10px; font-size: 13px; }
.plhint { margin-left: auto; }
.avg { display: flex; flex-direction: column; gap: 6px; }
.avread { font-size: 14px; min-height: 21px; font-variant-numeric: tabular-nums; }
.avp { display: grid; grid-template-columns: 34px minmax(0, 1fr) 0; gap: 0 8px; } /* no labels at the right: the legend is under the graph */
.avy { position: relative; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.avy span { position: absolute; right: 0; transform: translateY(-50%); line-height: 1; }
.avc { position: relative; touch-action: pan-y; cursor: crosshair; }
.avc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.avgl { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.avbase { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.avneg { fill: var(--crit-soft); }
.avband { fill: var(--accent-soft); }
.avl { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.avl.all { stroke: var(--fg); }
.avl.tank { stroke: var(--av-tank); }
.avl.heal { stroke: var(--av-heal); }
.avl.base { stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .5; }
.avref { stroke-width: 1.5; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.avref.all { stroke: var(--fg); }
.avref.tank { stroke: var(--av-tank); }
.avref.heal { stroke: var(--av-heal); }
.avrule { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--muted); opacity: .7; pointer-events: none; }
.avsw { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; background: var(--fg); }
.avsw.tank { background: var(--av-tank); }
.avsw.heal { background: var(--av-heal); }
.avsw.ref { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
.avsw.base { background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 6px); opacity: .7; }
.avlane { position: relative; }
.avr { position: absolute; height: 19px; font: inherit; font-size: 12px; line-height: 17px; padding: 0 5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line-soft); border-left: 3px solid var(--rc); border-radius: 4px; background: var(--surface-2); color: var(--fg); cursor: pointer; min-width: 6px; }
.avr.ghost { background: transparent; border-style: dashed; border-left-style: solid; }
.avr.sel { box-shadow: 0 0 0 2px var(--accent); }
.avr.pv { border-style: dashed; border-color: var(--accent); }
.avx { position: relative; height: 16px; font-size: 12px; color: var(--faint); }
.avx span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.avx span:first-child { transform: none; }
.avleg { gap: 6px 14px; }
.avp.p1 { margin-top: 12px; }
.avtbl { font-size: 14px; } .avtbl th, .avtbl td { padding: 5px 4px; white-space: nowrap; } .avtbl .avbar { display: none; } .avtbl th:first-child, .avtbl td:first-child { padding-left: 0; }
@media (max-width: 560px) { .avp { grid-template-columns: 26px minmax(0, 1fr) 0; gap: 0 6px; } .avread { font-size: 13px; } .avx span:nth-child(even) { display: none; } .plav .card-head { flex-wrap: wrap; } }
@media (max-width: 560px) { .pday { min-height: 64px; padding: 3px; } .pcard { font-size: 11.5px; padding: 1px 3px; gap: 2px; } .pcard .t, .pcard .n, .preset, .pmark { display: none; } .pdow { padding: 4px; letter-spacing: 0; } }
.avbar { display: inline-block; width: 70px; height: 8px; border-radius: 4px; background: var(--line-soft); vertical-align: middle; overflow: hidden; }
.avbar i { display: block; height: 100%; background: var(--accent); }
td.crit { color: var(--crit); }
.slist { display: flex; flex-direction: column; gap: 8px; }
.srow { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; }
.srow .rdot { margin-top: 7px; flex: none; }
.srow .sbody { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sxed { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.daygrid td { padding: 3px 8px 3px 0; }
@media (max-width: 560px) { .daygrid td { padding-right: 4px; } .daygrid select.in.sm, .daygrid input.in.sm { max-width: 96px; font-size: 13px; padding: 3px 4px; } }
.pvtable tr.warn td { color: var(--warn); }
.pvtable tr.faint td { opacity: .6; }
.matchcard.warn, html.theme-night .card.matchcard.warn { border-color: var(--warn); background: linear-gradient(var(--warn-soft), var(--warn-soft)), var(--surface); }
.rgroup { display: flex; flex-direction: column; gap: 10px; }
.rgroup + .rgroup { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.tkline { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.tkline:first-of-type { border-top: 0; }
.tkform { display: flex; flex-direction: column; gap: 10px; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; }
ol.thread { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
ol.thread li.adm { border-left: 2px solid var(--accent); margin-left: -14px; padding-left: 12px; }
.nbadge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; margin-left: 4px; }
.tkbox { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.confirm { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.lockline { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--warn); }

/* Calendar */
.cal-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-head .h2 { min-width: 9.5em; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-left: auto; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal .dow { background: var(--surface); padding: 8px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.cal .day { background: var(--surface); min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal .day.out { background: var(--bg); }
.dnum { font-size: 14px; width: 26px; height: 26px; display: grid; place-items: center; color: var(--muted); border-radius: 999px; }
.day.today .dnum { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.dhead { display: flex; align-items: center; gap: 6px; }
.dhead .tt { font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.day.past .dnum { color: var(--faint); }
.chip { text-align: left; border: 2px solid transparent; border-left: 4px solid var(--rc); background-color: var(--surface-2); padding: 4px 7px; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-width: 0; color: var(--fg); }
.chip.mine { border-color: var(--good); border-left-color: var(--rc); }
.chip:hover, .chip.mine:hover { border-color: var(--accent); border-left-color: var(--rc); box-shadow: 0 0 0 1px var(--accent); }
.chip .t { font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.chip .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip .ck { color: var(--good); flex: none; font-weight: 500; font-size: 13px; margin-left: auto; }
.chip .m { font-size: 12.5px; color: var(--fg); opacity: .88; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; }
.chip.mine .m .you { color: var(--good); font-weight: 500; }
.pill.wait { background: color-mix(in srgb, var(--muted) 20%, transparent); color: var(--fg); }
.pill.miss { border-color: var(--crit); color: var(--crit); }
.pill.cxl { border-color: var(--line); color: var(--muted); text-decoration: line-through; }
.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 5px; vertical-align: .05em; }
@media (prefers-reduced-motion: no-preference) { .dot-live { animation: livepulse 1.6s ease-in-out infinite; } }
@keyframes livepulse { 50% { opacity: .35; } }
.chip.live .m { color: var(--warn); opacity: 1; font-weight: 600; }
.chip.overdue { border-color: transparent; border-left-color: color-mix(in srgb, var(--rc) 30%, var(--line)); }
.chip.overdue .tn, .chip.overdue .ck { color: var(--muted); }
.chip.overdue:hover { border-color: var(--line); border-left-color: var(--rc); box-shadow: none; }
.chip.waiting .m { color: var(--warn); font-weight: 700; }
.chip.missing .m { font-weight: 700; }
.miss-t { color: var(--crit); }
.chip.cancelled { opacity: .55; border-color: transparent; border-left-color: var(--line); background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--muted) 22%, transparent) 6px 8px), linear-gradient(to right, var(--rcf) var(--pct, 0%), transparent var(--pct, 0%)); }
.chip.cancelled .tn { text-decoration: line-through; }
.rcard.st-cancelled { opacity: .7; border-top-color: var(--line); background-image: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--muted) 16%, transparent) 8px 10px); }
.rcard.st-cancelled .rc-name, .rcard.st-cancelled .hl { text-decoration: line-through; }
.rcard.st-waiting { opacity: .9; }
.xcal-wrap { overflow-x: auto; margin: 0 -2px; padding: 2px; }
.xcal { display: grid; grid-template-columns: repeat(var(--n), minmax(84px, 1fr)); gap: 6px; }
.xday { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; min-height: 96px; padding: 6px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--bg); color: var(--fg); font: inherit; font-size: 12px; }
.xday.no { opacity: .55; background: transparent; }
.xday.cur { opacity: .8; border-style: dashed; }
button.xday { cursor: pointer; }
button.xday:hover { border-color: var(--accent); }
.xday.sel { border: 2px solid var(--accent); padding: 5px; background: var(--accent-soft); opacity: 1; }
.xd { font-size: 12px; }
.xtag { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.xtag.rs { color: var(--warn); }
.xev { display: block; border-left: 3px solid var(--rc); padding: 1px 5px; border-radius: 3px; background: color-mix(in srgb, var(--rc) 14%, transparent); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xev .muted { font-weight: 400; }
.xev.same { outline: 1px dashed color-mix(in srgb, var(--rc) 60%, transparent); }
.xev.new { border: 1px dashed var(--rc); border-left: 3px solid var(--rc); background: transparent; }
.rc-wrap { position: relative; display: flex; min-width: 0; }
.rc-wrap > .rcard { flex: 1; }
.rc-wrap .rc-top { padding-right: 64px; }
.rc-clear { position: absolute; top: 10px; right: 10px; font: inherit; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.rc-clear:hover { border-color: var(--accent); color: var(--accent); }
.rc-note { font-size: 13px; color: var(--fg); }
.btn.danger { color: var(--crit); }
.chip.lockedout { opacity: .6; border-left-color: var(--line); }
.chip.lockedout .tn { color: var(--muted); }
.chip.lockedout .m { color: var(--muted); }
.chip.lockedout .m svg { vertical-align: -2px; margin-right: 3px; width: 12px; height: 12px; }
.chip.lockedout:hover { opacity: .9; }
.chip.past { filter: saturate(.35); opacity: .72; border-color: transparent; }
.chip.past .tn, .chip.past .m { color: var(--muted); }
.chip.past:hover { opacity: .95; border-color: var(--line); border-left-color: var(--rc); box-shadow: none; }
.chip.past .ck { color: var(--muted); }
.fill-x, .fill-y { --rcf: color-mix(in srgb, var(--rc) var(--fillmix), transparent); --rcd: color-mix(in srgb, color-mix(in srgb, var(--rc) 58%, #000) var(--fillmix-d), transparent); --ovf: color-mix(in srgb, #ff0000 var(--ovmix), transparent); text-shadow: var(--ts); background-repeat: no-repeat; background-origin: border-box; }
.fill-x { background-image: linear-gradient(to right, var(--rcf) var(--pct, 0%), transparent var(--pct, 0%)); }
.fill-y { background-image: linear-gradient(to top, var(--rcf) var(--pct, 0%), transparent var(--pct, 0%)); }
/* a run that has already split can't branch again: its overflow fills back the other way in red */
.fill-x.over-red { background-image: linear-gradient(to left, var(--ovf) var(--ovr, 0%), transparent var(--ovr, 0%)), linear-gradient(to right, var(--rcf) var(--pct, 0%), transparent var(--pct, 0%)); }
.fill-y.over-red { background-image: linear-gradient(to bottom, var(--ovf) var(--ovr, 0%), transparent var(--ovr, 0%)), linear-gradient(to top, var(--rcf) var(--pct, 0%), transparent var(--pct, 0%)); }
/* second bar: signups past the raid size queue here; at the 30% mark they split into Run 2 */
.qstrip { --tick: color-mix(in srgb, var(--surface-2), var(--tick-mix) var(--tick-amt)); display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); border-top: 1px dashed var(--line);
  background-color: var(--surface-2); background-repeat: no-repeat;
  background-image: linear-gradient(to right, transparent calc(var(--split) - 1px), var(--tick) calc(var(--split) - 1px), var(--tick) calc(var(--split) + 1px), transparent calc(var(--split) + 1px)), linear-gradient(to right, var(--rcf) var(--ov), transparent var(--ov)); }
.chip .qstrip { margin: 4px -7px -4px; padding: 3px 7px 4px; line-height: 16px; border-radius: 0 0 4px 4px; }
/* the chip's own fill stops where its Group B strip begins (24px strip + 2px border), so the strip shows only its own fill */
.chip.has-q { --qh: 26px; background-size: 100% calc(100% - var(--qh)); }
.agenda .chip .qstrip { margin: 8px -12px -10px; padding: 4px 12px 5px; }
.agenda .chip.has-q { --qh: 28px; }
.chip.past .qstrip, .chip.lockedout .qstrip, .chip.cancelled .qstrip, .chip.overdue .qstrip { background-color: transparent; } /* the Group B strip keeps its fill and fades with its chip */
.orow .qstrip { --tick: color-mix(in srgb, var(--bg), var(--tick-mix) var(--tick-amt)); margin: 6px -12px -10px; padding: 3px 12px; border-radius: 0 0 7px 7px; background-color: var(--bg); font-size: 12.5px; }
.rcard .qstrip { --tick: color-mix(in srgb, var(--bg), var(--tick-mix) var(--tick-amt)); margin: 0 -14px -14px; padding: 7px 14px; border-radius: 0 0 9px 9px; background-color: var(--bg); font-size: 13px; }
.over { color: var(--crit); font-weight: 700; }
.fill-x .bn, .fill-y .bn, .fill-x .pill, .fill-y .pill { text-shadow: none; }
.fill-x .muted, .fill-y .muted, .fill-x .small, .fill-y .tiny { color: var(--fg); }
.agenda { display: none; flex-direction: column; gap: 8px; }
.agenda .chip { padding: 10px 12px; }
.agenda .chip .t { font-size: 16px; }
.agenda .chip .m { font-size: 14px; }
@media (max-width: 299px) { .cal, .cal-nav { display: none !important; } .agenda { display: flex; } .legend { margin-left: 0; } } /* only the narrowest screens get the list instead of the month */

/* Next raid card */
.next { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.datebox { width: 84px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-align: center; background: var(--bg); }
.datebox .mo { background: var(--rc, var(--accent)); color: var(--accent-ink); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 3px 0; }
.datebox .dd { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.15; padding-top: 4px; }
.datebox .wd { font-size: 13px; color: var(--muted); padding-bottom: 6px; }
@media (max-width: 520px) { .next { grid-template-columns: minmax(0, 1fr); } }

/* Reserves */
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.rslot { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rslot .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.rslot .top2 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rslot .nm { font-weight: 700; font-size: 19px; line-height: 1.2; }
.rslot .sub { font-size: 14px; color: var(--muted); }
.rslot .vs { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: 2px; }
.rslot.carried { border-style: dashed; }

.spend { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.spend-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button { background: var(--surface-2); border: 0; width: 34px; height: 32px; cursor: pointer; font-size: 17px; }
.stepper span { min-width: 44px; text-align: center; font-family: var(--font-mono); }

.people { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.needs { color: var(--warn); }
.rtag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; padding: 0 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--fg); white-space: nowrap; vertical-align: 1px; }
.roleline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.su-tools { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.rslot .lblrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rslot .lblrow .btn { padding: 2px 10px; font-size: 14px; }
.rslot .cspend { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: 2px; }
.rslot .cspend .stepper button { height: 28px; width: 30px; }
.rslot .rcount, .roleline .rcount { display: inline-flex; align-items: baseline; gap: 5px; }
/* the card's footer: what you can still change on the left, your unallocated SR on the right */
.cfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.cfoot > :last-child { margin-left: auto; text-align: right; }
.cfoot .lockline { display: inline-flex; }
/* the role picker's counts: each role as Who's going writes it, with its count and mark; the role you'd land in highlighted */
.rp-counts { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.rp-c { display: inline-flex; align-items: baseline; gap: 7px; padding: 1px 8px; margin: 0 -8px; border-radius: 6px; }
.rp-c .cnt { font-size: 18px; }
.rp-c.is-me { background: var(--me-bg); box-shadow: inset 3px 0 0 var(--me-edge); }
.rp-c .tiny { color: var(--muted); }
table.byitem thead th { text-transform: none; letter-spacing: normal; }
.rslot.editing { border-color: var(--accent); }
.warnish { color: var(--warn); }
.rolepick { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) { .rrow { grid-template-columns: minmax(0, 1fr); } }
.rolebar { display: flex; flex-wrap: wrap; gap: 6px; }
.rolec { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; padding: 2px 10px 2px 3px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.rolec b { color: var(--fg); }
.rolec.met { border-color: color-mix(in srgb, var(--good) 50%, var(--line)); color: var(--good); }
.rolec.over { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); color: var(--warn); }
.rolec.over b { color: var(--warn); }
.rolecols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: ". . dmg dmg" "tank healer ranged melee"; gap: 4px 18px; }
.rolecols .rcol-h { display: flex; align-items: baseline; gap: 8px; font-size: 14px; letter-spacing: .1em; padding-bottom: 5px; }
.rolecols .rcol-h .cnt { font-size: 21px; letter-spacing: 0; }
.rolecols .gname { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.rolecols .gname > .name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
/* damage dealers: one bracket over Ranged and Melee for their combined count */
.dmgh { grid-area: dmg; display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
html.theme-night .dmgh { color: var(--nt-brass); }
.dmgh::before, .dmgh::after { content: ''; flex: 1; height: 7px; margin-top: 8px; border-top: 1px solid var(--line); }
.dmgh::before { border-left: 1px solid var(--line); } .dmgh::after { border-right: 1px solid var(--line); }
.dmgh .cnt { font-size: 18px; letter-spacing: 0; }
/* a count with its mark: ✓ in range, ↑ under the minimum, ↓ over the maximum; hover or focus shows the range */
.cnt { display: inline-flex; align-items: baseline; gap: 3px; cursor: help; text-transform: none; border-bottom: 1px dotted transparent; border-radius: 2px; }
.cnt:hover, .cnt:focus-visible { border-bottom-color: currentColor; outline: none; }
.cnt b { font-family: var(--font-mono); font-weight: 600; color: var(--fg); }
.mk { font-family: var(--font-body); font-weight: 700; font-size: .85em; }
.mk.ok { color: var(--good); } .mk.up, .mk.down { color: var(--warn); }
/* your own name stands out wherever raiders are listed */
:root { --me-bg: var(--accent-soft); --me-edge: var(--accent); }
html.theme-night { --me-bg: rgba(232, 207, 143, .13); --me-edge: var(--nt-brass); }
.gname.is-me, .rr.is-me, .me-chip { background: var(--me-bg); box-shadow: inset 3px 0 0 var(--me-edge); border-radius: 6px; }
.gname.is-me { margin: 0 -8px; padding: 1px 8px; }
.rr.is-me { margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.me-chip { padding: 1px 6px 1px 8px; white-space: nowrap; }
/* officers move raiders: drag a name to a role column or the bench, or click it */
.gname[data-wdrag] { cursor: grab; }
.gname[data-wdrag]:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); border-radius: 6px; }
.gname.wdragging { opacity: .4; }
.wdrop-on [data-wdrop] { outline: 1px dashed var(--line); outline-offset: 3px; border-radius: 6px; }
.wdrop-on [data-wdrop].wover { outline: 2px solid var(--accent); background: var(--accent-soft); }
.wdrop-on [data-wdrop].wno { opacity: .4; }
.benchrow.empty .people { min-height: 24px; align-items: center; }
.wmenu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.wmenu .btn { padding: 2px 9px; font-size: 13px; gap: 5px; }
.wtools { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.benchrow .gname { display: inline-flex; align-items: baseline; gap: 0 5px; }
.benchrow .gname.is-me { margin: 0 -2px; padding: 1px 8px; }
/* sign-up bubbles take a color when that sign-up has a problem */
:root { --ord-moved: #8fb8ff; } @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]):not(.theme-night) { --ord-moved: #1d4f9e; } } :root[data-theme="light"]:not(.theme-night) { --ord-moved: #1d4f9e; }
.ord.moved, .ord.over, .ord.bench { font-weight: 700; }
.ord.moved { border-color: var(--ord-moved); color: var(--ord-moved); background: color-mix(in srgb, var(--ord-moved) 22%, transparent); }
.ord.over { border-color: var(--warn); color: var(--warn); background: color-mix(in srgb, var(--warn) 22%, transparent); }
.ord.bench { border-color: var(--crit); color: var(--crit); background: color-mix(in srgb, var(--crit) 22%, transparent); }
.fnotes .ord { min-width: 14px; height: 14px; padding: 0; margin-right: 4px; vertical-align: -2px; cursor: default; }
.ord { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--muted); cursor: help; align-self: center; }
.minitip { position: fixed; z-index: 90; width: max-content; max-width: 300px; padding: 5px 9px; border-radius: 6px; background: #0b0f17; border: 1px solid #3a4660; color: #f1ead8; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); pointer-events: none; font-size: 13px; white-space: pre-line; }
.minitip[hidden] { display: none; }
.mk + .mk { margin-left: 1px; }
@media (max-width: 720px) { .rolecols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "tank healer" "dmg dmg" "ranged melee"; gap: 10px 14px; } .rolecols .gname { font-size: 15px; }
  .rolecols .gname { display: block; } .rolecols .gname > * { margin-right: 4px; } .rolecols .gname .ord { vertical-align: 1px; } .rolecols .gname .also { vertical-align: -1px; } } /* narrow columns: the line flows like text, so the icon stays in front of the name */
.rcol { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rcol-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line-soft); padding-bottom: 4px; margin-bottom: 2px; }
.benchrow { border-top: 1px dashed var(--line-soft); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.bench-h { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.bench-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.lead-ics { display: inline-flex; gap: 2px; align-self: center; }
@media (max-width: 720px) { .rolecols .gname .lead-ics { vertical-align: -1px; } }
.lead-ic { width: 13px; height: 13px; cursor: help; }
.lead-ic.rl { color: #e0b04a; } .lead-ic.lm { color: #c98a3a; }
html.theme-light .lead-ic.rl, html:not(.theme-night) .lead-ic.rl { color: #a07208; } html:not(.theme-night) .lead-ic.lm { color: #8a5714; }
.in.ro { color: var(--muted); }
.bench-tools.stack { flex-direction: column; align-items: flex-end; }
.close-ask { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.close-ask p { margin: 0; }
.close-ask .row { align-items: flex-end; }
.rslot.empty { border-style: dashed; }
.rcard .rtag { margin-left: 2px; }

/* Disclosure */
details.more { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
details.more > summary { cursor: pointer; padding: 14px 20px; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 500; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > summary .s { color: var(--muted); font-weight: 400; font-size: 15px; margin-left: auto; }
details.more > .inner { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 14px; }
details.more.admin { border-style: dashed; }

.tablewrap { overflow-x: auto; }
/* the site's tables: only in the page (Wowhead's tooltips, added to the body, are tables too) */
:where(#app) table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
:where(#app) th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
:where(#app) td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
:where(#app) tr:last-child td { border-bottom: 0; }
:where(#app) td.r, :where(#app) th.r { text-align: right; }
.res { display: inline-flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.kills { display: inline-flex; gap: 3px; vertical-align: middle; }
.kills i { width: 9px; height: 9px; border-radius: 2px; background: var(--line); display: inline-block; }
.kills i.on { background: var(--accent); }
.kills i.via { background: var(--ember); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 5px 12px; cursor: pointer; color: var(--muted); font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--fg); }
@media (max-width: 640px) {
  table.stackable thead { display: none; }
  table.stackable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  table.stackable tr:last-child { border-bottom: 0; }
  table.stackable td { border: 0; padding: 0; }
  table.stackable td.c-wide { grid-column: 1 / -1; font-size: 15px; }
}

/* Character */
.blist { display: flex; flex-direction: column; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; cursor: pointer; color: var(--fg); width: 100%; }
.brow:hover { background: var(--surface-2); }
.brow .nm { font-weight: 700; }
.brow .st { font-size: 14px; color: var(--muted); }
.brow .chev { width: 8px; height: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(-45deg); }
.brow[aria-expanded="true"] .chev { transform: rotate(45deg); }
.bdetail { padding: 12px 4px 16px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.hist li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; }
.sumline { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 16px; }
.sumline b { font-weight: 500; }

.formula { font-family: var(--font-mono); font-size: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; white-space: nowrap; }
.qcard { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.choice { display: flex; gap: 8px; align-items: flex-start; font-size: 15.5px; }
.choice input { margin-top: 5px; }
ul.plain, ol.plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 70ch; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 15px; z-index: 20; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: no-preference) {
  .chip, .btn, .nav button, .brow { transition: background .15s, border-color .15s, color .15s, transform .15s ease; }
  .rcard, .orow, .rc-wrap { transition: border-color .15s, transform .15s ease; }
}
/* hovered raid cards lift slightly; transforms don't move anything around them */
.chip:hover, .orow:hover, .rcard:hover, .rc-wrap:hover { position: relative; z-index: 2; }
.chip:hover { transform: scale(1.04); }
.agenda .chip:hover { transform: scale(1.02); }
.orow:hover, .rcard:hover, .rc-wrap:hover { transform: scale(1.02); }
.rc-wrap .rcard:hover { transform: none; }
ol.mail { margin: 0; padding: 0; list-style: none; max-height: 420px; overflow: auto; }
ol.mail li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
ol.mail li:last-child { border-bottom: 0; }

/* ---------- the month on phones and tablets: the grid stays, each raid shrinks to its initials, the time and turnout ---------- */
.chip .ta, .chip .mc, .chip .mn { display: none; }
@media (max-width: 900px) {
  .cal .dow { padding: 6px 2px; font-size: 11.5px; letter-spacing: .04em; text-align: center; }
  .cal .day { min-height: 92px; padding: 4px 3px; gap: 3px; }
  .cal .dhead .tt { display: none; }
  .cal .chip { padding: 3px 4px 4px; border-width: 1px; border-left-width: 3px; border-radius: 4px; gap: 1px; }
  .cal .chip .t { font-size: 13px; gap: 2px; line-height: 1.2; }
  .cal .chip .tn, .cal .chip .m, .cal .chip .ck, .cal .chip .gbn { display: none; }
  .cal .chip .ta { display: inline; white-space: nowrap; overflow: hidden; text-overflow: clip; min-width: 0; }
  .cal .chip .mc, .cal .chip .mn { display: flex; align-items: center; gap: 2px; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; color: var(--fg); opacity: .85; }
  .cal .chip .mn { font-size: 11.5px; opacity: .75; }
  .cal .chip .mc svg { width: 11px; height: 11px; } .cal .chip .mc .dot-live { width: 7px; height: 7px; }
  .cal .chip.has-q { --qh: 7px; } .cal .chip .qstrip { font-size: 0; line-height: 0; height: 6px; padding: 0; margin: 2px -4px -4px; overflow: hidden; } /* the queue strip stays, as a thin bar */
  .cal .chip .gbar { font-size: 10.5px; padding: 0 3px; margin-top: 2px; border-left-width: 2px; border-radius: 2px; }
  .cal .chip:hover { transform: none; }
  .calcard.parch .cal { gap: 2px; padding: 2px; }
  .calcard.parch .cal .dow { padding: 5px 1px; }
  .calcard.parch .chip { box-shadow: 0 1px 1px var(--pa-c-shadow); }
  .calcard.parch .cal-head { grid-template-columns: auto 1fr auto auto auto; gap: 6px; }
  .calcard.parch .cal-head .h2 { min-width: 0; padding: 4px 10px 3px; }
  .calcard.parch .cal-head .legend { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .cal .dow { padding: 5px 2px; font-size: 10.5px; }
  .cal .day { min-height: 76px; padding: 3px 2px; }
  .cal .dnum { font-size: 11.5px; width: 20px; height: 20px; }
  .cal .chip { padding: 2px 3px 3px; gap: 0; }
  .cal .chip .t { font-size: 11.5px; }
  .cal .chip .mc { font-size: 10px; } .cal .chip .mn { font-size: 9.5px; }
  .cal .chip .mc svg { width: 10px; height: 10px; } .cal .chip .mc .dot-live { width: 6px; height: 6px; }
  .cal .chip .gbar { font-size: 9.5px; padding: 0 2px; }
  .cal .chip.has-q { --qh: 6px; } .cal .chip .qstrip { height: 5px; margin: 2px -3px -3px; }
  .calcard.parch .cal .dow { font-size: 11px; padding: 4px 1px; }
}
@media (max-width: 420px) {
  .cal .day { min-height: 64px; }
  .cal .chip .t { font-size: 10.5px; }
  .cal .chip .mc { font-size: 9.5px; } .cal .chip .mn { font-size: 9px; }
}
.demo-strip select { max-width: 100%; min-width: 0; }

.me .dlink { display: inline-block; margin: 2px 0 4px; color: var(--band-fg); opacity: .85; text-decoration: underline; text-underline-offset: 2px; }
hr.soft { border: 0; border-top: 1px solid var(--line-soft); margin: 14px 0; }

/* My character: the character's cards on the left, the Discord account's on the right */
.mc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content); grid-template-areas: "name acct" "cls ."; align-items: baseline; gap: 4px 20px; }
.mc-name { grid-area: name; margin: 0; }
.mc-cls { grid-area: cls; }
.mc-head .mc-acct { grid-area: acct; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; } /* the name's own font and size (.title) */
@media (max-width: 600px) { .mc-head { grid-template-areas: "name name" "cls acct"; } }
html.theme-night .mc-head .mc-acct { color: var(--nt-brass); }
.mc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.mc-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.mc-eye { margin-bottom: -10px; }
.mc-eye-r { text-align: right; }
@media (max-width: 900px) {
  .mc-cols { grid-template-columns: minmax(0, 1fr); }
  .mc-col + .mc-col { margin-top: 12px; }
}

/* roles: a picked role shows its icon and color, as on sign-ups */
.rsel { position: relative; display: block; }
.rsel > .ricon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 17px; height: 17px; }
.rsel[class*=" r-"] > select { padding-left: 38px; font-weight: 600; }
html .rsel.r-tank > select.in { color: var(--av-tank); } html .rsel.r-healer > select.in { color: var(--av-heal); } html .rsel.r-ranged > select.in { color: var(--av-ranged); } html .rsel.r-melee > select.in { color: var(--av-melee); }
.rsel > select option { color: var(--fg); font-weight: 400; }
.rtag { display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px; }
.rtag .ricon { width: 12px; height: 12px; }
.rin { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 700; white-space: nowrap; }
.rin .ricon { width: 14px; height: 14px; align-self: center; }
.rin.r-tank { color: var(--av-tank); } .rin.r-healer { color: var(--av-heal); } .rin.r-ranged { color: var(--av-ranged); } .rin.r-melee { color: var(--av-melee); }
/* Lockouts on My character: the calendar's lockout pills, and time left until each reset */
.lkcell { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lktab .lkb { height: 26px; font-size: 12.5px; }
.lkname { font-weight: 700; white-space: nowrap; }
.lkreset { cursor: help; border-bottom: 1px dotted var(--faint); white-space: nowrap; }
.lkreset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
/* Soft Reserves: one card, raid by raid; inactive and received items sit under the active ones, on darker rows */
#srs .card-head { flex-wrap: wrap; gap: 6px 16px; }
#srs .sumline { gap: 4px 16px; font-size: 14px; }
.srf { gap: 8px 18px; flex-wrap: wrap; align-items: center; }
.srf .field { margin: 0; }
.srgrp + .srgrp { margin-top: 6px; }
.srh { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: .03em; margin: 4px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.brow.sr-inactive { background: color-mix(in srgb, #000 12%, transparent); }
.brow.sr-received { background: color-mix(in srgb, #000 24%, transparent); }
.brow.sr-inactive:hover, .brow.sr-received:hover { background: var(--surface-2); }
.brow.sr-inactive, .brow.sr-received { padding-left: 10px; padding-right: 10px; }
.srnone { margin: 8px 4px; }
#attendance .card-head .field { margin: 0; }
.field > .rsel { font-size: inherit; color: inherit; } /* not the field's small label */
#srs .brow { padding-left: 10px; padding-right: 10px; }
#attendance td:first-child, #attendance td.r { white-space: nowrap; }
.lkpre { display: none; }
@media (max-width: 640px) { .lkpre { display: inline; } }
/* v84: Soft Reserves rows without history don't open, but still light up */
.brow.noexp { cursor: default; }
/* Attendance: kills on hover of the bonus earned */
.att-k { display: inline-flex; cursor: help; border-radius: 999px; }
.att-k:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* My character: the name at the top switches characters, like the name in the banner (same font and size as before) */
.mc-head .mcdd { grid-area: name; position: relative; min-width: 0; justify-self: start; max-width: calc(100% + 9px); margin: -3px 0 -3px -9px; } /* the name's text stays on the column's edge */
.mcdd > summary { list-style: none; }
.mcdd > summary::-webkit-details-marker { display: none; }
.mcdd-btn { display: inline-block; max-width: 100%; padding: 2px 10px 2px 8px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; user-select: none; } /* inline, so the caret follows the name's last word */
.mcdd-btn:hover, .mcdd[open] > .mcdd-btn { border-color: var(--line); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.mcdd-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mcdd-btn .mc-name { display: inline; overflow-wrap: anywhere; }
.mcdd-caret { display: inline-block; vertical-align: middle; margin: -4px 0 0 8px; width: 18px; height: 18px; color: var(--muted); transition: transform .15s ease; }
.mcdd[open] .mcdd-caret { transform: rotate(180deg); }
.mcdd .mcdd-p { left: 0; right: auto; width: auto; min-width: 220px; padding: 6px; } /* names only */
.mcdd-n { padding: 8px 12px; white-space: nowrap; }
@media (max-width: 600px) { .mcdd .mcdd-p { position: absolute; left: 0; right: auto; top: calc(100% + 6px); width: auto; max-width: calc(100vw - 32px); max-height: none; overflow: visible; } }
/* Your characters: the list, then Remove (left, red) and Add (right) */
.ycrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ycbar { justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ycbar > :last-child { margin-left: auto; } /* Add stays on the right, even on its own line */
.btn.danger.solid { background: linear-gradient(180deg, #b23b31, #8a2a22); border-color: #c4554b; color: #fff4f1; }
.btn.danger.solid:hover { filter: brightness(1.1); }
.btn.danger.solid:focus-visible { outline: 2px solid var(--crit); outline-offset: 2px; }
html.theme-night .btn.danger.solid { background: linear-gradient(180deg, #7d2c25, #4b1612); border-color: #b8574c; color: #ffe2db; box-shadow: inset 0 1px 0 rgba(255, 200, 180, .16); }
html.theme-night .btn.danger.solid:hover { border-color: #d8786c; filter: brightness(1.14); }
/* Discord messages: On or Off, in a green or red bubble */
.dmstate { font-weight: 600; }
/* v85: Lockouts: the pill and the date in their own columns, so the dates line up; the time to reset in the raid names' font */
.lktab td { vertical-align: middle; }
.lktab td.lkp { padding-right: 8px; white-space: nowrap; }
.lktab td.lkd { padding-left: 0; }
.lktab .lkreset { font-weight: 700; }
@media (max-width: 640px) {
  table.stackable.lktab tr { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; }
  table.stackable.lktab td.lkr, table.stackable.lktab td.lkt { grid-column: 1 / -1; }
  table.stackable.lktab td.lkp { padding-right: 0; }
}
/* Attendance: dates like 1/13 Wed in the page's font; raids in their color, like Lockouts, still links */
#attendance td.attd { white-space: nowrap; }
#attendance .attr { font-weight: 700; white-space: nowrap; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
#attendance .attr:hover { text-decoration-color: currentColor; }
#attendance .attst { cursor: help; }
#attendance .attst:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lktab .lkb.free { cursor: help; }
.lktab .lkb.free:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* v86: Your characters: the names flush with the card's heading and buttons */
.yclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
/* Soft Reserves: the raid picker on the left, Show inactive and Show received on the right */
.srf .field + .check { margin-left: auto; }
/* v87: names on a sign-up sheet open the character's page, looking just as before */
.name.nlink { cursor: pointer; }
.name.nlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
/* Characters: sortable columns */
.chartbl th .thsort { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.chartbl th .thsort:hover, .chartbl th .thsort.on { color: var(--fg); }
.chartbl th .thsort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.chartbl th .sarr { font-size: .8em; min-width: .9em; }
/* v88: items with an item ID link to Wowhead (its tooltip script shows the tooltip on the site) */
a.it { text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
a.it:hover { text-decoration-style: solid; }
a.it:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
button a.it, [data-act] a.it, label a.it, summary a.it { cursor: inherit; }
/* v89: the reserve picker: a list under the slot, items in their quality colors with their tooltips */
.ipick { position: relative; }
.ipick > summary { list-style: none; }
.ipick > summary::-webkit-details-marker { display: none; }
.ipick-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; user-select: none; min-height: 42px; }
.ipick-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ipick-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ipick-ph { color: var(--muted); font-weight: 400; }
.ipick-caret { width: 14px; height: 14px; flex: none; color: var(--muted); transition: transform .15s ease; }
.ipick[open] .ipick-caret { transform: rotate(180deg); }
.ipick-list { position: absolute; left: 0; top: calc(100% + 4px); z-index: 70; width: max(100%, 380px); max-width: calc(100vw - 24px); max-height: min(420px, 60vh); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); padding: 4px; }
html.theme-night .ipick-list { background: linear-gradient(180deg, var(--nt-frame), var(--nt-frame-2)); border-color: var(--nt-edge); }
.ipg + .ipg { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 4px; }
.ipg-h { padding: 6px 10px 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
html.theme-night .ipg-h { color: var(--nt-brass); }
.ipo { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.ipo:hover, .ipo:focus-visible { background: var(--accent-soft); outline: none; }
.ipo.sel { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ipo-t { display: flex; flex-direction: column; min-width: 0; }
.ipo-n { font-size: 16px; }
.ipo-x { font-size: 13px; color: var(--muted); }
.ipo .bn { flex: none; }
.ipo[aria-disabled="true"] { cursor: default; }
.ipo[aria-disabled="true"]:hover { background: none; }
.ipo.off .ipo-n, .ipo.no .ipo-n { opacity: .6; filter: grayscale(.85); } /* greyed out */
.ipo.off .ipo-why { color: var(--muted); }
.ipo.no .ipo-why { color: var(--crit); } /* this class can't use it */
.ipo-clear { color: var(--muted); font-weight: 400; }
@media (max-width: 600px) { .ipick-list { width: 100%; max-width: none; } }
input.in.whcount { width: 120px; max-width: 100%; }
.grid4 > .whidf { grid-column: span 2; } /* the item ID and its Fill button side by side */
.whrow .whfill { align-self: flex-start; }
.field > span.whid { font-size: inherit; color: inherit; } /* not a field label: the input inside keeps the usual size */
.whsteps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.whadd { gap: 8px; align-items: stretch; flex-wrap: nowrap; }
.whpick { white-space: nowrap; flex: 0 0 auto; display: inline-flex; align-items: center; cursor: pointer; }
.whfile { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; } /* the label is the button */
.whfile:focus-visible + .whpick { outline: 2px solid var(--accent); outline-offset: 2px; }
.whpaste { flex: 1 1 auto; min-height: 0; height: 38px; resize: none; overflow: hidden; white-space: nowrap; font-family: inherit; font-size: 14px; word-break: normal; }
.whpages { gap: 6px 14px; }
.whpg { font-size: 13px; color: var(--muted); }
.whpg b { color: var(--fg); font-weight: 600; }
@media (max-width: 560px) { .whadd { flex-wrap: wrap; } .whpaste { flex: 1 1 100%; } } /* phones: the paste box under the button */
/* a dialog: Import from Wowhead's "are you sure?" */
.modal-scrim { position: fixed; inset: 0; z-index: 120; background: rgba(4, 8, 16, .58); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 60px rgba(0, 0, 0, .45); width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.modal .h2 { margin: 0; }
.whc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; font-size: 14px; }
.whc-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line-soft); padding: 2px 0; }
.whc-list li span { color: var(--muted); }
.whlist tr.whnote td { padding-top: 2px; }
.iedit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.iedit-x { flex: 0 0 auto; }
.itemscroll .iedit-head { position: sticky; top: 38px; z-index: 1; background: var(--surface-2); padding: 6px 0; margin: -6px 0 0; } /* Close stays in reach while scrolling through the editor */

/* v93: Feedback & bugs, under the time switch at the top of every page */
.mefb { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 1px 9px; border: 1px solid var(--band-line, var(--line)); border-radius: 999px; background: none; color: var(--band-muted, var(--muted)); font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; white-space: nowrap; }
.mefb:hover { color: var(--band-fg, var(--fg)); border-color: var(--band-fg, var(--fg)); background: rgba(255, 255, 255, .05); }
.mefb:focus-visible { outline: 2px solid var(--band-fg); outline-offset: 2px; }
.fbico { width: 13px; height: 13px; flex: none; }
.fbm { width: min(560px, 100%); }
.fbseg { align-self: flex-start; flex-wrap: wrap; }
.fbrep { font-family: var(--font-mono) !important; font-size: 12.5px !important; white-space: pre-wrap; }
.fbcard { gap: 6px; padding: 10px 12px; }
.fbcard.done { opacity: .72; }
.fbcard .row { gap: 8px; }
.fbtext { white-space: pre-wrap; overflow-wrap: anywhere; max-width: none; }
.linkish.cur { color: var(--fg); text-decoration: none; font-weight: 600; cursor: default; }
@media (max-width: 600px) { .mefb { margin-top: 2px; padding: 1px 8px; } .mefb .fb-x { display: none; } } /* phones: Feedback, like Server | Local */
.fbgrow { flex: 1 1 auto; }

/* phones: the tabs wrap, officers' tabs on a second row, so every tab can be seen */
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; overflow: visible; }
  .nav button { padding: 8px 10px; font-size: 15px; }
  .nav .adm { font-size: 14px; }
  .nav .sep { flex-basis: 100%; width: auto; height: 1px; margin: 0; opacity: .6; }
}

/* v93: Start now asks first; long words and links in tickets wrap instead of widening the page */
.startask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.thread, .thread *, .tkbox, .qcard p, .qcard .small { overflow-wrap: anywhere; }

/* v94: Discord: the connection's checklist, role pickers, sign-in */
.dcsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dcstep { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.dcstep > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dcmark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.dcstep.done .dcmark { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.dcstep.warn .dcmark { background: var(--crit-soft); border-color: var(--crit); color: var(--crit); }
.dcsave { padding-left: 30px; display: flex; flex-direction: column; gap: 6px; }
.dcconn { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.dcredir code { overflow-wrap: anywhere; font-size: 12.5px; }
.dcredir { gap: 8px; }
.dcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.dcroles { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 8px; margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; max-height: 220px; overflow: auto; }
.dcroles legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.dcrole { font-size: 14px; gap: 6px; }
.dcrole .rdot { margin-right: 0; }
.dcbtn { gap: 8px; }
.dcico { width: 18px; height: 18px; flex: none; }
.gate { max-width: 620px; margin: 24px auto; display: flex; flex-direction: column; gap: 12px; }
.mp-out { color: var(--muted); border-top: 1px solid var(--line-soft); border-radius: 0 0 8px 8px; margin-top: 4px; }
