/* Idlesince. One stylesheet, no framework.
   The look is a marked-up bill: paper and ink, hairline rules, figures in a monospaced face,
   a highlighter for what matters. No gradients, no shadows, no rounded cards.
   Light and dark share every rule; only the tokens differ. The theme follows the system
   unless the visitor picked one. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/static/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #f3f0e8;
  --sheet: #faf8f3;
  --ink: #15140f;
  --ink-2: #3a3932;
  --muted: #6d6b60;
  --rule: #d6d2c4;
  --mark: #ffe14a;
  --mark-ink: #15140f;
  --green: #1d6a43;
  --amber: #8a5600;
  --red: #b8321c;
  --code: #e8e4d8;
  --term: #15140f;
  --term-ink: #f3f0e8;
  --term-rule: #3a3932;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 3px;
  --chevron: 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='%2315140f' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11110e; --sheet: #191915; --ink: #efece2; --ink-2: #cdcabe; --muted: #96938a; --rule: #32312a;
    --green: #7bcb9f; --amber: #e6b550; --red: #ff8168; --code: #25241f; --term: #000000; --term-ink: #efece2; --term-rule: #32312a;
    --chevron: 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='%23efece2' stroke-width='1.6'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  --paper: #11110e; --sheet: #191915; --ink: #efece2; --ink-2: #cdcabe; --muted: #96938a; --rule: #32312a;
  --green: #7bcb9f; --amber: #e6b550; --red: #ff8168; --code: #25241f; --term: #000000; --term-ink: #efece2; --term-rule: #32312a;
    --chevron: 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='%23efece2' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font: 500 34px/1.1 var(--serif); letter-spacing: -0.015em; }
h2 { font: 600 16px/1.35 var(--sans); letter-spacing: -0.005em; }
h3 { font: 600 15px/1.4 var(--sans); }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; background: var(--mark); color: var(--mark-ink); }
b, strong { font-weight: 600; }
small { font: 400 0.6em var(--sans); color: var(--muted); letter-spacing: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--code); padding: 1px 5px; border-radius: 2px; overflow-wrap: anywhere; }
pre { margin: 0; overflow-x: auto; }
mark { background: var(--mark); color: var(--mark-ink); padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
::selection { background: var(--mark); color: var(--mark-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--muted); }
.quiet { color: var(--muted); font-size: 13px; }
code.quiet { background: transparent; padding: 0; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.icon { width: 16px; height: 16px; flex: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

/* ---------- brand ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--sans); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; text-decoration: none; }
.brand:hover { background: transparent; color: var(--ink); }
.logo { width: 30px; height: 30px; flex: none; margin: -2px -3px; }
.logo-bg { fill: var(--ink); }
.logo-bar { fill: var(--paper); }
.logo-mark { fill: var(--mark); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  font: 500 14px/1 var(--sans); color: var(--ink); white-space: nowrap; text-decoration: none;
  background: transparent; border: 1px solid var(--ink); border-radius: var(--r); cursor: pointer;
}
.btn:hover { background: var(--mark); color: var(--mark-ink); border-color: var(--mark-ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--mark); color: var(--mark-ink); }
.btn.ghost { border-color: transparent; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; padding: 0 8px; }
.btn.ghost:hover { border-color: transparent; }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
.btn.small { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.large { height: 48px; padding: 0 22px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--mark); color: var(--mark-ink); }
.when-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .when-dark { display: block; } :root:not([data-theme="light"]) .when-light { display: none; } }
:root[data-theme="dark"] .when-dark { display: block; }
:root[data-theme="dark"] .when-light { display: none; }
.actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 20px; }
.actions.center { justify-content: center; }

/* ---------- forms ---------- */

