:root {
  --navy: #1F3A5F;
  --teal: #2E7D9A;
  --gold: #E0A800;
  --bg: #F3F7FB;
  --surface: #FFFFFF;
  --surface-2: #F7F9FB;
  --text: #1B2430;
  --muted: #5A6672;
  --border: #DCE3EA;
  --accent: var(--teal);
  --accent-soft: #E3F1F6;
  --link: #22708C;
  --warn-bg: #FFF6DB;
  --warn-text: #6B5200;
  --header-bg: var(--navy);
  --header-text: #FFFFFF;
  --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 2px 8px rgba(16, 32, 56, .05);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E151F; --surface: #16202D; --surface-2: #1B2736; --text: #E6ECF2; --muted: #9AA8B6;
    --border: #2A3949; --accent: #4FB0CF; --accent-soft: #17394A; --link: #7CC7E0;
    --warn-bg: #3A3010; --warn-text: #F2D477; --header-bg: #13243B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E151F; --surface: #16202D; --surface-2: #1B2736; --text: #E6ECF2; --muted: #9AA8B6;
  --border: #2A3949; --accent: #4FB0CF; --accent-soft: #17394A; --link: #7CC7E0;
  --warn-bg: #3A3010; --warn-text: #F2D477; --header-bg: #13243B; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; }
body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  display: flex; flex-direction: column;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  background: var(--header-bg); color: var(--header-text);
}
.brand { display: flex; align-items: center; gap: 8px; color: inherit; font-weight: 650; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: .68rem; font-weight: 500; opacity: .75; letter-spacing: .02em; }

/* footer */
.brandfoot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.search { flex: 1; min-width: 0; }
.search input {
  width: 100%; max-width: 460px; display: block; margin-left: auto;
  padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12); color: #fff; font-size: 16px;
}
.search input::placeholder { color: rgba(255,255,255,.7); }
.search input:focus { outline: 2px solid var(--gold); background: rgba(255,255,255,.18); }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
@media (max-width: 560px) { .brand-text { display: none; } }

main { flex: 1; min-height: 0; outline: none; }
.loading, .empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }

/* home */
.hero h1 { margin: 6px 0 4px; font-size: 1.6rem; color: var(--text); }
.hero p { margin: 0 0 20px; color: var(--muted); max-width: 60ch; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  display: block; padding: 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); color: inherit; position: relative;
  border-top: 4px solid var(--accent);
}
.card:hover { text-decoration: none; border-color: var(--accent); }
.card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.card .count { color: var(--muted); font-size: .9rem; }
.card p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); vertical-align: middle;
}
.tag.gold { background: var(--warn-bg); color: var(--warn-text); }
.tag.gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.foot { margin-top: 28px; font-size: .85rem; color: var(--muted); }
.foot li { margin: 4px 0; }

/* framework browse: list + detail */
.split { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; height: calc(100dvh - 52px - env(safe-area-inset-top)); }
.pane { overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.list-pane { border-right: 1px solid var(--border); background: var(--surface); }
.detail-pane { background: var(--bg); }
@media (max-width: 820px) {
  .split { display: block; height: auto; }
  .split.has-detail .list-pane { display: none; }
  .split:not(.has-detail) .detail-pane { display: none; }
  .list-pane { border-right: 0; }
  .pane { overflow: visible; }
}

.list-head {
  position: sticky; top: 0; z-index: 2; background: var(--surface);
  padding: 12px 16px 10px; border-bottom: 1px solid var(--border);
}
@media (max-width: 820px) { .list-head { position: static; } }
.list-head h1 { margin: 0; font-size: 1.15rem; }
.list-head .sub { color: var(--muted); font-size: .85rem; }
.filters { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.filters input[type=search] {
  flex: 1; min-width: 140px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 16px;
}
.filters select {
  padding: 7px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 15px; max-width: 100%;
}
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); cursor: pointer; }

