/* Oragon Console — design system ported from oragonlabs.com.
 * Same tokens, same type scale, same components: square edges, hairline
 * seams, dashed blueprint rules, black buttons that invert on hover.
 * No accent colour, no shadows, no radius, no dark mode — as on the site.
 */
/* Inter, Latin subset, weights 400-700 (SIL Open Font License, fonts/OFL.txt). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
:root {
  --ink: #141414;
  --ink-2: #515151;
  --grey: #75736c;
  --line: #ebebeb;
  --dash: #c7c7c7;
  --bone: #ededeb;
  --plate: #f1f1f1;
  --near-black: #0e0f12;
  --white: #fff;

  /* status: desaturated so it sits inside the neutral palette */
  --ok: #2f6b46;
  --warn: #7d5a12;
  --bad: #9c2b20;

  --gutter: 20px;
  --maxw: 1440px;   /* wide enough that tables and commands fit on a line */
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
@media (min-width: 768px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; }
body {
  background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dash); }
a:hover { text-decoration-color: currentColor; }

code, pre, .mono { font-family: var(--mono); }
.mono { font-variant-numeric: tabular-nums; }
code { font-size: .88em; background: var(--plate); padding: 1px 6px; }
pre {
  background: var(--plate); border: 1px solid var(--line);
  padding: 14px 76px 14px 16px; font-size: 13px; line-height: 1.6; margin: 0;
  position: relative; max-width: 100%;
  white-space: pre-wrap; overflow-wrap: break-word;   /* long commands wrap between words, never scroll off-screen */
}
pre code { background: none; padding: 0; font-size: inherit; }

h1, h2, h3 { color: inherit; font-weight: 600; line-height: 1.18; margin: 0 0 8px; text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
h2 { font-size: 21px; letter-spacing: -.015em; line-height: 1.3; }
h3 { font-size: 16px; letter-spacing: -.01em; }
p { margin: 0 0 12px; max-width: 80ch; }
strong { font-weight: 600; }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }
.muted.small { color: var(--grey); }

/* the site's uppercase eyebrow, reused for nav + column heads */
.eyebrow, .topnav a, .topnav button:not(.primary), .tabs button, .dash-tabs a, .pill, .foot .eyebrow {
  text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter); border-bottom: 1px solid var(--line); background: var(--white);
}
.brand {
  display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 17px; letter-spacing: -.03em; white-space: nowrap;
}
.brand-sub { font-weight: 450; opacity: .45; letter-spacing: -.03em; }
.topnav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topnav a, .topnav button {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0;
  cursor: pointer; transition: opacity .18s;
}
.topnav a:hover, .topnav button:hover { opacity: .6; background: none; }
.topnav .who { color: var(--grey); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13.5px; }
.topnav .switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.topnav .switch a { padding: 5px 14px; }
.topnav .switch a.on { background: var(--ink); color: var(--white); opacity: 1; }
.topnav .viewing { color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.topnav .primary { padding: 11px 20px; }

/* layout: the container, with the site's dashed blueprint gutters */
.view {
  position: relative; flex: 1; width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 48px var(--gutter) 96px;
}
.view::before, .view::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 0;
  border-left: 1px dashed var(--dash); pointer-events: none; display: none;
}
/* pull the rules out to the viewport gutter, not the container edge */
.view::before { left: calc(var(--gutter) - (100vw - 100%) / 2); }
.view::after { right: calc(var(--gutter) - (100vw - 100%) / 2); }
@media (min-width: 768px) { .view::before, .view::after { display: block; } }
.narrow { max-width: 440px; margin: 32px auto 0; }
.narrow h1 { font-size: 30px; letter-spacing: -.03em; }
.pw-rules { margin: 2px 0 0; padding-left: 18px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.pw-rules li { margin: 2px 0; }
.pw-rules code { margin-right: 4px; color: var(--ink); }
.back-link { align-self: flex-start; margin-bottom: -4px; color: var(--grey); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--ink); }

/* card grids share 1px seams, as the site's pillar/problem grids do */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); align-items: start; }
.grid > * { background: var(--white); }
.grid .span2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line);
  padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.grid > .card { border: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 8px; }
hr.soft { border: 0; border-top: 1px dashed var(--dash); margin: 4px 0; }