.form { display: grid; gap: 16px; max-width: 420px; }
.form.wide { max-width: 620px; }
.form.inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; max-width: none; }
.form.inline.tight { gap: 8px; flex-wrap: nowrap; align-items: center; }
.form.inline.tight select { height: 30px; min-width: 0; font-size: 13px; padding-left: 9px; padding-right: 30px; background-position: right 9px center; }
.form label { display: grid; gap: 6px; font: 500 13px/1.4 var(--sans); color: var(--ink-2); }
.form label.check, label.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.form.inline label.check { align-items: center; height: 38px; }
.form .hint { font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; height: 38px; padding: 0 11px; font: 400 14px/1.4 var(--sans); color: var(--ink);
  background: var(--sheet); border: 1px solid var(--muted); border-radius: var(--r);
}
textarea { height: auto; padding: 10px 11px; font: 400 13px/1.55 var(--mono); resize: vertical; }
/* The browser's own arrow sits flush against the border; ours keeps the same inset as the text. */
select {
  width: auto; min-width: 170px; padding-right: 36px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 11px auto;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.75; }
input:hover, textarea:hover, select:hover { border-color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--mark); }
input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--ink); cursor: pointer; }
/* A tick box shows focus only when reached from the keyboard, as a plain outline. */
input[type="checkbox"]:focus { box-shadow: none; }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
label.check { cursor: pointer; }
.form.inline label.check input[type="checkbox"] { margin: 0; }
/* A short settings form: fields one under another, the button last. */
.form.settings { max-width: 560px; gap: 14px; }
.form.settings .btn, .form.settings select { justify-self: start; }
.form.settings select { min-width: 220px; }
.form.settings .btn { margin-top: 4px; }
.form.settings label.check .hint { display: block; }

/* ---------- sheets, notes, labels ---------- */

