/*
 * Card Console, visual system.
 *
 * Direction: a harbormaster's ledger. A calm operations console with
 * nautical-chart cues: a deep-water sidebar carrying the lake itself, brass for
 * the GOLD plan, midnight for ULTIMATE, graphite and safety orange for
 * COMMERCIAL. Every color is a token here; the light and dark themes are
 * designed separately, not inverted.
 */

:root {
  --ground: #ECF1F2;
  --surface: #FFFFFF;
  --raised: #F6F9F9;
  --sunk: #E3EBEC;
  --ink: #0D1F24;
  --ink-2: #33474D;
  --muted: #5F7277;
  --faint: #8A9CA0;
  --rule: #D6E0E2;
  --rule-strong: #BFCED1;

  --water: #0B4F5E;
  --water-ink: #FFFFFF;
  --channel: #1B8A9E;
  --channel-soft: #DDF0F3;
  --brass: #B08227;
  --brass-soft: #F6ECD6;

  --good: #257A4E;  --good-soft: #DFF1E7;
  --warn: #9A6A08;  --warn-soft: #FBF0D4;
  --bad: #B3432B;   --bad-soft: #F8E1DB;
  --info: #2F66A3;  --info-soft: #DFEAF6;
  --idle: #6B7B80;  --idle-soft: #E7ECED;

  --side: #0A2A33;
  --side-ink: #E3F0F2;
  --side-muted: #8FB3BB;
  --side-hover: rgba(255,255,255,.06);
  --side-active: rgba(92,195,214,.16);
  --side-lake: #5CC3D6;

  --tier-gold-a: #D9B25C; --tier-gold-b: #8C6418; --tier-gold-ink: #2B1D04;
  --tier-ult-a: #2B4A63;  --tier-ult-b: #0E1B28;  --tier-ult-ink: #EAF2F7;
  --tier-com-a: #4A5158;  --tier-com-b: #23282D;  --tier-com-ink: #F4F5F6; --tier-com-stripe: #E0702A;

  --shadow-1: 0 1px 2px rgba(13,31,36,.06), 0 1px 1px rgba(13,31,36,.04);
  --shadow-2: 0 10px 30px -12px rgba(13,31,36,.25), 0 2px 6px rgba(13,31,36,.06);
  --shadow-3: 0 30px 80px -20px rgba(8,20,24,.45);

  --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;

  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #081418; --surface: #0F1E23; --raised: #14272D; --sunk: #0B181C;
    --ink: #E4EEF0; --ink-2: #C3D3D6; --muted: #93A7AC; --faint: #6D8287;
    --rule: #1F3339; --rule-strong: #2C454C;
    --water: #5CC3D6; --water-ink: #06161A; --channel: #6FD0E1; --channel-soft: #10333A;
    --brass: #D9B25C; --brass-soft: #2E2410;
    --good: #6CC795; --good-soft: #10291C; --warn: #E3B24A; --warn-soft: #2C2210;
    --bad: #EE8B72; --bad-soft: #321812; --info: #8DB8EA; --info-soft: #132437;
    --idle: #93A4A8; --idle-soft: #172529;
    --side: #06161A; --side-hover: rgba(255,255,255,.05);
    --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 34px -12px rgba(0,0,0,.7);
    --shadow-3: 0 30px 80px -20px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #081418; --surface: #0F1E23; --raised: #14272D; --sunk: #0B181C;
  --ink: #E4EEF0; --ink-2: #C3D3D6; --muted: #93A7AC; --faint: #6D8287;
  --rule: #1F3339; --rule-strong: #2C454C;
  --water: #5CC3D6; --water-ink: #06161A; --channel: #6FD0E1; --channel-soft: #10333A;
  --brass: #D9B25C; --brass-soft: #2E2410;
  --good: #6CC795; --good-soft: #10291C; --warn: #E3B24A; --warn-soft: #2C2210;
  --bad: #EE8B72; --bad-soft: #321812; --info: #8DB8EA; --info-soft: #132437;
  --idle: #93A4A8; --idle-soft: #172529;
  --side: #06161A; --side-hover: rgba(255,255,255,.05);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 34px -12px rgba(0,0,0,.7);
  --shadow-3: 0 30px 80px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 14.5px/1.5 var(--body); -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--channel); }
