/* APEX Kube Monitor */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #141a26;
  --ink-2: #4a5568;
  --ink-3: #7a8597;
  --line: #d9dee6;
  --wire: #9aa6b8;
  --focus: #2f6fdf;

  --a-claude: #c2603c;
  --a-suite: #2f6fdf;
  --a-ci: #13867a;
  --a-target: #5b6779;
  --a-launcher: #b7791f;
  --a-platform: #7a4fc9;
  --a-human: #c53b5a;

  --radius: 10px;
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e121a; --surface: #161c27; --surface-2: #1d2532; --ink: #e8ecf3; --ink-2: #b3bdcc; --ink-3: #8691a3;
    --line: #2b3545; --wire: #55627a; --focus: #6ea0ff;
    --a-claude: #e58a66; --a-suite: #6ea0ff; --a-ci: #3cc2b1; --a-target: #9aa6b8; --a-launcher: #e6a845; --a-platform: #a988f0; --a-human: #f07390;
    --shadow: 0 1px 2px rgb(0 0 0 / .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e121a; --surface: #161c27; --surface-2: #1d2532; --ink: #e8ecf3; --ink-2: #b3bdcc; --ink-3: #8691a3;
  --line: #2b3545; --wire: #55627a; --focus: #6ea0ff;
  --a-claude: #e58a66; --a-suite: #6ea0ff; --a-ci: #3cc2b1; --a-target: #9aa6b8; --a-launcher: #e6a845; --a-platform: #a988f0; --a-human: #f07390;
  --shadow: 0 1px 2px rgb(0 0 0 / .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── header */
.top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 24px 12px; }
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; width: 34px; height: 34px; cursor: pointer; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 6px 12px; cursor: pointer; }
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); min-width: 9.5em; }
}

