/* tenantleak Cloud — design system.
   Ink carries the structure; red only ever means "data crossed from one customer to another". */

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

:root {
  --ink: #131820;          /* structure, text, primary buttons */
  --ink-2: #222a36;        /* raised ink surfaces */
  --ink-3: #333d4c;
  --paper: #f3f4f1;        /* page background: neutral, slightly mineral */
  --surface: #ffffff;
  --line: #dadfe4;
  --line-strong: #b9c1ca;
  --steel: #566170;        /* secondary text */
  --faint: #8a939f;
  --leak: #d7263d;         /* a leak, and nothing else */
  --leak-bg: #fce8eb;
  --leak-ink: #8f1022;
  --sealed: #17785a;       /* protected / fixed */
  --sealed-bg: #e3f3ec;
  --unsure: #946200;       /* to check by hand, medium severity */
  --unsure-bg: #fff3d4;
  --focus: #2b62d9;
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--font); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
code, pre, .mono { font-family: var(--mono); font-size: 0.86em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.9em; max-width: 72ch; }
small, .muted { color: var(--steel); }
.faint { color: var(--faint); }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--font);
  padding: 11px 16px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--ink-2); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: #eef0f2; }
.btn-danger { background: var(--surface); color: var(--leak-ink); border-color: #e9a7b1; }
.btn-danger:hover { background: var(--leak-bg); }
.btn-small { padding: 7px 11px; font-size: 13px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #e9ecef; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- forms ---------- */
form { margin: 0; }
.field { display: grid; gap: 6px; margin-bottom: 16px; max-width: 560px; }
.field label, .label { font-weight: 600; font-size: 14px; }
.field .help { font-size: 13px; color: var(--steel); }
.field.wide { max-width: none; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; font: 15px/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 10px 12px; }
textarea { min-height: 96px; font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: -3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; max-width: 640px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; max-width: 760px; }
.row2 .field { max-width: none; }
.error-text { color: var(--leak-ink); font-size: 13px; font-weight: 500; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 20px; background: var(--surface); }
legend { font-family: var(--display); font-weight: 700; padding: 0 6px; }

/* ---------- messages ---------- */
.flash { border-radius: 8px; padding: 11px 14px; margin: 0 0 16px; font-size: 14px; border: 1px solid; }
.flash-ok { background: var(--sealed-bg); border-color: #b5ddcb; color: #0e573f; }
.flash-error { background: var(--leak-bg); border-color: #efb3bd; color: var(--leak-ink); }
.flash-warn { background: var(--unsure-bg); border-color: #ecd28c; color: #6c4800; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 8px;
  padding: 12px 16px; font-size: 14px; margin: 0 0 16px; }
.note.warn { border-left-color: var(--unsure); }
.note.leak { border-left-color: var(--leak); }

/* ---------- badges & verbs ---------- */
.sev { display: inline-block; font: 600 12px/1 var(--font); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.sev-critical { background: var(--leak); color: #fff; }
.sev-high { background: var(--leak-bg); color: var(--leak-ink); box-shadow: inset 0 0 0 1px #f0b5be; }
.sev-medium { background: var(--unsure-bg); color: #6c4800; box-shadow: inset 0 0 0 1px #ecd28c; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.state-open::before { background: var(--leak); }
.state-failed::before, .state-pending::before { background: var(--unsure); }
.state-fixed::before, .state-done::before { background: var(--sealed); }
.state-accepted::before, .state-false_positive::before, .state-cancelled::before { background: var(--line-strong); }
.state-running::before, .state-queued::before { background: var(--focus); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.verb { display: inline-block; min-width: 54px; text-align: center; font: 700 11px/1 var(--mono); padding: 4px 6px;
  border-radius: 4px; background: #e8ebee; color: var(--ink); margin-right: 4px; }
.verb-post, .verb-put, .verb-patch { background: #fdebd8; color: #7a3d00; }
.verb-delete { background: var(--leak-bg); color: var(--leak-ink); }
.verb-gql { background: #ece6fb; color: #4b2a9a; }
.tag { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #e8ebee; color: var(--steel); }
.tag-new { background: var(--leak); color: #fff; font-weight: 600; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--steel); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f8f9fa; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { font-weight: 600; text-decoration: none; }
.table a.row-link:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }

/* ---------- code ---------- */
pre.code { background: var(--ink); color: #e6e9ee; padding: 14px 16px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap;
  word-break: break-all; margin: 0 0 12px; font-size: 12.5px; line-height: 1.55; }
.copy-wrap { position: relative; }
.copy-wrap .copy { position: absolute; top: 8px; right: 8px; font: 600 12px/1 var(--font); padding: 6px 9px; border-radius: 6px;
  border: 1px solid var(--ink-3); background: var(--ink-2); color: #fff; cursor: pointer; }
kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; background: #fff; }

/* ======================================================================
   App shell
   ====================================================================== */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9d0d9; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 16px/1 var(--display); color: #fff; text-decoration: none; padding: 4px 8px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand small { font: 500 11px/1 var(--font); color: #8f9aa8; display: block; margin-top: 4px; letter-spacing: 0; }
.org-switch { width: 100%; background: var(--ink-2); color: #fff; border: 1px solid var(--ink-3); }
.org-switch:focus { outline-color: #8fb2ff; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; text-decoration: none; color: #c9d0d9; font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.nav svg { width: 17px; height: 17px; flex: none; opacity: 0.9; }
.nav-title { font-size: 12px; color: #7f8a98; padding: 6px 10px 2px; }
.side-foot { margin-top: auto; font-size: 13px; display: grid; gap: 8px; padding: 0 8px; }
.side-foot .plan { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #fff; }
.side-foot a { color: #c9d0d9; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 32px 0; }
.crumbs { font-size: 13px; color: var(--steel); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--steel); }
.content { padding: 18px 32px 64px; max-width: 1240px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--steel); }
.menu-toggle { display: none; }

/* summary strip: one line of facts, not a wall of cards */
.strip { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.strip > div { padding: 14px 20px; border-right: 1px solid var(--line); min-width: 150px; flex: 1; }
.strip > div:last-child { border-right: 0; }
.strip b { display: block; font: 700 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.strip span { font-size: 13px; color: var(--steel); }
.strip .leak b { color: var(--leak); }
.strip .sealed b { color: var(--sealed); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.dl dt { color: var(--steel); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; overflow-x: auto; }
.tabs a { padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: 14px; color: var(--steel); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filters a { font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; background: var(--surface); }
.filters a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { text-align: left; padding: 28px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty h3 { margin-bottom: 6px; }

/* onboarding checklist: a real sequence */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px/1 var(--display); border: 1.5px solid var(--ink); }
.steps li.done::before { content: "✓"; background: var(--sealed); border-color: var(--sealed); color: #fff; }
.steps li.done h3 { color: var(--steel); }
.steps h3 { margin: 0 0 2px; }
.steps p { margin: 0; font-size: 14px; color: var(--steel); }

/* scan progress */
.progress { height: 6px; border-radius: 3px; background: #e5e8eb; overflow: hidden; margin: 10px 0; }
.progress > i { display: block; height: 100%; width: 35%; background: var(--ink); border-radius: 3px; animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* issue page: who reached whose object */
.crossings { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.crossings li { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; }
.crossings .arrow { flex: 0 0 46px; height: 2px; background: var(--leak); position: relative; }
.crossings .arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--leak); border-right: 0; }

/* auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--ink); color: #dfe4ea; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand { padding: 0; }
.auth-quote { font: 500 1.25rem/1.45 var(--display); color: #fff; max-width: 34ch; }
.auth-quote small { display: block; font: 400 14px/1.5 var(--font); color: #9aa5b3; margin-top: 12px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .field { max-width: none; }
.auth-card .btn { width: 100%; }
.auth-alt { margin-top: 18px; font-size: 14px; color: var(--steel); }

/* ======================================================================
   Public site
   ====================================================================== */
.pub-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; max-width: 1200px; margin: 0 auto; }
.pub-head nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 500; }
.pub-head nav a { text-decoration: none; }
.pub-head .brand { color: var(--ink); padding: 0; }
.pub-head .brand small { color: var(--steel); }
.dark .pub-head .brand, .dark .pub-head nav a { color: #fff; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 26ch; }
.lede { font-size: 1.12rem; color: var(--steel); max-width: 62ch; }
.pub-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--steel); }
.pub-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.pub-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose pre.code { font-size: 12.5px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; }
  .side .nav, .side .side-foot, .side .org-form, .side .nav-title { display: none; }
  .side.open .nav, .side.open .side-foot, .side.open .org-form { display: grid; width: 100%; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .grid-2, .row2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .pub-head { padding: 14px 16px; }
  .pub-head nav .hide-sm { display: none; }
  .wrap { padding: 0 16px; }
  .section { padding: 48px 0; }
  .strip > div { min-width: 45%; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li { grid-template-columns: 34px 1fr; }
  .steps li .actions { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.brand-on-paper { color: var(--ink); padding: 0; margin-bottom: 28px; }

/* ---------- app pages: additions ---------- */
[hidden] { display: none !important; }
.spaced { margin-top: 24px; }
.small { font-size: 13px; }
input[type=file] { font: 14px var(--font); padding: 8px 0; }
input[type=search], input[type=date] { font: 15px/1.4 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; }
input[type=search]:focus, input[type=date]:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
fieldset[disabled] { opacity: 0.75; }
details > summary { cursor: pointer; }
details.panel > summary { list-style-position: outside; }
.check.inline { margin: 0; align-items: center; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.inline-form .field { margin: 0; flex: 1 1 260px; }
.inline-form .field.narrow { flex: 0 1 200px; }
.inline-select { display: flex; gap: 8px; align-items: center; }
.inline-select select { width: auto; padding: 6px 10px; font-size: 14px; }
form.inline { display: inline; margin-left: 8px; }
.grid-2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lede-small { color: var(--steel); max-width: 80ch; }
.help-text { font-size: 13px; color: var(--steel); }
.issue-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.issue-counts b { margin-right: 8px; font-variant-numeric: tabular-nums; }
.pager { display: flex; gap: 10px; margin-top: 16px; }

/* how the API is described: four mutually exclusive choices */
.choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.choice-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 12px; cursor: pointer; background: var(--surface); }
.choice-item:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-item input { margin-top: 3px; accent-color: var(--ink); }
.choice-item b { display: block; font-size: 14px; }
.choice-item small { display: block; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.choice-item.locked { cursor: not-allowed; opacity: 0.6; }

/* panels with a meaning */
.panel.live { border-color: #b8c8ee; }
.panel-leak { border-left: 3px solid var(--leak); }
.panel-key { border: 1px solid var(--ink); }
.danger-zone { border-color: #efc2c9; }
.danger-zone h2 { color: var(--leak-ink); }
.empty.sealed-empty { border-style: solid; border-color: #b5ddcb; background: var(--sealed-bg); }
.empty.sealed-empty h3 { color: #0e573f; }

.scan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.scan-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.scan-list small { flex-basis: 100%; }
.warn-list { margin: 12px 0 0; padding-left: 20px; font-size: 14px; }
.warn-list li { margin-bottom: 6px; }

/* usage and plans */
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.meter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.meter-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.meter-head b { font-variant-numeric: tabular-nums; }
.meter-bar { height: 6px; background: #e5e8eb; border-radius: 3px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.meter.full .meter-bar i { background: var(--unsure); }
.meter-bar .w-0 { width: 0%; }
.meter-bar .w-5 { width: 5%; }
.meter-bar .w-10 { width: 10%; }
.meter-bar .w-15 { width: 15%; }
.meter-bar .w-20 { width: 20%; }
.meter-bar .w-25 { width: 25%; }
.meter-bar .w-30 { width: 30%; }
.meter-bar .w-35 { width: 35%; }
.meter-bar .w-40 { width: 40%; }
.meter-bar .w-45 { width: 45%; }
.meter-bar .w-50 { width: 50%; }
.meter-bar .w-55 { width: 55%; }
.meter-bar .w-60 { width: 60%; }
.meter-bar .w-65 { width: 65%; }
.meter-bar .w-70 { width: 70%; }
.meter-bar .w-75 { width: 75%; }
.meter-bar .w-80 { width: 80%; }
.meter-bar .w-85 { width: 85%; }
.meter-bar .w-90 { width: 90%; }
.meter-bar .w-95 { width: 95%; }
.meter-bar .w-100 { width: 100%; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; }
.plan-col { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.plan-col:last-child { border-right: 0; }
.plan-col.is-current { background: #f6f7f8; box-shadow: inset 0 3px 0 var(--ink); }
.plan-col h2 { margin: 0; }
.plan-col form, .plan-col .plan-current { margin-top: auto; padding-top: 12px; }
.price { margin: 4px 0 6px; }
.price b { font: 700 28px/1 var(--display); }
.price span { color: var(--steel); font-size: 14px; }
.ticks { list-style: none; padding: 0; margin: 6px 0 12px; font-size: 14px; display: grid; gap: 6px; }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px; border-left: 2px solid var(--sealed);
  border-bottom: 2px solid var(--sealed); transform: rotate(-45deg); }
.plan-current { font-weight: 600; font-size: 14px; margin: 0; }

.totp { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.totp img { border: 1px solid var(--line); border-radius: 8px; background: #fff; }

@media (max-width: 900px) {
  .meters, .plans, .grid-2.even, .totp { grid-template-columns: 1fr; }
  .plan-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan-col:last-child { border-bottom: 0; }
}

/* refinements after visual review */
.copy-wrap pre.code { padding-right: 84px; }
textarea.text { font-family: var(--font); font-size: 14px; }
select { appearance: none; -webkit-appearance: none; height: 42px; padding: 0 36px 0 12px; background-repeat: no-repeat;
  background-position: right 12px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23566170' stroke-width='1.6'/%3E%3C/svg%3E"); }
.org-switch { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c9d0d9' stroke-width='1.6'/%3E%3C/svg%3E"); }
.inline-select select { height: 34px; padding: 0 30px 0 10px; }
.copy-inline { font: 600 12px/1 var(--font); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; margin-left: 8px; vertical-align: 1px; }
.copy-inline:hover { background: #eef0f2; }
@media (min-width: 901px) { .shell { background: linear-gradient(to right, var(--ink) 252px, var(--paper) 252px); } }
.field { align-content: start; }
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle { gap: 6px; }

/* v1.1: coverage, trend chart, re-test, seeds */
.trend { width: 100%; height: auto; display: block; }
.trend-axis { stroke: var(--line); stroke-width: 1; }
.trend-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.trend-dot { fill: var(--ink); }
.trend-dot.leak { fill: var(--leak); }
.trend-dot.sealed { fill: var(--sealed); }
.trend-label { font: 11px var(--font); fill: var(--steel); }
.trend-label.end { text-anchor: end; }
.panel-retest { border-color: var(--line-strong); }
details.seeds { margin-bottom: 6px; }
details.seeds summary { font-size: 13px; cursor: pointer; color: var(--steel); }
details.seeds form { margin-top: 10px; }
details.seeds .field { margin-bottom: 8px; }
.actions-cell { min-width: 180px; }
.state-pending::before { background: var(--unsure); }

/* v1.2: demo banner, recovery codes, admin charts */
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.recovery { border: 1px solid var(--ink); border-radius: 8px; padding: 16px 18px; margin-bottom: 18px; background: #fff; }
.recovery h3 { margin-top: 0; }
.codes { columns: 2; font-size: 15px; margin: 0 0 12px; padding-left: 22px; }
.codes code { font-size: 15px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; background: var(--ink); border-radius: 2px 2px 0 0; min-height: 2px; display: block; position: relative; }
.bars i.failed { background: var(--leak); }
.bars-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--steel); margin-top: 4px; }

.bars .h-0 { height: 2%; }
.bars .h-1 { height: 2%; }
.bars .h-2 { height: 2%; }
.bars .h-3 { height: 3%; }
.bars .h-4 { height: 4%; }
.bars .h-5 { height: 5%; }
.bars .h-6 { height: 6%; }
.bars .h-7 { height: 7%; }
.bars .h-8 { height: 8%; }
.bars .h-9 { height: 9%; }
.bars .h-10 { height: 10%; }
.bars .h-11 { height: 11%; }
.bars .h-12 { height: 12%; }
.bars .h-13 { height: 13%; }
.bars .h-14 { height: 14%; }
.bars .h-15 { height: 15%; }
.bars .h-16 { height: 16%; }
.bars .h-17 { height: 17%; }
.bars .h-18 { height: 18%; }
.bars .h-19 { height: 19%; }
.bars .h-20 { height: 20%; }
.bars .h-21 { height: 21%; }
.bars .h-22 { height: 22%; }
.bars .h-23 { height: 23%; }
.bars .h-24 { height: 24%; }
.bars .h-25 { height: 25%; }
.bars .h-26 { height: 26%; }
.bars .h-27 { height: 27%; }
.bars .h-28 { height: 28%; }
.bars .h-29 { height: 29%; }
.bars .h-30 { height: 30%; }
.bars .h-31 { height: 31%; }
.bars .h-32 { height: 32%; }
.bars .h-33 { height: 33%; }
.bars .h-34 { height: 34%; }
.bars .h-35 { height: 35%; }
.bars .h-36 { height: 36%; }
.bars .h-37 { height: 37%; }
.bars .h-38 { height: 38%; }
.bars .h-39 { height: 39%; }
.bars .h-40 { height: 40%; }
.bars .h-41 { height: 41%; }
.bars .h-42 { height: 42%; }
.bars .h-43 { height: 43%; }
.bars .h-44 { height: 44%; }
.bars .h-45 { height: 45%; }
.bars .h-46 { height: 46%; }
.bars .h-47 { height: 47%; }
.bars .h-48 { height: 48%; }
.bars .h-49 { height: 49%; }
.bars .h-50 { height: 50%; }
.bars .h-51 { height: 51%; }
.bars .h-52 { height: 52%; }
.bars .h-53 { height: 53%; }
.bars .h-54 { height: 54%; }
.bars .h-55 { height: 55%; }
.bars .h-56 { height: 56%; }
.bars .h-57 { height: 57%; }
.bars .h-58 { height: 58%; }
.bars .h-59 { height: 59%; }
.bars .h-60 { height: 60%; }
.bars .h-61 { height: 61%; }
.bars .h-62 { height: 62%; }
.bars .h-63 { height: 63%; }
.bars .h-64 { height: 64%; }
.bars .h-65 { height: 65%; }
.bars .h-66 { height: 66%; }
.bars .h-67 { height: 67%; }
.bars .h-68 { height: 68%; }
.bars .h-69 { height: 69%; }
.bars .h-70 { height: 70%; }
.bars .h-71 { height: 71%; }
.bars .h-72 { height: 72%; }
.bars .h-73 { height: 73%; }
.bars .h-74 { height: 74%; }
.bars .h-75 { height: 75%; }
.bars .h-76 { height: 76%; }
.bars .h-77 { height: 77%; }
.bars .h-78 { height: 78%; }
.bars .h-79 { height: 79%; }
.bars .h-80 { height: 80%; }
.bars .h-81 { height: 81%; }
.bars .h-82 { height: 82%; }
.bars .h-83 { height: 83%; }
.bars .h-84 { height: 84%; }
.bars .h-85 { height: 85%; }
.bars .h-86 { height: 86%; }
.bars .h-87 { height: 87%; }
.bars .h-88 { height: 88%; }
.bars .h-89 { height: 89%; }
.bars .h-90 { height: 90%; }
.bars .h-91 { height: 91%; }
.bars .h-92 { height: 92%; }
.bars .h-93 { height: 93%; }
.bars .h-94 { height: 94%; }
.bars .h-95 { height: 95%; }
.bars .h-96 { height: 96%; }
.bars .h-97 { height: 97%; }
.bars .h-98 { height: 98%; }
.bars .h-99 { height: 99%; }
.bars .h-100 { height: 100%; }

/* v1.3: identity checks, signed webhooks, tickets, endpoint drift */
.spaced-sm { margin-top: 8px; }
textarea.ticket { width: 100%; font-family: var(--mono); font-size: 12.5px; background: var(--ink); color: #e6e9ee; border: 0; border-radius: 8px; padding: 14px 84px 14px 16px; min-height: 240px; }
.drift { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 13px; }
.drift li { display: flex; gap: 8px; align-items: center; }
