:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --sunk: #e9edf2;
  --fg: #19212d;
  --muted: #566173;
  --line: #d4dae3;
  --accent: #1f6389;
  --accent-fg: #ffffff;
  --ok: #1d7a4f;
  --warn: #9a6200;
  --bad: #b3261e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b; --surface: #161d27; --sunk: #1c2531; --fg: #e3e8ef; --muted: #9aa5b5; --line: #2a3441;
    --accent: #72b6dc; --accent-fg: #0f141b; --ok: #5cc793; --warn: #e0a940; --bad: #f07a70;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); }
.top {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.brand { font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--fg); font-size: 17px; }
.who { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.main { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.foot { max-width: 960px; margin: 0 auto; padding: 0 16px 32px; color: var(--muted); font-size: 12px; }
/* CR-110: the room page is wide; long reading text keeps its own cap below. */
.main.wide, .foot.wide { max-width: 1600px; }
h1 { font-size: 26px; margin: 0 0 6px; line-height: 1.2; }
h2 { font-size: 18px; margin: 28px 0 10px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 0 0 16px;
}
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grow { flex: 1 1 200px; min-width: 0; }
button, .button {
  font: inherit; padding: 6px 14px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--sunk); color: var(--fg); cursor: pointer; text-decoration: none; display: inline-block;
}
button.primary, .button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
button.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select {
  font: inherit; padding: 6px 8px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); min-width: 0;
}
label { display: inline-flex; gap: 6px; align-items: center; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--sunk); }
tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap;
}
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); } .pill.off { color: var(--muted); }
.note { padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--sunk); margin: 0 0 16px; }
.note.bad { border-color: var(--bad); color: var(--bad); background: transparent; }
.note.ok { border-color: var(--ok); color: var(--ok); background: transparent; }
td.best { color: var(--ok); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 22px; letter-spacing: .12em; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
ul.plain li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.feeds { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feed { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--surface); }
.feed b { display: block; }
/* CR-75: setup checklist, invite links, pairing tickets */
ol.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
ol.steps li.done { color: var(--muted); }
ol.steps li.done::marker { color: var(--ok); }
.check { font-weight: 700; margin-right: 6px; }
.check.done { color: var(--ok); }
.check.todo { color: var(--warn); }
details.card > summary { cursor: pointer; font-weight: 600; }
details.card[open] > summary { margin-bottom: 10px; }
.linkbox { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; width: 100%; }
.grid-form { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.grid-form label { display: grid; gap: 4px; }
textarea { font: inherit; width: 100%; min-height: 70px; padding: 6px 8px; border-radius: 5px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.big { font-size: 18px; }
@media (max-width: 520px) { h1 { font-size: 22px; } }
/* CR-78: the timer board and the Discord panel */
.timer-list { display: grid; gap: 8px; margin: 0 0 12px; }
.timer { border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; padding: 10px 12px; background: var(--surface); display: grid; gap: 4px; }
.timer.attack { border-left-color: var(--warn); }
.timer.defend { border-left-color: var(--ok); }
.timer-times { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.timer .left { font-variant-numeric: tabular-nums; font-weight: 600; }
.card h3:first-child { margin-top: 0; }
.card details { margin: 0 0 8px; }
.card details > summary { cursor: pointer; margin-bottom: 8px; }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
input[type="color"] { padding: 2px; height: 34px; width: 64px; }
input[type="checkbox"] { width: auto; }
.preview { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 10px 12px; background: var(--sunk); margin: 0 0 12px; }
.preview-text { white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.grid-form .wide { grid-column: 1 / -1; }
/* CR-82: doctrine fits and refit orders */
.fit-list { display: grid; gap: 8px; margin: 0 0 12px; }
details.fit { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; background: var(--surface); }
details.fit > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
details.fit[open] > summary { margin-bottom: 8px; }
details.fit.ordered { border-left: 4px solid var(--warn); }
details.fit.fit-highlight { outline: 2px solid var(--accent); outline-offset: 2px; }
.fit-slots { display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 10px; }
.fit-slot h4 { margin: 6px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fit-slot ul { margin: 0; padding-left: 18px; }
.fit-slot li.changed { font-weight: 600; }
.fit-slot s.was { color: var(--muted); font-weight: 400; }
.fit-slot mark { background: transparent; color: var(--warn); }
.refit-banner { border: 1px solid var(--warn); border-left-width: 4px; border-radius: 6px; padding: 8px 12px; margin: 0 0 8px; display: grid; gap: 4px; }
.refit-card .refit-banner:last-child { margin-bottom: 0; }
.refit-form, .fit-edit { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.refit-form h4, .fit-edit h4 { margin: 0 0 6px; }
textarea.fit-paste { min-height: 160px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.bad-text { color: var(--bad); }
/* CR-84: the D-scan drop */
.dscan-list { display: grid; gap: 10px; margin: 12px 0; }
.dscan { border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; padding: 10px 12px; background: var(--surface); display: grid; gap: 8px; min-width: 0; }
.dscan.unread { border-left-color: var(--bad); }
.dscan-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; overflow-wrap: anywhere; }
.dscan-body { display: grid; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.dscan-body p { margin: 0; }
.dscan-cols { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dscan-cols:empty { display: none; }
.dscan-types { color: var(--muted); }
.dscan-text { white-space: pre; overflow: auto; max-height: 320px; margin: 8px 0 0; padding: 8px; border-radius: 5px; background: var(--sunk); font: 12px/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.dscan-form { display: grid; gap: 10px; }
.dscan-paste { min-height: 220px; font: 13px/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
h2 .pill { margin-left: 8px; vertical-align: middle; }
label.inline { display: inline-flex; }
/* CR-81: the access hub */
.hub-tools { display: inline-flex; gap: 6px; font-size: 12px; }
.hub-wrap { overflow-wrap: anywhere; }
.hub-secret { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
/* CR-83: the Wanderer panel */
.wanderer-alias-form { margin-top: 12px; }
@media (max-width: 520px) { .wanderer-from { display: none; } }
/* CR-87: the room page's tabs, and one look for every panel */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: 13px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 16px; }
a.button.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.button.subtle { background: transparent; }
.who-name { color: var(--muted); max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 14px; }
.room-head h1 { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.tabs {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
  background: var(--bg); border-bottom: 1px solid var(--line); margin: 0 0 18px;
}
.tab {
  flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; padding: 10px 12px 8px; border: 0; border-bottom: 3px solid transparent;
  border-radius: 0; background: transparent; color: var(--muted); font-weight: 600; white-space: nowrap;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tab:focus-visible { outline-offset: -3px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  font-size: 12px; font-weight: 700; line-height: 1; background: var(--warn); color: var(--surface);
}
.badge[hidden] { display: none; }
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding: 2px; scrollbar-width: thin; }
.subtab { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; border-radius: 99px; padding: 4px 14px; background: var(--surface); white-space: nowrap; }
.subtab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.subtab:focus-visible { outline-offset: -2px; }
.subtab[aria-selected="true"] .badge { background: var(--accent-fg); color: var(--accent); }
.tab-panel { scroll-margin-top: 56px; min-width: 0; }
.tab-panel:focus { outline: none; }
.tab-panel section, .part-panel section { margin: 0 0 28px; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 10px; }
.head h2, .head h3, .head p { margin: 0; }
.head-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
details.info { display: inline-block; font-weight: 400; }
details.info > summary {
  list-style: none; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; padding: 3px 5px; border-radius: 99px; margin: 0;
}
details.info > summary::-webkit-details-marker { display: none; }
details.info > summary:hover { color: var(--accent); }
details.info[open] { flex-basis: 100%; }
.info-text { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--sunk); font-size: 14px; max-width: 70ch; }
.info-text p:last-child { margin: 0; }
.empty { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 6px; margin: 0 0 12px; }
.card > .empty:last-child { margin-bottom: 0; }
.card-title { font-size: 16px; margin: 0 0 8px; }
.live-line { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 12px; }
.live-label { font-weight: 700; }
.debug-link { font-size: 13px; }
ul.attention-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
ul.room-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.room-card { margin: 0; display: grid; gap: 12px; min-width: 0; }
.room-card-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.room-card-name { font-weight: 700; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.grid-form label.check-label { display: inline-flex; gap: 6px; align-items: center; }
fieldset.checks { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; min-width: 0; }
fieldset.checks legend { font-weight: 600; padding: 0; margin: 0 0 4px; font-size: 14px; }
details.more { margin: 12px 0 0; }
details.more > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details.more[open] > summary { margin-bottom: 10px; }
.card form.row, .card > .row, .grid-form + .row, .grid-form + .grid-form, fieldset + .row, form > .row { margin-top: 12px; }
.card > .row:first-child, .card > form.row:first-child { margin-top: 0; }
.danger-zone { border-color: var(--bad); }
.card > .row + p { margin-top: 10px; }
.fleet-status { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.ticket { margin: 12px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--sunk); }
.target { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
h3 .pill { margin-left: 6px; vertical-align: middle; }
h3 .h3-link { margin-left: 10px; font-size: 13px; font-weight: 400; }
summary .pill { margin-left: 6px; font-weight: 400; }
.dbg-link { text-align: left; }
.table-box { margin: 0 0 12px; }
.card > .table-box:last-child, .card > div:last-child > .table-box:last-child { margin-bottom: 0; }
.card > .head { margin-top: 16px; }
.card > .head:first-child { margin-top: 0; }
.card h3 { margin: 16px 0 8px; }
.preview .preview-text { max-height: 260px; overflow: auto; }
.card .head h2, .card .head h3 { margin: 0; }
@media (max-width: 560px) {
  .main { padding: 16px 12px 40px; }
  .card { padding: 12px; }
  .tab { padding: 10px 10px 8px; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th { display: block; width: 100%; }
  table.stack tr { padding: 8px 10px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack tr.group th { background: transparent; padding: 6px 0 0; }
  table.stack td { border: 0; padding: 2px 0; }
  table.stack td[data-label] { position: relative; padding-left: 34%; min-height: 22px; overflow-wrap: anywhere; }
  table.stack td[data-label]::before {
    content: attr(data-label); position: absolute; left: 0; top: 5px; width: 31%; font-size: 11px; line-height: 1.3;
    text-transform: uppercase; letter-spacing: .05em; color: var(--muted); overflow-wrap: anywhere;
  }
  table.stack td:empty { display: none; }
  .head-actions { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The access-list picker: names in full, never wider than the screen (CR-108) */
.list-pick, .list-filter { width: 100%; max-width: 32rem; min-width: 12rem; }
.list-pick-row { flex-wrap: wrap; }
.list-pick option { white-space: normal; }

/* CR-116: the checklist of what viewers can see */
.vv-list { list-style: none; margin: 0 0 12px; padding: 0; }
.vv-list li { border-bottom: 1px solid var(--line); }
.vv-list li:last-child { border-bottom: 0; }
.vv-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-items: start; padding: 10px 2px; cursor: pointer; }
.vv-item input { margin: 4px 0 0; }
.vv-text { display: grid; gap: 2px; min-width: 0; }
.vv-help { overflow-wrap: anywhere; }
.blocked-note { max-width: 60ch; }
/* CR-118: ships D-scan cannot see, who linked a scan, and the share link */
.dscan-tag { margin-left: 6px; font-size: 11px; vertical-align: middle; }
.dscan-ship { overflow-wrap: anywhere; }
.dscan-added ul, .dscan-guess { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.dscan-added li { overflow-wrap: anywhere; }
button.small { padding: 2px 10px; font-size: 13px; }
button.chip { padding: 4px 12px; border-radius: 99px; font-size: 14px; border-color: var(--ok); color: var(--ok); background: transparent; }
details.dscan-add, details.dscan-pilots { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--surface); min-width: 0; }
details.dscan-add > summary, details.dscan-pilots > summary { cursor: pointer; font-weight: 600; }
details.dscan-add[open] > summary, details.dscan-pilots[open] > summary { margin-bottom: 8px; }
.dscan-add form.row input.grow, .dscan-pilots input.grow { min-width: 0; }
.dscan-pilot-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.dscan-pilot-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.dscan-pilot-list li:last-child { border-bottom: 0; }
.dscan-pilot-list li[hidden] { display: none; }
.dscan-pilot { overflow-wrap: anywhere; min-width: 0; }
.dscan-pair { display: grid; gap: 8px; }
.dscan-pair select { max-width: 100%; min-width: 0; }
.dscan-pair label { flex-wrap: wrap; }
.dscan-share { margin: 0; display: grid; gap: 8px; }
.dscan-share[hidden] { display: none; }
.dscan-share p { margin: 0; }
.dscan-shared-head { overflow-wrap: anywhere; }
.dscan { grid-template-columns: minmax(0, 1fr); }
.dscan .pill { white-space: normal; }
.dscan-pair label { display: flex; width: 100%; }
.dscan-pair select { flex: 1 1 200px; width: 100%; }
.dscan-share { grid-template-columns: minmax(0, 1fr); }
.dscan-share select { max-width: 100%; }
.dscan-share label { flex-wrap: wrap; max-width: 100%; }
.dscan-body td:first-child, .dscan-body th:first-child, .card .dscan-body td:first-child { min-width: 7rem; }
.dscan-ship .dscan-tag { display: inline-block; margin: 2px 4px 2px 6px; }
.dscan-body .dscan-types { min-width: 9rem; }
.dscan-ship { display: block; }
.dscan-ship .dscan-tag { white-space: normal; }
.vv-preview { margin-top: 4px; }
.preview-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent, inherit); text-decoration: underline; cursor: pointer; font: inherit; }

/* CR-122 part 2: titles */
.title-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85em; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; margin: 0 2px; white-space: nowrap; }
.title-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tag-color, var(--muted, #888)); flex: none; }
.member-tag { margin-left: 4px; }
.pick > summary { cursor: pointer; }
.pick[open] { padding: 4px 0; }
.pick-list { margin: 6px 0; }
.title-form { display: grid; gap: 10px; margin-top: 12px; }

/* CR-142: the colours of a Local list in the officers' D-scans panel (green: the room lets them in; red: on the hostiles list). */
tr.tint-green > td, li.tint-green { background: color-mix(in srgb, var(--ok) 14%, transparent); }
tr.tint-red > td, li.tint-red { background: color-mix(in srgb, var(--bad) 16%, transparent); }
tr.tint-green > td:first-child, li.tint-green { box-shadow: inset 3px 0 0 var(--ok); }
tr.tint-red > td:first-child, li.tint-red { box-shadow: inset 3px 0 0 var(--bad); }
.tint-tag { margin-left: 6px; }
.dscan-hostile-list { list-style: none; margin: 8px 0; padding: 0; }
.dscan-hostile-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); }
details.dscan-hostiles form.row input.grow { min-width: 0; }

/* CR-138: watched systems on the Wanderer page, and the alert banner */
.watch-list { display: grid; gap: 8px; margin: 12px 0; }
.watch-list details.watch { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0; }
.watch-target fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; }
.watch-target label.inline { margin-right: 10px; white-space: nowrap; }
.watch-banners { position: fixed; z-index: 120; top: 8px; left: 8px; right: 8px; display: grid; gap: 6px; max-width: 640px; margin: 0 auto; }
.watch-banner { background: var(--surface); color: inherit; border: 2px solid var(--warn); border-radius: 8px; padding: 10px 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); overflow-wrap: anywhere; }

/* CR-154: an answer shown under the card or row where the click was; a made link or key's card; a button that looks like a link. */
.flash-here { flex: 1 0 100%; margin: 8px 0 0; padding: 6px 10px; }
td > .flash-here { margin-top: 6px; }
.secret-card { border-color: var(--ok); }
.secret-card .note { margin-bottom: 8px; }
.secret-card .row + .row { margin-top: 8px; }
button.link { border: 0; background: transparent; padding: 0 4px; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
button.link.small { font-size: 12px; }

/* CR-156: the waiting Mumble requests, one card each */
.req-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.req-card { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; overflow-wrap: anywhere; }
.req-card form { max-width: 32rem; }
.req-card form input { flex: 1 1 10rem; min-width: 0; }
.req-actions { gap: 6px; }

/* CR-156: a tab bar that scrolls fades at the end(s) where more is hidden (set by watchScrollFades) */
.tabs[data-more], .subtabs[data-more] { --fade: 28px; }
.tabs[data-more="end"], .subtabs[data-more="end"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); }
.tabs[data-more="start"], .subtabs[data-more="start"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to left, #000 calc(100% - var(--fade)), transparent); }
.tabs[data-more="both"], .subtabs[data-more="both"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }

/* CR-156: the role pill on the home page, in the role's own colour */
.pill.role-admin { color: var(--accent); } .pill.role-officer { color: var(--ok); } .pill.role-sharer { color: var(--fg); } .pill.role-viewer { color: var(--muted); }

/* CR-156: a labelled field */
label.field { display: grid; gap: 2px; min-width: 0; align-content: start; }
label.field > input, label.field > select, label.field > textarea { width: 100%; min-width: 0; }
.field-label { display: block; font-size: 13px; margin: 0 0 2px; }
.best-word { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ok); }
.discord-setup > .card { margin-top: 10px; }
