/* zetect-vault admin console.
   Fonts: Inter and JetBrains Mono (latin subsets), SIL Open Font License 1.1 — see fonts/LICENSE.txt.
   The console's CSP is style-src 'self': no inline styles anywhere, everything lives here. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2'); }

:root {
  --bg: #F5F6F8; --surface: #fff; --surface-2: #F8FAFC; --surface-head: #FAFBFC;
  --ink: #111827; --ink-2: #1F2937; --ink-3: #374151; --muted: #4B5563; --muted-2: #5B6472;
  --line: #E3E6EB; --line-2: #EEF0F3; --field: #D5D9E0;
  --accent: #2450D6; --accent-hover: #1B3DA8; --accent-soft: #EEF3FF; --accent-tint: #F5F8FF;
  --ok-bg: #E8F5EC; --ok: #166534; --bad-bg: #FDECEA; --bad: #A61B12;
  --warn-bg: #FFF1D6; --warn: #7A3E06; --warn-card: #FFF8EB; --warn-line: #F7DFAE; --warn-ink: #3B2005; --warn-icon: #9A4A07;
  --info-bg: #E8EEFC; --info: #1E3A8A;
  --side: #0F172A; --side-2: #1E293B; --side-3: #334155; --side-ink: #CBD5E1; --side-muted: #94A3B8;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font: 14px/1.45 var(--sans); color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
h3 { margin: 0; font-size: 18px; font-weight: 700; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
code { font-size: 12px; }
svg { flex: none; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sidebar { flex: 1 1 232px; background: var(--side); color: var(--side-ink); padding: 20px 12px;
  display: flex; flex-direction: column; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text b { color: #fff; font-weight: 700; font-size: 15px; }
.brand-text span { font-size: 12px; color: var(--side-muted); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar .eyebrow { color: var(--side-muted); padding: 8px 10px 6px; }
.sidebar .eyebrow.gap { padding-top: 16px; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px;
  color: var(--side-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-link:hover { background: var(--side-2); color: #fff; }
.nav-link[aria-current="page"] { background: var(--side-2); color: #fff; box-shadow: inset 0 0 0 1px var(--side-3); }
.nav-link .badge { margin-left: auto; background: #FCD34D; color: #5B2A04; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-top: 1px solid var(--side-2); }
.me .avatar { background: var(--side-3); color: #fff; width: 34px; height: 34px; }
.me-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.me-text b { color: #fff; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.me-text span { font-size: 12px; color: var(--side-muted); overflow: hidden; text-overflow: ellipsis; }
.me form { margin: 0; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--side-ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--side-2); color: #fff; }

.main { flex: 999 1 560px; min-width: 0; padding: 32px; }
.page { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page.narrow { max-width: 900px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head > div { display: flex; flex-direction: column; gap: 6px; max-width: 680px; }
.lead { font-size: 14px; line-height: 1.55; color: var(--muted); }
.lead strong { color: var(--ink); }
@media (max-width: 640px) { .main { padding: 20px 16px; } }

/* ---------- building blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card.pad { padding: 20px; }
.card.pad-lg { padding: 24px; }
.card.flush { overflow: hidden; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .grow { flex: 999 1 480px; min-width: 0; }
.split > .side { flex: 1 1 300px; min-width: 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.label .opt { font-weight: 400; color: var(--muted-2); }
.hint { font-size: 12px; color: var(--muted-2); line-height: 1.45; }
.muted { color: var(--muted-2); }
.small { font-size: 13px; }
.divider { height: 1px; background: var(--line-2); }
ul.bullets { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--field); background: #fff; color: var(--ink-2);
  font: 500 14px/1.2 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #F3F4F6; color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-danger { color: var(--bad); border-color: #F1C4BF; }
.btn-danger:hover { background: #FEF3F2; color: #7F1209; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
form.inline { display: inline; margin: 0; }

.input { height: 40px; width: 100%; border: 1px solid var(--field); border-radius: 8px; padding: 0 12px;
  font: 14px var(--sans); color: var(--ink); background: #fff; }
.input.mono { font-family: var(--mono); font-size: 13px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.input[readonly] { background: var(--surface-2); }
select.input { padding-right: 8px; }
.with-icon { position: relative; }
.with-icon svg { position: absolute; left: 12px; top: 12px; color: var(--muted-2); pointer-events: none; }
.with-icon .input { padding-left: 36px; }
.with-peek { position: relative; }
.with-peek .input { padding-right: 64px; }
.peek { position: absolute; right: 4px; top: 4px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--accent); font: 500 13px var(--sans); cursor: pointer; }
.peek:hover { background: var(--accent-soft); }
.field-row { display: flex; gap: 8px; }
.field-row .btn { flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.neutral { background: var(--line-2); color: var(--ink-3); }
.badge.info { background: var(--info-bg); color: var(--info); }
.self-start { align-self: flex-start; }

/* flash and callouts */
.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: #CDE8D5; }
.flash.error { background: var(--bad-bg); color: var(--bad); border-color: #F5C9C4; }
.flash.warn { background: var(--warn-card); color: var(--warn-ink); border-color: var(--warn-line); }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: var(--warn-card); border: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 14px; line-height: 1.5; }
.callout.sm { padding: 12px 14px; border-radius: 10px; font-size: 13px; gap: 10px; }
.callout > svg { color: var(--warn-icon); margin-top: 1px; }
.callout .body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.callout.bad { background: var(--bad-bg); border-color: #F5C9C4; color: #5C0F0A; }
.callout.bad > svg { color: var(--bad); }
.callout code { background: #FFEFC7; padding: 1px 5px; border-radius: 4px; }
.callout .btn { background: transparent; border-color: #E9C98A; color: #5B2A04; }

/* tables */
.scroll-x { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-head); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: 14px; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
.table-roomy th { padding: 10px 16px; }
.table-roomy td { padding: 16px; }
td .sub { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .row { justify-content: flex-end; }
.td-mono { font-family: var(--mono); font-size: 13px; }

dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted-2); }
dl.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex: none; background: #DCE6FF; color: #1E3A8A; }
.avatar.tenant { background: #E7F4EC; color: #14532D; }

.radio-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--field);
  border-radius: 10px; cursor: pointer; flex: 1 1 220px; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.radio-card input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.radio-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 10px; }

/* ---------- activity log ---------- */
.integrity { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; }
.icon-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none; }
.icon-tile.warn { background: var(--warn-bg); color: var(--warn-icon); }
.integrity .body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.integrity .body strong { font-size: 15px; }
.integrity .body span.desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.integrity form { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--line-2); border-radius: 10px; align-self: flex-start; }
.tab { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 7px; color: var(--muted);
  font: 500 14px var(--sans); text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px var(--line); }
