/* ProjectMoosed Ops Portal — design system.
   Clean, dense, phone-first. Dark mode via prefers-color-scheme. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #1a1d21;
  --muted: #6b7280;
  --border: #e2e5ea;
  --accent: #b45309;          /* amber — the company color */
  --accent-soft: #fef3e2;
  --accent-text: #92400e;
  --ok: #15803d; --ok-soft: #e7f6ec;
  --warn: #b45309; --warn-soft: #fef3e2;
  --danger: #b91c1c; --danger-soft: #fdecec;
  --info: #1d4ed8; --info-soft: #e8effd;
  --radius: 10px;
  --card: #ffffff;
  --line: #e2e5ea;
  --hover: #eef0f3;
  --accent-btn: #b45309;
  --shadow: 0 1px 3px rgba(16,24,40,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1a1d24;
    --surface-2: #23262f;
    --text: #e8eaed;
    --muted: #9aa0ad;
    --border: #2e323c;
    --accent: #f59e0b;
    --accent-soft: #2c2314;
    --accent-text: #fbbf24;
    --ok: #4ade80; --ok-soft: #14291c;
    --warn: #fbbf24; --warn-soft: #2c2314;
    --danger: #f87171; --danger-soft: #2e1a1a;
    --info: #93c5fd; --info-soft: #17233a;
    --card: #1a1d24;
    --line: #2e323c;
    --hover: #23262f;
    --accent-btn: #f59e0b;
    --shadow: 0 1px 3px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 10px 16px; box-shadow: var(--shadow);
}
.brand { font-weight: 800; font-size: 16px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.nav a {
  padding: 7px 12px; border-radius: 8px; color: var(--muted);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.userbox { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.uname { font-size: 13px; font-weight: 600; }
.uname em { font-style: normal; color: var(--muted); font-weight: 400; }
.logout { font-size: 13px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 18px; padding: 4px 10px; color: var(--text); cursor: pointer; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }

h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 24px 0 10px; }
h3 { font-size: 15px; margin: 16px 0 8px; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- cards & grids ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.grid { display: grid; gap: 14px; }
.grid.stats { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: 1fr 1fr; }
.stat .num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }
.stat .delta { font-size: 12px; margin-top: 6px; }

/* ---------- progress bars ---------- */
.pbar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.prow { display: flex; align-items: center; gap: 10px; }
.prow .pbar { flex: 1; }
.prow .pct { font-size: 13px; font-weight: 700; min-width: 44px; text-align: right; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px;
  border-radius: 99px; white-space: nowrap;
}
.pill.todo    { background: var(--surface-2); color: var(--muted); }
.pill.doing   { background: var(--info-soft); color: var(--info); }
.pill.done    { background: var(--ok-soft); color: var(--ok); }
.pill.blocked { background: var(--danger-soft); color: var(--danger); }
.pill.active  { background: var(--ok-soft); color: var(--ok); }
.pill.on_hold { background: var(--warn-soft); color: var(--warn); }
.pill.high    { background: var(--danger-soft); color: var(--danger); }
.pill.medium  { background: var(--warn-soft); color: var(--warn); }
.pill.low     { background: var(--surface-2); color: var(--muted); }
.pill.admin   { background: #ede9fe; color: #6d28d9; }
.pill.board   { background: var(--info-soft); color: var(--info); }
.pill.vp      { background: var(--accent-soft); color: var(--accent-text); }
.pill.employee{ background: var(--surface-2); color: var(--muted); }
@media (prefers-color-scheme: dark) { .pill.admin { background: #2a2140; color: #c4b5fd; } }

/* ---------- tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl .r { text-align: right; }

/* ---------- lists ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: none; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 14.5px; }
.row .m { color: var(--muted); font-size: 13px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}

/* ---------- forms ---------- */
form.f { display: grid; gap: 12px; max-width: 640px; }
label.fl { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=date],
input[type=datetime-local], input[type=number], select, textarea {
  font: inherit; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--text); width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  background: var(--accent-btn, var(--accent)); color: #fff; text-align: center;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn.ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn.danger { background: var(--danger-soft); color: var(--danger); border-color: var(--border); }
.btn.small { padding: 5px 12px; font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input { width: auto; }

/* ---------- thread / notes ---------- */
.msg { border-left: 3px solid var(--border); padding: 8px 0 8px 14px; margin: 10px 0; }
.msg .who { font-size: 13px; font-weight: 700; }
.msg .when { font-size: 12px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.msg .body { margin-top: 4px; font-size: 14.5px; white-space: pre-wrap; }
.msg .replies { margin-left: 8px; }
.note-body { white-space: pre-wrap; font-size: 14.5px; }

/* ---------- misc ---------- */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--danger-soft); color: var(--danger); }
.flash.toast { background: var(--ok-soft); color: var(--ok); position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 9999; box-shadow: 0 8px 28px rgba(0,0,0,.28); padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex: none; }
.dep-warn { background: var(--warn-soft); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 10px 0; }

/* login */
.loginwrap { max-width: 380px; margin: 8vh auto 0; }
.loginwrap .card { padding: 28px; }
.loginwrap h1 { text-align: center; margin-bottom: 4px; }
.loginwrap .sub { text-align: center; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .grid.stats { grid-template-columns: repeat(2, 1fr); }
  .grid.two { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 8px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .topbar { position: sticky; flex-wrap: nowrap; }
  .userbox .uname { display: none; }
  h1 { font-size: 21px; }
  .tbl th:nth-child(n+4), .tbl td:nth-child(n+4) { display: none; } /* keep tables readable on phones */
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 8px; }
}

/* ---------- v1.2: responsive users table ---------- */
/* Desktop: inline password form sits beside the Edit button. */
.pw-inline { display: inline; }
.pw-inline input { width: 130px; }

/* Phones: the users table becomes stacked cards so every action stays usable. */
@media (max-width: 700px) {
  table.tbl.users-tbl thead { display: none; }
  table.tbl.users-tbl,
  table.tbl.users-tbl tbody,
  table.tbl.users-tbl tr,
  table.tbl.users-tbl td { display: block; width: 100%; box-sizing: border-box; }
  table.tbl.users-tbl tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; padding: 4px 2px; }
  table.tbl.users-tbl tr:hover td { background: transparent; }
  table.tbl.users-tbl td { border-bottom: none; padding: 7px 12px; }
  table.tbl.users-tbl td.r { text-align: left; }
  table.tbl.users-tbl td::before {
    content: attr(data-th); display: block;
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); font-weight: 600; margin-bottom: 2px;
  }
  table.tbl.users-tbl td[data-th="Name"]::before,
  table.tbl.users-tbl td[data-th="Actions"]::before { display: none; }
  .pw-inline { display: flex; gap: 8px; margin-top: 10px; }
  .pw-inline input { flex: 1; min-width: 0; width: auto; }
}

/* ---------- v1.2: profile ---------- */
.profile-achv { border-left: 3px solid var(--accent, #f5a623); padding-left: 10px; }

/* Presence — who's online (Team page) */
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 2px var(--surface); vertical-align:middle; }
.online-strip { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.online-chip { display:inline-flex; gap:7px; align-items:center; background:var(--surface-2); border:1px solid var(--border); border-radius:999px; padding:4px 12px 4px 5px; font-size:13px; font-weight:600; color:var(--text); text-decoration:none; }
.online-chip .avatar { width:24px; height:24px; font-size:12px; position:relative; }
.online-chip .avatar .dot { position:absolute; right:-1px; bottom:-1px; width:8px; height:8px; }

/* Comms — chat bubbles */
.chat { display:flex; flex-direction:column; gap:10px; }
.cb-row { display:flex; gap:8px; align-items:flex-end; max-width:85%; }
.cb-row.me { align-self:flex-end; flex-direction:row-reverse; }
.cb-row .avatar { width:30px; height:30px; font-size:13px; flex:0 0 auto; }
.cb-bubble { background:var(--surface-2); border:1px solid var(--border); border-radius:16px; border-bottom-left-radius:4px; padding:8px 12px; }
.cb-row.me .cb-bubble { background:var(--accent-soft); border-color:var(--accent); border-radius:16px; border-bottom-right-radius:4px; }
.cb-meta { font-size:11px; color:var(--muted); margin-bottom:2px; }
.cb-meta strong { color:var(--text); font-size:12px; }
.cb-body { font-size:14px; overflow-wrap:anywhere; }
.chat-reply { display:flex; gap:8px; margin-top:12px; border-top:1px solid var(--border); padding-top:10px; }
.chat-reply textarea { flex:1; min-height:38px; }
/* === Report Card v1.3 — Facebook-style chat screen (append to style.css) === */
.fb-chat { display:flex; gap:16px; align-items:flex-start; }
.fb-people { width:320px; flex:0 0 320px; padding:10px; max-height:76vh; overflow:auto; }
.fb-list-head { display:flex; justify-content:space-between; align-items:center; font-weight:700; padding:4px 8px 10px; }
.fb-person { display:flex; align-items:center; gap:6px; padding:7px 8px; border-radius:10px; }
.fb-person:hover { background:var(--bg); }
.fb-person.current { background:var(--accent-soft); }
a.fb-person { text-decoration:none; color:inherit; }
.fb-open { display:flex; align-items:center; gap:10px; flex:1 1 auto; min-width:0; text-decoration:none; color:inherit; }
.fb-ava { position:relative; width:40px; height:40px; border-radius:50%; background:var(--accent-soft);
          color:var(--accent-text); font-weight:700; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.fb-ava.grp { background:var(--accent); color:#fff; }
.fb-ava .dot { position:absolute; right:-1px; bottom:-1px; width:11px; height:11px; border-radius:50%;
               background:#b6bec9; border:2px solid #fff; display:none; }
.fb-ava .dot.on { background:#22c55e; display:block; }
.fb-ava .dot:not(.on) { display:block; }
.fb-who { display:flex; flex-direction:column; min-width:0; flex:1 1 auto; }
.fb-name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fb-status { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fb-badge { background:#e0245e; color:#fff; font-size:11px; font-weight:700; border-radius:999px;
            min-width:19px; height:19px; line-height:19px; text-align:center; padding:0 5px; flex:0 0 auto; }
.fb-chip { font-size:11px; font-weight:700; color:var(--accent-text); background:var(--accent-soft);
           border-radius:999px; padding:3px 8px; flex:0 0 auto; white-space:nowrap; }
.fb-bring { margin:0; flex:0 0 auto; }
.fb-bringall { padding:10px 8px 4px; border-top:1px solid var(--border); margin-top:6px; }
.fb-thread { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.fb-thread-head { display:flex; flex-direction:column; padding-bottom:10px; border-bottom:1px solid var(--border); margin-bottom:12px; }
.fb-thread-head .fb-name { font-size:17px; }
.fb-thread .chat { max-height:58vh; overflow:auto; padding-right:4px; flex:1 1 auto; }
.fb-note { margin-top:10px; display:flex; align-items:center; gap:8px; }
@media (max-width: 800px) {
  .fb-chat { flex-direction:column; }
  .fb-people { width:100%; flex:none; max-height:260px; }
  .fb-thread { width:100%; }
}
/* === Report Card chat v1.4 — rooms, unread, live (append to style.css) === */
.fb-unread-strip { background:var(--accent-soft); border:1px solid var(--accent); border-radius:10px; padding:8px 10px; margin:0 0 10px; }
.fb-unread-title { font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--accent-text); margin-bottom:5px; }
.fb-unread-item { display:flex; justify-content:space-between; align-items:center; padding:4px 2px; text-decoration:none; color:inherit; font-weight:600; }
.fb-unread-item:hover { text-decoration:underline; }
.fb-newgroup { margin-top:10px; border-top:1px solid var(--border); padding:10px 8px 4px; }
.fb-newgroup summary { cursor:pointer; font-weight:600; }
.fb-newgroup form { margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.fb-newgroup select { width:100%; }
.nav-badge { background:#e0245e; color:#fff; font-size:10px; font-weight:700; border-radius:999px;
             min-width:16px; height:16px; line-height:16px; text-align:center; padding:0 4px;
             display:inline-block; vertical-align:top; margin-left:3px; }
/* === Report Card chat v1.5 — tabs + mobile single-pane (append to style.css) === */
.fb-tabs { display:flex; gap:4px; padding:2px 2px 10px; }
.fb-tab { flex:1 1 0; text-align:center; padding:7px 4px; border-radius:999px; font-weight:600;
          text-decoration:none; color:inherit; background:var(--bg); }
.fb-tab.active { background:var(--accent); color:#fff; }
.fb-backbar { display:none; text-decoration:none; font-weight:600; padding:6px 0 10px; }
.chat-reply textarea { flex:1 1 auto; min-width:0; }
.cb-body { word-break:break-word; overflow-wrap:anywhere; }
@media (max-width: 800px) {
  .fb-chat.has-thread .fb-people { display:none; }
  .fb-chat.has-thread .fb-backbar { display:block; }
  .fb-chat.no-thread .fb-thread { display:none; }
  .fb-chat.no-thread .fb-people { max-height:none; overflow:visible; }
  .fb-thread .chat { max-height:52vh; }
}
/* === Report Card chat v1.6 — reactions, pins, typing, mentions, photos, search === */
.cb-tools { display:flex; gap:8px; align-items:flex-start; margin-top:3px; }
.cb-react { position:relative; }
.cb-react summary { cursor:pointer; list-style:none; font-size:13px; opacity:.65; padding:1px 4px; }
.cb-react summary::-webkit-details-marker { display:none; }
.cb-picker { position:absolute; z-index:5; bottom:22px; left:0; display:flex; gap:2px;
             background:var(--card); border:1px solid var(--line); border-radius:999px; padding:3px 6px;
             box-shadow:0 4px 14px rgba(0,0,0,.18); }
.cb-row.me .cb-picker { left:auto; right:0; }
.cb-rxform button { background:none; border:0; font-size:16px; cursor:pointer; padding:2px; }
.cb-pinform button { background:none; border:0; cursor:pointer; font-size:11px; opacity:.65; padding:2px 4px; color:inherit; }
.cb-reactions { display:flex; gap:4px; margin-top:4px; flex-wrap:wrap; }
.cb-rx { background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:0 7px; font-size:12px; }
.cb-rx.mine { border-color:var(--accent); }
.cb-seen { text-align:right; font-size:11px; color:var(--muted); padding:0 6px 2px; }
.cb-typing { padding:2px 10px 6px; font-size:12px; color:var(--muted); font-style:italic; }
.cb-olderbar { text-align:center; padding:6px 10px 2px; font-size:12px; color:var(--muted); }
.cb-img { max-width:320px; width:100%; border-radius:10px; margin-top:4px; display:block; }
.cb-photo { cursor:pointer; font-size:20px; padding:6px 2px; }
.mention { color:var(--accent); }
.fb-pins { border-bottom:1px solid var(--line); padding:6px 4px; display:grid; gap:4px; }
.fb-pin { display:flex; gap:8px; align-items:center; font-size:13px; background:var(--bg); border-radius:8px; padding:5px 8px; }
.fb-pin-body { flex:1 1 auto; min-width:0; }
.fb-pin form button { background:none; border:0; cursor:pointer; color:var(--muted); }
.chat-search { display:flex; gap:6px; align-items:center; }
.chat-search input { min-width:210px; }
@media (max-width: 800px) { .chat-search input { min-width:0; width:130px; } .cb-img { max-width:230px; } }
/* === Profiles v1.7 — photos everywhere === */
.ava-img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.avatar { overflow:hidden; }
.fb-ava { overflow:visible; }
.fb-ava .ava-img { border-radius:50%; }

/* === Board Room (v1.9) === */
.fb-meeting { background:#fdecec; border:1px solid #f3c2c2; color:#8c1d1d; border-radius:8px; padding:7px 10px; font-size:13px; font-weight:600; margin-bottom:8px; }
.fb-meeting-bar { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.fb-readonly { border:1px dashed var(--border); border-radius:10px; padding:12px; color:var(--muted); font-size:13px; background:var(--accent-soft); }

/* View-profile affordances in chat (Chairman 2026-10-12) */
.cb-author{color:inherit;text-decoration:none}
.cb-author:hover{text-decoration:underline}
.avatar a{display:block;border-radius:50%}
.fb-profile{font-size:.78rem;align-self:center;white-space:nowrap;text-decoration:none;padding:.2rem .1rem}
.fb-profile:hover{text-decoration:underline}

/* v2.4 live history */
.hist-row{display:flex;gap:10px;align-items:baseline;padding:8px 6px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--text)}
.hist-row:hover{background:var(--hover)}
.hist-row.ro{opacity:.75}
.hist-when{white-space:nowrap;color:var(--muted);font-size:12px;min-width:118px}
.hist-thread{white-space:nowrap;font-weight:600;font-size:12.5px;min-width:170px}
.hist-body{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:700px){.hist-thread{display:none}.hist-when{min-width:86px}}

/* v2.6 clone-build sections */
.clone-doc .clone-sec{border-top:1px solid var(--line);padding:8px 0 2px}
.clone-doc .clone-sec h4{margin:0 0 2px;font-size:13px;letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}
.clone-doc .clone-sec p{margin:0 0 6px;font-size:14px;line-height:1.45}
.clone-edit{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:10px 0}
.clone-edit legend{font-weight:700;padding:0 6px}

/* ---------- runner switcher (#186) ---------- */
.assume-banner {
  background: var(--warn-soft); color: var(--warn);
  border-bottom: 2px solid var(--accent);
  padding: 10px 16px; font-size: 14px;
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 49;
}
.seatrow { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.seatrow:last-child { border-bottom: 0; }
.seatrow .who { flex: 1; min-width: 180px; }

/* #548 P0 (2026-10-18): dark-mode primary button keeps dark text on the
   amber --accent-btn (#f59e0b) so it clears WCAG contrast; ghost/danger
   variants keep their own colors. */
@media (prefers-color-scheme: dark) {
  .btn { color: #1a1d21; }
  .btn.ghost { color: var(--text); }
  .btn.danger { color: var(--danger); }
}
