/* SMS portal: an operations console. Navy chrome, cool white workspace,
   status colour reserved for meaning, blue reserved for what you can click. */
:root {
  --ink: #0b1628;          /* PrimusTech navy: sidebar, sign-in, headings */
  --ink-2: #1a2a45;
  --brand: #0a84ff;        /* PrimusTech azure, from the logo and site buttons */
  --brand-cyan: #29c5f6;   /* the light end of the logo mark's gradient */
  --text: #1d2635;
  --muted: #5b677a;
  --line: #e2e6ed;
  --line-strong: #c9d0db;
  --paper: #fbfcfd;
  --tint: #f2f5f9;
  --action: #0a6fe0;      /* brand azure, one step darker so small text passes 4.5:1 on white */
  --action-dark: #0758b8;
  --good: #0e7c66;
  --good-bg: #e3f4ef;
  --warn: #9a5b00;
  --warn-bg: #fdf1dc;
  --bad: #b42318;
  --bad-bg: #fde8e6;
  --info: #0a6fe0;
  --info-bg: #e6f1fe;
  --radius: 6px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 3px; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 750; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 650; color: var(--ink); margin: 32px 0 12px; }
h3 { font-size: 15px; font-weight: 650; color: var(--ink); margin: 28px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.boot { padding: 40px; color: var(--muted); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--ink) 232px, var(--paper) 232px); }
.sidebar { background: var(--ink); color: #d6deeb; display: flex; flex-direction: column; padding: 20px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.brand img { height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 750; font-size: 16px; }
.brand-name { font-weight: 650; font-size: 16px; color: #fff; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link { color: #c3cddd; padding: 8px 10px; border-radius: var(--radius); font-weight: 500; }
.nav-link:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--ink-2); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.whoami { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px 0; border-top: 1px solid var(--ink-2); font-size: 12.5px; }
.whoami-name { color: #fff; font-weight: 600; font-size: 13.5px; }
.whoami-org { color: #9eabc0; }
.whoami .btn-link { color: #c3cddd; text-align: left; padding: 6px 0 0; }
.support { color: #c3cddd; font-size: 12.5px; margin-top: 4px; }

.shell > * { min-width: 0; }
.page { padding: 32px 40px 64px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.page-actions, .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lead { margin: 6px 0 0; color: var(--muted); max-width: 72ch; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 550; padding: 7px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: #fff; color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { border-color: var(--muted); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--action); border-color: var(--action); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--action-dark); border-color: var(--action-dark); }
.btn-danger-quiet { color: var(--bad); }
.btn-danger-quiet:hover:not(:disabled) { border-color: var(--bad); }
.btn-small { padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; padding: 10px; }
.btn-link, .btn-icon { background: none; border: 0; font: inherit; cursor: pointer; color: var(--action); padding: 0; }
.btn-icon { font-size: 22px; line-height: 1; color: var(--muted); padding: 2px 8px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-weight: 600; font-size: 13px; color: var(--ink); }
.field-hint { font-size: 12.5px; color: var(--muted); }
.error-text { color: var(--bad); }
input, select, textarea { font: inherit; color: var(--text); padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--action); }
textarea { resize: vertical; }
.field-error input, .field-error textarea { border-color: var(--bad); }
.check { display: flex; gap: 8px; align-items: center; }
.choice { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.choice legend { font-weight: 600; font-size: 13px; color: var(--ink); padding: 0 4px; }
.choice label { display: flex; gap: 8px; align-items: center; }
.choice input[type=datetime-local] { width: auto; }
.form-col { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.form-col > .btn, .form-col > p > .btn { align-self: flex-start; }
.modal .form-col > .btn-primary { align-self: stretch; justify-content: center; }
.form-grid { display: grid; grid-template-columns: minmax(0, 560px) 300px; gap: 48px; align-items: start; }
.counter { margin: -8px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.field-inline input, .field-inline select { width: 220px; }
.drop { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; background: #fff; }
.drop input { display: block; margin: 0 auto 8px; width: auto; border: 0; }

.notice { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius); background: var(--info-bg); color: var(--ink); border-left: 3px solid var(--info); }
.notice-error { background: var(--bad-bg); border-left-color: var(--bad); }
.notice-key { background: var(--warn-bg); border-left-color: var(--warn); }
.notice p { margin: 0 0 8px; }
.secret { display: block; font-size: 14px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 10px; word-break: break-all; user-select: all; }

/* ---------- tables, status ---------- */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover td { background: var(--tint); }
.table .num { text-align: right; }
.table-compact td, .table-compact tbody th { padding: 6px 12px 6px 0; }
.table-compact tbody th { color: var(--text); font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line); }
tr.revoked td { color: var(--muted); }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); white-space: nowrap; }
.status-good { background: var(--good-bg); color: var(--good); }
.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-bad { background: var(--bad-bg); color: var(--bad); }
.status-info { background: var(--info-bg); color: var(--info); }
.sender { font-weight: 650; letter-spacing: .02em; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs button { font: inherit; background: none; border: 0; padding: 8px 12px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* ---------- figures, chart ---------- */
.figures { display: flex; gap: 48px; flex-wrap: wrap; padding: 4px 0 8px; }
.figure { display: flex; flex-direction: column; }
.figure-value { font-size: 28px; font-weight: 650; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.figure-value.good { color: var(--good); } .figure-value.bad { color: var(--bad); } .figure-value.warn { color: var(--warn); }
.figure-label { color: var(--muted); font-size: 13px; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
.chart { width: 100%; height: auto; }
.chart-grid { stroke: var(--line); }
.chart-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.bar-sent { fill: #cdd7e6; }
.bar-delivered { fill: var(--brand); }
.legend { margin: -6px 0 6px; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.key:first-child { margin-left: 0; }
.key-delivered { background: var(--brand); } .key-sent { background: #cdd7e6; }
.attention { list-style: none; padding: 0; margin: 0; }
.attention li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- NOC lanes: the one loud element ---------- */
.live { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.live.on::before { background: var(--brand); box-shadow: 0 0 0 3px var(--info-bg); }
.lanes { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.lane { display: grid; grid-template-columns: 190px minmax(260px, 1fr) 300px auto; gap: 28px; align-items: center;
  padding: 18px 16px 18px 20px; border-bottom: 1px solid var(--line-strong); border-left: 5px solid var(--good); background: #fff; }
.lane-connecting { border-left-color: var(--warn); background: #fffbf3; }
.lane-disabled { border-left-color: var(--bad); background: #fdf7f6; }
.lane-id h3 { margin: 0 0 2px; font-size: 16px; }
.lane-id { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lane-meter { display: flex; flex-direction: column; gap: 10px; }
.meter-row { display: grid; grid-template-columns: 76px 1fr 140px; gap: 10px; align-items: center; }
.meter-label { font-size: 12.5px; color: var(--muted); }
.meter-value { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter-value b { color: var(--ink); font-size: 15px; }
.meter { height: 12px; background: #e6ebf2; border-radius: 3px; overflow: hidden; }
.meter-thin { height: 6px; }
.meter-big { height: 14px; margin-bottom: 8px; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--brand-cyan), var(--brand)); transition: width .6s ease; }
.meter-fill.hot { background: #e08a00; }
.lane-error { margin: 0; color: var(--bad); font-size: 12.5px; }
.lane-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; margin: 0; }
.lane-stats dt { font-size: 11.5px; color: var(--muted); }
.lane-stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.lane-actions { display: flex; flex-direction: column; gap: 6px; }

/* ---------- campaign ---------- */
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: s; }
.steps li { counter-increment: s; padding: 8px 18px 8px 0; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.steps li.current { color: var(--ink); font-weight: 600; }
.steps li.current::before { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--good); border-color: var(--good); color: #fff; }
.phone { border: 1px solid var(--line-strong); border-radius: 22px; padding: 20px 16px 24px; background: #fff; position: sticky; top: 24px; }
.phone-sender { text-align: center; font-weight: 650; font-size: 13px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.bubble { background: #e9edf3; border-radius: 16px 16px 16px 4px; padding: 10px 13px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.bubble-flat { border-radius: var(--radius); }
.progress-block p { margin: 0; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.facts-inline dt::after { content: ""; }
.facts-inline dd { margin-right: 28px; font-weight: 600; }
.facts-inline dd.big { font-size: 22px; color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li { padding: 4px 0 4px 26px; position: relative; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.checklist li.ok { color: var(--text); }
.checklist li.ok::before { background: var(--good); border-color: var(--good); }
.review { margin-top: 32px; padding: 20px; background: var(--tint); border-radius: var(--radius); max-width: 640px; }
.review h2 { margin-top: 0; }
.route-chain { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.route-chain li { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; }
.route-chain li.fallback { border-style: dashed; }

/* ---------- accounts ---------- */
.master-detail { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.master-detail > .detail:only-child { grid-column: 1 / -1; }
.master-detail > * { min-width: 0; }   /* let wide tables scroll inside instead of widening the page */
.tree { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding-right: 16px; }
.tree-item { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--radius); color: var(--text); }
.tree-item:hover { background: var(--tint); text-decoration: none; }
.tree-item.active { background: var(--info-bg); }
.tree-item.depth-1 { margin-left: 14px; } .tree-item.depth-2 { margin-left: 28px; } .tree-item.depth-3 { margin-left: 42px; }
.tree-name { font-weight: 600; }
.tree-meta { font-size: 12px; color: var(--muted); }
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.detail-head h2 { margin: 0; font-size: 20px; }
.detail-head p { margin: 4px 0 0; }
.branding { margin-top: 12px; }
.branding h3 { margin-bottom: -8px; }
.doc-list { list-style: none; padding: 0; margin: 0 0 16px; }
.doc-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.doc-list .doc-kind { font-weight: 600; display: block; }

/* ---------- modal, toast, login ---------- */
.modal { border: 0; border-radius: 10px; padding: 0; width: min(560px, 94vw); box-shadow: 0 18px 50px rgba(20, 32, 54, .25); }
.modal::backdrop { background: rgba(20, 32, 54, .45); }
.modal-body { padding: 20px 24px 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h2 { margin: 0; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(20, 32, 54, .25); max-width: 380px; }
.toast-error { background: var(--bad); }
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: radial-gradient(ellipse at 70% 20%, #12305a 0%, var(--ink) 60%); padding: 24px; }
.login-form { background: #fff; padding: 32px; border-radius: 10px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px;
  border-top: 3px solid var(--brand); }
.brand-login { padding: 0; }
.brand-login img { height: 56px; max-width: 260px; }
.login-foot { color: #8b9ab3; font-size: 12.5px; margin: 0; text-align: center; }

@media (max-width: 1100px) {
  .lane { grid-template-columns: 1fr; gap: 14px; }
  .lane-actions { flex-direction: row; }
  .split, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; background: var(--paper); }
  .sidebar { position: static; height: auto; padding: 14px 12px 8px; }
  .brand { padding-bottom: 10px; }
  .sidebar nav { flex-direction: row; overflow-x: auto; width: 100%; padding-bottom: 6px; scrollbar-width: thin; }
  .nav-link { white-space: nowrap; }
  .meter-row { grid-template-columns: 70px 1fr; }
  .meter-value { grid-column: 2; }
  .lane-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lane-actions { flex-wrap: wrap; }
  .whoami { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 0; padding: 8px 2px 0; }
  .whoami-name, .whoami-org, .whoami .support { display: none; }
  .whoami .btn-link { padding: 0; }
  .page { padding: 20px 16px 48px; }
  .page-head { flex-direction: column; }
  .master-detail { grid-template-columns: minmax(0, 1fr); }
  .tree { border-right: 0; padding-right: 0; }
  .table { display: block; overflow-x: auto; }
  .figures { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .meter-fill { transition: none; } }

/* ---------- config screens ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 12px; flex-wrap: wrap; }
.section-head h2, .section-head h3 { margin: 0; }
.section-head p { margin: 0; max-width: 72ch; }
h2 + .table, .section-head + .table { margin-top: 0; }
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.target-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.target-row select { width: auto; flex: 1 1 160px; }
.target-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.target-row input[type=number] { width: 84px; }
.choice-row { flex-direction: row; gap: 16px; align-items: center; }
.inline-form { max-width: 720px; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.inline-form > .btn { align-self: flex-start; }
.price-card { margin-bottom: 20px; }
.price-card .section-head { justify-content: flex-start; }
.price-pick { margin: 16px 0 0; }
.replies { list-style: none; padding: 0; margin: 12px 0 0; max-width: 720px; }
.replies li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.reply-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.bubble-in { display: inline-block; max-width: 520px; background: #fff; border: 1px solid var(--line-strong); }
@media (max-width: 760px) { .row-fields { grid-template-columns: 1fr; } }

/* ---------- confirm dialog ---------- */
.modal-ask { width: min(420px, 94vw); }
.ask-text { margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.ask-actions { justify-content: flex-end; gap: 8px; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(.92); }

/* ---------- demo build ---------- */
.demo-wrap { min-width: 0; display: flex; flex-direction: column; }
.demo-bar { margin: 0; padding: 8px clamp(16px, 4vw, 40px); background: #e8f1ff; color: #0a3d80; font-size: 13px; border-bottom: 1px solid #cfe0fb; }
.demo-picker { max-width: 520px; }
.demo-users { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.demo-user { width: 100%; text-align: left; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line, #d9e0ea); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
.demo-user:hover:not(:disabled), .demo-user:focus-visible { border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.15); }
.demo-user-name { font-weight: 600; }
.tour-start { margin-top: 16px; }
.demo-or { font-size: 14px; margin: 22px 0 0; }
.tip { border: 1px solid #b9d4fb; background: #f2f7ff; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; display: grid; gap: 4px; }
.tip-step { font-size: 12px; font-weight: 600; color: #0a6fe0; }
.tip-body { display: grid; gap: 10px; justify-items: start; color: #1b2a40; }

/* ---------- product name under the company logo ---------- */
.brand:has(img) { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-product { color: #fff; font-size: 19px; font-weight: 650; letter-spacing: .01em; padding-left: 2px; }
.brand-login:has(img) { align-items: center; }
.brand-login .brand-product { font-size: 24px; }
.brand img.brand-own { height: auto; width: 188px; max-width: 100%; }
.brand-login img.brand-own { width: min(340px, 80vw); max-width: none; }

/* ---------- carrier connection type ---------- */
.segmented { display: flex; gap: 0; border: 0; padding: 0; margin: 0 0 4px; }
.segmented legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.segmented label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--line, #d9e0ea); cursor: pointer; font-weight: 600; background: #fff; }
.segmented label:first-of-type { border-radius: 8px 0 0 8px; }
.segmented label:last-of-type { border-radius: 0 8px 8px 0; border-left: 0; }
.segmented label:has(input:checked) { background: #e8f1ff; border-color: #0a84ff; color: #0a3d80; }
.segmented label:has(input:focus-visible) { outline: 2px solid #0a84ff; outline-offset: 2px; }
.segmented input { accent-color: #0a84ff; }
.lane-ready { border-left-color: var(--good); }
.lane-unreachable { border-left-color: var(--bad); background: #fdf7f6; }
textarea.mono, input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
details.advanced { border: 1px solid var(--line, #d9e0ea); border-radius: 8px; padding: 10px 14px; display: grid; gap: 12px; }
details.advanced[open] { padding-bottom: 14px; }
details.advanced summary { cursor: pointer; font-weight: 600; }
.callback-urls { display: grid; gap: 10px; background: #f2f7ff; border: 1px solid #b9d4fb; border-radius: 8px; padding: 12px 14px; }
.copy-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.copy-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; background: #fff; border: 1px solid #d9e0ea; border-radius: 6px; padding: 6px 8px; }

/* ---------- My account / people ---------- */
.form-col.narrow { max-width: 420px; }
code.secret { font-size: 16px; letter-spacing: .04em; background: #f2f7ff; border: 1px solid #b9d4fb; border-radius: 6px; padding: 4px 8px; user-select: all; }
.whoami .btn-link { text-align: left; }

/* ---------- sign-in extras ---------- */
.btn-link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--action); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.login-form .btn-link-inline { align-self: flex-start; }
.qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 8px; }
.secret { font-size: 14px; letter-spacing: .04em; word-break: break-all; }
.recovery { border: 1px solid var(--line-strong); border-radius: 8px; padding: 16px 18px; max-width: 560px; background: #fff; }
.recovery-codes { columns: 2; padding-left: 22px; margin: 12px 0 16px; font-size: 15px; line-height: 1.9; }

/* ---------- statements ---------- */
.statement { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 20px 22px; display: grid; gap: 12px; max-width: 860px; }
.statement-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.statement-title { text-align: right; }
.statement-sum { max-width: 420px; }
.statement tr.total th, .statement tr.total td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.pre { white-space: pre-line; }
.export { align-items: flex-end; }
.bad { color: var(--bad); }
@media print {
  body.printing-statement .sidebar, body.printing-statement .no-print, body.printing-statement .page > :not(.split):not(.master-detail) { display: none !important; }
  body.printing-statement .shell { display: block; background: #fff; }
  body.printing-statement .detail > :not(.statement-wrap) { display: none !important; }
  body.printing-statement .master-detail > :not(.detail) { display: none !important; }
  body.printing-statement .statement { border: 0; padding: 0; max-width: none; }
  body.printing-statement .statement-wrap .section-head { display: none; }
}