.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px 24px; margin: 0 0 16px; }
.card > :last-child { margin-bottom: 0; }
.card > h2 { margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
.card-head p { margin: 4px 0 0; max-width: 60ch; }
.card-head:last-child { margin-bottom: 0; }
.section-title { margin: 40px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.meta span + span::before { content: "/"; margin-right: 12px; color: var(--rule); }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; line-height: 1.5; background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--ink); border-radius: 0 var(--r) var(--r) 0; }
.banner .icon { width: 17px; height: 17px; margin-top: 2px; }
.banner.ok { border-left-color: var(--green); }
.banner.ok .icon { color: var(--green); }
.banner.warn { border-left-color: var(--amber); }
.banner.warn .icon { color: var(--amber); }
.banner.error { border-left-color: var(--red); }
.banner.error .icon { color: var(--red); }
.banner > div { min-width: 0; }
.banner code { background: transparent; padding: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1.6 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.badge::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.badge.ok { color: var(--green); }
.badge.warn { color: var(--amber); }
.badge.error { color: var(--red); }
.badge.info { color: var(--ink); }
.badge.info::before { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hint-box { display: flex; gap: 12px; padding: 12px 14px; border: 1px dashed var(--muted); border-radius: var(--r); color: var(--muted); font-size: 14px; }
.hint-box .icon { width: 17px; height: 17px; margin-top: 2px; }
.hint-box p { margin: 0; color: var(--ink-2); }

/* A command to copy */
.term { background: var(--term); color: var(--term-ink); border: 1px solid var(--term-rule); border-radius: var(--r); overflow: hidden; margin: 0 0 12px; }
.term-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--term-rule); }
.term-title { flex: 1; font: 400 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--term-ink) 55%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-copy { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; font: 500 12px/1 var(--sans); color: var(--mark-ink); background: var(--mark); border: 0; border-radius: 2px; cursor: pointer; }
.term-copy:hover { background: var(--term-ink); }
.term-copy .icon { width: 13px; height: 13px; }
.term pre { max-height: 300px; overflow: auto; }
.term pre code { display: block; padding: 14px 16px; background: transparent; color: var(--term-ink); font-size: 13px; line-height: 1.65; white-space: pre; overflow-wrap: normal; }
.snippet { background: var(--term); border: 1px solid var(--term-rule); border-radius: var(--r); }
.snippet code { display: block; padding: 11px 14px; background: transparent; color: var(--term-ink); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Figures: a ruled row of numbers, the way totals sit on a statement */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0 0 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.tile { padding: 14px 20px 16px 0; margin-right: 20px; border-right: 1px solid var(--rule); }
.tile:last-child { border-right: 0; margin-right: 0; }
.tile-label { font: 500 11px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.tile-value { font: 500 30px/1.15 var(--mono); letter-spacing: -0.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tile-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tile.act .tile-value span, .tile.accent .tile-value span { background: var(--mark); color: var(--mark-ink); padding: 0 6px; margin-left: -6px; }

/* Three kinds of saving, told apart without colour: highlighter, ink, hatching */
.splitbar { margin: 0 0 22px; }
.splitbar svg { display: block; width: 100%; height: 14px; }
.splitbar rect { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bar-act { fill: var(--mark); }
.bar-question { fill: var(--ink); }
.bar-check { fill: url(#hatch); }
.hatch-line { fill: var(--ink); stroke: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend b { color: var(--ink); font: 500 13px var(--mono); }
.dot { display: inline-block; width: 11px; height: 11px; flex: none; border: 1px solid var(--ink); }
.seg-act { background: var(--mark); }
.seg-question { background: var(--ink); }
.seg-check { background: repeating-linear-gradient(135deg, var(--ink) 0 1px, transparent 1px 4px); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
.table-card { overflow-x: auto; margin: 0 0 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table th.num, .table td.num { text-align: right; }
/* Dates and identifiers stay on one line; a narrow screen scrolls the table sideways instead. */
.table td.nowrap, .table .row-link, .table td code.quiet { white-space: nowrap; overflow-wrap: normal; }
.table td.up { color: var(--red); }
.table td.down { color: var(--green); }
.card .table tbody tr:last-child td { border-bottom: 0; }
.row-link { font-weight: 600; }
.bar-col { width: 24%; min-width: 90px; }
meter { display: block; width: 100%; height: 6px; border: 0; border-radius: 0; background: var(--rule); appearance: none; -webkit-appearance: none; }
meter::-webkit-meter-bar { height: 6px; background: var(--rule); border: 0; border-radius: 0; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { background: var(--ink); border-radius: 0; }
meter::-moz-meter-bar { background: var(--ink); border-radius: 0; }

/* ---------- signed-in layout ---------- */

body.cabinet { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 0 14px; border-right: 1px solid var(--rule); }
.side-top { padding: 0 20px 26px; }
.side-nav { display: flex; flex-direction: column; flex: 1; }
.side-link { display: flex; align-items: center; height: 36px; padding: 0 20px; border-left: 3px solid transparent; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.side-link:hover { background: transparent; color: var(--ink); border-left-color: var(--rule); }
.side-link[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
.side-link.subtle { color: var(--muted); font-size: 13px; }
.side-foot { display: flex; flex-direction: column; gap: 6px; }
.side-user { display: flex; align-items: center; gap: 4px; padding: 12px 12px 0 20px; border-top: 1px solid var(--rule); margin-top: 6px; }
.side-user-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; color: var(--ink); text-decoration: none; }
.side-user-text:hover { background: transparent; color: var(--ink); }
.side-user-text:hover b, .side-user-text[aria-current="page"] b { text-decoration: underline; text-underline-offset: 3px; }
.side-user-text b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-text span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user form { display: flex; }
/* On a phone the name and address are hidden, so an icon leads to the account page instead. */
.side-account { display: none; }
.content { width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 44px 96px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 28px; }
.page-sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.page-actions, .run-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: -10px 0 16px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.flip { transform: rotate(180deg); }

/* Overview */
.conn-title { display: flex; align-items: center; gap: 12px; }
.conn-title h2 { font: 500 22px/1.2 var(--serif); }
.conn-title h2 a { text-decoration: none; }
/* Decorative icon tiles from the earlier look are gone; where a marker helps, it is a plain square. */
.conn-icon, .empty-icon, .feature-icon { display: none; }
.conn-last { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.conn-last a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.conn .splitbar { margin-bottom: 4px; }
.empty { max-width: 640px; margin: 5vh 0 0; }
.empty h1 { font-size: 40px; margin: 0 0 14px; }
.empty .lead { margin-bottom: 28px; }
.empty-steps { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--ink); }
.empty-steps li { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.empty-steps div { display: flex; flex-direction: column; }
.empty-steps span:not(.step-n) { color: var(--muted); font-size: 14px; }
.empty.small { margin-top: 24px; padding: 32px 24px; border: 1px dashed var(--muted); border-radius: var(--r); max-width: none; }
.empty.small h2 { margin: 0 0 4px; }
.empty.small .btn { margin-top: 14px; }
.step-n { flex: none; min-width: 26px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.step-n::before { content: "0"; }

/* Connecting Azure */
.connect { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.sticky { position: sticky; top: 24px; }
.wizard { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; }
.wizard > li { counter-increment: step; position: relative; padding: 0 0 30px 60px; }
.wizard > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 500 22px/1 var(--mono); letter-spacing: -0.03em; color: var(--ink); }
.wizard > li::after { content: ""; position: absolute; left: 12px; top: 36px; bottom: 8px; width: 1px; background: var(--rule); }
.wizard > li:last-child::after { display: none; }
.wizard > li:last-child { padding-bottom: 8px; }
.wizard h2 { font: 500 22px/1.2 var(--serif); margin: 0 0 10px; }
.wizard p { color: var(--ink-2); }
.choice { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.choice a { padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.choice a + a { border-left: 1px solid var(--ink); }
.choice a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.disclosure > summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: "+"; font: 500 15px/1 var(--mono); width: 12px; }
.disclosure[open] > summary::before { content: "–"; }
.disclosure[open] > summary { margin-bottom: 14px; }
.perms h3 { font: 500 12px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.perms ul { list-style: none; padding: 0; margin: 0 0 14px; }
.perms li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.45; color: var(--muted); }
.perms li:last-child { border-bottom: 0; }
.perms li b { color: var(--ink); display: block; }
.perms li .icon { display: none; }
.perms li::before { flex: none; width: 12px; font: 600 14px/1.4 var(--mono); }
.perms li.yes::before { content: "+"; color: var(--green); }
.perms li.no::before { content: "×"; color: var(--red); }
ol.plain, ul.plain { margin: 0 0 14px; padding-left: 20px; }
ol.plain li, ul.plain li { margin-bottom: 7px; }
.danger-zone { border-color: var(--red); }

/* A run in progress */
.progress { max-width: 540px; margin: 6vh 0 0; padding: 32px; }
.progress h1 { margin: 0 0 8px; }
.pulse { display: none; }
.bar { height: 3px; background: var(--rule); overflow: hidden; margin: 22px 0; }
.bar i { display: block; width: 30%; height: 100%; background: var(--ink); animation: slide 1.4s linear infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.stages { list-style: none; padding: 0; margin: 0 0 18px; }
.stages li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.stage-dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 16px; border: 1px solid var(--muted); }
.stage-dot .icon { width: 11px; height: 11px; stroke-width: 3; opacity: 0; }
.stages li.done { color: var(--ink); }
.stages li.done .stage-dot { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stages li.done .stage-dot .icon { opacity: 1; }
.stages li.now { color: var(--ink); font-weight: 600; }
.stages li.now .stage-dot { border-color: var(--ink); background: var(--mark); animation: blink 1.1s steps(2, start) infinite; }
.detail { min-height: 22px; font: 400 12.5px/1.6 var(--mono); color: var(--muted); margin: 0; }

/* The report */
.group { margin: 44px 0 0; }
.group-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.group-icon { flex: none; width: 14px; height: 14px; margin-top: 9px; border: 1px solid var(--ink); }
.group-icon .icon { display: none; }
.group-title { flex: 1; min-width: 0; }
.group-title h2 { display: flex; align-items: baseline; gap: 10px; font: 500 24px/1.2 var(--serif); }
.group-title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 72ch; }
.count { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0; }
.group-total { align-self: flex-end; font: 500 24px/1.2 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tone-act .group-icon { background: var(--mark); }
.tone-act .group-total { background: var(--mark); color: var(--mark-ink); padding: 0 6px; }
.tone-question .group-icon { background: var(--ink); }
.tone-check .group-icon { background: repeating-linear-gradient(135deg, var(--ink) 0 1px, transparent 1px 4px); }
.tone-keep .group-icon, .tone-plain .group-icon { border-style: dashed; border-color: var(--muted); }
/* A finding in the report's list: the whole row is a link to the finding's own page. */
.finding-row { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.finding-row:hover { background: var(--sheet); color: var(--ink); }
.finding-row:hover .res { background: var(--mark); color: var(--mark-ink); }
.f-open { color: var(--muted); width: 14px; height: 14px; }
.f-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.f-kind { font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.f-facts { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.f-do { font-size: 13.5px; font-weight: 500; margin-top: 3px; }
.f-money small { display: block; text-align: right; font: 400 11px/1.5 var(--sans); letter-spacing: 0; color: var(--muted); }
.f-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.res { background: transparent; padding: 0; font: 500 13.5px/1.5 var(--mono); color: var(--ink); }
.f-title { color: var(--muted); font-size: 13.5px; }
.f-money { font: 500 16px/1.2 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- a finding's own page ---------- */

.finding-name { background: transparent; padding: 0; font: 500 26px/1.25 var(--mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.status-word { font: 500 20px/1.5 var(--serif); letter-spacing: 0; }
.report-section { margin: 40px 0 0; padding-top: 14px; border-top: 1px solid var(--ink); max-width: 860px; }
.report-section > h2 { font: 500 24px/1.25 var(--serif); margin-bottom: 14px; }
.report-section p { max-width: 72ch; }
.problem { margin-bottom: 16px; }
.problem-what { font-size: 17px; line-height: 1.5; font-weight: 500; }
.facts-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--rule); }
.facts-list li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--rule); position: relative; max-width: none; }
.facts-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 2px; background: var(--ink); }
.metrics { margin-bottom: 6px; }
.spec { margin: 14px 0 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 18px; font-size: 14.5px; }
.spec:empty { display: none; }
.spec dt { font: 500 11px/2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; min-width: 0; }
.spec dd p { margin: 0 0 6px; }
.spec dd p:last-child, .spec dd ul:last-child, .spec dd ol:last-child { margin-bottom: 0; }
.report-section > .hint { margin-top: 14px; }
.steps-list { margin: 0; padding-left: 20px; }
.steps-list li { margin-bottom: 6px; padding-left: 4px; }
.option { border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); padding: 20px 22px; margin: 0 0 14px; }
.option.recommended { border-color: var(--ink); }
.option-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.option-head h3 { font: 600 17px/1.35 var(--sans); }
.option-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 0; }
.option-tags:empty { display: none; }
.option-money { text-align: right; white-space: nowrap; }
.option-money b { font: 500 24px/1.1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.option.recommended .option-money b { background: var(--mark); color: var(--mark-ink); padding: 0 6px; }
.option-money small { font-size: 13px; color: var(--muted); }
.option-money span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.option-does { margin: 12px 0 0; font-size: 15.5px; }
.option .spec { padding-top: 14px; border-top: 1px dashed var(--rule); }
.option .term { margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 0 0 12px 30px; max-width: 72ch; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border: 1px solid var(--ink); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 44px 0 0; padding-top: 18px; border-top: 1px solid var(--ink); max-width: 860px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 400 12px/1.4 var(--mono); background: var(--code); border-radius: 2px; padding: 2px 7px; overflow-wrap: anywhere; color: var(--ink-2); }
.deltas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.deltas div { padding: 12px 16px 12px 0; display: flex; flex-direction: column; }
.deltas b { font: 500 22px/1.2 var(--mono); letter-spacing: -0.03em; }
.deltas span { font-size: 13px; color: var(--muted); }

/* Usage and plans */
.usage-grid { display: grid; gap: 18px 32px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 16px; }
.usage-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.usage-row b { color: var(--ink); font: 500 13px var(--mono); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--ink); margin-top: 16px; }
.plan { display: flex; flex-direction: column; padding: 18px 20px 20px 0; margin-right: 20px; border-right: 1px solid var(--rule); border-top: 4px solid transparent; margin-top: -1px; }
.plan:last-child { border-right: 0; margin-right: 0; }
.plan.current { border-top-color: var(--mark); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.plan-price { font: 500 28px/1.2 var(--mono); letter-spacing: -0.03em; margin: 10px 0 14px; }
.plan-price small { font: 400 13px var(--sans); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; align-items: baseline; }
.plan li .icon { display: none; }
.plan li::before { content: "–"; color: var(--muted); }
.plan-action { margin-top: auto; padding-top: 18px; }

/* ---------- public site ---------- */

body.site { display: flex; flex-direction: column; min-height: 100vh; font-size: 16px; }
.site-nav { border-bottom: 1px solid var(--rule); }
.site-nav-row { display: flex; align-items: center; gap: 36px; height: 64px; }
.site-links { display: flex; gap: 26px; flex: 1; }
.site-links a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.site-links a:hover { background: transparent; color: var(--ink); text-decoration: underline; }
.site-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-main { flex: 1; padding-bottom: 96px; }
.site-foot { border-top: 1px solid var(--ink); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-foot p { margin: 12px 0 0; max-width: 34em; }
.site-foot nav { display: flex; gap: 8px 26px; flex-wrap: wrap; align-items: flex-start; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 72px 0 80px; }
.hero h1 { font: 500 clamp(40px, 5.2vw, 68px)/1.02 var(--serif); letter-spacing: -0.025em; margin: 0 0 24px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); margin: 0; }
.hero .actions { margin-top: 30px; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; max-width: 30em; border-top: 1px solid var(--rule); font: 400 12px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.facts li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.facts li::before { content: "+"; color: var(--ink); }

/* The sample statement on the landing page */
.statement { background: var(--sheet); border: 1px solid var(--ink); padding: 22px 24px 18px; font-size: 14px; }
.st-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 11px/1.5 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.st-sum { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.st-sum div { padding: 14px 0; }
.st-sum div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.st-sum span { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.st-sum b { font: 500 clamp(24px, 2.6vw, 32px)/1.1 var(--mono); letter-spacing: -0.03em; }
.st-rows { list-style: none; padding: 0; margin: 0; }
.st-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.st-rows code { background: transparent; padding: 0; font: 500 13px/1.5 var(--mono); }
.st-rows span { grid-column: 1; color: var(--muted); font-size: 13.5px; }
.st-rows b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 15px var(--mono); letter-spacing: -0.02em; white-space: nowrap; }
.st-rows s { color: var(--red); text-decoration-thickness: 1px; font-weight: 400; margin-right: 8px; }
.st-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.st-foot span { display: inline-flex; align-items: center; gap: 8px; }
.st-foot b { color: var(--ink); font: 500 13px var(--mono); }

/* Sections: a label in the margin, the matter beside it */
.sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 40px; padding: 30px 0 84px; border-top: 1px solid var(--ink); }
.sec-label { font: 500 12px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.sec-label b { display: block; color: var(--ink); font-weight: 500; }
.sec h2 { font: 500 clamp(28px, 3.2vw, 42px)/1.08 var(--serif); letter-spacing: -0.02em; max-width: 18em; margin: 0 0 16px; }
.sec .lead { margin-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--rule); }
.steps > div { padding: 20px 24px 0 0; margin-right: 24px; border-right: 1px solid var(--rule); }
.steps > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.steps .n { font: 500 13px var(--mono); color: var(--muted); }
.steps h3 { font: 500 22px/1.2 var(--serif); margin: 10px 0 8px; }
.steps p { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.steps ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--ink-2); }
.steps li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); }

.defs { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--rule); }
.defs div { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.defs dt { font-weight: 600; margin-bottom: 4px; }
.defs dd { margin: 0; color: var(--ink-2); font-size: 15px; }

.compare { width: 100%; margin-top: 36px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 24px 14px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font: 500 22px/1.2 var(--serif); border-bottom: 1px solid var(--ink); }
.compare tbody th { width: 150px; font: 500 11px/2 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.compare td { color: var(--ink-2); }

.access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 36px; }
.access .perms ul { border-top: 1px solid var(--ink); margin-top: 8px; }

.closing { border-top: 1px solid var(--ink); padding: 56px 0 0; }
.closing h2 { font: 500 clamp(32px, 4.4vw, 56px)/1.04 var(--serif); letter-spacing: -0.025em; max-width: 14em; margin: 0 0 14px; }
.closing p { color: var(--ink-2); max-width: 36em; margin: 0 0 26px; }

.prose { max-width: 720px; padding-top: 64px; font-size: 16px; line-height: 1.65; }
.prose h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 18px; }
.prose h2 { font: 500 26px/1.2 var(--serif); margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid var(--rule); }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 7px; }
.prose p, .prose li { color: var(--ink-2); }
.prose .lead { color: var(--ink); }

/* Sign-in */
body.auth .site-links, body.auth .site-foot { display: none; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 9vh 20px 80px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 38px; margin-bottom: 8px; }
.auth-card > .muted { margin-bottom: 26px; }
.auth-card .form { max-width: none; }
.auth-foot { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.7; color: var(--muted); }
.choice-list { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice-list legend { padding: 0; margin-bottom: 10px; font: 500 13px/1.4 var(--sans); color: var(--ink-2); }
.choice-list .hint { display: block; }
/* Team page */
.row-actions { display: inline-flex; gap: 8px; justify-content: flex-end; }
.roles { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0; font-size: 14px; }
.roles dt { font-weight: 600; }
.roles dd { margin: 0; color: var(--ink-2); }
/* A form that reads as a link inside a sentence, such as "Sign out". */
.link-form { display: inline; }
.link-form button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.link-form button:hover { background: var(--mark); color: var(--mark-ink); text-decoration-color: currentColor; }

/* ---------- small screens ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 0 64px; }
  .sec { grid-template-columns: minmax(0, 1fr); padding-bottom: 64px; }
  .sec-label { padding: 0 0 18px; }
  .sec-label b { display: inline; margin-right: 10px; }
}
@media (max-width: 920px) {
  body.cabinet { display: block; }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 10px 16px 0; border-right: 0; border-bottom: 1px solid var(--rule); background: var(--paper); }
  .side-top { padding: 0; flex: 1; }
  .side-nav { order: 3; flex: 0 0 100%; flex-direction: row; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-link { white-space: nowrap; padding: 0; border-left: 0; border-bottom: 3px solid transparent; }
  .side-link[aria-current="page"] { border-bottom-color: var(--ink); }
  .side-foot { flex-direction: row; align-items: center; }
  .side-foot .subtle, .side-user-text { display: none; }
  .side-user { border: 0; padding: 0; margin: 0; }
  .side-account { display: inline-flex; }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .spec dd { margin-bottom: 12px; }
  .finding-name { font-size: 20px; }
  .option { padding: 16px; }
  .option-money { text-align: left; }
  .pager { flex-wrap: wrap; }
  .content { padding: 26px 18px 72px; }
  .connect { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .site-links { display: none; }
  .steps, .defs, .access { grid-template-columns: minmax(0, 1fr); }
  .steps > div { border-right: 0; margin-right: 0; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .wrap { padding: 0 18px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { border-bottom: 1px solid var(--rule); }
  .tile-value { font-size: 24px; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .f-body { grid-template-columns: minmax(0, 1fr); gap: 2px 0; padding-left: 4px; }
  .f-body dd { margin-bottom: 12px; }
  .wizard > li { padding-left: 0; padding-top: 34px; }
  .wizard > li::after { display: none; }
  .group-head { flex-wrap: wrap; }
  .site-actions .ghost { display: none; }
  .progress { padding: 22px 18px; }
  .card { padding: 18px; }
  .statement { padding: 16px; }
  .compare tbody th { width: 96px; }
  .compare th, .compare td { padding-right: 14px; }
  .run-buttons, .run-buttons .btn, .page-actions .btn, .hero .actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .site-nav .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