/* key/value list — the site's spec table */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; font-size: 15px; }
.kv dt, .kv dd { border-top: 1px solid var(--line); padding: 13px 0; }
.kv dt { color: var(--ink); font-weight: 600; padding-right: 28px; }
.kv dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

/* forms */
form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600;
  letter-spacing: .3px; text-transform: uppercase; color: var(--ink); }
/* hints and help text nested in a label must not inherit the eyebrow casing */
label span, label small, label code, label p, label .muted, label .small {
  text-transform: none; letter-spacing: normal; font-weight: 400;
}
input, select {
  font: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--dash); border-radius: 0; padding: 12px 14px;
  min-width: 0; width: 100%;
}
input:hover, select:hover { border-color: var(--grey); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.two > * { min-width: 0; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }

/* buttons — .btn is the site's filled black; bare button is its ghost */
button, .btn {
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  border-radius: 0; padding: 13px 24px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .18s, color .18s;
}
button:hover, .btn:hover { background: var(--ink); color: var(--white); }
button.primary, .btn.primary { background: var(--ink); color: var(--white); }
button.primary:hover, .btn.primary:hover { background: var(--white); color: var(--ink); }
button.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
button.danger:hover { background: var(--bad); color: var(--white); }
button.ghost { border-color: var(--dash); }
button.ghost:hover { border-color: var(--ink); }
button:disabled { opacity: .4; cursor: not-allowed; }
button:disabled:hover { background: transparent; color: var(--ink); }
button.primary:disabled:hover { background: var(--ink); color: var(--white); }
button.small, .btn.small { font-size: 12.5px; padding: 9px 16px; }
.linkish {
  background: none; border: 0; color: var(--grey); font: inherit; font-size: 13px;
  cursor: pointer; padding: 0; text-transform: none; letter-spacing: 0;
}
.linkish:hover { color: var(--ink); background: none; }

/* status pills — square, typographic, in-palette */
.pill {
  display: inline-block; font-size: 11px; letter-spacing: .8px;
  padding: 4px 9px; border: 1px solid var(--line); background: var(--plate); color: var(--ink-2);
}
.pill.ok { color: var(--ok); }
.pill.warn { color: var(--warn); }
.pill.bad { color: var(--bad); }
.pill.tier { color: var(--ink); border-color: var(--ink); background: transparent; }
/* Marks a figure the plan does not control. It sits next to the people
   estimate, which depends on the buyer's hardware and model rather than on
   anything the engine enforces. */
.pill.est { color: var(--grey); border-color: var(--line); background: var(--plate); font-size: 10px; padding: 0 5px; }

/* one-time key reveal — the site's dark panel treatment */
.reveal {
  background: var(--near-black); border: 1px solid var(--near-black); color: var(--white);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 12px;
}
.reveal .muted:not(button), .reveal .small:not(button) { color: rgba(255, 255, 255, .6); }
.reveal code { background: rgba(255, 255, 255, .1); color: var(--white); }
/* A code box inside the dark panel is dark too, so its white text reads. */
.reveal pre { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--white); }
.reveal pre code { background: none; }
.reveal .key { font-size: 15px; word-break: break-all; padding: 10px 12px; }
.reveal button { background: var(--white); color: var(--ink); border-color: var(--white); }
.reveal button:hover { background: transparent; color: var(--white); }
/* Pinned to the corner of a code box; anywhere else (beside a key) it sits in line. */
pre > .copy { position: absolute; top: 8px; right: 8px; }

/* tabs */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.tabs button {
  border: 0; border-bottom: 2px solid transparent; background: none; padding: 0 0 10px;
  font-size: 12.5px; color: var(--grey); white-space: nowrap;
}
.tabs button:hover { background: none; color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* lists */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border: 1px solid var(--line); font-size: 14.5px;
}
.list-item + .list-item { margin-top: -1px; }
.list-item .mono { font-size: 13px; word-break: break-all; }
.empty { color: var(--grey); font-size: 14px; padding: 8px 0; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plan { background: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan.current { background: var(--plate); }
.plan .price { font-family: var(--mono); font-size: 28px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.plan .price small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--grey); letter-spacing: 0; }
.plan ul { margin: 6px 0 10px; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
/* Each plan bullet can carry a quieter second line under it: the headline
   is what the buyer is purchasing, the small line is the caveat that keeps
   the headline honest. Block, so it never wraps into the sentence above. */
.plan ul li { margin-bottom: 7px; }
.plan ul li .muted.small { display: block; line-height: 1.35; margin-top: 1px; }
.plan > button, .plan > .btn { margin-top: auto; align-self: flex-start; }

/* numbered steps — the site's 01 / 02 / 03 rail */
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 18px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 14.5px; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--grey); line-height: 1.7;
}

