/* Maben Base website, second design. Its own stylesheet: nothing here comes from the Maben Awake one.
   The Maben look is kept: pure black, hairline borders, the system font with large tight headings, real
   interface built in HTML, and Base pink as the one accent. What changes is the layout: the page is a ruled
   sheet, like the app's data grid. Left-aligned type, a row per section with its name in the left column,
   and facts set as tables. Dark by default; the switch in the header turns it light, as View › Appearance
   does in the app.
   Kept out on purpose, because they mark a page as generated: all-caps tracked labels, monospace for anything
   that is not code or data, numbers on things that are not a sequence, one highlighted word in a headline,
   arrows glued to links, a strip of big numbers, a ticker, and the same fade-in on every section. Labels are
   sentence case in the text face. Motion is one entrance when the page loads and responses to what the
   visitor does; it sits under html.motion, which the <head> only sets when motion is wanted. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --pink: #ff5ca8;
  --pink-hi: #ff7dba;
  --pink-ink: #ff5ca8;          /* pink as text or a thin line */
  --pink-wash: #ff5ca824;       /* an edited cell */
  --bg: #000;
  --panel: #0e0e0f;             /* the app's sidebar surface */
  --ink: #f5f5f5;
  --ink-2: #a3a3a3;
  --ink-3: #8a8a8a;
  --rule: #ffffff14;            /* hairline, the Maben one */
  --line: #ffffff2e;            /* the line between rows */
  --font: -apple-system, BlinkMacSystemFont, "Inter Variable", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1280px;
  --pad: 32px;
  --gutter: 240px;              /* the row-number column */
  --nav-h: 60px;
  /* Type: four text sizes (14, 17, 20, 24) and fluid display sizes; three weights (400, 600, 700). Small data in
     monospace is 13px, because monospace runs large. The app mock-ups keep the app's own sizes.
     Space: 4, 8, 12, 16, 24, 32, 48, 64, 96. Nothing in between. */
  --h2: clamp(36px, 4.5vw, 60px);
  --gone: clamp(38px, 6.6vw, 96px);
  /* Motion. Things that enter or leave ease out, colour changes use plain ease, and nothing in the interface
     runs longer than --ui. The page's one arrival is the only slow thing, and it is still under a second. */
  --out: cubic-bezier(.165, .84, .44, 1);
  --out-strong: cubic-bezier(.19, 1, .22, 1);
  --fast: .15s;
  --ui: .2s;
  --arrive: .65s;
}
:root[data-theme="light"] {
  color-scheme: light;
  --pink-ink: #d81b72;
  --pink-wash: #ffe6f1;
  --bg: #fff;
  --panel: #f6f6f8;
  --ink: #111113;               /* the app's text colour in its light appearance */
  --ink-2: #45454d;
  --ink-3: #6a6a73;
  --rule: #1111131a;
  --line: #1111133d;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--font); letter-spacing: -.006em; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body > main { flex: 1 0 auto; width: 100%; }
p, h1, h2, h3, h4, figure, dl, dd, ul, ol { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, kbd { font-family: var(--mono); }
code { font-size: .88em; padding: .1em .36em; border: 1px solid var(--rule); border-radius: 5px; background: var(--panel); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--pink); color: #000; }
.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* The sheet's two outer lines run down the whole page once the window is wider than the sheet */
@media (min-width: 1346px) {
  .ruled { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
}

/* ───── Header ───── */
/* The same glass as every other Maben site: 4% of the ground colour over a 3px blur, and a hairline once the page scrolls. */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 4%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-bottom: 1px solid transparent; transition: border-color var(--ui); }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.lockup { display: inline-flex; align-items: center; gap: .3em; font-size: 19px; line-height: 1; color: var(--ink); text-decoration: none; }
.lockup > svg:first-child { height: .74em; width: auto; aspect-ratio: 68 / 58; }
.lockup .wm { height: .98em; width: auto; display: block; }
.lockup .wm .wm-p { fill: var(--ink-3); }
.nav-links { display: flex; gap: 24px; margin-left: 16px; font: 400 14px/1 var(--font); }
.nav-links a { position: relative; padding: 8px 0; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform var(--ui) var(--out); }
.nav-links a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) { .nav-links a:hover { color: var(--ink); } }
.nav-links a[aria-current="page"]::after { transform: none; }
@media (hover: hover) { .nav-links a:hover::after { transform: none; } }
.nav-end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-ic { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink-2); transition: background-color .15s, color .15s; }
@media (hover: hover) { .nav-ic:hover { background: var(--rule); color: var(--ink); } }
.nav-ic svg { width: 17px; height: 17px; }
.theme .to-dark, [data-theme="light"] .theme .to-light { display: none; }
[data-theme="light"] .theme .to-dark { display: block; }
.nav-end .btn { margin-left: 12px; }

/* ───── Buttons: square, as cells are ───── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 8px;
  border: 1px solid transparent; font: 600 17px/1 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast), transform var(--fast) var(--out);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; margin-top: -2px; flex: none; }
.btn-pink { background: var(--pink); color: #000; }
@media (hover: hover) { .btn-pink:hover { background: var(--pink-hi); } }
.btn-ink { background: #000; color: #fff; }
@media (hover: hover) { .btn-ink:hover { background: #2a2a2e; } }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
/* One filled button in view at a time. The header's Download is quiet while the page's own main action is on
   screen, and takes the pink once that has scrolled away (app.js sets .solo). */