.fam-h {
  position: sticky; top: var(--fam-top, 0); z-index: 1;
  padding: 6px 16px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.row {
  display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border);
  color: var(--text); align-items: baseline; content-visibility: auto; contain-intrinsic-size: auto 52px;
}
.row:hover { background: var(--surface-2); text-decoration: none; }
.row.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.row .cid { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 74px; color: var(--accent); }
.row .ct { flex: 1; min-width: 0; }
.row.enh .cid { padding-left: 10px; font-weight: 600; }
.row.wd { opacity: .55; }
.row .mini { font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* detail */
.detail { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.detail h1 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.25; }
.detail h1 .id { color: var(--accent); margin-right: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; box-shadow: var(--shadow); }
.box h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.stmt p { margin: 0 0 8px; }
.stmt ol { list-style: none; padding-left: 0; margin: 4px 0; }
.stmt ol ol { padding-left: 22px; }
.stmt li { margin: 5px 0; display: flex; gap: 8px; }
.stmt li > .lab { font-weight: 650; color: var(--muted); min-width: 22px; flex: none; }
.stmt li > div { flex: 1; min-width: 0; }
.guid p { margin: 0 0 10px; color: var(--text); }
details > summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
details > summary h2 { margin: 0; }
.notice { background: var(--warn-bg); color: var(--warn-text); border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin: 10px 0; }

.map-fw { margin: 10px 0 14px; }
.map-fw h3 { font-size: .95rem; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: .88rem; max-width: 100%;
}
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip b { color: var(--accent); white-space: nowrap; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.wd { opacity: .6; }
.chips.collapsed .chip.extra { display: none; }
.chip.more { cursor: pointer; font-weight: 650; color: var(--accent); border-style: dashed; }
.src { font-size: .75rem; color: var(--muted); font-weight: 400; }
.via { font-size: .75rem; color: var(--muted); }

.cci { border-top: 1px solid var(--border); padding: 8px 0; font-size: .92rem; }
.cci:first-of-type { border-top: 0; }
.cci b { color: var(--accent); margin-right: 6px; }
.cci .meta { font-size: .76rem; color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.pager a { padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* search results */
.results .row { border: 1px solid var(--border); border-radius: 8px; margin: 6px 0; background: var(--surface); }
.results .fwname { font-size: .72rem; color: var(--muted); }
mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: inherit; border-radius: 2px; }

#toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; pointer-events: auto; }
#toast button { margin-left: 10px; background: var(--gold); color: #1B2430; border: 0; border-radius: 6px; padding: 4px 10px; font-weight: 650; cursor: pointer; }

/* ---------------------------------------------------------------- policy templates */
.fam-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fam-pol {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface);
  color: var(--accent); font-size: .72rem; font-weight: 650; text-transform: none; letter-spacing: 0;
}
.fam-pol svg { width: 13px; height: 13px; }
.fam-pol:hover { border-color: var(--accent); text-decoration: none; }

.pol-card, .pol-link {
  display: flex; align-items: center; gap: 12px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.pol-card { margin: 16px 0 0; padding: 14px 16px; }
.pol-link { margin: 0 0 14px; padding: 10px 14px; }
.pol-card:hover, .pol-link:hover { text-decoration: none; border-color: var(--accent); border-left-color: var(--gold); }
.pol-card strong, .pol-link strong { display: block; }
.pol-card small, .pol-link small { display: block; color: var(--muted); font-size: .85rem; }
.pol-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.pol-ico svg { width: 20px; height: 20px; }
.pol-card .go, .pol-link .go { margin-left: auto; font-size: 1.4rem; color: var(--muted); }
.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; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.seg a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 600; }
.seg a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg a:hover { text-decoration: none; border-color: var(--accent); }
.results .row .tag { align-self: center; }

.pol-page { min-height: 100%; }
.pol-bar {
  position: sticky; top: var(--hdr, 52px); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.pol-bar .crumbs { margin: 0; }
.pol-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.pol-status { font-size: .78rem; color: var(--muted); }
.btn-exp, .btn-ghost {
  padding: 7px 12px; border-radius: 8px; font-weight: 650; font-size: .88rem; cursor: pointer; white-space: nowrap;
}
.btn-exp { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
:root[data-theme="dark"] .btn-exp { background: var(--accent); border-color: var(--accent); color: #0E151F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-exp { background: var(--accent); border-color: var(--accent); color: #0E151F; } }
.btn-exp:hover { filter: brightness(1.1); }
.btn-exp:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-save { padding: 7px 14px; border-radius: 8px; font-weight: 700; font-size: .88rem; cursor: pointer; white-space: nowrap; background: var(--gold); color: #1B2430; border: 1px solid var(--gold); }
.btn-save:hover { filter: brightness(1.06); }
.btn-save:disabled { opacity: .6; cursor: progress; }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.pol-wrap { max-width: 900px; margin: 0 auto; padding: 16px 16px 60px; }
.pol-setup summary h2 { margin: 0; }
.pol-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); margin-top: 8px; }
.pol-form label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.pol-form input {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: 16px; font-weight: 400;
}
.pol-hint { font-size: .85rem; color: var(--muted); margin: 6px 2px 10px; }

/* The policy itself reads like paper in both themes. */
.pol-doc {
  background: #fff; color: #1B2430; border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow);
  padding: 0 56px 40px; font-size: 15px; line-height: 1.6; outline: none; overflow-wrap: anywhere;
}
.pol-doc:focus-within { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.pol-brand {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: 0 -56px 28px; padding: 14px 56px; background: #1F3A5F; color: #fff; border-bottom: 3px solid #E0A800;
  font-size: .82rem; user-select: none;
}
.pol-brand .mark { color: #E0A800; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pol-doc h1 { font-size: 1.75rem; color: #1F3A5F; margin: 0 0 2px; line-height: 1.2; }
.pol-doc .pol-org { color: #2E7D9A; font-size: 1.1rem; margin: 0 0 16px; }
.pol-doc h2 { font-size: 1.12rem; color: #1F3A5F; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #DCE3EA; }
.pol-doc h3 { font-size: .98rem; color: #2E7D9A; margin: 18px 0 4px; }
.pol-doc p { margin: 0 0 8px; }
.pol-doc p.lvl-1 { margin: 0 0 3px 18px; }
.pol-doc p.lvl-2 { margin: 0 0 3px 38px; }
.pol-doc p.lvl-3, .pol-doc p.lvl-4 { margin: 0 0 3px 58px; }
.pol-doc .pol-tag { font-size: .82rem; font-style: italic; color: #5A6672; }
.pol-doc ul { padding-left: 22px; margin: 0 0 8px; }
.pol-doc li { margin: 4px 0; }
.pol-doc table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .9rem; }
.pol-doc th, .pol-doc td { border: 1px solid #DCE3EA; padding: 6px 8px; text-align: left; vertical-align: top; }
.pol-doc .pol-meta th { width: 30%; background: #F3F7FB; color: #1F3A5F; }
.pol-doc .pol-grid th { background: #E3F1F6; color: #1F3A5F; }
.pol-doc .pol-grid td { height: 34px; }
.pol-doc .pol-brandfoot { margin-top: 30px; padding-top: 10px; border-top: 1px solid #DCE3EA; font-size: .78rem; font-style: italic; color: #5A6672; user-select: none; }
.fill { background: #FFEC96; border-radius: 3px; padding: 0 2px; color: #1B2430; }
.fill.done { background: transparent; padding: 0; }
.pol-doc .bind { border-bottom: 1px dashed #2E7D9A; }
.pol-doc .bind.ph { background: #FFEC96; border-radius: 3px; padding: 0 2px; border-bottom: 0; }
.pol-related { display: inline-block; margin-top: 14px; font-size: .9rem; }

@media (max-width: 640px) {
  .pol-doc { padding: 0 18px 28px; font-size: 14.5px; }
  .pol-brand { margin: 0 -18px 20px; padding: 10px 18px; font-size: .7rem; }
  .pol-bar { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .pol-bar .crumbs { width: 100%; font-size: .8rem; }
  .pol-actions { margin-left: auto; gap: 6px; }
  .pol-status { order: 9; width: 100%; text-align: right; font-size: .72rem; }
  .btn-exp, .btn-ghost, .btn-save { padding: 6px 10px; font-size: .84rem; }
}

/* ---------------------------------------------------------------- accounts */
.acct-btn { position: relative; color: inherit; }
.acct-btn:hover { text-decoration: none; }
.acct-btn.on::after { content: ""; position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--header-bg); }
.acct { max-width: 680px; }
.acct .lead { color: var(--muted); margin: 0 0 14px; }
.acct-form { display: flex; flex-direction: column; gap: 12px; }
.acct-form h2 { margin: 0; }
.acct-form p { margin: 0; }
.acct-form label:not(.chk) { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 650; color: var(--muted); }
.acct-form input:not([type=checkbox]) {
  padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: 16px; font-weight: 400;
}
.acct-form .chk { font-size: .9rem; color: var(--text); align-items: flex-start; }
.acct-form .chk input { margin-top: 4px; }
.acct-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.acct .btn-exp { display: inline-block; align-self: flex-start; }
.acct a.btn-exp:hover { text-decoration: none; }
.err { color: #B3261E; font-size: .88rem; min-height: 0; }
.err:empty { display: none; }
:root[data-theme="dark"] .err { color: #F2B8B5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #F2B8B5; } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: .9rem; }
.linkbtn:hover { text-decoration: underline; }
.qr { background: #fff; border-radius: 8px; padding: 10px; align-self: flex-start; border: 1px solid var(--border); }
.qr img { display: block; }
.secret { word-break: break-all; font-size: .85rem; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.reckey {
  font: 600 1.05rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em;
  padding: 12px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-text); word-break: break-all; user-select: all;
}
.acct-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-log { list-style: none; padding: 0; margin: 8px 0 0; font-size: .9rem; }
.acct-log li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.acct-log time { color: var(--muted); font-size: .8rem; }
.acct hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.btn-danger { padding: 7px 12px; border-radius: 8px; font-weight: 650; font-size: .88rem; cursor: pointer; background: transparent; color: #B3261E; border: 1px solid #B3261E; }
.acct .results .row { align-items: center; }
.acct-banner { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; font-size: .88rem; background: var(--warn-bg); color: var(--warn-text); }
.acct-banner.ok { background: var(--accent-soft); color: var(--accent); }
.acct-banner.view { background: var(--navy); color: #fff; }
.acct-banner.view .linkbtn { color: var(--gold); margin-left: 6px; }
/* Before sign-in only the account screens show. */
body.gated .search, body.no-search .search { visibility: hidden; }
.acct .results { margin: 8px 0 12px; }
.acct .results .row .go { margin-left: auto; color: var(--muted); font-size: 1.2rem; }
.acct-browse { display: inline-block; }
.acct-browse:hover { text-decoration: none; }

/* ---------------------------------------------------------------- plans & assessments */
.doc-card p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.doc-card h2 { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--text); }
.doc-wrap { max-width: 980px; }
.doc-head { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 14px 0; padding: 0 20px 14px; box-shadow: var(--shadow); }
.doc-head .pol-brand { margin: 0 -20px 16px; padding: 12px 20px; }
.doc-head h1 { margin: 0; font-size: 1.5rem; color: var(--navy); }
:root[data-theme="dark"] .doc-head h1 { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc-head h1 { color: var(--text); } }
.doc-head .pol-org { color: var(--accent); margin: 2px 0 4px; font-size: 1.05rem; }
.doc-sec h2 { font-size: .85rem; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px 14px; }
.dgrid label, .ssp-ctl label, .ssp-tools label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.dgrid label.chk { flex-direction: row; align-items: center; font-size: .9rem; color: var(--text); font-weight: 500; }
.dgrid .dfull, .ssp-ctl .dfull { grid-column: 1 / -1; }
.doc-sec input:not([type=checkbox]), .doc-sec select, .doc-sec textarea {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: 400 15px/1.45 inherit; font-family: inherit; width: 100%;
}
.doc-sec textarea { resize: vertical; min-height: 64px; }
.doc-sec input:disabled, .doc-sec select:disabled, .doc-sec textarea:disabled { opacity: .85; }
.ssp-bar { height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.ssp-bar span { display: block; height: 100%; background: var(--accent); }
.ssp-counts { font-size: .85rem; color: var(--muted); margin: 6px 0 10px; }
.ssp-tools { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 6px 0 10px; }
.ssp-tools label { flex-direction: row; align-items: center; gap: 8px; }
.ssp-tools select { width: auto; }
.ssp-fam { border: 1px solid var(--border); border-radius: 8px; margin: 6px 0; background: var(--surface); }
.ssp-fam > summary { padding: 9px 12px; gap: 8px; }
.ssp-prog { margin-left: auto; font-size: .78rem; font-weight: 500; color: var(--muted); }
.ssp-list { padding: 0 12px 10px; }
.ssp-ctl { border-top: 1px solid var(--border); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.ssp-ctl-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ssp-ctl-h a { font-weight: 700; white-space: nowrap; }
.ssp-ctl-h .t { flex: 1; min-width: 160px; }
.ssp-ctl-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px 12px; }
.st { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.st-impl { background: #E3F4E8; color: #1E6B3A; border-color: #BFE3CB; }
.st-alt { background: #E6F0F8; color: #2B5F8A; border-color: #C9DCEC; }
.st-partial, .st-planned { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.st-na { background: var(--surface-2); color: var(--muted); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.doc-table th, .doc-table td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc-table th { background: var(--surface-2); }
.lvl { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.lvl-none { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.lvl-vl { background: #E3F4E8; color: #1E6B3A; }
.lvl-l { background: #EAF5D9; color: #4A6B12; }
.lvl-m { background: #FFF3C4; color: #6B5200; }
.lvl-h { background: #FFE0C2; color: #8A3B00; }
.lvl-vh { background: #FAD4D1; color: #8C1D18; }
.ra-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.heat { border-collapse: collapse; font-size: .8rem; width: 100%; max-width: 560px; }
.heat th, .heat td { border: 1px solid var(--surface); padding: 8px 6px; text-align: center; }
.heat th { color: var(--muted); font-weight: 650; background: var(--surface-2); }
.heat td { font-weight: 800; font-size: 1rem; height: 40px; }
.risk { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 8px 0; background: var(--surface); }
.risk-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.risk-h .t { flex: 1; min-width: 140px; font-weight: 600; }
.risk-del { color: #B3261E; font-size: .82rem; }

/* ================================================================ repository */
.repo .hero p { max-width: 62ch; }
.repo-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.repo-bar input[type=search] { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; }
.btn-ghost.danger, .btn-ghost.danger:hover { color: #B3261E; border-color: #E3B3AF; }
.r-drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 14px; text-align: center; color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.r-drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.r-progress { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; font-size: .86rem; }
.r-pline { display: flex; gap: 8px; justify-content: space-between; padding: 2px 0; }
.r-pline b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.r-pline .ok { color: #2E7D32; } .r-pline .err { color: #B3261E; }
.repo-list .row { align-items: center; }
/* Rows added after the page draws: WebKit can leave content-visibility:auto rows blank. */
.repo .row, .evid .row { content-visibility: visible; }
.r-ico { display: inline-flex; width: 42px; justify-content: center; color: var(--gold); flex: none; }
.r-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 28px; border-radius: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .03em; color: #fff; background: #6B7785; }
.r-badge.pdf { background: #B3261E; } .r-badge.doc { background: #2B579A; } .r-badge.sheet { background: #217346; } .r-badge.slide { background: #C4501B; }
.r-badge.img { background: #7B4BA8; } .r-badge.media { background: #00796B; } .r-badge.text { background: #4E5B69; }
.r-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.r-safety { display: flex; gap: 6px; align-items: flex-start; margin-top: 14px; }
.r-safety svg { flex: none; margin-top: 1px; }
.rf-head { display: flex; gap: 12px; align-items: center; margin: 6px 0 10px; }
.rf-head .r-badge { width: 48px; height: 34px; font-size: .74rem; }
.rf-title { min-width: 0; }
.rf-title h1 { font-size: 1.3rem; margin: 0; overflow-wrap: anywhere; }
.rf-bar { position: sticky; top: var(--hdr, 56px); z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 0; background: var(--bg); }
.rf-main, .rf-more { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-bar button[disabled][data-r="edit"] { opacity: .5; cursor: not-allowed; }
.rf-hint { margin: 0 0 8px; font-size: .82rem; }
.rf-move { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.rf-move select { display: block; margin-top: 4px; padding: 7px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; max-width: 100%; }
.rf-view { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 220px; padding: 10px; margin-bottom: 12px; overflow: hidden; }
.rf-ver .acct-row { gap: 6px; flex: none; }
.rf-ver .btn-ghost { padding: 4px 9px; font-size: .8rem; }
.rf-ver.cur { border-color: var(--accent) !important; }
.r-tagchips { margin: 8px 0; }
.r-tagchips .chip { display: inline-flex; align-items: center; gap: 2px; }
.r-x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 2px 0 6px; }
.r-x:hover { color: #B3261E; }
.r-tagform { display: flex; gap: 8px; }
.r-tagform input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; }

/* viewers */
.rv-none { padding: 26px 12px; text-align: center; color: var(--muted); }
.rv-none p { margin: 6px auto; max-width: 56ch; }
.rv-text { width: 100%; min-height: 60vh; border: 0; resize: vertical; background: transparent; color: var(--text); font: .86rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 4; outline: none; }
.rv-text:not([readonly]) { background: var(--surface-2); border-radius: 6px; padding: 8px; }
.rv-img { text-align: center; }
.rv-img img { max-width: 100%; height: auto; background: repeating-conic-gradient(#e9edf1 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.rv-media { text-align: center; }
.rv-media video { max-width: 100%; max-height: 75vh; }
.rv-media audio { width: 100%; max-width: 520px; margin: 30px 0; }
.rv-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 0 0 8px; font-size: .84rem; color: var(--muted); }
.rv-tools button { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: .82rem; }
.rv-tools button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rv-edit-tools, .rv-zoom { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rv-edit-tools[hidden] { display: none; }
.rv-pdf-pages { display: flex; flex-direction: column; align-items: center; gap: 12px; overflow: auto; max-height: 80vh; padding: 4px; background: var(--surface-2); border-radius: 6px; }
.rv-page { position: relative; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); flex: none; }
.rv-page canvas { display: block; }
.rv-mark { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.rv-mark.active { pointer-events: auto; cursor: crosshair; touch-action: none; }
.rv-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rv-mark polyline { fill: none; stroke: #0D2473; stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.rv-hl { position: absolute; background: rgba(255, 219, 26, .38); }
.rv-note { position: absolute; max-width: 190px; background: #FFF59E; border: 1px solid #CC9E1A; color: #1A1A1A; font: 11px/1.3 Helvetica, Arial, sans-serif; padding: 3px 5px; white-space: pre-wrap; }
.rv-docx { overflow: auto; max-height: 80vh; background: var(--surface-2); border-radius: 6px; }
.rv-docx .docx-wrapper { background: transparent; padding: 12px; }
.rv-docx section.docx { box-shadow: 0 1px 4px rgba(0,0,0,.25); margin-bottom: 12px; }
.pe-note { background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; font-size: .82rem; margin: 0 0 10px; }
.pe-doc { max-width: 820px; margin: 0 auto; padding: 6px 4px 20px; }
.pe-p { display: block; width: 100%; margin: 0 0 6px; padding: 5px 7px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); font: 15px/1.5 Georgia, "Times New Roman", serif; white-space: pre-wrap; overflow-wrap: anywhere; resize: none; overflow: hidden; }
textarea.pe-p { border-color: var(--border); background: var(--surface); }
textarea.pe-p:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.pe-h1 { font-size: 1.5rem; font-weight: 700; } .pe-h2 { font-size: 1.25rem; font-weight: 700; } .pe-h3 { font-size: 1.1rem; font-weight: 700; } .pe-h4 { font-weight: 700; }
.pe-li { padding-left: 26px; position: relative; }
div.pe-li::before { content: "•"; position: absolute; left: 10px; }
.pe-center { text-align: center; } .pe-right { text-align: right; }
.pe-locked { background: var(--surface-2); color: var(--muted); cursor: help; }
.pe-p img { display: block; max-width: 100%; margin: 6px 0; }
.pe-tbl { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.pe-tbl td { border: 1px solid var(--border); vertical-align: top; padding: 2px; }
.pe-tbl .pe-p { margin: 0; font-size: 14px; }
.rv-tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
.rv-tabs button { flex: none; padding: 5px 12px; border-radius: 6px 6px 0 0; border: 1px solid var(--border); border-bottom: 0; background: var(--surface-2); cursor: pointer; font-size: .84rem; }
.rv-tabs button.on { background: var(--surface); font-weight: 700; color: var(--text); }
.rv-fbar { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.rv-addr { flex: none; min-width: 54px; text-align: center; font: 600 .82rem ui-monospace, Menlo, monospace; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 6px; }
.rv-fx { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font: .88rem ui-monospace, Menlo, monospace; background: var(--surface); color: var(--text); }
.rv-fx:not([readonly]) { border-color: var(--accent); }
.rv-hint { font-size: .8rem; color: var(--warn-text); background: var(--warn-bg); border-radius: 6px; padding: 5px 8px; margin-bottom: 6px; }
.rv-gwrap { overflow: auto; max-height: 72vh; border: 1px solid var(--border); border-radius: 6px; outline: none; }
.rv-sheet { border-collapse: collapse; font-size: .82rem; }
.rv-sheet th, .rv-sheet td { border: 1px solid var(--border); padding: 3px 6px; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; height: 24px; }
.rv-sheet th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-weight: 600; z-index: 1; }
.rv-sheet tr > th:first-child { position: sticky; left: 0; z-index: 2; text-align: right; min-width: 40px; }
.rv-sheet td { cursor: cell; min-width: 64px; }
.rv-sheet td.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.rv-sheet td.chg { background: #FFF6DB; color: #1B2430; }
.rv-slides { display: flex; flex-direction: column; gap: 14px; }
.rv-slide { position: relative; width: 100%; overflow: hidden; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.25); background: #fff; }
.rv-slide-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; color: #000; font-family: Calibri, "Segoe UI", Arial, sans-serif; }
.rv-bg { position: absolute; inset: 0; }
.rv-sp { position: absolute; box-sizing: border-box; }
.rv-tx { display: flex; flex-direction: column; height: 100%; padding: 4px 8px; line-height: 1.15; overflow: hidden; }
.rv-ph { display: flex; align-items: center; justify-content: center; background: #EEF1F4; color: #6B7785; border: 1px dashed #B8C2CC; font-size: 14px; }
.rv-ptbl { border-collapse: collapse; width: 100%; font-size: 12px; }
.rv-ptbl td { border: 1px solid #9AA4AE; padding: 3px 5px; vertical-align: top; }
.rv-sn { position: absolute; right: 6px; bottom: 4px; font-size: .7rem; color: #6B7785; background: rgba(255,255,255,.8); padding: 0 4px; border-radius: 3px; }
.rv-outline li { margin: 0 0 10px; } .rv-outline li div { font-size: .9rem; color: var(--muted); }
.evid { margin-top: 0; }
@media (max-width: 620px) {
  .rf-bar { position: static; }
  .rf-ver { flex-wrap: wrap; }
  .rf-ver .acct-row { width: 100%; padding-left: 44px; }
  .rv-pdf-pages, .rv-docx, .rv-gwrap { max-height: none; }
}

/* ================================================================ chat */
.ch-badge { display: inline-block; min-width: 20px; padding: 1px 7px; margin-left: 6px; border-radius: 999px; background: #B3261E; color: #fff; font-size: .72rem; font-weight: 700; text-align: center; vertical-align: 2px; }
.chat { display: flex; flex-direction: column; }
.ch-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-end; margin: 6px 0 10px; }
.ch-head h1 { font-size: 1.4rem; margin: 0; }
.ch-head h1 small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.ch-live { font-size: .75rem; color: #2E7D32; font-weight: 600; }
.ch-live::before { content: "● "; }
.ch-live.off { color: var(--warn-text); }
.ch-meetform form { margin: 0 0 10px; }
.ch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ch-row label { flex: 1 1 140px; }
.ch-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; height: calc(100dvh - var(--hdr, 56px) - 260px); min-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ch-more { align-self: center; margin-bottom: 6px; }
.ch-day { align-self: center; font-size: .72rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 10px; margin: 4px 0; }
.ch-msg { max-width: min(78%, 620px); align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px 12px 12px 4px; padding: 6px 10px 8px; }
.ch-msg.mine { align-self: flex-end; background: var(--accent-soft); border-radius: 12px 12px 4px 12px; }
.ch-meta { display: flex; gap: 8px; align-items: baseline; font-size: .74rem; color: var(--muted); }
.ch-meta b { color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ch-del { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; opacity: 0; }
.ch-msg:hover .ch-del, .ch-del:focus { opacity: 1; }
@media (hover: none) { .ch-del { opacity: .6; } }
.ch-text { white-space: normal; overflow-wrap: anywhere; font-size: .94rem; margin-top: 2px; }
.ch-text.bad { color: var(--muted); font-style: italic; }
.ch-file { display: flex; gap: 10px; align-items: center; margin-top: 4px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.ch-file:hover { text-decoration: none; border-color: var(--accent); }
.ch-file small { display: block; color: var(--muted); font-size: .76rem; }
.ch-file b { overflow-wrap: anywhere; font-weight: 600; }
.ch-meet { margin-top: 4px; border-left: 3px solid var(--gold); padding: 4px 0 2px 10px; font-size: .9rem; }
.ch-meet-t { font-weight: 700; }
.ch-meet-n { color: var(--muted); margin: 4px 0; }
.ch-meet .acct-row { margin-top: 6px; }
.ch-meet .btn-exp, .ch-meet .btn-ghost { padding: 4px 10px; font-size: .82rem; }
.ch-sys { font-size: .86rem; color: var(--muted); }
.ch-compose { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.ch-compose textarea { flex: 1; min-width: 0; resize: none; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; max-height: 180px; }
.ch-compose textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.ch-attach { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.ch-attach:hover { color: var(--text); }
.ch-note { margin-top: 8px; }
.ch-client { width: 100%; text-align: left; font: inherit; cursor: pointer; align-items: center; }
.chat .row { content-visibility: visible; }

/* calls */
#callRing { position: fixed; top: calc(var(--hdr, 56px) + 8px); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  width: min(560px, calc(100% - 32px)); padding: 12px 14px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
#callRing .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
#callUI { position: fixed; inset: 0; z-index: 55; background: #0B1220; color: #fff; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#callUI.min { inset: auto 16px calc(16px + env(safe-area-inset-bottom)) auto; background: none; padding: 0; }
.call-pill { display: flex; gap: 8px; align-items: center; border: 0; border-radius: 999px; padding: 10px 16px; background: var(--navy); color: #fff; font: inherit; font-weight: 650; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.call-pill .dot, .call-lock::before { width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; display: inline-block; }
.call-top { display: flex; gap: 12px; align-items: center; padding: 10px 16px; }
.call-top .via { color: #AFC0D3; }
.call-lock { font-size: .76rem; color: #AFC0D3; display: inline-flex; gap: 6px; align-items: center; }
.call-lock::before { content: ""; }
.call-top .btn-ghost { margin-left: auto; color: #fff; border-color: rgba(255,255,255,.35); }
.call-grid { flex: 1; min-height: 0; display: grid; gap: 8px; padding: 0 12px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.call-grid[data-n="2"] { grid-template-columns: 1fr 1fr; }
.call-grid[data-n="3"], .call-grid[data-n="4"] { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .call-grid[data-n="2"] { grid-template-columns: 1fr; } }
.call-tile { position: relative; background: #16202D; border-radius: 12px; overflow: hidden; min-height: 120px; }
.call-tile video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.call-tile video.mirror { transform: scaleX(-1); }
.call-tile.novideo video { visibility: hidden; }

.call-name { position: absolute; left: 10px; bottom: 8px; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 6px; font-size: .82rem; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: .9rem; color: #D5DEE8; pointer-events: none; }
.call-state:empty { display: none; }
.call-wait { display: flex; align-items: center; justify-content: center; color: #AFC0D3; border: 1px dashed #2A3949; border-radius: 12px; }
.call-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 12px; }
.call-btn { border: 0; border-radius: 999px; padding: 10px 18px; background: #243246; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.call-btn:hover { background: #2F4058; }
.call-btn.off { background: #5A2B2B; }
.call-btn.on { background: var(--gold); color: #1B2430; }
.call-btn.leave { background: #B3261E; }
.call-tap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; border: 0; border-radius: 999px; padding: 14px 22px; background: var(--gold); color: #1B2430; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