/* hero — full-bleed dark band, as on the site */
.hero {
  position: relative; z-index: 1;   /* paint over the light gutter rules */
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  margin-inline: calc(50% - 50vw); margin-bottom: 56px;
  padding: 72px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  background: var(--near-black); color: var(--white);
}
/* dark sections carry their own faint rules, as on the site */
.hero::before, .hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 0;
  border-left: 1px dashed rgba(255, 255, 255, .15); pointer-events: none; display: none;
}
.hero::before { left: var(--gutter); }
.hero::after { right: var(--gutter); }
@media (min-width: 768px) { .hero::before, .hero::after { display: block; } }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 48px; } }
.hero h1 { letter-spacing: -.04em; }
.hero > div > .muted { color: rgba(255, 255, 255, .65); max-width: 52ch; }
.hero .btn { border-color: var(--white); color: var(--white); background: transparent; }
.hero .btn:hover { background: var(--white); color: var(--ink); }
.hero .btn.primary { background: var(--white); color: var(--ink); }
.hero .btn.primary:hover { background: transparent; color: var(--white); }
.hero .card { color: var(--ink); border-color: var(--white); }
.hero .card .muted { color: var(--ink-2); }

/* toast + footer */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  pointer-events: none; background: var(--near-black); color: var(--white);
  padding: 14px 20px; font-size: 14px; transition: .2s; max-width: 90vw; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 28px var(--gutter); background: var(--bone);
  border-top: 1px dashed var(--dash); color: var(--ink-2); font-size: 13px;
}
.foot code { background: rgba(20, 20, 20, .06); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}

/* small screens */
@media (max-width: 600px) {
  .topbar { padding: 12px var(--gutter); gap: 10px; }
  .brand { font-size: 15px; }
  .topnav { gap: 14px; }
  .topnav a, .topnav button { font-size: 12px; }
  .topnav .primary { padding: 9px 14px; font-size: 13px; }
  .view { padding: 32px var(--gutter) 64px; }
  .card { padding: 20px; }
  .hero { margin-bottom: 40px; }
  .hero h1 { font-size: 30px; }
  .foot { padding: 20px var(--gutter); }
}

