/* MemBraince. One stylesheet for the home, document, auth, portal, owner and error pages.
   Fonts are self-hosted subsets (SIL OFL, licences beside them). */

@font-face {
  font-family: "Young Serif";
  src: url("/static/fonts/YoungSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("/static/fonts/HostGrotesk-Variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #0a0a0a;
  --card: #161616;
  --well: #060606;
  --rule: #2a2a2a;
  --rule-strong: #454545;
  --field-edge: #707070;
  --text: #f5f5f5;
  --body: rgba(245, 245, 245, .78);
  --muted: rgba(245, 245, 245, .62);
  --gold: #f2c96b;
  --on-gold: #141414;
  --rose: #f29aa6;
  --paper: #f7f7f5;
  --ink: #171717;
  --ink-muted: #5c5c5c;
  --display: "Young Serif", Georgia, serif;
  --sans: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  scrollbar-color: var(--rule-strong) var(--ground);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 0; background: var(--ground); color: var(--text);
  font: 400 16px/1.5 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased;
  caret-color: var(--gold); -webkit-tap-highlight-color: rgba(242, 201, 107, .25);
}
::selection { background: var(--gold); color: var(--on-gold); }
a { color: inherit; }
button, input, select, textarea, a { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; }
code, pre { font-family: var(--mono); font-variant-ligatures: none; }
[id] { scroll-margin-top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.closing :focus-visible { outline-color: var(--ink); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 7px; background: var(--gold); color: var(--on-gold); font-weight: 500; }
.skip-link:focus { top: 16px; }
.skip-link.to-screen { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ico { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chip-ico { display: block; width: 22px; height: 22px; color: var(--gold); }
.chip-ico .ico { width: 22px; height: 22px; }

/* Wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 400 21px/1 var(--display); color: var(--text); text-decoration: none; }
.wordmark img { display: block; width: 28px; height: 28px; }

/* Public pages: buttons */
.home .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 8px; background: var(--gold); color: var(--on-gold);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.home .button:hover { background: #f7d788; }

/* Public pages: header */
.site-header { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; padding: 24px max(24px, calc((100% - 1120px) / 2)); }
.site-header nav { display: flex; flex: 1; align-items: center; gap: 26px; }
.site-header nav a { font: 500 15px/1.4 var(--sans); color: var(--body); text-decoration: none; }
.site-header nav a:hover { color: #fff; }
.site-header nav a[href="/auth/signin"] { margin-left: auto; }
.site-header nav a.nav-cta { padding: 9px 14px; border-radius: 8px; background: var(--gold); color: var(--on-gold); }
.site-header nav a.nav-cta:hover { background: #f7d788; color: var(--on-gold); }

/* Public pages: hero. Headline on the left, the receipt in the sun on the right. */
.hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px 56px; align-items: center;
  margin-top: -90px; padding: 150px max(24px, calc((100% - 1120px) / 2)) 96px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 76%; top: 44%; width: 1240px; height: 1240px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(242, 201, 107, .55), rgba(242, 201, 107, .24) 34%, rgba(242, 201, 107, .07) 64%, transparent);
}
.hero h1 { margin: 0 0 22px; font: 400 clamp(3rem, 5.3vw, 4.9rem)/1.03 var(--display); letter-spacing: -.012em; }
.accent { display: block; color: var(--gold); }
.lede { max-width: 33rem; margin: 0; color: var(--body); font-size: 20px; line-height: 1.45; }
.privacy-line { display: flex; gap: 10px; align-items: flex-start; max-width: 33rem; margin: 16px 0 0; color: var(--text); font: 500 17px/1.4 var(--sans); }
.privacy-line .ico { margin-top: 1px; color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.install-for { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 36rem; margin: 24px 0 0; }
.install-for span { margin-right: 4px; color: var(--body); font-size: 15px; }
.install-for a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 7px; background: rgba(10, 10, 10, .6); color: var(--text); font: 500 14px/1 var(--sans); text-decoration: none; transition: border-color .15s, color .15s; }
.install-for a:hover { border-color: var(--gold); color: var(--gold); }
.install-more { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.install-more a { color: inherit; text-underline-offset: .2em; }
.install-more a:hover { color: var(--text); }
.standing { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.standing-proof { max-width: 33rem; margin-top: 6px; color: var(--body); }
.standing-proof a { color: var(--gold); text-underline-offset: .2em; white-space: nowrap; }

/* The example record: a receipt on paper */
.specimen { margin: 0; min-width: 0; }
.receipt-wrap { width: min(100%, 420px); margin-left: auto; transform: rotate(1.8deg); filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .55)); transition: transform .6s var(--ease-out); }
.receipt-wrap:hover { transform: rotate(0deg); }
.receipt {
  padding: 22px 24px 36px; background: var(--paper); color: var(--ink); font: 400 13px/1.45 var(--mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.receipt ::selection { background: var(--ink); color: var(--paper); }
.receipt-logo { display: block; width: 42px; height: 42px; margin: 0 auto 8px; }
.stamp { margin: 0 0 14px; font: 700 13px/1.4 var(--mono); letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.collector-label { margin: 0; padding: 10px 0; border-block: 1px dashed rgba(23, 23, 23, .42); }
.collector-label div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 3px 0; }
.collector-label dt { color: var(--ink-muted); }
.collector-label dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.slips { padding-top: 12px; }
.slip { margin: 0; padding: 9px 10px; font: 500 13.5px/1.35 var(--mono); }
.slip-new { background: #f6d874; }
.slip-old { margin-top: 2px; color: var(--ink-muted); }
.slip-meta { display: block; margin-top: 2px; font: 400 12px/1.4 var(--mono); }
.slip-new .slip-meta b { font-weight: 700; }
.specimen figcaption { width: min(100%, 420px); margin: 18px 0 0 auto; color: var(--muted); font-size: 14px; }

/* Public pages: sections share one left edge */
.section { padding: 88px max(24px, calc((100% - 1120px) / 2)); }
.section h2, .trust h2 { margin: 0 0 14px; font: 400 clamp(2.1rem, 3.7vw, 2.9rem)/1.08 var(--display); letter-spacing: -.008em; max-width: 19em; }
.section-lede { max-width: 38rem; margin: 0 0 44px; color: var(--body); font-size: 19px; line-height: 1.45; }

/* Results: three ways of working as ledger rows, then what each request carries.
   The rule on top hides the line where the hero's glow is cut off. */
.results { border-top: 1px solid var(--rule); }
.ways { --pitch: 5px; --bar: 3px; width: 100%; border-collapse: collapse; }
.ways th, .ways td { padding: 0; font-weight: 400; text-align: left; vertical-align: top; }
.ways thead th { padding-bottom: 10px; border-bottom: 1px solid var(--rule-strong); color: var(--muted); font: 500 13px/1.5 var(--sans); }
.ways tbody th, .ways tbody td { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.ways tbody th { padding-right: 24px; }
.ways th:nth-child(2), .ways td:nth-child(2) { width: calc(92 * var(--pitch) + 48px); }
.ways th:last-child, .ways td:last-child { width: 132px; }
.way-name { display: block; color: var(--text); font: 400 21px/1.25 var(--display); }
.way-note { display: block; max-width: 25rem; margin-top: 6px; color: var(--body); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.count { display: block; color: var(--body); font: 400 14px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.count b { color: var(--text); font-size: 21px; font-weight: 500; }
/* One mark for each hidden check: a full bar for a pass, a stub for a fail. */
.tally {
  display: block; width: calc(92 * var(--pitch)); height: 30px; margin-top: 12px; color: var(--body);
  background: repeating-linear-gradient(90deg, var(--rule-strong) 0 var(--bar), transparent var(--bar) var(--pitch)) bottom / 100% 8px no-repeat;
}
.tally i { display: block; width: calc(var(--n) * var(--pitch)); height: 100%; background: repeating-linear-gradient(90deg, currentColor 0 var(--bar), transparent var(--bar) var(--pitch)); }
/* A bar with no count above it stays level with the token meter beside it. */
.tally:only-child { margin-top: 37px; }
.tally-67 { --n: 67; }
.tally-91 { --n: 91; }
.tally-92 { --n: 92; }
.meter { display: block; width: 100px; height: 4px; margin-top: 38px; border-radius: 99px; background: var(--rule); }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--body); }
.meter-62 i { width: 62%; }
.meter-68 i { width: 68%; }
.way-memory .count b, .way-memory .tally { color: var(--gold); }
.way-memory .meter i { background: var(--gold); }

.weight { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 32px 56px; align-items: start; margin-top: 72px; }
.weight h3 { margin: 0 0 12px; font: 400 clamp(1.6rem, 2.5vw, 1.95rem)/1.15 var(--display); letter-spacing: -.006em; }
.weight-copy > p { max-width: 38rem; margin: 0; color: var(--body); font-size: 17px; line-height: 1.5; }
.weight .label-list { margin: 26px 0 0; border-top: 1px solid var(--rule-strong); }
.weight .label-list div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.weight dt { font: 400 19px/1.3 var(--display); }
.weight dd { margin: 4px 0 0; color: var(--body); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.chart { min-width: 0; margin: 6px 0 0; }
.chart-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font: 400 12px/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.chart-y span { display: block; height: 0; line-height: 0; }
.plot { position: relative; height: 320px; margin-right: 7px; border-bottom: 1px solid var(--rule-strong); background: linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 25%; }
.plot svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.plot .gap { fill: rgba(245, 245, 245, .05); }
.plot .line { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.plot .line-memory { stroke: var(--gold); stroke-width: 2.5; }
.dot { position: absolute; right: -7px; width: 14px; height: 14px; border: 2px solid var(--ground); border-radius: 50%; background: linear-gradient(var(--muted) 0 0) var(--ground); }
.dot-long { top: calc(18% - 7px); }
.dot-memory { top: calc(76% - 7px); background: var(--gold); }
.end { position: absolute; right: 0; color: var(--body); font: 500 13px/1.3 var(--sans); white-space: nowrap; }
.end b { margin-left: 6px; color: var(--text); font: 500 13px/1.3 var(--mono); }
.end-long { bottom: calc(82% + 14px); }
.end-memory { top: calc(76% + 16px); }
.chart-x { grid-column: 2; display: flex; justify-content: space-between; margin: 10px 7px 0 0; color: var(--muted); font: 400 12px/1.3 var(--mono); }
.chart figcaption { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.results-method { max-width: 50rem; margin: 44px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; line-height: 1.55; }

/* The API: a stem runs down the steps */
.steps { margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 28px; padding-bottom: 34px; min-width: 0; }
.step::before { content: ""; position: absolute; left: 17px; top: 44px; bottom: 8px; border-left: 1px solid var(--rule-strong); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step h3 { grid-column: 1; grid-row: 1 / span 2; margin: 5px 0 0; padding-left: 50px; font: 400 21px/1.25 var(--display); }
.step pre { grid-column: 2; }
.step-no { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 500 14px/1 var(--sans); }
pre { margin: 0; max-width: 100%; overflow-x: auto; scrollbar-color: var(--rule-strong) transparent; }
.code { padding: 16px 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--well); font: 400 13px/1.7 var(--mono); color: #d9d9d9; }
.code code { display: block; width: max-content; min-width: 100%; font: inherit; }
.ln { display: block; min-height: 1.7em; padding: 0 20px; white-space: pre; }
.t-cmd { color: var(--gold); }
.t-flag, .t-note { color: var(--muted); }
.t-str { color: #fff; }
.step-note, .example-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.step-note { grid-column: 2; }
.example-note { margin-top: 30px; max-width: 46rem; }
.step-note code { font: 400 .88em var(--mono); color: var(--text); overflow-wrap: anywhere; }

/* Memory with receipts: a ledger, not cards */
.keeps { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 24px 56px; align-items: start; }
.keeps .label-list { margin: 0; border-top: 1px solid var(--rule-strong); }
.keeps .label-list div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.keeps dt { font: 400 19px/1.3 var(--display); }
.keeps dd { margin: 0; color: var(--body); font-size: 16px; line-height: 1.5; text-wrap: pretty; }

/* Connect your tool: a lighter band with one ledger row per tool */
.install { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 32px 56px; align-items: start; background: var(--card); border-block: 1px solid var(--rule); }
.install-intro > p { margin: 0; color: var(--body); font-size: 17px; line-height: 1.5; }
.install-intro .tool-list { margin-top: 22px; border-top: 1px solid var(--rule); }
.install-row { padding: 20px 0; border-top: 1px solid var(--rule); }
.install-row:first-child { padding-top: 0; border-top: 0; }
.install-row h3 { margin: 0 0 8px; font: 400 21px/1.25 var(--display); }
.install-row:target h3 { color: var(--gold); }
.install-row p { margin: 0 0 8px; color: var(--body); font-size: 15.5px; line-height: 1.5; }
.install-row p:last-child { margin-bottom: 0; }
.install-row a { color: var(--gold); text-underline-offset: .2em; }
.install-row code { font: 400 .9em var(--mono); color: var(--text); overflow-wrap: anywhere; }
.install-row pre code { font: inherit; }
.install-row .command-pill { margin: 10px 0; }
.install-row .tool-names { color: var(--text); }
.command-pill { padding: 14px 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--well); font: 400 14px/1.8 var(--mono); color: var(--text); }
.command-pill span { display: block; overflow-wrap: anywhere; white-space: normal; }
.command-pill span::before { content: "$ "; color: var(--gold); }
.tool-list { margin: 14px 0 0; }
.tool-list div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.tool-list dt { color: var(--gold); font: 500 13px/1.5 var(--mono); }
.tool-list dd { margin: 0; color: var(--body); font-size: 15px; line-height: 1.4; }

/* A prompt the reader pastes into another tool: one button copies all of it.
   copy-v1.js reveals the button; without it, one click on the prompt selects it. */
.command { display: block; margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--well); font: 400 13px/1.7 var(--mono); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.copyable { margin: 12px 0 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--well); }
.install-row .copyable { margin: 10px 0; }
.copy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--rule); color: var(--muted); font: 500 13px/1.3 var(--sans); }
.copyable pre.command { margin: 0; padding: 12px 14px; border: 0; border-radius: 0; background: none; }
.copyable code { user-select: all; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; padding: 28px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.plan-premium { border-color: color-mix(in srgb, var(--gold) 58%, transparent); }
.plan h3 { margin: 0; font: 400 22px/1.2 var(--display); }
.price { margin: 14px 0 18px; color: var(--muted); font-size: 15px; }
.amount { display: block; margin-bottom: 4px; color: var(--text); font: 400 58px/1 var(--display); font-variant-numeric: tabular-nums; }
.plan-premium .amount { color: var(--gold); }
.plan p { color: var(--body); font-size: 15px; }
.plan .price { color: var(--muted); }
.plan p:last-child { margin-bottom: 0; }
.plan-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); list-style: none; }
.plan-list li { position: relative; padding-left: 26px; color: var(--body); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.plan-list strong { color: var(--text); font-weight: 500; }
.plan .plan-upsell { margin: 16px 0 0; color: var(--gold); font-size: 15px; font-weight: 500; }
.plan-premium::after { content: "Recommended"; position: absolute; right: 24px; top: 28px; padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--gold) 58%, transparent); border-radius: 5px; color: var(--gold); font: 500 12px/1.5 var(--sans); }

/* Trust: the promise first, then what backs it */
/* The glow runs up into the section above instead of stopping in a line at this one's top edge. */
.trust { position: relative; isolation: isolate; padding: 96px max(24px, calc((100% - 1120px) / 2)) 88px; overflow-x: hidden; overflow-x: clip; }
.trust::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -260px; top: -380px; width: 1000px; height: 1000px; background: radial-gradient(closest-side, rgba(242, 201, 107, .17), rgba(242, 201, 107, .06) 52%, transparent); }
.trust h2 { max-width: 17em; margin: 0 0 40px; font: 400 clamp(2.5rem, 4.8vw, 3.9rem)/1.06 var(--display); letter-spacing: -.012em; }
.trust .label-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; margin: 0; }
.trust .label-list div { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; padding: 20px 0 22px; border-top: 1px solid var(--rule-strong); }
.trust .ico { color: var(--gold); margin-top: 2px; grid-row: span 2; }
.trust dt { font: 500 16px/1.35 var(--sans); }
.trust dd { margin: 5px 0 0; color: var(--body); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.trust dd a { color: var(--gold); text-underline-offset: .2em; }
.trust-where { max-width: 50rem; margin: 18px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Closing: one gold band */
.closing { padding: 76px max(24px, calc((100% - 1120px) / 2)); background: var(--gold); color: var(--ink); }
.closing ::selection { background: var(--ink); color: var(--gold); }
.closing h2 { margin: 0 0 10px; font: 400 clamp(2.6rem, 5.4vw, 4.4rem)/1.04 var(--display); letter-spacing: -.012em; }
.closing p { max-width: 34rem; margin: 0 0 26px; font-size: 19px; line-height: 1.45; }
.home .closing .button { background: var(--ground); color: var(--text); }
.home .closing .button:hover { background: var(--card); }

footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 30px max(24px, calc((100% - 1120px) / 2)); }
footer .wordmark { font-size: 18px; }
footer .wordmark img { width: 24px; height: 24px; }
footer p { margin: 0; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
footer nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
footer nav a:hover { color: #fff; }

/* Portal, auth and console: compact controls */
.owner-body { min-height: 100vh; }
button, .owner-body .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 7px; background: var(--gold); color: var(--on-gold);
  font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
button:hover, .owner-body .button:hover { background: #f7d788; }
button:disabled { cursor: not-allowed; opacity: .55; }
button.secondary, .owner-body .button.secondary { border-color: var(--rule-strong); background: transparent; color: var(--text); }
button.secondary:hover, .owner-body .button.secondary:hover { background: rgba(245, 245, 245, .06); }
button.danger { border-color: color-mix(in srgb, var(--rose) 55%, transparent); background: transparent; color: var(--rose); }
button.danger:hover { background: color-mix(in srgb, var(--rose) 12%, transparent); }
button.copy { flex: none; min-width: 92px; min-height: 34px; padding: 0 12px; border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: transparent; color: var(--gold); }
button.copy[hidden] { display: none; }
button.copy:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
button.copy .ico { width: 16px; height: 16px; }
button.copy .ico-done { display: none; }
button.copy.copied, button.copy.copied:hover { border-color: var(--muted); background: rgba(245, 245, 245, .1); color: var(--text); }
button.copy.copied .ico-copy { display: none; }
button.copy.copied .ico-done { display: block; }
label { display: grid; gap: 6px; color: var(--text); font-size: 13px; font-weight: 500; }
input:not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--field-edge); border-radius: 7px;
  background: var(--well); color: var(--text); font: 400 14px var(--sans);
}
textarea { padding-block: 9px; }
input:not([type="checkbox"]):hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: transparent; }
input::placeholder { color: var(--muted); }
.field-hint { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.field-error { margin: 2px 0 0; color: var(--rose); font-size: 13px; font-weight: 500; }
.login-card input[aria-invalid="true"] { border-width: 2px; border-color: var(--rose); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.notice, .error-summary { margin: 0 0 16px; padding: 11px 14px; border: 1px solid; border-radius: 8px; color: var(--text); font-size: 14px; }
.notice { border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.error-summary { border-color: color-mix(in srgb, var(--rose) 50%, transparent); background: color-mix(in srgb, var(--rose) 11%, transparent); }
.notice p, .error-summary p { margin: 0; color: inherit; font-size: inherit; }

/* Portal shell: sidebar on the ground, work on an inset panel */
.portal { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; padding: 16px 12px 12px; }
.side .wordmark { padding: 2px 6px 18px; font-size: 19px; }
.side .wordmark img { width: 26px; height: 26px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side hr { width: 100%; margin: 10px 0; border: 0; border-top: 1px solid var(--rule); }
.side nav a, .side-foot button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 34px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--body); font: 400 14px/1.2 var(--sans); text-decoration: none; }
.side nav a:hover, .side-foot button:hover { background: rgba(245, 245, 245, .06); color: #fff; }
.side nav a[aria-current="page"] { background: rgba(245, 245, 245, .11); color: #fff; }
.side nav a[aria-current="page"] .ico { color: var(--gold); opacity: 1; }
.side .ico { width: 18px; height: 18px; opacity: .8; }
.side-foot { margin-top: auto; padding-top: 24px; }
.side-foot form { margin: 0; }

/* The console's main column: an inset panel in the portal, a centred one for the owner */
.owner-main { min-width: 0; padding: 36px 40px 56px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.portal .owner-main { margin: 8px 8px 8px 0; }
body > .owner-main { width: min(1180px, calc(100% - 32px)); margin: 24px auto; }
.work { max-width: 860px; }
.owner-main h1, .screens > section > h2 { margin: 0 0 10px; overflow-wrap: anywhere; font: 400 32px/1.15 var(--display); }
.owner-main h2 { margin: 28px 0 8px; font: 400 21px/1.25 var(--display); }
.owner-main h3 { margin: 20px 0 6px; font: 500 16px/1.3 var(--sans); }
:where(.owner-main) p { color: var(--body); font-size: 15px; line-height: 1.5; }
.owner-main a:not(.button) { color: var(--gold); text-underline-offset: .18em; }
.owner-main code { overflow-wrap: anywhere; font: 400 .9em var(--mono); color: var(--text); }
.owner-main pre { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--well); font: 400 13px/1.7 var(--mono); color: var(--text); }
.owner-main pre code { font: inherit; color: inherit; }
.owner-main time, .owner-main td { font-variant-numeric: tabular-nums; }
.owner-main ul { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.owner-main ul > li { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--ground); }
.owner-main li { min-width: 0; overflow-wrap: anywhere; }
.owner-main ol { padding-left: 20px; color: var(--body); font-size: 15px; }
.owner-main ol li { margin: 6px 0; }
.owner-main form { display: grid; gap: 14px; max-width: 520px; margin: 16px 0; }
/* A form that is only a button (revoke, sign out) is an action, not a panel. */
.owner-main form:where(:not(:has(input:not([type="hidden"]), select, textarea))) { display: block; margin: 0; }
.owner-main button { width: fit-content; }
.owner-main fieldset { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 10px 14px 12px; border: 1px solid var(--rule); border-radius: 8px; }
.owner-main legend { padding: 0 4px; color: var(--text); font-size: 13px; font-weight: 500; }
.owner-main label.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.owner-main label.check input { accent-color: var(--gold); }
.intro { margin: 0 0 24px; max-width: 42rem; }
.row-of { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.owner-main .row-of form { margin: 0; }

/* One screen at a time: the sidebar's links target a section, and /portal alone opens on
   Connect your tool. A browser without :has() shows every section, one after another. */
.screens > section { scroll-margin-top: 48px; }
@supports selector(:has(*)) {
  /* A skip link to #main would take the target away from the section and swap the screen. */
  body:has(.screens) .skip-link:not(.to-screen) { display: none; }
  body:has(#keys:target) .skip-link[href="#keys"],
  body:has(#projects:target) .skip-link[href="#projects"],
  body:has(#encryption:target) .skip-link[href="#encryption"],
  body:has(#billing:target) .skip-link[href="#billing"],
  body:has(#report-bug:target) .skip-link[href="#report-bug"],
  body:has(#rest-api:target) .skip-link[href="#rest-api"],
  body:has(#connect:target) .skip-link[href="#connect"],
  body:has(.screens):not(:has(.screens > section:target)) .skip-link[href="#connect"] { display: block; }
  .screens > section { display: none; }
  .screens > section:target { display: block; }
  .screens:not(:has(> section:target)) > #connect { display: block; }
  .portal:has(#keys:target) .side a[href="/portal#keys"],
  .portal:has(#projects:target) .side a[href="/portal#projects"],
  .portal:has(#encryption:target) .side a[href="/portal#encryption"],
  .portal:has(#billing:target) .side a[href="/portal#billing"],
  .portal:has(#report-bug:target) .side a[href="/portal#report-bug"],
  .portal:has(#rest-api:target) .side a[href="/portal#rest-api"],
  .portal:has(#connect:target) .side a[href="/portal#connect"],
  .portal:has(.screens):not(:has(.screens > section:target)) .side a[href="/portal#connect"] {
    background: rgba(245, 245, 245, .11); color: #fff;
  }
  .portal:has(#keys:target) .side a[href="/portal#keys"] .ico,
  .portal:has(#projects:target) .side a[href="/portal#projects"] .ico,
  .portal:has(#encryption:target) .side a[href="/portal#encryption"] .ico,
  .portal:has(#billing:target) .side a[href="/portal#billing"] .ico,
  .portal:has(#report-bug:target) .side a[href="/portal#report-bug"] .ico,
  .portal:has(#rest-api:target) .side a[href="/portal#rest-api"] .ico,
  .portal:has(#connect:target) .side a[href="/portal#connect"] .ico,
  .portal:has(.screens):not(:has(.screens > section:target)) .side a[href="/portal#connect"] .ico {
    color: var(--gold); opacity: 1;
  }
}

/* Connect your tool */
.tool-card { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 14px; padding: 20px 0; border-top: 1px solid var(--rule); }
.tool-card p { margin: 6px 0 0; }
.owner-main .tool-card h3 { margin: 0; }
.tool-body { min-width: 0; }
.check-card { margin-top: 6px; padding: 18px 20px; border: 1px solid var(--rule-strong); border-radius: 10px; background: rgba(245, 245, 245, .04); }
.check-card .chip-ico { color: var(--gold); }

/* Report a bug */
.owner-main .setting-box.report-box { max-width: 42rem; margin-bottom: 20px; }
.owner-main .report-box h3 { margin: 0; }
.owner-main .report-box p { margin: 0; }
.owner-main .report-box ul { display: block; margin: 0; padding-left: 18px; color: var(--body); font-size: 15px; line-height: 1.5; list-style: disc; }
.owner-main .report-box ul > li { padding: 0; border: 0; border-radius: 0; background: none; }
.owner-main .report-note { max-width: 42rem; margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }

/* API keys */
.owner-main .key-list { margin: 20px 0 0; }
.key-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.key-head strong { font: 500 16px/1.3 var(--sans); }
.owner-main .key-head code { color: var(--muted); font-size: 12.5px; }
.status { display: inline-block; padding: 1px 7px; border: 1px solid rgba(245, 245, 245, .38); border-radius: 5px; background: rgba(245, 245, 245, .1); color: var(--text); font: 500 12px/1.5 var(--sans); }
.status.revoked { border-color: var(--rule-strong); background: rgba(245, 245, 245, .05); color: var(--muted); }
.owner-main .key-projects { margin: 6px 0 0; }
.usage-charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0; border-block: 1px solid var(--rule); }
.usage-chart { min-width: 0; padding: 11px 13px 13px 0; }
.usage-chart + .usage-chart { padding-left: 13px; border-left: 1px solid var(--rule); }
.usage-chart-heading span { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.usage-chart-heading strong { display: block; margin: 5px 0 8px; font: 500 13px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.usage-chart progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 99px; overflow: hidden; background: var(--rule); appearance: none; }
.usage-chart progress::-webkit-progress-bar { background: var(--rule); }
.usage-chart progress::-webkit-progress-value { background: var(--text); }
.usage-chart progress::-moz-progress-bar { background: var(--text); }
.key-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.key-foot details { margin-right: auto; }
.key-foot details[open] { flex: 1 1 100%; margin-right: 0; }
summary { width: fit-content; color: var(--text); font-weight: 500; cursor: pointer; }
.owner-main .key-card form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; max-width: none; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.owner-main .key-card form label { flex: 1 1 240px; }
.owner-main .key-card .field-hint { flex: 1 1 100%; margin: 0; }
.owner-main .key-foot > form { display: block; margin: 0 0 0 auto; padding: 0; border: 0; }
.owner-main .key-card .key-projects-edit form { display: grid; gap: 12px; max-width: 520px; margin: 10px 0 2px; padding: 14px; border: 1px solid var(--rule); border-radius: 8px; }

/* Settings rows: heading on the left, control on the right */
.setting { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 12px 32px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule); }
.setting > div { min-width: 0; }
.setting p { margin: 6px 0 0; }
.owner-main .setting h2, .owner-main .setting h3 { margin: 0; }
.owner-main .setting h2 { font: 400 21px/1.25 var(--display); }
.owner-main .setting-box { display: grid; gap: 12px; align-content: start; max-width: none; margin: 0; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--ground); }
.owner-main .setting-box h3, .owner-main .setting-box p { margin: 0; }
.owner-main .setting-box p.field-hint { margin: 2px 0 0; }
.setting-box.danger-box { border-color: color-mix(in srgb, var(--rose) 40%, transparent); }
.owner-main .secret + .setting-box { margin-top: 12px; }
.owner-main .project-list { gap: 6px; margin: 0 0 16px; }
.owner-main .project-list > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 10px 12px; border-radius: 8px; background: none; }
.owner-main .project-list code { color: var(--muted); font-size: 12.5px; }
.owner-main form.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; max-width: none; margin-top: 16px; }
details.recovery { margin-top: 24px; }
details.recovery > summary { width: 100%; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 8px; }

/* Memories */
.owner-main form.memory-search { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; align-items: end; gap: 10px; max-width: none; }
.owner-main .memory-list { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.owner-main .memory-list li { margin: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--ground); }
.owner-main .memory-list p { margin: 0; }
.owner-main .memory-list p.muted { margin-top: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.memory-pages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* One-time secrets */
.secret { display: block; margin: 12px 0 0; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); border-radius: 8px; background: var(--well); color: var(--text); overflow-wrap: anywhere; user-select: all; }
.owner-main code.secret, .login-card code.secret { font: 500 14px/1.6 var(--mono); }
.setting code.secret { margin-top: 0; }
.owner-main code.tenant-id { display: inline-block; padding: 2px 8px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--well); user-select: all; }

/* Auth: the card sits in the sun */
.login-shell { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 72px 16px; overflow: hidden; }
.owner-header + .login-shell { min-height: calc(100vh - 61px); }
.login-shell::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(242, 201, 107, .2), rgba(242, 201, 107, .07) 48%, transparent); }
.login-shell .wordmark { margin-bottom: 26px; }
.login-card { width: min(100%, 420px); padding: 26px 24px 22px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.login-card h1 { margin: 0 0 6px; overflow-wrap: anywhere; font: 400 27px/1.2 var(--display); }
:where(.login-card) p { color: var(--body); font-size: 15px; line-height: 1.5; }
.login-card a:not(.button) { color: var(--gold); text-underline-offset: .18em; }
.auth-description { margin: 0 0 20px; font-size: 14px; }
.login-card form { display: grid; gap: 14px; }
.login-card form > label[for] { margin-bottom: -8px; }
.login-card form button { width: 100%; margin-top: 4px; }
.login-card form p button { width: auto; margin-top: 0; }
.login-card form p { margin: 2px 0 0; }
.auth-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 14px; }
.pending-email { margin: 12px 0; }
.pending-steps { display: grid; gap: 8px; margin: 12px 0 18px; padding-left: 20px; color: var(--body); font-size: 15px; }
.pending-steps li { overflow-wrap: anywhere; }

/* Owner console and error pages keep a plain header */
.owner-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px max(16px, calc((100% - 1180px) / 2)); border-bottom: 1px solid var(--rule); background: var(--card); }
.owner-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; }
.owner-header nav a { color: var(--body); text-decoration: none; }
.owner-header nav a:hover { color: #fff; }
.console-name { color: var(--muted); font-size: 14px; }
.owner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel { margin-bottom: 20px; padding: 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--ground); }
.owner-main .panel h2 { margin: 0 0 8px; }
.owner-main form.quota-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.quota-grid button { grid-column: 1 / -1; }
.error-page { width: min(760px, calc(100% - 32px)); margin: 48px auto; padding: 32px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.error-page h1 { margin: 0 0 12px; font: 400 32px/1.15 var(--display); }
.error-page p { color: var(--body); }

/* Documents */
.document-shell { position: relative; isolation: isolate; margin-top: -90px; padding: 134px max(24px, calc((100% - 1120px) / 2)) 88px; overflow: hidden; }
.document-shell::before { content: ""; position: absolute; z-index: -1; right: -240px; top: -420px; width: 1000px; height: 1000px; background: radial-gradient(closest-side, rgba(242, 201, 107, .26), rgba(242, 201, 107, .09) 50%, transparent); }
.document { max-width: 46rem; }
.document h1 { margin: 0 0 10px; font: 400 clamp(2.6rem, 5vw, 3.8rem)/1.05 var(--display); }
.document-updated { margin: 0 0 40px; color: var(--muted); font-size: 14px; }
.document h2 { margin: 36px 0 8px; font: 400 23px/1.25 var(--display); }
.document p { margin: 0 0 14px; color: var(--body); line-height: 1.6; }
.document p.document-updated { margin-bottom: 40px; color: var(--muted); }
.document ul, .document ol { color: var(--body); line-height: 1.6; }
.document a { color: var(--gold); text-underline-offset: .18em; }
.document code { font: 400 .88em var(--mono); color: var(--text); overflow-wrap: anywhere; }
.document .label-list { margin: 16px 0 0; border-top: 1px solid var(--rule-strong); }
.document .label-list div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.document dt { font: 500 16px/1.35 var(--sans); }
.document dd { margin: 5px 0 0; color: var(--body); font-size: 15px; line-height: 1.55; }

@media (max-width: 900px) {
  .hero, .keeps, .install, .weight { grid-template-columns: 1fr; }
  /* The comparison stacks: each way of working, then its two measures side by side. */
  .ways, .ways tbody, .ways tbody th, .ways tbody td { display: block; }
  .ways thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ways tbody { border-top: 1px solid var(--rule-strong); }
  .ways tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 40px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .ways tbody th { grid-column: 1 / -1; padding: 0 0 16px; border: 0; }
  .ways tbody td, .ways td:nth-child(2), .ways td:last-child { width: auto; padding: 0; border: 0; }
  .tally:only-child { margin-top: 0; }
  .ways tbody td::before { content: attr(data-label); display: block; margin-bottom: 8px; color: var(--muted); font: 500 13px/1.5 var(--sans); }
  .trust .label-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::before { left: 50%; top: 72%; width: 900px; height: 900px; }
  .receipt-wrap, .specimen figcaption { margin-left: auto; margin-right: auto; }
  .step { grid-template-columns: 1fr; }
  .step h3 { grid-row: auto; margin-bottom: 14px; }
  .step pre, .step-note { grid-column: 1; margin-left: 50px; }
  .usage-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-chart:nth-child(odd) { padding-left: 0; border-left: 0; }
  .usage-chart:nth-child(even) { padding-left: 13px; border-left: 1px solid var(--rule); }
  .usage-chart:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .setting { grid-template-columns: 1fr; }
  .owner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .portal { display: block; }
  .side { position: static; height: auto; overflow: visible; padding-bottom: 8px; }
  .side .wordmark { padding-bottom: 12px; }
  .side nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .side hr, .side nav a .ico { display: none; }
  .side nav a { width: auto; padding: 0 10px; border: 1px solid var(--rule); }
  .side-foot { margin: 4px 0 0; padding: 0; }
  .side-foot .ico { display: none; }
  .side-foot button { width: auto; padding: 0 10px; border: 1px solid var(--rule); }
  .portal .owner-main { margin: 0 8px 8px; }
  .owner-main { padding: 22px 16px 32px; }
  .screens > section { scroll-margin-top: 12px; }
  .site-header { flex-wrap: wrap; gap: 12px 16px; padding: 16px; }
  .site-header .wordmark { flex: 1 1 auto; font-size: 19px; order: 0; }
  .site-header nav { display: contents; }
  .site-header nav a { order: 3; font-size: 14px; }
  .site-header nav a.nav-cta { order: 1; font-size: 14px; padding: 8px 12px; }
  .site-header::after { content: ""; flex: 1 1 100%; order: 2; height: 0; margin-top: -12px; }
  .hero { margin-top: -104px; padding-top: 136px; }
  .document-shell { margin-top: -104px; padding-top: 136px; }
}
@media (max-width: 560px) {
  .hero { padding: 136px 16px 64px; }
  .hero h1 { font-size: 44px; }
  .lede, .section-lede { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .install-for span { flex: 1 1 100%; }
  .install-for a { min-height: 40px; }
  button.copy { min-height: 44px; }
  .copy-bar { min-height: 57px; }
  .receipt-wrap { transform: rotate(0deg); }
  .section, .trust { padding: 60px 16px; }
  .ways { --pitch: 3px; --bar: 2px; }
  .ways tbody tr { grid-template-columns: 1fr; gap: 18px; }
  .ways tbody th { padding-bottom: 0; }
  .meter { margin-top: 10px; }
  .weight { margin-top: 52px; }
  .plot { height: 260px; }
  .document-shell { padding: 124px 16px 60px; }
  .step pre, .step-note { margin-left: 0; }
  .step::before { display: none; }
  .step h3 { padding-left: 46px; }
  .keeps .label-list div { grid-template-columns: 1fr; gap: 4px; }
  .plans, .trust .label-list { grid-template-columns: 1fr; }
  .tool-list div { grid-template-columns: 76px minmax(0, 1fr); }
  .amount { font-size: 52px; }
  .closing { padding: 56px 16px; }
  footer { padding: 26px 16px; }
  footer nav { margin-left: 0; }
  .owner-main form.inline-form, .owner-main form.memory-search, .owner-main form.quota-grid { grid-template-columns: 1fr; }
  .error-page { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .plan, .login-card, .owner-main, .setting-box { border: 1px solid CanvasText; }
  .receipt { border: 1px solid CanvasText; -webkit-mask: none; mask: none; }
}