.nav-dl { border-color: var(--line); color: var(--ink); }
@media (hover: hover) { .nav-dl:hover { border-color: var(--ink); } }
.nav.solo .nav-dl { background: var(--pink); border-color: transparent; color: #000; }
@media (hover: hover) { .nav.solo .nav-dl:hover { background: var(--pink-hi); } }
/* Anything that only goes somewhere is a link, not a button: underlined in the accent, no box. */
.textlink { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color var(--fast); }
@media (hover: hover) { .textlink:hover { color: var(--pink-ink); } }
.cta .textlink { text-decoration-color: #000; }
@media (hover: hover) { .cta .textlink:hover { color: #000; text-decoration-thickness: 2.5px; } }

/* ───── Hero ───── */
.hero { position: relative; }
.hero > .wrap { position: relative; z-index: 1; padding-top: 32px; padding-bottom: 96px; }
/* The cells the pointer passes over light up and fade, as if the page were a sheet under the cursor */
.trail { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.trail i { position: absolute; width: var(--cell); height: var(--cell); background: var(--pink-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink) 42%, transparent); animation: cell 1.1s ease-out forwards; }
@keyframes cell { to { opacity: 0; } }
.hero h1 { margin: 48px 0 48px -.045em; font: 700 clamp(46px, 9.4vw, 132px)/.94 var(--font); letter-spacing: -.05em; }
.hero h1 .l { display: block; overflow: hidden; padding: .04em .1em .14em .05em; margin: -.04em -.1em -.14em -.05em; }
.hero h1 .l > span { display: block; }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-sub { padding: 32px 48px 32px 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.hero-sub b { font-weight: 400; color: var(--ink); }
.hero-actions { display: grid; align-content: stretch; border-left: 1px solid var(--line); }
/* The two actions are cells of the row: the label on the left, the arrow on the right */
.cellbtn { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px; font: 600 20px/1 var(--font); letter-spacing: -.015em; text-decoration: none; transition: background-color .2s, color .2s; }
.cellbtn svg { width: 19px; height: 19px; margin-top: -2px; flex: none; }
.cellbtn.go { background: var(--pink); color: #000; }
@media (hover: hover) { .cellbtn.go:hover { background: var(--pink-hi); } }
.cellbtn.alt { border-top: 1px solid var(--line); color: var(--ink); }
@media (hover: hover) { .cellbtn.alt:hover { background: var(--rule); } }
.cellbtn:active { filter: brightness(.9); }
.hero-note { padding: 12px 24px; border-top: 1px solid var(--line); font: 14px/1.4 var(--font); color: var(--ink-2); }

.hero-stage { position: relative; z-index: 1; margin-top: 64px; }
.try { margin-bottom: 16px; max-width: 31em; color: var(--ink-2); font-size: 14px; line-height: 1.5; }



/* ───── Rows: each section has its number in the left column, as a sheet does ───── */
.row { position: relative; }
.row::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left; }
/* The row's name sits on the baseline of the first line beside it: --first is that line's baseline, from its size. */
.row { --first: calc(.865 * var(--h2)); }
#free { --first: calc(.846 * var(--gone)); }
.row-in { position: relative; display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); }
.row-head { border-right: 1px solid var(--rule); padding: calc(96px + var(--first) - 17px) 24px 32px 0; }
.row-tag { position: sticky; top: calc(var(--nav-h) + 26px); }
.row-tag .nm { display: block; font: 600 17px/1.3 var(--font); letter-spacing: -.01em; color: var(--ink-3); transition: color .3s; }
.row.active .row-tag .nm { color: var(--ink); }
.row-body { padding: 96px 0 96px 64px; min-width: 0; }
h2 { font: 700 var(--h2)/1.02 var(--font); letter-spacing: -.045em; max-width: 15em; text-wrap: balance; }
.lead { margin-top: 24px; max-width: 30em; font-size: 20px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
h3 { font: 600 24px/1.2 var(--font); letter-spacing: -.025em; }
.note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* Ticks */
.ticks { display: grid; gap: 12px; margin-top: 32px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.ticks svg { width: 20px; height: 20px; color: var(--pink-ink); stroke-width: 2.4; margin-top: 3px; }

/* ───── Data grids on the page (the engines) ───── */
.dg-tools { display: flex; align-items: center; gap: 12px; margin-top: 48px; border: 1px solid var(--line); border-bottom: 0; padding: 0 16px; height: 48px; background: var(--bg); transition: border-color .2s; }
.dg-tools:focus-within { border-color: var(--pink); }
.dg-tools svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.dg-tools input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 17px/1 var(--font); }
.dg-tools input::placeholder { color: var(--ink-3); }
.dg-tools input::-webkit-search-cancel-button { filter: grayscale(1); }
.dg-tools output { font: 14px/1 var(--font); color: var(--ink-3); white-space: nowrap; }
.dg-scroll { border: 1px solid var(--line); overflow-x: auto; }
.dg { width: 100%; border-collapse: collapse; font: 14px/1.45 var(--font); }
.dg th { padding: 12px 16px; text-align: left; font: 600 14px/1 var(--font); color: var(--ink-2); background: var(--panel); border-bottom: 1px solid var(--line); border-left: 1px solid var(--rule); white-space: nowrap; }
.dg td { padding: 12px 16px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); vertical-align: middle; transition: background-color .15s; }
.dg th:first-child, .dg td:first-child { border-left: 0; }
.dg tbody tr:first-child td { border-top: 0; }
@media (hover: hover) { .dg tbody tr:hover td { background: var(--panel); } }
.dg .nm { font: 600 17px/1.3 var(--font); letter-spacing: -.015em; white-space: nowrap; color: var(--ink); }
.dg .via, .dg .url { color: var(--ink-2); }
.dg .url { white-space: nowrap; }
.dg td.url { font: 13px/1.4 var(--mono); }
.dg .st { white-space: nowrap; }
.dg .st.edit { background: var(--pink-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink) 50%, transparent); color: var(--ink); font-weight: 600; }
@media (hover: hover) { .dg tbody tr:hover .st.edit { background: var(--pink-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink) 50%, transparent); color: var(--ink); font-weight: 600; } }
.dg .st.view { color: var(--ink-3); }
.dg .st small { font-weight: 400; color: var(--ink-2); font-size: 14px; }
.dg-empty td { padding: 24px 16px; color: var(--ink-3); text-align: center; }
.dg-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font: 14px/1.45 var(--font); color: var(--ink-3); }
.dg-key i { display: inline-block; width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px; background: var(--pink-wash); box-shadow: inset 0 0 0 1px var(--pink); }

/* Two columns inside a row body */
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.pair.wide-left { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.sub { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--rule); }
.pair p { margin-top: 16px; color: var(--ink-2); max-width: 32em; }
.pair h2 + p { margin-top: 24px; }

/* Sample chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips button { padding: 8px 12px; border: 1px solid var(--line); font: 13px/1.2 var(--mono); color: var(--ink-2); transition: border-color .15s, color .15s, background-color .15s, transform var(--fast) var(--out); }
@media (hover: hover) { .chips button:hover { border-color: var(--ink); color: var(--ink); } }
.chips button:active { transform: scale(.97); }
.chips button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #000; }

/* ───── The app, built in HTML. One set of colours for every mock, dark and light as in the app ───── */
.app {
  --a-bg: #09090a; --a-side: #0e0e0f; --a-bar: #0b0b0d; --a-text: #f5f5f5; --a-muted: #b3b3b3; --a-dim: #8c8c8c;
  --a-line: #ffffff13; --a-grid: #ffffff0f; --a-strong: #ffffff24; --a-accent: #ff5ca8; --a-ink: #ff5ca8;
  --a-red: #ff6b66; --a-green: #30d158; --a-orange: #ff9f33; --a-purple: #b79cff; --a-wash: #ffffff0d; --a-sel: #ffffff17;
  --a-chg: #ff5ca82e; --a-chg-line: #ff5ca8; --a-del: #ff6b661f; --a-new: #30d1581f;
  color: var(--a-text); font: 13px/1.35 var(--font); letter-spacing: 0; text-align: left;
}
[data-theme="light"] .app {
  --a-bg: #fff; --a-side: #f6f6f8; --a-bar: #fafafb; --a-text: #111113; --a-muted: #45454d; --a-dim: #6a6a73;
  --a-line: #00000017; --a-grid: #00000012; --a-strong: #00000029; --a-ink: #d81b72;
  --a-red: #c9202c; --a-green: #0e7a4a; --a-orange: #8f5a00; --a-purple: #6b3fd1; --a-wash: #0000000b; --a-sel: #00000012;
  --a-chg: #ff5ca826; --a-del: #c9202c14; --a-new: #0e7a4a17;
}
.app svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app button { color: inherit; }
.app kbd { font: 500 11px/1 var(--font); opacity: .7; }
.tag { padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, currentColor 14%, transparent); }
.tag.development { color: var(--a-green); }
.tag.production { color: var(--a-red); }