.filters { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.filter-grid .wide { grid-column: span 2; }
@media (max-width: 520px) { .filter-grid .wide { grid-column: auto; } }
.events { flex: 999 1 600px; min-width: 0; overflow: hidden; }
.events tbody tr { cursor: pointer; }
.events tbody tr:hover { background: #F8FAFF; }
.events tbody tr.selected { background: var(--accent-soft); }
.rowbtn { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; display: flex;
  flex-direction: column; gap: 2px; border-radius: 4px; color: inherit; }
.events td.when { white-space: nowrap; }
.events td.acct { min-width: 170px; }
.events td.acct .mono-sub { overflow-wrap: normal; word-break: break-all; }
.events .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 280px; word-break: break-word; }
.events td.tenant { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowbtn .t { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.rowbtn .d { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.reason { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 220px; line-height: 1.45; }
.account-name { font-weight: 600; }
.mono-sub { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 2px; overflow-wrap: anywhere; }
.table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-2); }
.empty { padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.empty strong { font-size: 15px; }
.empty span { font-size: 14px; color: var(--muted); max-width: 360px; }
.details { flex: 1 1 320px; padding: 20px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.details-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.details-title { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.reason-box { background: var(--warn-card); border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px; }
.reason-box .eyebrow { color: var(--warn); }
.reason-box span:last-child { font-size: 14px; line-height: 1.5; color: var(--warn-ink); }

/* ---------- recovery keys ---------- */
.how { padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.how > div { display: flex; gap: 12px; }
.how .num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); }
.how strong { font-size: 14px; }
.how .hint { font-size: 13px; }
.key-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; }
@media (max-width: 440px) { .key-grid { grid-template-columns: 1fr; } }
.key-card { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.key-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.quorum { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.dot.on { background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 4px; border-radius: 999px;
  background: #F3F4F6; font-size: 13px; color: var(--ink-2); }
.chip b { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--field); display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.key-card .row { margin-top: auto; padding-top: 4px; }
.cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; background: var(--side); border-radius: 10px; }
.cmd span { font-size: 13px; color: var(--side-ink); flex: none; }
.cmd code { flex: 1 1 360px; font-size: 13px; color: #E2E8F0; overflow-x: auto; white-space: nowrap; }
.cmd .btn { background: var(--side-2); border-color: var(--side-3); color: #E2E8F0; }
.cmd .btn:hover { background: var(--side-3); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.step b { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #C9CED6; display: inline-flex; align-items: center;
  justify-content: center; font-size: 12px; }
.step.cur { color: var(--ink); }
.step.cur b { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done b { background: var(--ok-bg); border-color: #B9DFC6; color: var(--ok); }
.stepper { display: flex; align-items: center; border: 1px solid var(--field); border-radius: 8px; overflow: hidden; width: max-content; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--surface-2); font-size: 18px; color: var(--ink-2); cursor: pointer; }
.stepper button:hover { background: var(--line-2); }
.stepper input { width: 52px; height: 40px; border: 0; border-left: 1px solid var(--field); border-right: 1px solid var(--field);
  text-align: center; font: 600 15px var(--sans); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.split-controls { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.split-preview { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13px; color: var(--muted-2); }
.custodian-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 4px; }
.custodian-grid > div { display: flex; align-items: center; gap: 8px; }
.custodian-grid .n { font-family: var(--mono); font-size: 12px; color: var(--muted-2); width: 20px; flex: none; }
.prep { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 12px; align-self: flex-start; }
.share-card { border: 1px solid var(--accent); box-shadow: 0 0 0 1px var(--accent); border-radius: 12px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px; background: var(--accent-tint); }
.share-card textarea { width: 100%; min-height: 7rem; border: 1px solid var(--field); border-radius: 8px; padding: 10px 12px;
  font: 12px/1.5 var(--mono); word-break: break-all; resize: vertical; background: #fff; color: var(--ink); }
.history .head { padding: 18px 20px 12px; }

/* ---------- account security ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tile.attn { border-color: #F2C97A; background: #FFFBF2; }
.tile .value { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.card-head { display: flex; gap: 14px; align-items: flex-start; }
.meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.meter span { height: 4px; border-radius: 2px; background: var(--line); }
.meter[data-score="1"] span:nth-child(-n+1) { background: #B42318; }
.meter[data-score="2"] span:nth-child(-n+2) { background: #B45309; }
.meter[data-score="3"] span:nth-child(-n+3) { background: var(--accent); }
.meter[data-score="4"] span { background: #15803D; }
.reqs { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; }
.req { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.req .yes { display: none; }
.req.met { color: var(--ok); }
.req.met .yes { display: inline; }
.req.met .no { display: none; }

/* ---------- sign-in pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 16px; }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-card { width: 100%; max-width: 400px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-foot { font-size: 13px; color: var(--muted-2); text-align: center; max-width: 400px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.auth-foot form { margin: 0; }
.auth-cards { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.auth-cards .auth-card { max-width: none; }
.qr { width: 200px; height: 200px; display: block; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; align-self: center; }
.secret { font-family: var(--mono); letter-spacing: .05em; background: var(--line-2); padding: 6px 10px; border-radius: 6px;
  display: inline-block; font-size: 13px; overflow-wrap: anywhere; }
.secret.recovery { font-size: 16px; padding: 10px 14px; }
textarea.codes { width: 100%; border: 1px solid var(--field); border-radius: 8px; padding: 10px 12px; font: 15px/1.6 var(--mono);
  letter-spacing: .08em; background: var(--surface-2); color: var(--ink); resize: vertical; }
.code-input { font-family: var(--mono); font-size: 18px; letter-spacing: .2em; text-align: center; height: 48px; }
.auth-brand .brand-text b { color: var(--ink); font-size: 16px; }
.auth-brand .brand-text span { color: var(--muted-2); font-size: 13px; }
.auth-card .flash { font-size: 13px; }
.auth-card h2 { font-size: 16px; }
.email-edit summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); }
.email-edit summary::-webkit-details-marker { display: none; }
.email-edit summary:hover { color: var(--accent); }
.email-edit[open] summary { margin-bottom: 8px; }
.email-edit .field-row { min-width: 280px; }
.link-text { color: var(--accent); }
.grow-1 { flex: 1 1 auto; min-width: 0; }
@media (min-width: 820px) {
  .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; align-self: flex-start; flex: 0 0 232px; }
  .shell { flex-wrap: nowrap; }
}
.who { display: flex; gap: 12px; align-items: flex-start; min-width: 240px; }
.who .mono-sub { overflow-wrap: anywhere; }
td.nowrap, td .nowrap { white-space: nowrap; }

/* ---------- secrets / reveal dialog ---------- */
.dialog { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.dialog::backdrop { background: rgba(15, 23, 42, .55); }
.dialog h2 { font-size: 20px; overflow-wrap: anywhere; }
.icon-btn.dark { color: var(--muted); }
.icon-btn.dark:hover { background: var(--line-2); color: var(--ink); }
textarea.input.textarea { height: auto; min-height: 76px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
td.tenant-cell { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