::selection { background: var(--channel-soft); }
:focus-visible { outline: 2px solid var(--channel); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.num, .mono { font-family: var(--mono); font-feature-settings: "zero"; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ shell */

.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100%; }
.side {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; padding: 18px 14px 14px; gap: 18px;
}
.side .lake-watermark {
  position: absolute; left: -40px; right: -120px; bottom: 40px; opacity: .13;
  color: var(--side-lake); pointer-events: none; transform: rotate(-8deg);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 2px; position: relative; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: radial-gradient(120% 120% at 20% 10%, #2B8EA3 0%, #0E4552 60%, #07252D 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); display: grid; place-items: center;
}
.brand-mark svg { width: 26px; height: 26px; color: #E9F7FA; }
.brand-name { font: 700 16px/1.1 var(--display); letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; color: var(--side-muted); }

.org-chip {
  position: relative; border-radius: 12px; padding: 10px 12px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.org-chip .who { font-weight: 600; font-size: 13.5px; }
.org-chip .meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--side-muted); margin-top: 2px; }
.key-dot { width: 7px; height: 7px; border-radius: 50%; background: #E3B24A; box-shadow: 0 0 0 3px rgba(227,178,74,.18); }
.key-dot.on { background: #6CC795; box-shadow: 0 0 0 3px rgba(108,199,149,.18); }

.nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.nav-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--side-muted); padding: 10px 10px 6px; }
.nav button {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px; color: var(--side-ink); font-size: 14px;
}
.nav button:hover { background: var(--side-hover); }
.nav button[aria-current="page"] { background: var(--side-active); color: #FFFFFF; font-weight: 600; }
.nav button[aria-current="page"] svg { color: var(--side-lake); }
.nav svg { width: 18px; height: 18px; color: var(--side-muted); flex: none; }
.nav .count {
  margin-left: auto; font: 600 11px/1 var(--mono); padding: 4px 7px; border-radius: 20px;
  background: rgba(255,255,255,.08); color: var(--side-ink);
}
.nav .count.alert { background: #B3432B; color: #fff; }
.side-foot { margin-top: auto; position: relative; display: flex; flex-direction: column; gap: 8px; }
.side-btn {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 9px; font-size: 13px; color: var(--side-muted);
}
.side-btn:hover { background: var(--side-hover); color: var(--side-ink); }
.side-btn svg { width: 16px; height: 16px; }
.kbd { font: 600 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 5px; border: 1px solid currentColor; opacity: .7; margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.demo-ribbon {
  display: flex; align-items: center; gap: 10px; padding: 8px 28px; font-size: 13px;
  background: repeating-linear-gradient(-45deg, var(--brass-soft), var(--brass-soft) 12px, transparent 12px, transparent 24px), var(--surface);
  border-bottom: 1px solid var(--rule); color: var(--ink-2);
}
.demo-ribbon b { color: var(--brass); letter-spacing: .08em; font-size: 11.5px; }
.demo-ribbon button { margin-left: auto; }

.page { padding: 26px 32px 64px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font: 700 30px/1.1 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.page-head .sub { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ controls */

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--ink); font-weight: 550; font-size: 13.5px;
  box-shadow: var(--shadow-1); transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--raised); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--water); border-color: var(--water); color: var(--water-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.brass { background: linear-gradient(180deg, var(--tier-gold-a), var(--tier-gold-b)); border-color: #7A5712; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--rule)); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sunk); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { all: unset; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--channel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--channel) 22%, transparent);
}
.field textarea { resize: vertical; min-height: 84px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search input { padding-left: 34px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 550;
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2);
}
.chip:hover { border-color: var(--rule-strong); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip .n { font: 600 11px/1 var(--mono); opacity: .75; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ------------------------------------------------------------ status + tier */

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.35;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-active { color: var(--good); background: var(--good-soft); }
.s-expiring { color: var(--warn); background: var(--warn-soft); }
.s-expired, .s-canceled { color: var(--bad); background: var(--bad-soft); }
.s-not-issued, .s-not-started { color: var(--idle); background: var(--idle-soft); }
.s-changed { color: var(--info); background: var(--info-soft); }

.tier {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px;
  font: 700 11px/1.3 var(--body); letter-spacing: .08em;
}
.tier-GOLD { color: var(--tier-gold-ink); background: linear-gradient(135deg, #F2D892, #D5A948); box-shadow: inset 0 0 0 1px rgba(122,87,18,.25); }
.tier-ULTIMATE { color: var(--tier-ult-ink); background: linear-gradient(135deg, var(--tier-ult-a), var(--tier-ult-b)); }
.tier-COMMERCIAL { color: var(--tier-com-ink); background: linear-gradient(135deg, var(--tier-com-a), var(--tier-com-b)); box-shadow: inset 3px 0 0 var(--tier-com-stripe); }
.tier-CAPTAIN { color: #FFFFFF; background: linear-gradient(135deg, #1B3A4B, #0B1F2A); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 700 12.5px/1 var(--display); letter-spacing: .02em; color: #fff;
}
.avatar.GOLD { background: linear-gradient(135deg, #D9B25C, #8C6418); }
.avatar.ULTIMATE { background: linear-gradient(135deg, #3B6585, #0E1B28); }
.avatar.COMMERCIAL { background: linear-gradient(135deg, #5A626A, #23282D); box-shadow: inset 0 -3px 0 var(--tier-com-stripe); }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }

/* ------------------------------------------------------------ panels */

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.panel-head h2 { font: 650 15px/1.2 var(--display); margin: 0; letter-spacing: -.005em; }
.panel-head .hint { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.panel-body { padding: 14px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ overview */

.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px 28px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(92,195,214,.28) 0%, transparent 55%),
    linear-gradient(135deg, #0C3C48 0%, #0A2A33 55%, #07181D 100%);
  color: #EAF6F8; box-shadow: var(--shadow-2); margin-bottom: 16px;
}
.hero .lake {
  position: absolute; right: -30px; top: -10px; width: 640px; max-width: 70%; color: #5CC3D6; opacity: .3;
  filter: drop-shadow(0 0 20px rgba(92,195,214,.25));
}
.hero .lake.draw path { stroke-dasharray: 9000; stroke-dashoffset: 9000; animation: draw 3.2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: end; }
@media (max-width: 1100px) { .hero-inner { grid-template-columns: 1fr; } }
.hero .eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #9FD3DE; }
.hero h1 { font: 700 34px/1.08 var(--display); letter-spacing: -.02em; margin: 8px 0 6px; text-wrap: balance; }
.hero p { margin: 0; color: #B9D9E0; max-width: 52ch; }
.hero-big { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.hero-big b { font: 700 64px/0.9 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-big span { color: #B9D9E0; font-size: 14px; }

.gauge { background: rgba(255,255,255,.06); border-radius: 14px; padding: 16px 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.gauge-top { display: flex; justify-content: space-between; font-size: 12.5px; color: #B9D9E0; margin-bottom: 26px; }
.gauge-top b { color: #fff; font-weight: 600; }
.gauge-track { position: relative; height: 38px; }
.gauge-bar { position: absolute; left: 0; right: 0; top: 10px; height: 12px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #1B8A9E, #5CC3D6); box-shadow: 0 0 16px rgba(92,195,214,.6); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.gauge-ticks { position: absolute; left: 0; right: 0; top: 26px; display: flex; justify-content: space-between; font: 600 10.5px/1 var(--mono); color: #7FB6C2; }
.gauge-now { position: absolute; top: 2px; width: 2px; height: 28px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px rgba(255,255,255,.8); transform: translateX(-1px); }
.gauge-now::after { content: attr(data-label); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font: 700 10.5px/1 var(--mono); color: #fff; white-space: nowrap; }

.stat { padding: 16px 18px; position: relative; overflow: hidden; }
.stat .label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.stat .label .dot { width: 8px; height: 8px; border-radius: 50%; }
.stat .value { font: 700 36px/1 var(--display); letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat .foot { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.stat .foot b { color: var(--ink-2); font-weight: 600; }
.stat.clickable { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.stat.clickable:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }

.mix { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 3px; margin: 6px 0 14px; }
.mix > div { height: 100%; }
.mix-legend { display: grid; gap: 10px; }
.mix-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; font-size: 13.5px; }
.mix-row .pct { font: 600 12px/1 var(--mono); color: var(--muted); width: 42px; text-align: right; }

.chart { width: 100%; height: 190px; display: block; }
.chart .bar { transition: opacity .15s; }
.chart .bar:hover { opacity: .8; }
.chart text { font: 600 11px var(--mono); fill: var(--muted); }
.chart .gridline { stroke: var(--rule); stroke-dasharray: 2 4; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.list li:first-child { border-top: 0; }
.list .grow { min-width: 0; flex: 1; }
.list .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .meta { font-size: 12.5px; color: var(--muted); }
.days { font: 700 12px/1 var(--mono); padding: 5px 8px; border-radius: 7px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.days.urgent { background: var(--bad-soft); color: var(--bad); }

.feed { list-style: none; margin: 0; padding: 0; position: relative; }
.feed li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 9px 0; align-items: start; }
.feed li::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: -9px; width: 2px; background: var(--rule); }
.feed li:last-child::before { display: none; }
.feed .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted); position: relative; z-index: 1; }
.feed .ic svg { width: 14px; height: 14px; }
.feed .ic.issued, .feed .ic.renewed { background: var(--good-soft); color: var(--good); }
.feed .ic.canceled { background: var(--bad-soft); color: var(--bad); }
.feed .ic.texted, .feed .ic.emailed, .feed .ic.copied { background: var(--channel-soft); color: var(--channel); }
.feed .ic.edited, .feed .ic.added { background: var(--info-soft); color: var(--info); }
.feed .ic.published { background: var(--brass-soft); color: var(--brass); }
.feed .what { font-size: 13.5px; }
.feed .what b { font-weight: 600; }
.feed .when { font-size: 12px; color: var(--faint); white-space: nowrap; }
.feed .detail { font-size: 12.5px; color: var(--muted); }

.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 1000px) { .promise { grid-template-columns: 1fr; } }
.promise .panel { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.promise .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--channel-soft); color: var(--channel); }
.promise .ico svg { width: 20px; height: 20px; }
.promise h3 { margin: 0 0 3px; font: 650 14.5px/1.25 var(--display); }
.promise p { margin: 0; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ members table */

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
table.roster { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 980px; }
.roster th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 650; padding: 11px 14px; background: var(--raised); border-bottom: 1px solid var(--rule);
}
.roster th:first-child { border-top-left-radius: var(--r-lg); }
.roster th:last-child { border-top-right-radius: var(--r-lg); }
.roster td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; font-size: 13.5px; }
.roster tbody tr { cursor: pointer; transition: background .12s; }
.roster tbody tr:hover { background: var(--raised); }
.roster tbody tr.selected { background: var(--channel-soft); }
.roster tbody tr:last-child td { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who .n { font-weight: 600; white-space: nowrap; }
.who .s { font-size: 12px; color: var(--muted); }
.boats-cell { max-width: 260px; }
.boats-cell .b1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boats-cell .more { font-size: 12px; color: var(--muted); }
.valid { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.valid .dates { font-size: 12.5px; white-space: nowrap; }
.valid .track { height: 4px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.valid .track i { display: block; height: 100%; background: var(--channel); border-radius: 3px; }
.valid .track i.warn { background: var(--warn); }
.valid .track i.bad { background: var(--bad); }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; opacity: .0; transition: opacity .12s; }
.roster tr:hover .row-actions, .roster tr:focus-within .row-actions { opacity: 1; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty svg { width: 42px; height: 42px; color: var(--faint); margin-bottom: 8px; }
.empty h3 { color: var(--ink); font: 650 16px var(--display); margin: 4px 0; }

/* ------------------------------------------------------------ drawer + modals */

.scrim { position: fixed; inset: 0; background: rgba(6,18,22,.42); backdrop-filter: blur(2px); z-index: 40; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 96vw); z-index: 41;
  background: var(--surface); box-shadow: var(--shadow-3); display: flex; flex-direction: column;
  animation: slide .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { font: 700 20px/1.15 var(--display); margin: 0; letter-spacing: -.01em; }
.drawer-head .close { margin-left: auto; }
.drawer-body { overflow-y: auto; padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.boat-list { display: grid; gap: 8px; }
.boat { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--raised); border: 1px solid var(--rule); }
.boat svg { width: 20px; height: 20px; color: var(--channel); flex: none; }
.boat .reg { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.danger-zone { border: 1px dashed color-mix(in srgb, var(--bad) 35%, var(--rule)); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.danger-zone p { margin: 0; font-size: 12.5px; color: var(--muted); flex: 1; min-width: 200px; }

.modal {
  position: fixed; left: 50%; top: 8vh; transform: translateX(-50%); width: min(720px, 94vw); max-height: 84vh; z-index: 41;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); display: flex; flex-direction: column;
  animation: pop .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { transform: translateX(-50%) scale(.97); opacity: 0; } }
.modal-head { padding: 18px 22px 12px; display: flex; align-items: center; gap: 10px; }
.modal-head h2 { font: 700 20px/1.2 var(--display); margin: 0; }
.modal-body { padding: 4px 22px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--rule); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.modal-foot .left { margin-right: auto; font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.tier-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tier-pick label { cursor: pointer; border-radius: 11px; border: 1.5px solid var(--rule); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.tier-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tier-pick label:has(input:checked) { border-color: var(--channel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--channel) 18%, transparent); }
.tier-pick .d { font-size: 12px; color: var(--muted); }
.boat-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.msgs { margin: 0; padding-left: 18px; font-size: 13px; }
.msgs.err { color: var(--bad); }
.msgs.warn { color: var(--warn); }

/* ------------------------------------------------------------ phone + card */

.phone {
  width: 316px; margin: 0 auto; border-radius: 42px; padding: 12px; position: relative;
  background: linear-gradient(145deg, #1D2B31, #0B1316); box-shadow: var(--shadow-2), inset 0 0 0 1.5px #3A4C53;
}
.phone-screen { border-radius: 32px; overflow: hidden; background: #F1F5F5; padding: 38px 14px 18px; position: relative; min-height: 420px; }
.phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 88px; height: 22px; border-radius: 12px; background: #0B1316; }
.phone-app { font-size: 11px; color: #56686D; display: flex; justify-content: space-between; margin-bottom: 8px; padding: 0 4px; }
.phone-title { font: 700 15px var(--display); color: #0D1F24; margin: 0 4px 10px; }

.mcard {
  position: relative; overflow: hidden; border-radius: 16px; padding: 16px; color: #fff;
  background: #0F4C5C; display: flex; flex-direction: column; gap: 11px; box-shadow: 0 14px 30px -14px rgba(15,76,92,.8);
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
}
.mcard.lapsed { background: #5A5F66; box-shadow: none; }
.mcard.live::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.17) 45%, transparent 60%);
  transform: translateX(var(--sweep, -60%));
}
.mcard .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mcard .iss { font-size: 9.5px; letter-spacing: .1em; opacity: .75; }
.mcard .tr { font-weight: 600; font-size: 14px; }
.mcard .st { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; padding: 5px 8px; border-radius: 20px; background: #2E7D4F; white-space: nowrap; }
.mcard .st.warn { background: #B8860B; } .mcard .st.bad { background: #B0452B; } .mcard .st.idle { background: #6B7B80; }
.mcard .nm { font-size: 19px; font-weight: 600; line-height: 1.15; }
.mcard .no { font: 500 11.5px var(--mono); opacity: .85; letter-spacing: .04em; }
.mcard .fl { display: grid; grid-template-columns: 1.15fr .95fr 1.2fr; gap: 6px; }
.mcard .fl span { display: block; font-size: 8.5px; letter-spacing: .1em; opacity: .65; }
.mcard .fl b { font-size: 11.5px; font-weight: 600; overflow-wrap: anywhere; }
.mcard .also { font-size: 10.5px; }
.mcard .also span { display: block; font-size: 8.5px; letter-spacing: .1em; opacity: .65; }
.mcard .lv { background: rgba(255,255,255,.14); border-radius: 9px; padding: 8px 11px; display: flex; justify-content: space-between; align-items: center; }
.mcard .lv .d { font-size: 9.5px; opacity: .8; }
.mcard .lv .t { font: 500 17px var(--mono); font-variant-numeric: tabular-nums; }
.mcard .lv i { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: var(--pulse, .6); }
.phone-call { margin-top: 10px; text-align: center; background: #0F4C5C; color: #fff; border-radius: 22px; padding: 9px; font-size: 12px; font-weight: 600; }

/* The seal that lands when a card is signed. */
.seal {
  position: absolute; right: 18px; bottom: 90px; width: 96px; height: 96px; z-index: 3; pointer-events: none;
  animation: stamp .55s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes stamp { 0% { transform: scale(2.2) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-12deg); opacity: 1; } }
.seal svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }

/* ------------------------------------------------------------ send sheet */

.send-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .send-grid { grid-template-columns: 1fr; } }
.qr { background: #fff; border-radius: 14px; padding: 12px; box-shadow: inset 0 0 0 1px var(--rule); }
.qr svg { width: 100%; height: auto; display: block; }
.qr-cap { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.sms {
  background: var(--raised); border: 1px solid var(--rule); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.bubble { align-self: flex-end; max-width: 92%; background: #1F8BFF; color: #fff; padding: 9px 13px; border-radius: 18px 18px 4px 18px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.bubble a { color: #fff; text-decoration: underline; }
.link-box { display: flex; gap: 8px; }
.link-box input { font-family: var(--mono); font-size: 12px; }

/* ------------------------------------------------------------ check */

.drop {
  border: 2px dashed var(--rule-strong); border-radius: var(--r-lg); padding: 22px; background: var(--raised);
  transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--channel); background: var(--channel-soft); }
.drop textarea { width: 100%; min-height: 96px; border: 0; background: transparent; resize: vertical; font: 13px/1.5 var(--mono); color: var(--ink); outline: none; }
.verdict { border-radius: var(--r-lg); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.verdict.ok { background: var(--good-soft); color: var(--good); }
.verdict.no { background: var(--bad-soft); color: var(--bad); }
.verdict.lapsed { background: var(--warn-soft); color: var(--warn); }
.verdict svg { width: 28px; height: 28px; flex: none; }
.verdict h3 { margin: 0 0 3px; font: 700 18px/1.2 var(--display); }
.verdict p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.check-grid { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; margin-top: 16px; }
@media (max-width: 980px) { .check-grid { grid-template-columns: 1fr; } }
.sig { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.sig dt { color: var(--muted); }
.sig dd { margin: 0; overflow-wrap: anywhere; }
pre.json { margin: 0; padding: 14px; border-radius: 12px; background: var(--sunk); font: 12.5px/1.6 var(--mono); overflow-x: auto; color: var(--ink-2); }
pre.json .k { color: var(--channel); } pre.json .s { color: var(--brass); } pre.json .n { color: var(--info); }
.tamper-note { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------ cancellations */

.pub-status { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); }
.pub-status.ok { background: var(--good-soft); }
.pub-status.stale { background: var(--bad-soft); }
.pub-status > svg { width: 30px; height: 30px; flex: none; }
.pub-status.ok > svg { color: var(--good); } .pub-status.stale > svg { color: var(--bad); }
.pub-status h3 { margin: 0; font: 700 17px var(--display); }
.pub-status p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.pub-status .btn { margin-left: auto; }
.diff { display: flex; gap: 8px; flex-wrap: wrap; }
.diff span { font: 600 12px var(--mono); padding: 4px 8px; border-radius: 6px; }
.diff .add { background: var(--bad-soft); color: var(--bad); }
.diff .rem { background: var(--good-soft); color: var(--good); }

/* ------------------------------------------------------------ settings */

.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .settings-grid { grid-template-columns: 1fr; } }
.fp { display: flex; gap: 16px; align-items: center; }
.fp-art { width: 84px; height: 84px; border-radius: 16px; overflow: hidden; flex: none; box-shadow: var(--shadow-1); }
.fp-art svg { width: 100%; height: 100%; display: block; }
.fp-hex { font: 600 14px/1.6 var(--mono); letter-spacing: .06em; }
.keybox { font: 12px/1.5 var(--mono); padding: 12px; border-radius: 10px; background: var(--sunk); overflow-wrap: anywhere; color: var(--ink-2); }
.danger-panel { border-color: color-mix(in srgb, var(--bad) 30%, var(--rule)); }

/* ------------------------------------------------------------ setup + unlock */

.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .gate { grid-template-columns: 1fr; } .gate-art { display: none; } }
.gate-art {
  position: relative; overflow: hidden; color: #E3F0F2; padding: 44px;
  background: radial-gradient(80% 90% at 80% 20%, rgba(92,195,214,.25), transparent 60%), linear-gradient(160deg, #0C3C48, #07181D);
  display: flex; flex-direction: column; justify-content: space-between;
}
.gate-art .lake { position: absolute; left: -10%; right: -25%; top: 22%; color: #5CC3D6; opacity: .3; }
.gate-art h2 { position: relative; font: 700 40px/1.05 var(--display); letter-spacing: -.02em; margin: 0; max-width: 14ch; }
.gate-art p { position: relative; color: #A9CFD7; max-width: 44ch; }
.gate-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.gate-card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 16px; }
.gate-card h1 { font: 700 28px/1.1 var(--display); margin: 0; letter-spacing: -.02em; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.err-text { color: var(--bad); font-size: 13px; min-height: 1em; }

/* ------------------------------------------------------------ palette + toast */

.palette { position: fixed; left: 50%; top: 14vh; transform: translateX(-50%); width: min(620px, 94vw); z-index: 51; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden; animation: pop .16s ease-out; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--rule); padding: 16px 18px; font-size: 16px; background: transparent; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.palette li[aria-selected="true"] { background: var(--channel-soft); }
.palette li .t { font-weight: 550; }
.palette li .d { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.palette li svg { width: 16px; height: 16px; color: var(--muted); }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--ink); color: var(--surface); padding: 11px 16px; border-radius: 12px; font-size: 13.5px; box-shadow: var(--shadow-2); display: flex; gap: 10px; align-items: center; animation: toast .25s cubic-bezier(.2,.8,.2,1); max-width: 440px; }
.toast svg { width: 16px; height: 16px; color: #6CC795; flex: none; }
@keyframes toast { from { transform: translateY(10px); opacity: 0; } }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .lake-watermark, .org-chip, .side-foot, .nav-label { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .page { padding: 20px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .lake.draw path { stroke-dashoffset: 0; }
}

.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.mini-stats div { display: flex; flex-direction: column; gap: 2px; }
.mini-stats b { font: 700 22px/1 var(--display); }
.mini-stats span { font-size: 12px; color: var(--muted); }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flow-step { padding: 16px 18px; }
.flow-step .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--channel-soft); color: var(--channel); margin-bottom: 10px; }
.flow-step .ico svg { width: 18px; height: 18px; }
.flow-step h3 { margin: 0 0 4px; font: 650 14px/1.25 var(--display); }
.flow-step p { margin: 0; font-size: 12.5px; color: var(--muted); }
.mcard.refused { background: linear-gradient(160deg, #7A2E1F, #4A1A11); min-height: 210px; justify-content: center; align-items: center; text-align: center; }
.mcard.refused .refused-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.mcard.refused .refused-ic svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------ demo tour */

.tour {
  position: fixed; left: 14px; bottom: 108px; width: 228px; z-index: 45;
  background: linear-gradient(170deg, rgba(20,64,76,.97), rgba(8,30,36,.98));
  color: #E3F0F2; border-radius: 16px; padding: 14px 14px 12px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.6), inset 0 0 0 1px rgba(143,227,242,.16);
  font-size: 13px; animation: tourin .35s cubic-bezier(.2,.8,.2,1);
}
.tour.collapsed { background: none; box-shadow: none; padding: 0; width: auto; }
.tour-pill {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; font: 600 12.5px var(--body);
  color: #1E1403; background: linear-gradient(180deg, #E6C272, #B08227);
  box-shadow: 0 10px 24px -10px rgba(230,194,114,.7);
}
.tour-pill svg { width: 15px; height: 15px; }
.tour-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tour-kicker { font: 700 10.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #E6C272; }
.tour-count { font: 650 15px/1.2 var(--display); margin-top: 5px; }
.tour-x { border: 0; background: rgba(255,255,255,.08); color: inherit; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.tour-x svg { width: 14px; height: 14px; }
.tour-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin: 11px 0 10px; overflow: hidden; }
.tour-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8FE3F2, #E6C272); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.tour-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tour-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; padding: 6px 4px; border-radius: 10px; color: #8FB3BB; }
.tour-steps li.next { background: rgba(143,227,242,.08); color: #E3F0F2; padding: 9px 8px 10px; }
.tour-steps li.done { color: #B9D9E0; }
.tour-steps li.done .tour-title { text-decoration: line-through; text-decoration-color: rgba(185,217,224,.45); }
.tour-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--mono); background: rgba(255,255,255,.08); }
.tour-steps li.next .tour-dot { background: #E6C272; color: #1E1403; }
.tour-steps li.done .tour-dot { background: #257A4E; color: #fff; }
.tour-steps li.pop .tour-dot { animation: tourpop .5s cubic-bezier(.2,1.6,.4,1); }
.tour-dot svg { width: 13px; height: 13px; }
@keyframes tourpop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.tour-title { font-weight: 650; line-height: 22px; }
.tour-text { font-size: 12.5px; color: #B9D9E0; margin: 2px 0 9px; line-height: 1.45; }
.tour-go {
  display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer;
  padding: 7px 12px; border-radius: 9px; font: 650 12.5px var(--body);
  color: #1E1403; background: linear-gradient(180deg, #E6C272, #B08227);
}
.tour-go svg { width: 13px; height: 13px; }
.tour-finish { display: flex; flex-direction: column; gap: 4px; }
.tour-finish .tour-text { margin-bottom: 8px; }
.tour-glow { position: relative; animation: tourglow 1.4s ease-out infinite; z-index: 2; }
@keyframes tourglow {
  0% { box-shadow: 0 0 0 0 rgba(230,194,114,.85), 0 0 0 0 rgba(230,194,114,.4); }
  100% { box-shadow: 0 0 0 5px rgba(230,194,114,0), 0 0 0 14px rgba(230,194,114,0); }
}
@media (max-width: 860px) {
  .tour { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .tour.collapsed { right: auto; }
  .tour-steps li:not(.next) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tour-glow { outline: 3px solid #E6C272; outline-offset: 3px; } }
@keyframes tourin { from { transform: translateY(12px); opacity: 0; } }
@media (min-width: 861px) and (max-height: 820px) {
  .tour { bottom: 96px; }
  .tour-steps li:not(.next) { display: none; }
}
.roster td.num, .roster .num { white-space: nowrap; }
.tour-pill.pop { animation: tourpop .5s cubic-bezier(.2,1.6,.4,1); }

/* The roster as a stack of cards on a phone: tap a member to open them. */
@media (max-width: 700px) {
  table.members-list { min-width: 0; display: block; }
  .members-list thead { display: none; }
  .members-list tbody { display: block; }
  .members-list tr {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center;
    grid-template-areas: "who who who st" "num plan boats boats" "valid valid valid valid";
    gap: 8px 10px; padding: 13px 14px; border-bottom: 1px solid var(--rule);
  }
  .members-list tr:last-child { border-bottom: 0; }
  .members-list td { display: block; padding: 0; border: 0 !important; }
  .members-list td:nth-child(1) { grid-area: who; }
  .members-list td:nth-child(2) { grid-area: num; font-size: 12px; color: var(--muted); }
  .members-list td:nth-child(3) { grid-area: plan; }
  .members-list td:nth-child(4) { grid-area: boats; font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .members-list td:nth-child(4) .more { display: none; }
  .members-list td:nth-child(5) { grid-area: valid; }
  .members-list td:nth-child(6) { grid-area: st; align-self: start; }
  .members-list td:nth-child(7) { display: none; }
  .toolbar .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; max-width: 100%; }
  .toolbar .search { flex: 1 1 100%; }
}
.chip { white-space: nowrap; flex: none; } .drawer-head .mono { white-space: nowrap; }
.feed .when .by { display: block; font-size: 11px; color: var(--faint); text-align: right; }
.org-chip .role { font-weight: 650; text-transform: capitalize; color: var(--side-ink); }