/* The window */
.win { border: 1px solid var(--a-strong); border-radius: 13px; background: var(--a-bg); box-shadow: 0 0 0 6px #ffffff06, 0 50px 90px -40px #000; overflow: hidden; }
[data-theme="light"] .win { border-color: #00000038; box-shadow: 0 34px 70px -34px #00000073; }
.win-top { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--a-line); background: var(--a-side); white-space: nowrap; }
.lights { display: flex; gap: 7px; margin-right: 16px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--a-strong); }
.win-top > svg { width: 15px; height: 15px; color: var(--a-muted); margin-right: 8px; flex: none; }
.win-top .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a-green); flex: none; }
.win-top b { font-weight: 600; font-size: 13.5px; }
.win-top .meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--a-dim); }
.win-top .tools { display: flex; gap: 16px; margin-left: auto; color: var(--a-muted); }
.win-top .tools svg { width: 15px; height: 15px; }
.win-body { display: grid; grid-template-columns: 198px minmax(0, 1fr) 236px; grid-template-rows: minmax(0, 1fr); height: 470px; }
.win-side { padding: 12px 10px; border-right: 1px solid var(--a-line); background: var(--a-side); overflow: hidden; }
.seg { display: flex; padding: 2px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-wash); font-size: 12px; font-weight: 500; color: var(--a-muted); }
.seg span { flex: 1; padding: 4px 0; border-radius: 6px; text-align: center; }
.seg span.on { background: var(--a-text); color: var(--a-bg); font-weight: 600; }
.seg.sm { flex: none; width: 132px; }
.win-search { display: flex; align-items: center; gap: 7px; height: 28px; margin: 10px 0 12px; padding: 0 9px; border: 1px solid var(--a-line); border-radius: 7px; color: var(--a-dim); font-size: 12px; background: var(--a-bg); }
.win-search svg { width: 12px; height: 12px; }
.sh { display: flex; align-items: center; gap: 5px; padding: 6px 4px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: var(--a-dim); }
.sh svg { width: 10px; height: 10px; stroke-width: 2.4; }
.sh i { font-style: normal; font-weight: 500; }
.win-side ul { margin: 0 0 6px; }
.win-side li button { display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; padding: 0 8px; border-radius: 7px; color: var(--a-muted); font-size: 13px; text-align: left; transition: background-color .12s; }
@media (hover: hover) { .win-side li button:hover { background: var(--a-wash); } }
.win-side li svg { width: 14px; height: 14px; color: var(--a-dim); flex: none; }
.win-side li.on button { background: var(--a-sel); color: var(--a-text); }
.win-side li.on svg { color: var(--a-ink); }
.win-side li em { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--a-accent); }
.win-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--a-bg); }
.tabs { display: flex; align-items: stretch; height: 36px; flex: none; border-bottom: 1px solid var(--a-line); background: var(--a-bar); overflow: hidden; }
.tabs .tab { display: flex; align-items: center; gap: 7px; padding: 0 8px 0 14px; border-right: 1px solid var(--a-line); color: var(--a-dim); font-weight: 500; white-space: nowrap; }
.tabs .tab > button:first-child { display: flex; align-items: center; gap: 7px; height: 100%; }
.tabs .tab.on { color: var(--a-text); box-shadow: inset 0 2px 0 var(--a-accent); background: var(--a-bg); }
.tabs .tab svg { width: 13px; height: 13px; }
.tabs .tab.on svg { color: var(--a-ink); }
.tabs .tab .x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: var(--a-dim); font-size: 14px; line-height: 1; }
@media (hover: hover) { .tabs .tab .x:hover { background: var(--a-sel); color: var(--a-text); } }
.tabs .tab:only-of-type { padding-right: 14px; }
.tabs .plus { display: grid; place-items: center; width: 36px; margin-left: auto; color: var(--a-dim); }
.tabs .plus svg { width: 14px; height: 14px; }
.gridwrap { flex: 1; min-height: 0; overflow: auto; outline: none; overscroll-behavior: contain; }
.gridwrap:focus-visible { box-shadow: inset 0 0 0 1px var(--a-ink); border-radius: 0; }
.grid { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font: 12.5px/1 var(--mono); }
.grid th { position: sticky; top: 0; z-index: 2; height: 34px; padding: 0 10px; text-align: left; font: 600 12px/1 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--a-bg); border-bottom: 1px solid var(--a-line); border-right: 1px solid var(--a-line); }
.grid th i { font-style: normal; font-weight: 400; color: var(--a-dim); margin-left: 4px; }
.grid th em { font-style: normal; color: var(--a-ink); }
.grid td { position: relative; height: 31px; padding: 0 10px; border-bottom: 1px solid var(--a-grid); border-right: 1px solid var(--a-grid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; user-select: none; -webkit-user-select: none; }
.grid td.null { color: var(--a-dim); opacity: .7; }
.grid td .go { float: right; margin: -3px -5px -3px 4px; padding: 3px 5px; border-radius: 5px; color: var(--a-dim); font: 12px/1 var(--font); }
@media (hover: hover) { .grid td .go:hover { background: var(--a-sel); color: var(--a-ink); } }
.grid tr.cur td { background: var(--a-wash); }
.grid tr.cur td:first-child { box-shadow: inset 2px 0 0 var(--a-accent); }
.grid td.chg { background: var(--a-chg); box-shadow: inset 0 0 0 1px var(--a-chg-line); }
.grid tr.del td { background: var(--a-del); color: var(--a-red); text-decoration: line-through; }
.grid tr.new td { background: var(--a-new); }
.grid tr.new td.auto { color: var(--a-dim); }
.grid td.sel, .grid td.sel.chg { box-shadow: inset 0 0 0 2px var(--a-ink); }
.grid td.ed { padding: 0; overflow: visible; box-shadow: inset 0 0 0 2px var(--a-ink); background: var(--a-bg); }
.grid td.ed input, .grid td.ed select { width: 100%; height: 30px; padding: 0 10px; border: 0; outline: 0; background: none; color: var(--a-text); font: 12.5px/1 var(--mono); }
.grid td.ed select { color-scheme: inherit; }
.grid tr.flash td { animation: saved .9s ease-out; }
@keyframes saved { 0% { background: color-mix(in srgb, var(--a-green) 34%, transparent); } }
.grid td.pop { animation: staged .8s ease-out; }
@keyframes staged { 0% { background: var(--a-accent); color: #000; } }
.grid-note { position: sticky; left: 0; padding: 9px 12px; border-bottom: 1px solid var(--a-line); background: var(--a-bar); color: var(--a-muted); font-size: 12px; }
.grid-note b { font-weight: 600; color: var(--a-text); }
.sqlp { position: absolute; left: 0; right: 0; bottom: 46px; z-index: 4; max-height: 62%; display: flex; flex-direction: column; border-top: 1px solid var(--a-strong); background: var(--a-bar); box-shadow: 0 -18px 30px -18px #00000059; }
@keyframes sheet { from { transform: translateY(10px); opacity: 0; } }
.sqlp[hidden] { display: none; }
.sqlp-h { display: flex; align-items: center; gap: 8px; height: 32px; flex: none; padding: 0 12px; border-bottom: 1px solid var(--a-line); font-size: 12px; font-weight: 600; }
.sqlp-h span { color: var(--a-dim); font-weight: 400; }
.sqlp-h button { margin-left: auto; width: 20px; height: 20px; border-radius: 5px; color: var(--a-dim); font-size: 15px; line-height: 1; }
@media (hover: hover) { .sqlp-h button:hover { background: var(--a-sel); } }
.sqlp pre { margin: 0; padding: 10px 12px 12px; overflow: auto; font: 12px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
.sql .k { color: var(--a-ink); font-weight: 600; }
.sql .s { color: var(--a-green); }
.sql .n { color: var(--a-orange); }
.sql .p { color: var(--a-purple); }
.sql .c { color: var(--a-dim); }
.bar { display: flex; align-items: center; gap: 10px; height: 46px; flex: none; padding: 0 12px; border-top: 1px solid var(--a-line); background: var(--a-bar); color: var(--a-muted); white-space: nowrap; }
.bar .icb { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; }
@media (hover: hover) { .bar .icb:hover { background: var(--a-sel); color: var(--a-text); } }
.bar .icb svg { width: 15px; height: 15px; }
.bar .icb[disabled] { opacity: .35; pointer-events: none; }
.pend { display: flex; align-items: center; gap: 8px; margin-left: 6px; font-size: 12px; font-weight: 600; }
.pend [data-count] { color: var(--a-dim); margin-right: 2px; }
.pend.dirty [data-count] { color: var(--a-ink); }
.pend.done [data-count] { color: var(--a-green); }
.abtn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border: 1px solid var(--a-line); border-radius: 7px; background: var(--a-wash); font-size: 12px; font-weight: 600; white-space: nowrap; transition: background-color .12s, transform var(--fast) var(--out); }
@media (hover: hover) { .abtn:hover { background: var(--a-sel); } }
.abtn:active { transform: scale(.97); }
.abtn.go { background: var(--a-accent); border-color: transparent; color: #000; }
@media (hover: hover) { .abtn.go:hover { background: #ff7dba; } }
.abtn kbd { margin-left: 5px; }
.abtn[disabled] { opacity: .4; pointer-events: none; }
.bar .count { margin-left: auto; font-size: 12px; color: var(--a-dim); }
.win-insp { padding: 0 14px; border-left: 1px solid var(--a-line); background: var(--a-side); overflow: hidden; }
.insp-h { display: flex; align-items: center; height: 36px; margin: 0 -14px 6px; padding: 0 14px; border-bottom: 1px solid var(--a-line); font-weight: 600; }
.insp-h span { margin-left: 8px; font-weight: 400; color: var(--a-dim); font-size: 12px; }
.fld { padding: 7px 0; }
.fld-l { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; }
.fld-l b { font-weight: 600; }
.fld-l span { color: var(--a-dim); }
.fld-l button { margin-left: auto; font-weight: 600; color: var(--a-ink); font-size: 12px; }
@media (hover: hover) { .fld-l button:hover { text-decoration: underline; } }
.fld-l svg { width: 12px; height: 12px; color: var(--a-ink); }
.fld-v { display: flex; align-items: center; height: 30px; padding: 0 9px; border: 1px solid var(--a-line); border-radius: 7px; background: var(--a-wash); font: 12px/1 var(--mono); white-space: nowrap; overflow: hidden; }
.fld-v.chg { border-color: var(--a-chg-line); background: var(--a-chg); }
.fld-v.null { color: var(--a-dim); }
.insp-empty { padding: 18px 0; color: var(--a-dim); font-size: 12.5px; }

/* The connection form that fills itself in */
.card { border: 1px solid var(--line); background: var(--a-bg); }
.form-h { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--a-line); background: var(--a-side); font-weight: 600; font-size: 13.5px; }
.form-h svg { width: 15px; height: 15px; color: var(--a-ink); }
.form-url { display: flex; align-items: center; gap: 10px; margin: 16px 16px 4px; padding: 0 12px; height: 42px; border: 1px solid var(--a-strong); border-radius: 9px; background: var(--a-wash); transition: border-color .15s, box-shadow .15s; }
.form-url:focus-within { border-color: var(--a-ink); box-shadow: 0 0 0 3px var(--a-chg); }
.form-url svg { width: 15px; height: 15px; color: var(--a-dim); flex: none; }
.form-url input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--a-text); font: 13px/1 var(--mono); }
.form-hint { margin: 0 16px; font-size: 12px; color: var(--a-dim); min-height: 18px; }
.form-hint.bad { color: var(--a-red); }
.form-grid { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 9px 12px; align-items: center; padding: 12px 16px 18px; }
.form-grid label { font-size: 12.5px; color: var(--a-muted); text-align: right; }
.form-grid .v { display: flex; align-items: center; gap: 8px; min-width: 0; }
.form-grid .box { flex: 1; min-width: 0; display: block; height: 30px; padding: 0 10px; border: 1px solid var(--a-line); border-radius: 7px; background: var(--a-wash); font: 12.5px/28px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .8s ease, border-color .8s ease; }
.form-grid .box.port { flex: 0 0 76px; }
.form-grid .box.sans { font-family: var(--font); font-weight: 600; }
.form-grid .box.dim { color: var(--a-dim); }
.form-grid .box.hit { background: var(--a-chg); border-color: var(--a-chg-line); transition: none; }
.form-grid [hidden] { display: none; }
.form-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--a-line); background: var(--a-bar); }

/* Staged edits and the transaction they become */
.stage { border: 1px solid var(--line); background: var(--a-bg); }
.stage table { width: 100%; border-collapse: collapse; font: 13px/1 var(--mono); table-layout: fixed; }
.stage td { height: 38px; padding: 0 12px; border-bottom: 1px solid var(--a-line); border-left: 1px solid var(--a-grid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage td:first-child { border-left: 0; width: 40px; color: var(--a-dim); }
.stage td:nth-child(2) { width: 27%; }
.stage td:nth-child(4) { width: 15%; }
.stage td:last-child { width: 84px; font: 600 11.5px/1 var(--font); text-align: right; }
.stage .chg td:nth-child(3) { background: var(--a-chg); box-shadow: inset 0 0 0 1px var(--a-chg-line); }
.stage .chg td:last-child { color: var(--a-ink); }
.stage .del td { background: var(--a-del); color: var(--a-red); }
.stage .del td:not(:last-child) { text-decoration: line-through; }
.stage .new td { background: var(--a-new); }
.stage .new td:last-child { color: var(--a-green); }
.stage-mid { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-bottom: 1px solid var(--a-line); background: var(--a-bar); font-size: 12px; color: var(--a-muted); }
.stage-mid b { color: var(--a-ink); font-weight: 600; }
.stage-mid .abtn:first-of-type { margin-left: auto; }
.stage pre { margin: 0; padding: 18px 16px 20px; background: #050506; color: #f5f5f5; font: 13px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; }
.stage pre .ln { display: block; }
.stage pre .k { color: var(--pink); font-weight: 600; }
.stage pre .s { color: #7fe3a8; }
.stage pre .n { color: #ffd23f; }

/* Safe modes: pick one, see what it does */
.modes { display: grid; margin-top: 32px; border: 1px solid var(--line); }
.modes button { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; padding: 16px; border-top: 1px solid var(--rule); text-align: left; transition: background-color .2s; }
.modes button:first-child { border-top: 0; }
@media (hover: hover) { .modes button:hover { background: var(--panel); } }
.modes button i { grid-row: 1 / 3; width: 18px; height: 18px; margin-top: 3px; border: 1.5px solid var(--ink-3); border-radius: 50%; transition: border-color .2s; }
.modes button b { font: 600 17px/1.3 var(--font); letter-spacing: -.015em; }
.modes button span { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.modes button[aria-checked="true"] { background: var(--pink-wash); }
.modes button[aria-checked="true"] i { border-color: var(--pink); background: radial-gradient(circle, var(--pink) 0 4px, transparent 5px); }
.outcome { position: sticky; top: calc(var(--nav-h) + 26px); }
.oc { border: 1px solid var(--line); background: var(--a-side); overflow: hidden; }
.oc-top { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--a-line); background: var(--a-bar); white-space: nowrap; }
.oc-top .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a-red); flex: none; }
.oc-top b { font-weight: 600; font-size: 13.5px; }
.oc-top .mode { margin-left: auto; color: var(--a-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.oc-top .mode b { font-size: 12px; color: var(--a-text); }
.oc-sql { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--a-line); background: var(--a-bg); font: 12.5px/1.5 var(--mono); }
.oc-sql code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-stage { display: grid; place-items: center; min-height: 268px; padding: 26px 18px; background-image: linear-gradient(var(--a-grid) 1px, transparent 1px); background-size: 100% 31px; }
.dialog { width: min(100%, 330px); padding: 18px 18px 16px; border: 1px solid var(--a-strong); border-radius: 14px; background: var(--a-bar); box-shadow: 0 24px 50px -22px #000000a6; text-align: center; }
.dialog .dicon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 11px; background: var(--a-accent); color: #000; }
.dialog .dicon.mk svg { width: 26px; height: auto; fill: currentColor; stroke: none; }
.dialog .dicon.touch { background: none; color: var(--a-red); width: 48px; height: 48px; }
.dialog .dicon.touch svg { width: 44px; height: 44px; stroke-width: 1.5; }
.dialog h4 { font: 700 14px/1.3 var(--font); }
.dialog p { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--a-muted); }
.dialog pre { margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-wash); font: 11.5px/1.5 var(--mono); text-align: left; white-space: pre-wrap; word-break: break-word; }
.dialog .dbtns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 14px; }
.dialog .dbtns span { display: grid; place-items: center; height: 30px; border-radius: 8px; background: var(--a-sel); font-size: 13px; font-weight: 500; }
.dialog .dbtns span.go { background: var(--a-accent); color: #000; font-weight: 600; }
.ran { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--a-line); border-radius: 11px; background: var(--a-bar); font-size: 13px; font-weight: 600; }
.ran svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--a-green); color: var(--a-bg); stroke-width: 2.8; }
.ran span { font-weight: 400; color: var(--a-dim); }
.oc-say { padding: 13px 14px 14px; border-top: 1px solid var(--a-line); background: var(--a-bar); font-size: 13.5px; line-height: 1.45; color: var(--a-muted); }
[data-pane][hidden] { display: none; }

/* The query editor */
.ed { position: sticky; top: calc(var(--nav-h) + 26px); border: 1px solid var(--line); background: var(--a-bg); overflow: hidden; }
.ed-tabs { display: flex; height: 36px; border-bottom: 1px solid var(--a-line); background: var(--a-bar); }
.ed-tabs span { display: flex; align-items: center; gap: 7px; padding: 0 14px; border-right: 1px solid var(--a-line); font-weight: 500; box-shadow: inset 0 2px 0 var(--a-accent); background: var(--a-bg); }
.ed-tabs svg { width: 13px; height: 13px; color: var(--a-ink); }
.ed-tabs i { font-style: normal; color: var(--a-dim); margin-left: 4px; }
.ed-code { position: relative; padding: 14px 0 16px; }
.ed-code pre { margin: 0; font: 13px/1.75 var(--mono); }
.ed-code .ln { display: block; padding-right: 14px; white-space: pre; }
.ed-code .ln > i { display: inline-block; width: 40px; padding-right: 14px; text-align: right; font-style: normal; color: var(--a-dim); opacity: .7; user-select: none; }
.ed-code .caret { display: inline-block; width: 2px; height: 1.2em; margin: -.1em 0 -.25em 1px; background: var(--a-ink); }
.ed.live .caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ed-pop { position: absolute; left: 222px; top: 109px; width: 190px; padding: 4px; border: 1px solid var(--a-strong); border-radius: 9px; background: var(--a-bar); box-shadow: 0 18px 36px -16px #000000b3; font: 12.5px/1 var(--mono); }
.ed-pop li { display: flex; justify-content: space-between; padding: 7px 9px; border-radius: 6px; }
.ed-pop li.on { background: var(--a-accent); color: #000; }
.ed-pop li span { opacity: .6; }
.ed-bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-top: 1px solid var(--a-line); border-bottom: 1px solid var(--a-line); background: var(--a-bar); white-space: nowrap; }
.ed-bar .hint { color: var(--a-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ed-bar .acts { display: flex; gap: 8px; margin-left: auto; }
.ed-res { width: 100%; border-collapse: collapse; font: 12.5px/1 var(--mono); }
.ed-res th { height: 32px; padding: 0 12px; text-align: left; font: 600 12px/1 var(--font); border-bottom: 1px solid var(--a-line); border-right: 1px solid var(--a-line); }
.ed-res td { height: 30px; padding: 0 12px; border-bottom: 1px solid var(--a-grid); border-right: 1px solid var(--a-grid); }
.ed-foot { padding: 9px 12px; font-size: 12px; color: var(--a-dim); background: var(--a-bar); }

/* Keys */
.kc { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px; background: var(--panel); font: 600 14px/1 var(--font); color: var(--ink); }
.keylist { margin-top: 32px; border-top: 1px solid var(--line); }
.keylist li { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); line-height: 1.5; color: var(--ink-2); }
.keylist li span:first-child { display: flex; gap: 4px; }
.keylist b { font-weight: 600; color: var(--ink); }

/* Getting around: a sheet of keys, one per line */
.keys { margin-top: 48px; border-top: 1px solid var(--line); }
.keys > div { display: grid; grid-template-columns: 210px minmax(0, 14em) minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.keys .caps { display: flex; gap: 4px; }
.keys .kc { min-width: 38px; height: 38px; padding: 0 9px; border-radius: 9px; border-bottom-width: 4px; font-size: 17px; }
.keys h3 { font-size: 17px; letter-spacing: -.01em; }
.keys p {  color: var(--ink-2); }


/* Spec table */
.spec { margin-top: 48px; border-top: 1px solid var(--line); }
.spec > div { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font: 600 17px/1.5 var(--font); letter-spacing: -.01em; }
.spec dd { color: var(--ink-2); max-width: 30em; }
.spec dd b { color: var(--ink); font-weight: 600; }

/* What it leaves out */
.gone { display: flex; flex-wrap: wrap; gap: .12em .38em; font: 700 var(--gone)/.98 var(--font); letter-spacing: -.045em; color: var(--ink-2); }
.gone s { text-decoration: none; background: linear-gradient(var(--pink), var(--pink)) no-repeat 0 56% / 100% .07em; padding: 0 .05em; margin: 0 -.05em; }
.gone-foot { margin-top: 48px; max-width: 30em; font-size: 20px; line-height: 1.5; color: var(--ink-2); }

/* ───── Closing: the one block of Base pink, as on the app's icon ───── */
.cta { position: relative; background: var(--pink); color: #000; padding: 96px 0 0; }
.cta ::selection { background: #000; color: var(--pink); }
.cta :focus-visible { outline-color: #000; }
.cta h2 { max-width: none; margin-left: -.045em; font: 700 clamp(50px, 10.6vw, 150px)/.92 var(--font); letter-spacing: -.05em; text-wrap: initial; }
.cta h2 .l { display: block; overflow: hidden; padding: .04em .1em .14em .05em; margin: -.04em -.1em -.14em -.05em; }
.cta h2 .l > span { display: block; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 48px; }
.cta-row p { margin-left: 8px; max-width: 26em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid #000; counter-reset: s; }
.steps li { counter-increment: s; padding: 16px 16px 48px; border-left: 1px solid #00000038; line-height: 1.4; }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li::before { content: counter(s); display: block; margin-bottom: 24px; font: 700 24px/1 var(--font); letter-spacing: -.03em; }
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-top: 16px; padding-bottom: 16px; font: 14px/1 var(--font); color: var(--ink-3); }
.foot-l { display: inline-flex; align-items: center; gap: 12px; }
.foot-mark { display: inline-flex; color: var(--ink); }
.foot-mark svg { height: 15px; width: auto; aspect-ratio: 68 / 58; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-left: auto; }
.foot-nav a { padding: 8px 0; color: var(--ink-3); text-decoration: none; transition: color .15s; }
.foot-nav a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) { .foot-nav a:hover { color: var(--ink); } }

/* The steps that appear with a download */
.dl-steps { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: min(360px, calc(100vw - 48px)); border: 1px solid var(--line); background: var(--panel); color: var(--ink); box-shadow: 0 30px 60px -20px #000; font-size: 14px; line-height: 1.45; }
.dl-steps[hidden] { display: none; }
.dl-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--pink); color: #000; }
.dl-head b { font-weight: 700; }
.dl-spin { width: 14px; height: 14px; border: 2px solid #000; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.dl-x { margin-left: auto; font-size: 20px; line-height: 1; width: 24px; height: 24px; }
.dl-steps ol { padding: 16px 16px 8px 40px; list-style: decimal; color: var(--ink-2); }
.dl-steps ol li { padding: 4px 0; }
.dl-steps ol b { color: var(--ink); }
.dl-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 16px; }
.dl-foot a { font-size: 14px; color: var(--ink-2); }
.dl-ok { height: 32px; padding: 0 16px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; }

/* ───── Text pages ───── */
.title { padding: 96px var(--pad) 64px; }
.title h1 { margin: 0 0 0 -.045em; font: 700 clamp(50px, 9.4vw, 132px)/.94 var(--font); letter-spacing: -.055em; }
.title h1 .l { display: block; overflow: hidden; padding: .04em .1em .14em .05em; margin: -.04em -.1em -.14em -.05em; }
.title h1 .l > span { display: block; }
.title .lead { margin-top: 32px; max-width: 31em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.title .meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.title .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.title .actions .req { color: var(--ink-2); }
/* On text pages the index starts on the baseline of the first heading beside it. */
.doc .row-head { padding-top: calc(64px + .865 * clamp(30px, 3.2vw, 36px) - 12px); }
.toc { position: sticky; top: calc(var(--nav-h) + 26px); }
.toc p { font: 600 14px/1 var(--font); color: var(--ink-3); margin-bottom: 12px; }
.toc a { display: block; padding: 8px 0; line-height: 1.3; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.toc a.on { color: var(--ink); }
@media (hover: hover) { .toc a:hover { color: var(--ink); } }
.toc a.on { font-weight: 600; }
.doc-body { padding: 0 0 96px 64px; min-width: 0; }
.doc-body > section { padding: 48px 0; border-top: 1px solid var(--rule); }
.doc-body > section:first-child { border-top: 0; padding-top: 64px; }
.doc-body h2 { font-size: clamp(30px, 3.2vw, 36px); max-width: none; letter-spacing: -.04em; }
.doc-body h3 { margin-top: 32px; }
.doc-body p { margin-top: 16px; max-width: 32em; color: var(--ink-2); }
.doc-body a, .title .lead a, .cl li a, .gone-foot a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .15s; }
@media (hover: hover) { .doc-body a:hover, .title .lead a:hover, .cl li a:hover, .gone-foot a:hover { color: var(--pink-ink); } }
.req-list { margin-top: 24px; border-top: 1px solid var(--line); max-width: 44em; }
.req-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.req-list dt { font: 600 17px/1.5 var(--font); letter-spacing: -.01em; }
.req-list dd { color: var(--ink-2); }
.faq { margin-top: 24px; border-top: 1px solid var(--line); max-width: 44em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; font: 600 17px/1.4 var(--font); letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color .15s, padding .3s var(--out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); font: 400 18px/1 var(--mono); transition: background-color .15s, color .15s, border-color .15s; }
@media (hover: hover) { .faq summary:hover::after { background: var(--pink); color: #000; border-color: var(--pink); } }
.faq details[open] summary::after { content: "−"; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq details p { margin: 0 0 24px; max-width: 32em; }

/* Changelog: the version in the left column */
/* The version number shares a baseline with the first line of its notes (48px + that line's baseline - its own). */
.cl .row-head { padding-top: 39px; }
.cl .row-tag h2.no { display: block; margin: 0 0 8px; max-width: none; font: 700 36px/1 var(--font); letter-spacing: -.04em; }
.cl .row-body { padding: 48px 0 96px 64px; }
.cl .row-body > p { max-width: 30em; font-size: 20px; color: var(--ink-2); margin-bottom: 24px; }
.cl ul { border-top: 1px solid var(--line); max-width: 34em; }
.cl li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--rule); line-height: 1.5; color: var(--ink-2); transition: background-color .2s, color .2s; }
.cl li::before { content: "+"; position: absolute; left: 8px; top: 12px; font: 600 15px/1.6 var(--mono); color: var(--pink-ink); }
.cl li strong { color: var(--ink); }

/* 404 */
.lost { display: flex; align-items: center; min-height: calc(100vh - var(--nav-h) - 80px); }
.lost .title { width: 100%; }

/* ───── Motion. Only under html.motion; without it everything is simply there ───── */
/* The page arrives once: the headline's lines, then the rest, 70ms apart, all on one curve and one duration. */
@keyframes rise { from { transform: translateY(105%); } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
.motion h1 .l > span { animation: rise var(--arrive) var(--out-strong) both; }
.motion h1 .l:nth-child(2) > span { animation-delay: .07s; }
.motion [data-load] { animation: arrive var(--arrive) var(--out-strong) both; animation-delay: var(--d, 0s); }
/* Things that open come from where they belong: the SQL sheet and the download steps from the bottom edge. */
.motion .sqlp, .motion .dl-steps { animation: sheet var(--ui) var(--out); }
/* A tab that was not there before slides in from the sidebar side, so it is clear where it went. */
.motion .tabs .tab.new { animation: tabin .18s var(--out); }
@keyframes tabin { from { opacity: 0; transform: translateX(-8px); } }
.motion .gone s { background-size: 0 .07em; transition: background-size .5s var(--out); transition-delay: calc(var(--i) * .09s); }
.motion .gone.in s { background-size: 100% .07em; }
.motion [data-pane] .dialog, .motion [data-pane] .ran { animation: pop var(--ui) var(--out); }
/* Not when the mode was changed from the keyboard: that is quick, repeated, and should not wait for anything. */
.motion [data-pane].instant .dialog, .motion [data-pane].instant .ran { animation: none; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }
html.motion { scroll-behavior: smooth; }
/* An answer opens out of its question, where the browser can animate to an automatic height. */
@supports (interpolate-size: allow-keywords) {
  .motion .faq details { interpolate-size: allow-keywords; }
  .motion .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .22s var(--out), content-visibility .22s allow-discrete; }
  .motion .faq details[open]::details-content { block-size: auto; }
}
/* Changing the appearance changes every colour at once: nothing should fade while it does. */
.switching, .switching *, .switching *::before, .switching *::after { transition: none !important; }

/* ───── Smaller screens ───── */
@media (max-width: 1180px) {
  .win-body { grid-template-columns: 188px minmax(0, 1fr); }
  .win-insp { display: none; }
  :root { --gutter: 176px; }
  .row-body, .doc-body, .cl .row-body { padding-left: 48px; }
}
@media (max-width: 960px) {
  :root { --pad: 20px; }
  .nav-links { display: none; }
  .row-in { grid-template-columns: minmax(0, 1fr); }
  .row-head { border-right: 0; border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .row-tag { position: static; }
  .row-body { padding: 48px 0 64px; }
  .doc-body, .cl .row-body { padding-left: 0; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .toc p { display: none; }
  .pair, .pair.wide-left { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .outcome, .ed { position: static; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .hero-sub { padding-right: 0; }
  .hero-actions { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid #00000038; }
  .cta-row p { margin-left: 0; flex-basis: 100%; }
  .dg .via { display: none; }
}
@media (max-width: 700px) {
  .win-body { grid-template-columns: minmax(0, 1fr); height: 430px; }
  .win-side, .win-top .meta, .win-top .tools, .bar .seg, .bar .count, .abtn.go kbd, [data-discard] { display: none; }
  .hero h1 { margin: 32px 0 32px -.03em; }
  .hero-stage { margin-top: 48px; }
  .hero > .wrap { padding-bottom: 48px; }
  .spec > div, .req-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .keylist li, .keys > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dg .url, .dg .st small { display: none; }
  .ed-pop { left: 150px; }
  .nav-end .nav-gh { display: none; }
  /* Touch: every control is at least 44px tall, the links in running text aside. */
  .nav-ic { width: 44px; height: 44px; }
  .btn-sm { height: 44px; }
  .lockup { padding: 12px 0; }
  .chips button { padding: 14px 12px; }
  .foot-nav a, .toc a { padding: 15px 0; }
  .foot-mark { padding: 14px; margin: -14px; }
  .cta { padding-top: 64px; }
  .cta-row .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .steps li, .steps li:nth-child(3) { display: flex; gap: 16px; border-left: 0; border-top: 1px solid #00000038; padding: 16px 0; }
  .steps li:first-child { border-top: 0; }
  .steps li::before { margin: 4px 0 0; }
  .foot-nav { margin-left: 0; }
  .title { padding-bottom: 48px; }
}
/* Less motion: colour changes stay, because they are feedback; nothing moves or blinks. The arrival and
   the rest under .motion are already off, since the <head> does not set the class. */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .abtn:active, .chips button:active { transform: none; }
  .nav-links a::after { transition: none; }
  .ed.live .caret { animation: none; }
}