/* ══════════════ sign-in, account and administration ══════════════ */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.hint { color: var(--ink-3); margin: 0; }
a { color: var(--focus); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; width: 100%; }
textarea { font: 13px/1.45 var(--mono); resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[type="checkbox"] { width: auto; accent-color: var(--focus); margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label, .form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.btn-small { padding: 3px 10px; font-size: 13px; }
.btn-danger { background: var(--a-human); border-color: var(--a-human); color: #fff; }
.btn-danger-ghost { color: var(--a-human); }
.btn:disabled { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.actions input { flex: 1 1 200px; width: auto; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 24px 28px; }
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.auth-brand h1 { font-size: 18px; }
.auth-brand p { margin: 2px 0 0; font-size: 13px; }
.auth-card h2 { font-size: 16px; margin-bottom: 12px; }
.auth-card section > p { margin: -4px 0 14px; font-size: 14px; }
.auth-error { margin: 0 0 14px; padding: 9px 12px; border-radius: 8px; font-size: 14px; background: color-mix(in srgb, var(--a-human) 12%, transparent); border: 1px solid color-mix(in srgb, var(--a-human) 40%, transparent); }
.btn-sso { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.btn-sso::before { content: ""; width: 16px; height: 16px; background:
  linear-gradient(#f25022, #f25022) 0 0 / 7px 7px no-repeat, linear-gradient(#7fba00, #7fba00) 9px 0 / 7px 7px no-repeat,
  linear-gradient(#00a4ef, #00a4ef) 0 9px / 7px 7px no-repeat, linear-gradient(#ffb900, #ffb900) 9px 9px / 7px 7px no-repeat; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.user-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.user-menu .who { font-weight: 600; }
.user-menu a { text-decoration: none; }
.user-menu a:hover { text-decoration: underline; }

.page .top { border-bottom: 1px solid var(--line); }
.tagline a { text-decoration: none; }
.tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs [role="tab"] { border: 0; background: none; padding: 12px 14px; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--focus); font-weight: 600; }
.admin { max-width: 1100px; margin: 0 auto; padding: 20px 24px 48px; display: block; }
.admin.narrow { max-width: 640px; }
.admin section { display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toolbar input[type="search"] { max-width: 320px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 16px; margin-bottom: 4px; }
.card > p { margin: 0 0 14px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; align-items: start; }
.form-grid .span2, .form-grid details, .form-grid .actions, .form-grid .result { grid-column: 1 / -1; }
.form-grid details > .form-grid { margin-top: 10px; }
details summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
.howto { margin: 0 0 14px; font-size: 14px; }
.howto ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 5px; color: var(--ink-2); }
.result { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font: 13px/1.5 var(--mono); white-space: pre-wrap; }
.result[data-kind="ok"] { border-left: 3px solid var(--a-ci); }
.result[data-kind="error"] { border-left: 3px solid var(--a-human); }
.copybox { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.copybox p { margin: 0 0 6px; }
.copybox dl { margin: 0; display: grid; gap: 4px 12px; grid-template-columns: max-content 1fr; font-size: 13px; align-items: center; }
.copybox dt { color: var(--ink-2); }
.copybox dd { margin: 0; display: flex; gap: 8px; align-items: center; min-width: 0; }
.copybox code { overflow-wrap: anywhere; background: var(--surface); }

.flash { margin: 0 0 14px; padding: 9px 12px; border-radius: 8px; font-size: 14px; border: 1px solid color-mix(in srgb, var(--a-ci) 40%, transparent); background: color-mix(in srgb, var(--a-ci) 10%, transparent); }
.flash[data-kind="error"] { border-color: color-mix(in srgb, var(--a-human) 40%, transparent); background: color-mix(in srgb, var(--a-human) 10%, transparent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr.warn td { background: color-mix(in srgb, var(--a-human) 6%, transparent); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn + .btn { margin-left: 6px; }
.badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge-admin { background: color-mix(in srgb, var(--a-suite) 15%, transparent); color: var(--a-suite); }
.badge-ldap { background: color-mix(in srgb, var(--a-ci) 14%, transparent); color: var(--a-ci); }
.badge-saml { background: color-mix(in srgb, var(--a-platform) 14%, transparent); color: var(--a-platform); }
.badge-off { background: color-mix(in srgb, var(--a-human) 14%, transparent); color: var(--a-human); }
.badge-warn { background: color-mix(in srgb, var(--a-launcher) 16%, transparent); color: var(--a-launcher); }

dialog { border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
dialog::backdrop { background: rgb(10 14 22 / .45); }
dialog h2 { font-size: 17px; }
fieldset.pw { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset.pw[hidden] { display: none; }
fieldset.pw .btn { align-self: flex-start; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 8px 0 0; font-size: 14px; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .tabs { padding: 0 8px; }
  .admin { padding: 16px 16px 40px; }
  .copybox dl { grid-template-columns: 1fr; }
  .user-menu { width: 100%; }
}

/* ── API tokens, audit & activity, log forwarding (0.3.0) ── */
.card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.card-head h2 { margin: 0; }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
dialog .form-grid h2 { margin: 0; }
.code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0;
  font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: var(--mono); font-size: 13px; }
.warn-box { margin: 0; padding: 9px 12px; border-radius: 8px; font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--a-launcher) 45%, transparent); background: color-mix(in srgb, var(--a-launcher) 12%, transparent); }
.scopes, .inline-checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.inline-checks { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
.scopes legend, .inline-checks legend { font-size: 13.5px; color: var(--ink-2); padding: 0; margin-bottom: 4px; }
table.grid tr.dim td { opacity: .6; }
.nowrap { white-space: nowrap; }
.err { color: var(--a-human); }
.unsafe { color: var(--a-human); font-weight: 600; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; margin-bottom: 10px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.filters .actions { grid-column: 1 / -1; justify-content: flex-start; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-self: end; width: max-content; }
.segmented label { flex-direction: row; align-items: center; gap: 0; padding: 6px 14px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label:has(input:checked) { background: var(--ink); color: var(--bg); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
table.events tbody tr { cursor: pointer; }
table.events tbody tr:hover td { background: var(--surface-2); }
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
@media (max-width: 760px) {
  dialog.wide .form-grid { grid-template-columns: 1fr; }
  .copy-row { flex-direction: column; }
}
.auth-error.ok { color: var(--ink); background: color-mix(in srgb, var(--a-repo, #2e7d32) 12%, transparent); border-color: color-mix(in srgb, var(--a-repo, #2e7d32) 40%, transparent); }
.restore-link { margin-top: 14px; }

/* ══════════════ monitor ══════════════ */
:root { --crit: #b42318; --warn: #b7791f; --info: #2f6fdf; --ok: #13867a; --down: #7a8597; }
:root[data-theme="dark"] { --crit: #ff6b5e; --warn: #e6a845; --info: #6ea0ff; --ok: #3cc2b1; --down: #8691a3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --crit: #ff6b5e; --warn: #e6a845; --info: #6ea0ff; --ok: #3cc2b1; --down: #8691a3; } }

.brand h1 { font-size: 20px; letter-spacing: -.01em; }
a.brand, a.brand.plain { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.tagline { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.top-right { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mainnav a { padding: 12px 14px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mainnav a.on { color: var(--ink); border-bottom-color: var(--focus); font-weight: 600; }
.mainnav a.crumb { color: var(--ink-3); margin-right: 8px; }
.admin.wide-main { max-width: 1320px; display: flex; flex-direction: column; gap: 16px; }
.admin.wide-main .card + .card { margin-top: 0; }
.flash.floating { position: fixed; right: 16px; bottom: 16px; z-index: 60; max-width: min(460px, calc(100vw - 32px)); margin: 0; box-shadow: var(--shadow); background: var(--surface); }
.h-section { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 8px 0 8px; }
h3 { font-size: 15px; margin: 0 0 6px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: inherit; text-decoration: none; }
.grow { flex: 1 1 auto; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; overflow-wrap: anywhere; }
table.grid.compact td, table.grid.compact th { padding: 5px 8px; }
table.grid.compact { font-size: 13px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.two-col > section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack-tight { display: grid; gap: 4px; }
.notice-inline { margin: 0; color: var(--ink-2); }
.result.ok { border-left: 3px solid var(--ok); } .result.warn { border-left: 3px solid var(--warn); } .result.err { border-left: 3px solid var(--crit); color: var(--crit); }
.result { font-family: var(--sans); }
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.segmented button { border: 0; background: none; padding: 6px 12px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; text-transform: capitalize; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* status and severity */
.st, .sev { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 99px; vertical-align: middle; white-space: nowrap; }
.st-healthy { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.st-warning, .sev-warning { background: color-mix(in srgb, var(--warn) 17%, transparent); color: var(--warn); }
.st-critical, .sev-critical, .st-unreachable { background: color-mix(in srgb, var(--crit) 14%, transparent); color: var(--crit); }
.sev-info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.st-pending, .st-disabled { background: var(--surface-2); color: var(--ink-2); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile-label { color: var(--ink-2); font-size: 13px; }
.tile-value { font-size: 28px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile-ok .tile-value { color: var(--ok); }
.tile-warn .tile-value { color: var(--warn); }
.tile-bad { border-color: color-mix(in srgb, var(--crit) 45%, var(--line)); }
.tile-bad .tile-value { color: var(--crit); }

/* meters */
.meter { margin: 6px 0; }
.meter-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.meter-track { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 3px; }
.meter-fill { height: 100%; width: 0; border-radius: 99px; transition: width .4s ease; }
.m-ok { background: var(--ok); } .m-warn { background: var(--warn); } .m-crit { background: var(--crit); }
td .meter { margin: 0; min-width: 120px; }

/* cluster cards */
.cluster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cluster-card { display: block; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: box-shadow .15s; }
.cluster-card:hover { box-shadow: var(--shadow); border-color: var(--ink-3); }
.st-border-healthy { border-top-color: var(--ok); } .st-border-warning { border-top-color: var(--warn); }
.st-border-critical, .st-border-unreachable { border-top-color: var(--crit); }
.cluster-card p { margin: 4px 0; }
.cc-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cc-head h2 { font-size: 18px; }
.cc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; text-align: center; }
.cc-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.cc-stats span { font-size: 12px; color: var(--ink-3); }
.card.empty { text-align: center; padding: 40px 20px; }
.cluster-head h2 { font-size: 20px; }
.cluster-head p { margin: 2px 0 0; }

/* issues */
.issue { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.issue + .issue { margin-top: 10px; }
.issue-critical { border-left-color: var(--crit); } .issue-warning { border-left-color: var(--warn); } .issue-info { border-left-color: var(--info); }
.issue-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.issue-head h3 { margin: 0; flex: 1 1 260px; font-size: 15px; }
.issue .cat { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.issue > p { margin: 6px 0; font-size: 14px; }
.recs { margin-top: 6px; font-size: 14px; }
.recs ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 2px; }
.remedy { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.remedy .btn { margin-left: auto; }
.held { color: var(--warn); }

/* nodes */
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.node-card details { margin-top: 8px; font-size: 14px; }
.node-mini + .node-mini { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.node-mini-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* history */
.spark { width: 100%; height: 60px; display: block; }
td .spark { height: 30px; min-width: 120px; }
.spark path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-cpu path { stroke: var(--info); } .spark-mem path { stroke: var(--a-platform); } .spark-disk path { stroke: var(--warn); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.timeline li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.tl-icon { text-align: center; background: none; padding: 0; }
.tl-icon.sev-critical { color: var(--crit); background: none; } .tl-icon.sev-warning { color: var(--warn); background: none; } .tl-icon.sev-info { color: var(--info); background: none; }
.tl-resolved .tl-icon { color: var(--ok); }
.tl-text { overflow-wrap: anywhere; font-size: 14px; }

/* sign-in: MFA */
.code-input { font: 600 22px/1.2 var(--mono); letter-spacing: .25em; text-align: center; }
.qr { display: flex; justify-content: center; margin: 10px 0; }
.qr svg { background: #fff; border-radius: 8px; width: 220px; height: 220px; max-width: 100%; }
.qr svg path, .qr svg rect:not(:first-child) { fill: #000; }
.secret { word-spacing: .3em; padding: 8px 10px; background: var(--surface-2); border-radius: 6px; user-select: all; overflow-wrap: anywhere; }
.codes { columns: 2; gap: 24px; padding: 10px 10px 10px 34px; margin: 8px 0; background: var(--surface-2); border-radius: 8px; font-size: 15px; }
.codes li { padding: 2px 0; }
.mfa-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .top { padding: 14px 16px 10px; }
  .node-grid, .cluster-grid { grid-template-columns: 1fr; }
  .cc-stats { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 22px minmax(0, 1fr); }
  .timeline .tl-meta { grid-column: 2; }
}
table.grid th.num { text-align: right; }