/* deployment card */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 14px 0; }
.three > * { min-width: 0; }
.stat { background: var(--white); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); }
.stat-value { font-family: var(--mono); font-size: 26px; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat.warn .stat-value { color: var(--warn); }
.stat.ok .stat-value { color: var(--ok); }
.alert { border: 1px solid var(--warn); border-left-width: 4px; padding: 12px 14px; margin: 12px 0; font-size: 14.5px; color: var(--ink); background: var(--white); }
.chart-wrap { margin: 14px 0 6px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 96px; border-bottom: 1px solid var(--dash); padding-bottom: 3px; overflow: hidden; }
.bar { flex: 1 1 0; min-width: 3px; height: calc(var(--h) * 100%); background: var(--ink-2); position: relative; }
.bar.unknown { height: 100%; background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line) 3px 5px); }
.bar.pressured::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--warn); }
.legend { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; }
.legend .sw { display: inline-block; width: 12px; height: 10px; background: var(--ink-2); }
.legend .sw.pressured { background: var(--warn); height: 3px; }
.legend .sw.unknown { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line) 3px 5px); border: 1px solid var(--line); }
.tenants { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 6px; }
.tenants th { text-align: left; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tenants td { padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tenants td + td, .tenants th + th { text-align: right; }
@media (max-width: 720px) { .three { grid-template-columns: 1fr; } }

/* dialogs */
.modal { border: 1px solid var(--line); padding: 0; max-width: 440px; width: calc(100% - 2 * var(--gutter)); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.modal::backdrop { background: rgba(14, 15, 18, .45); }
.modal-body { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.modal-body h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.modal-body p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.modal-body input { width: 100%; margin-top: 4px; }
.modal-actions { justify-content: flex-end; margin-top: 10px; }

/* dashboard sections */
.dash { gap: 18px; }
/* Cards side by side share a height, so no grey seam shows under the
   shorter one. */
.dash .grid { align-items: stretch; }
.dash-tabs { gap: 26px; border-bottom: 1px solid var(--line); }
.dash-tabs a { font-size: 13px; padding: 12px 0 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--grey); text-decoration: none; }
.dash-tabs a:hover { color: var(--ink); }
.dash-tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.chart-wrap > .muted.small:first-child { margin-bottom: 6px; }

/* the hidden attribute wins over any display rule (the API switcher relies on it) */
[hidden] { display: none !important; }

/* period chart (svg) */
.period-chart { width: 100%; height: auto; display: block; font-family: var(--sans); }
.period-chart .grid { stroke: var(--line); stroke-width: 1; }
.period-chart .base { stroke: var(--dash); stroke-width: 1; }
.period-chart .axis { fill: var(--grey); font-size: 12px; font-variant-numeric: tabular-nums; }
.period-chart .axis.day { fill: var(--ink-2); font-weight: 600; }
.period-chart .value { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.period-chart .bar-main { fill: var(--ink-2); }
.period-chart .bar-declined { fill: var(--warn); }
.legend .sw.pressured-fill { background: var(--warn); }

/* nodes */
.recommend { border: 1px solid var(--line); border-left: 4px solid var(--ok); padding: 12px 14px; margin: 8px 0 12px; font-size: 14.5px; }
.recommend.warn { border-left-color: var(--warn); }
.tenants.nodes td, .tenants.nodes th { text-align: right; }
.tenants.nodes td:first-child, .tenants.nodes th:first-child, .tenants.nodes .left { text-align: left; }
.tenants.nodes td.left { max-width: 320px; font-size: 13.5px; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }

.tenants td + td, .tenants th + th { padding-left: 16px; }

/* docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.docs-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.docs-nav .eyebrow { color: var(--grey); font-size: 12px; margin-bottom: 10px; }
.docs-nav a { padding: 7px 10px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; font-size: 14.5px; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a.on { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
/* Wide enough that a paragraph reads in a few full lines, not many short
   ones; the sidebar and page width leave the room. */
.docs-main { max-width: 960px; }
.doc h1 { font-size: 32px; letter-spacing: -.03em; margin: 0 0 18px; }
.doc h2 { font-size: 21px; letter-spacing: -.02em; margin: 34px 0 10px; }
.doc h3 { font-size: 16.5px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.doc p { margin: 0 0 14px; max-width: none; }
.doc strong { color: var(--ink); }
.doc code { font-family: var(--mono); font-size: 13.5px; background: var(--plate); padding: 1px 5px; }
/* The right padding is not decoration: the Copy button is absolutely
   positioned in this corner, and without the gap it sits on top of the
   code. The base `pre` rule reserves it; this override used to drop it. */
.doc pre { position: relative; background: var(--plate); padding: 14px 76px 14px 16px; overflow-x: auto; margin: 0 0 16px; }
.doc pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.5; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc blockquote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--dash); color: var(--ink-2); }
.doc .table-wrap { overflow-x: auto; margin: 0 0 16px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc-table th { text-align: left; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); font-weight: 500; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.doc-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.docs-foot { justify-content: space-between; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.docs-foot a { text-decoration: none; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; gap: 16px; } .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; } }

/* docs hero + first-run demo */
.docs-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); margin-bottom: 26px; font-size: 14.5px; }
.docs-hero .btn.small { padding: 8px 14px; font-size: 13.5px; }
.demo { border: 1px solid var(--line); background: var(--near-black); color: #e8e8e8; margin: 6px 0 22px; font-family: var(--mono); font-size: 13.5px; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-block; }
.demo-title { margin-left: 8px; font-family: var(--sans); font-size: 12.5px; color: rgba(255,255,255,.5); }
.demo-screen { padding: 18px 20px; min-height: 300px; line-height: 1.85; }
.demo-line { white-space: pre-wrap; word-break: break-word; padding: 1px 0; }
.demo-line.stream { padding: 4px 0 2px; }
.demo-gap { height: 14px; }
.demo-line.out { color: rgba(255,255,255,.55); }
.demo-line.stream { color: #d7f0dc; }
.demo-prompt { color: rgba(255,255,255,.45); }
.demo-cursor { display: inline-block; width: 7px; height: 14px; background: #d7f0dc; vertical-align: -2px; margin-left: 2px; animation: demo-blink 1s steps(2) infinite; }
@keyframes demo-blink { to { opacity: 0; } }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.5); font-family: var(--sans); }
.demo-foot button { background: transparent; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.25); }
.demo-foot button:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (prefers-reduced-motion: reduce) { .demo-cursor { animation: none; } }
.docs-nav .docs-group { margin: 18px 0 8px; }
.docs-nav .docs-group:first-child { margin-top: 0; }
.docs-nav a.locked::after { content: " 🔒"; font-size: 11px; opacity: .6; }
.docs-locked { border: 1px solid var(--line); padding: 26px; }
.docs-locked h1 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.02em; }
.dash-tabs .docs-tab { margin-left: auto; color: var(--ink-2); }
.dash-tabs .docs-tab::before { content: "↗ "; opacity: .6; }
.docs-nav .docs-back { display: inline-block; margin: 0 0 18px; padding: 8px 12px; border: 1px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.docs-nav .docs-back:hover { background: var(--ink); color: var(--white); }

/* ---- loading -----------------------------------------------------------
 * Three cues, all in ink on white like the rest: a hairline bar at the top
 * of the window while the app waits on the server (after 150 ms, so a quick
 * answer never flickers), grey placeholder cards shaped like what is coming,
 * and a small spinner inside a working button. Still for reduced motion. */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; overflow: hidden; background: var(--line); }
.progress[hidden] { display: none; }
.progress::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%;
  background: var(--ink); animation: progress-slide 1.1s ease-in-out infinite;
}
@keyframes progress-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.card.skeleton { gap: 14px; }
.sk { display: block; height: 12px; width: 100%; background: var(--plate); animation: sk-pulse 1.4s ease-in-out infinite; }
.sk.title { height: 22px; width: 45%; }
.sk.short { width: 60%; }
.sk.block { height: 64px; }
@keyframes sk-pulse { 50% { opacity: .45; } }

button.busy::before {
  content: ""; width: 11px; height: 11px; flex: none;
  border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .progress::before { animation: none; width: 100%; opacity: .5; }
  .sk, button.busy::before { animation: none; }
}

/* ---- password peek: the eye inside a password field (hold to show) ---- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
button.pw-peek {
  position: absolute; top: 1px; right: 1px; bottom: 1px; width: 44px;
  padding: 0; border: 0; background: transparent; color: var(--grey);
  justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none;
}
button.pw-peek:hover, button.pw-peek[aria-pressed="true"] { background: transparent; color: var(--ink); }
button.pw-peek svg { width: 18px; height: 18px; }

/* A note that must not be missed (e.g. "upgrade in place, don't install twice"):
   ink rule on the left, plate background, as a callout on oragonlabs.com. */
.note { margin: 0; padding: 12px 14px; background: var(--plate); border-left: 2px solid var(--ink); font-size: 14px; line-height: 1.55; }

/* ---- your free usage: one row per linked machine, with a speech meter ---- */
.usage-row { display: grid; grid-template-columns: 1.4fr 1.4fr 1.6fr; gap: 6px 18px; align-items: center; }
.usage-row .meter { grid-column: 1 / -1; display: block; height: 4px; background: var(--plate); }
.usage-row .meter > span { display: block; height: 100%; background: var(--ink); }
@media (max-width: 760px) { .usage-row { grid-template-columns: 1fr; } }

/* Two cards stacked in one grid cell (Install, then the free plan's usage),
   joined by the same 1px seam the grid draws between cells. */
.card-column { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.card-column > .card { border: 0; background: var(--white); }
/* As tall as its neighbour, so no grey seam shows under the shorter side. */
.grid > .card-column { align-self: stretch; }
.card-column > .card:last-child { flex: 1; }
.card-column .usage-row { grid-template-columns: minmax(0, 1fr); }
.guide { margin: 12px 0 4px; padding-left: 18px; }
.guide li { margin: 3px 0; }
