/* www.tendspace.net. The home page is Monday's log: a log page, a product index under one night sky
   (each product a named star, coloured from its logo), the five handovers on a timeline, questions,
   the ask, and the family. Legal, support and 404 share its warm logbook palette; the account and
   billing pages keep their own (body.page-app). Fonts are served from here (OFL). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/site/fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --night: #060a14; --night-2: #0a1120; --night-3: #0f1830;
  --panel: rgba(148, 170, 255, .045); --panel-2: rgba(148, 170, 255, .08); --line: rgba(160, 180, 255, .12); --line-2: rgba(160, 180, 255, .22);
  --fg: #eaf0ff; --muted: #9ba8c8; --dim: #6f7c9c;
  --teal: #3fe0c5; --peri: #8f9cff; --amber: #f6c15b; --rose: #ff7a90;
  --a: var(--teal);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 0; /* square (brand bible §4.0) */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--fg); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -.025em; margin: 0; text-wrap: balance; font-weight: 700; }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--night); padding: 8px 14px; border-radius: 0; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--a); margin-bottom: 18px; }
.star-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 18%, transparent), 0 0 18px var(--a); }
.grad { background: linear-gradient(100deg, var(--teal) 0%, var(--peri) 45%, var(--amber) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { --bg: var(--panel-2); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 0; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: 600 15.5px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--a) 60%, transparent); }
.btn-primary { background: linear-gradient(135deg, color-mix(in srgb, var(--a) 92%, white), color-mix(in srgb, var(--a) 70%, #1e40af)); color: #04121a; border-color: transparent; box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--a) 70%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 40px -8px color-mix(in srgb, var(--a) 85%, transparent); }
.btn-ghost { background: transparent; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.link { color: var(--a); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── The logbook look (home, legal, support, 404): warm paper-dark, serif, pen notes ─────────── */
.page-home, .page-doc {
  --night: #151612; --night-2: #121310; --night-3: #1a1b16;
  --panel: rgba(240, 234, 220, .035); --panel-2: rgba(240, 234, 220, .07); --line: #33342d; --line-2: #4a4c42;
  --fg: #efeadc; --muted: #bab9ac; --dim: #88887c; --teal: #50FFD2; --peri: #A8A5FF; --amber: #FFDB54; --rose: #ff8f7a;
  --paper: #efeadc; --paper-ink: #2a2b23; --sub: #bab9ac; --rule: #33342d; --pen: #50FFD2;
  --serif: Georgia, "Times New Roman", serif; --ui: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace; --hand: "Bradley Hand", "Segoe Print", "Bradley Hand ITC", cursive;
  --edge: clamp(18px, 4.6vw, 80px);
  font-family: var(--ui);
}
.page-home .wrap, .page-doc .top .wrap, .page-doc .foot .wrap { width: min(calc(100% - 2 * var(--edge)), 1280px); }
.page-home h1, .page-home h2, .page-home h3 { font-family: inherit; font-weight: 400; line-height: inherit; letter-spacing: inherit; }
.page-doc .text { color: #dcd8ca; }
.page-doc h1, .page-doc .support-form h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.page-home :focus-visible, .page-doc :focus-visible { outline-color: var(--pen); border-radius: 0; }
.page-home .skip, .page-doc .skip { border-radius: 0; }
.gk { text-transform: none; letter-spacing: 0; }
.turn-mark { width: 24px; height: 23px; color: var(--fg); flex: none; }
.sym { display: block; }
.lockup { color: var(--sym, var(--sym-d)); fill: var(--word, #171814); }
.lockup-sirius { --sym-d: #50FFD2; } .lockup-altair { --sym-d: #A8A5FF; } .lockup-polaris { --sym-d: #FFDB54; }
.lockup-procyon { --sym-d: #FF9768; } .lockup-carina { --sym-d: #CA9BFF; } .lockup-spica { --sym-d: #75CFFF; }
.btn-square { --bg: var(--pen); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 0; background: var(--pen); color: #141510; font: 650 14.5px/1 var(--ui); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 0 0 0 var(--pen); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn-square:hover { transform: translateY(-1px); box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--pen) 35%, transparent); }
.btn-square span[aria-hidden] { transition: transform .25s var(--ease); }
.btn-square:hover span[aria-hidden] { transform: translateX(3px); }

/* Header: fixed on every page */
.top { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.top.scrolled, .page-doc .top { background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 26px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 19px/1 var(--ui); letter-spacing: -.045em; text-decoration: none; color: var(--fg); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a, .top-signin { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:hover, .top-signin:hover { color: var(--fg); }
/* Products: the link goes to the index; the dropdown (hover, focus or the arrow) to each product */
.nav-drop { position: relative; display: flex; align-items: center; gap: 2px; }
.drop-btn { display: grid; place-items: center; width: 22px; height: 28px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.drop-btn svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .25s var(--ease); }
.nav-drop:hover .drop-btn, .nav-drop.open .drop-btn { color: var(--fg); }
.nav-drop:hover .drop-btn svg, .nav-drop.open .drop-btn svg { transform: rotate(180deg); }
.drop { position: absolute; top: 100%; left: -16px; z-index: 60; width: 340px; margin-top: 14px; display: grid; background: #171814; border: 1px solid #3d3f37; box-shadow: 0 24px 50px -24px #000; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
.drop::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; border: solid var(--pen); border-width: 2px 0 0 2px; }
.drop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
.nav-drop:hover .drop, .nav-drop.open .drop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease), visibility 0s; }
.nav .drop a { display: grid; grid-template-columns: 22px auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #2d2f28; color: var(--fg); transition: background .2s, color .2s; }
.nav .drop a:last-child { border-bottom: 0; }
.drop-sym { width: 22px; height: 22px; color: var(--c); }
.drop-name { font: 650 15px/1 var(--ui); letter-spacing: -.03em; }
.drop-job { font: 400 9.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sub); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .drop a:hover, .nav .drop a:focus-visible { background: var(--c); color: #141510; outline: none; }
.nav .drop a:hover .drop-sym, .nav .drop a:focus-visible .drop-sym { color: #141510; }
.nav .drop a:hover .drop-job, .nav .drop a:focus-visible .drop-job { color: #141510; }
.top-signin { padding-left: 22px; border-left: 1px solid var(--line-2); }
.menu { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 0; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 0; position: relative; }
.menu span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--fg); transition: transform .25s; }
.menu span:first-child { top: 16px; } .menu span:last-child { top: 24px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { display: grid; padding: 6px var(--edge) 20px; background: var(--night); border-bottom: 1px solid var(--line); max-height: calc(100svh - 68px); overflow-y: auto; }
.top:has(.menu[aria-expanded="true"]) { background: var(--night); border-color: var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.mobile-nav small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.mobile-nav .btn-square { margin-top: 14px; border-bottom: 0; }

/* Shared pieces of the logbook */
.kicker, .by, .e-n, .sheet-top, .sheet-rows dt, .spine-mark time, .lg-top, .lg-foot, .pilot b, .fam span, .stamp-chip, .acc-n, .acc-job, .read-code, .fq-n, .cf-k, .foot h3, .foot-base { font-family: var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--sub); }
.kicker::before { content: ""; width: 20px; height: 1.5px; background: var(--pen); transform: rotate(-10deg); }
.pen-link { display: inline-flex; gap: 14px; align-items: baseline; width: fit-content; padding-bottom: 4px; border-bottom: 1px solid #8f907f; text-decoration: none; font-weight: 620; font-size: 14.5px; color: var(--fg); }
.pen-link span { color: var(--c, var(--pen)); transition: transform .3s var(--ease); }
.pen-link:hover { color: var(--c, var(--pen)); border-color: var(--c, var(--pen)); } .pen-link:hover span { transform: translateX(3px); }
.hand { display: flex; align-items: center; gap: 8px; justify-content: flex-end; color: var(--c, var(--pen)); font: 400 clamp(17px, 1.35vw, 21px)/1.2 var(--hand); letter-spacing: -.02em; transform: rotate(-1.5deg); }
.pen { width: 34px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.page-home h2.title, .page-doc .support-form h2 { font: 400 clamp(32px, 3.4vw, 50px)/1.03 var(--serif); letter-spacing: -.045em; margin-top: 14px; max-width: 15ch; text-wrap: balance; }
.page-home .muted { color: var(--sub); font-size: clamp(15.5px, 1.1vw, 17px); max-width: 42ch; }
.page-home .muted a, .faq-list a, .fine a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--pen); text-underline-offset: 3px; }

/* Hero: the day's log page */
.page-home .hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6%; align-items: center; padding-block: 110px 90px; }
.page-home .hero h1 { font: 400 clamp(38px, 4.2vw, 60px)/1.02 var(--serif); letter-spacing: -.045em; margin: 22px 0; max-width: 14ch; text-wrap: balance; }
.page-home .hero h1 em { font-style: italic; color: var(--pen); }
.page-home .lede { color: var(--sub); font-size: clamp(16px, 1.2vw, 18.5px); line-height: 1.55; max-width: 40ch; }
.page-home .hero .pen-link { margin-top: 24px; }
.logpage { position: relative; transform: rotate(1.4deg); background: #e8e3d5; color: var(--paper-ink); border: 1px solid #f5f1e6; box-shadow: 3px 3px 0 #a19d91, 4px 4px 0 #2a2b22, 7px 7px 0 #c0bcaf, 8px 8px 0 #282923, 16px 26px 30px #05060566; }
.logpage::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 44px; border-right: 1px solid #c5857966; background: radial-gradient(circle at 22px 20%, #34352a 3.5px, transparent 4px), radial-gradient(circle at 22px 50%, #34352a 3.5px, transparent 4px), radial-gradient(circle at 22px 80%, #34352a 3.5px, transparent 4px); }
.lg-in { margin-left: 44px; padding: 22px 26px 18px; background: repeating-linear-gradient(to bottom, transparent 0 37px, rgba(80, 90, 68, .17) 37px 38px); background-position: 0 46px; }
.lg-top { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid #7c7c6e; }
.lg-list { list-style: none; margin: 0; padding: 0; }
.lg-list li { border-bottom: 1px dashed #b5b1a3; }
.lg-list a { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 52px; text-decoration: none; transition: background .2s; }
.lg-list a:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
.lg-list time { font: italic 500 19px/1 var(--serif); letter-spacing: -.04em; color: #2c392e; }
.lg-what { font: 400 clamp(15px, 1.15vw, 17px)/1.3 var(--serif); letter-spacing: -.01em; }
.lg-by { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #3d3e34; }
.lg-sym { width: 16px; height: 16px; color: color-mix(in srgb, var(--c) 55%, #1a1b16); }
.lg-foot { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; padding-top: 12px; color: #55564b; }
.hero-fig { margin: 0; }
.hero-fig .hand { margin-top: 22px; padding-right: 10px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); animation: wheel 1.8s var(--ease) infinite; }

/* One night sky, seen through the product index and the close: fixed to the screen, clipped by each section */
.index, .close-sky { position: relative; isolation: isolate; clip-path: inset(0); border-top: 1px solid var(--rule); }
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Product index: the constellation behind, the products as an accordion */
.index { background: radial-gradient(800px 460px at 78% 40%, rgba(110, 110, 210, .13), transparent 70%), var(--night-2); }
.index > .chart { position: absolute; z-index: 0; top: 9%; bottom: 24%; left: max(46%, calc(50% - 120px)); right: 5%; }
.index .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "head ." "acc read"; column-gap: clamp(36px, 6vw, 96px); row-gap: 26px; padding-block: clamp(60px, 7vw, 110px); align-items: start; position: relative; z-index: 1; pointer-events: none; }
.index .wrap > * { pointer-events: auto; }
.ix-head { grid-area: head; align-self: end; }
.ix-read { grid-area: read; align-self: end; }
.chart svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart line { stroke: rgba(225, 222, 200, .24); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; transition: stroke .3s, stroke-opacity .3s; }
.chart line.awake { stroke: var(--c); stroke-dasharray: none; stroke-opacity: .8; }
.star { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 60px; height: 60px; transform: translate(-50%, -50%); display: grid; place-items: center; text-decoration: none; border-radius: 50%; z-index: 1; }
.star[data-key="polaris"] { --x: 10%; --y: 26%; } .star[data-key="altair"] { --x: 36%; --y: 36%; } .star[data-key="procyon"] { --x: 88%; --y: 22%; }
.star[data-key="sirius"] { --x: 68%; --y: 60%; } .star[data-key="carina"] { --x: 46%; --y: 80%; } .star[data-key="spica"] { --x: 18%; --y: 84%; }
.halo { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 40%, transparent), color-mix(in srgb, var(--c) 10%, transparent) 55%, transparent); transition: transform .5s var(--ease), opacity .5s; opacity: .6; animation: breathe 5s ease-in-out infinite; pointer-events: none; }
.star:nth-child(2n) .halo { animation-delay: -1.7s; } .star:nth-child(3n) .halo { animation-delay: -3.1s; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .85; } }
.star-sym { position: relative; width: 36px; height: 36px; color: var(--c); filter: drop-shadow(0 0 9px color-mix(in srgb, var(--c) 70%, transparent)); transition: transform .4s var(--ease); }
.star-label { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center; font: 600 13.5px/1.1 var(--ui); letter-spacing: -.02em; color: var(--fg); text-shadow: 0 1px 8px var(--night); }
.star-label small { display: block; font: 400 9px/1 var(--mono); color: var(--sub); margin-top: 4px; letter-spacing: .08em; text-transform: uppercase; }
.star.lit .halo { transform: scale(1.5); opacity: 1; } .star.lit .star-sym { transform: scale(1.18); } .star.lit .star-label { color: var(--c); }
.star-soon { opacity: .5; } .star-soon .star-sym { width: 22px; height: 22px; } .star-soon .halo { opacity: .3; animation: none; }
.readout { padding-top: 14px; border-top: 1px solid var(--rule); min-height: 84px; }
.read-code { display: flex; gap: 14px; font-size: 10.5px; font-weight: 500; color: var(--c); transition: color .4s; }
.read-code b { font-weight: 500; color: var(--sub); text-transform: none; letter-spacing: .04em; }
.read-q { font: 400 clamp(18px, 1.5vw, 22px)/1.25 var(--serif); letter-spacing: -.02em; margin-top: 8px; transition: opacity .35s, transform .35s var(--ease); }
.read-q.swap { opacity: 0; transform: translateY(5px); }
/* The accordion is a fixed box: its height never changes. Every card has a header row; the lit card
   grows into the room the others leave, and with none lit the cards share it evenly. Cards are
   record sheets (dark, square, a corner tick in the product colour), like the artwork and the form. */
.acc { --n: 5; --row: 54px; --gap: 8px; grid-area: acc; display: flex; flex-direction: column; gap: var(--gap); list-style: none; margin: 0; padding: 0; width: 100%;
  height: calc(var(--n) * var(--row) + (var(--n) - 1) * var(--gap) + var(--open-h, 172px)); }
.acc li { --word: var(--paper); position: relative; flex: 1 1 var(--row); min-height: var(--row); display: flex; flex-direction: column; background: #171814; border: 1px solid #3d3f37; color: var(--paper); transition: flex-grow .6s var(--ease), border-color .4s; }
.acc:has(li.lit) li { flex-grow: 0; }
.acc:has(li.lit) li.lit { flex-grow: 1; }
.acc li::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; border: solid var(--c); border-width: 2px 0 0 2px; pointer-events: none; }
.acc li:hover, .acc li.on, .acc li.lit { border-color: color-mix(in srgb, var(--c) 45%, #3d3f37); }
.acc-top { flex: none; display: grid; grid-template-columns: 92px minmax(0, auto) minmax(0, 1fr); gap: 14px; align-items: center; min-height: calc(var(--row) - 2px); padding: 0 16px; width: 100%; border: 0; border-bottom: 1px solid transparent; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.acc li.lit .acc-top { border-bottom-color: #3d3f37; }
/* The card the sky is on (and the one under the pointer) wears its colour on the header */
.acc-top { transition: background .35s, color .35s, border-color .4s; }
.acc li.on .acc-top, .acc li.lit .acc-top { background: var(--c); color: #141510; border-bottom-color: var(--c); }
.acc li.on .acc-n, .acc li.on .acc-job, .acc li.lit .acc-n, .acc li.lit .acc-job { color: #141510; }
.acc-n, .acc-job { transition: color .35s; }
.acc-n, .acc-job { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--c); }
.acc-job { color: var(--sub); }
.acc-name { font: 650 19px/1 var(--ui); letter-spacing: -.045em; transition: opacity .3s; }
.acc li.lit .acc-name { opacity: 0; }
.acc-job { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-body { flex: 1; display: block; min-height: 0; overflow: hidden; background: radial-gradient(circle, #8c8f8030 .7px, transparent .9px) 0 0 / 16px 16px; }
.acc-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: end; align-items: end; gap: 6px 18px; min-height: calc(var(--open-h, 172px) - 2px); padding: 0 16px 14px; }
.acc-logo { grid-column: 1 / -1; width: 170px; height: auto; aspect-ratio: 3 / 1; margin-top: 4px; }
.acc-q { font: 400 clamp(20px, 1.6vw, 24px)/1.12 var(--serif); letter-spacing: -.035em; max-width: 18ch; }
.acc-actions { display: grid; justify-items: start; gap: 6px; font-size: 14px; font-weight: 620; color: var(--c); }
.acc-explore { border: 1px solid currentColor; padding: 6px 12px; text-decoration: none; }
.acc-explore:hover { background: var(--c); color: #141510; border-color: var(--c); }
.js .acc li:not(.lit) .acc-in { visibility: hidden; }
html:not(.js) .acc { height: auto; }

/* Monday's log: entries hung off a spine that fills as you read */
.log { position: relative; border-top: 1px solid var(--rule); }
.spine { position: absolute; top: 0; bottom: 0; left: calc((100% - min(100% - 2 * var(--edge), 1280px)) / 2 + 74px); width: 1px; background: var(--rule); }
.spine i { position: absolute; left: -1px; top: 0; width: 3px; height: var(--fill, 0%); background: linear-gradient(#50FFD2, #A8A5FF, #FFDB54, #FF9768, #CA9BFF); border-radius: 3px; transition: height .15s linear; }
.entry { display: grid; grid-template-columns: 150px minmax(0, 1fr); padding-block: clamp(54px, 6vw, 96px); border-bottom: 1px solid var(--rule); width: min(calc(100% - 2 * var(--edge)), 1280px); margin-inline: auto; scroll-margin-top: 68px; }
.spine-mark { position: relative; }
.spine-mark > * { position: sticky; top: 90px; }
.spine-mark time { display: block; width: 60px; text-align: right; font-size: 12px; color: var(--c); padding-top: 6px; }
.spine-mark i { position: absolute; left: 68px; top: 38px; width: 13px; height: 13px; border-radius: 50%; background: var(--night); border: 2px solid var(--c); box-shadow: 0 0 0 5px var(--night); }
.entry.on .spine-mark i { background: var(--c); box-shadow: 0 0 0 5px var(--night), 0 0 16px var(--c); }
.e-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.e-sym { width: 26px; height: 26px; color: var(--c); }
.e-head h2 { font: 640 clamp(22px, 1.9vw, 28px)/1 var(--ui); letter-spacing: -.04em; }
.e-job { color: var(--sub); font-size: 14px; }
.e-n { margin-left: auto; font-size: 10.5px; color: var(--dim); }
.e-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(26px, 4vw, 64px); align-items: start; margin-top: 30px; }
.by { font-size: 10.5px; color: var(--sub); display: flex; align-items: center; gap: 10px; }
.by::before { content: ""; width: 16px; height: 1px; background: currentColor; }
.by-a { color: var(--c); margin-top: 22px; }
.ask, .ans { font: 400 clamp(22px, 1.9vw, 30px)/1.15 var(--serif); letter-spacing: -.035em; margin: 7px 0 0; max-width: 22ch; text-wrap: pretty; }
.ans { font-style: italic; color: #f6f1de; }
.story { margin: 24px 0 20px; color: var(--sub); font-size: clamp(15.5px, 1.05vw, 17px); max-width: 48ch; }
.pilot { margin: -4px 0 20px; padding: 12px 14px; border-left: 2px solid var(--c); background: color-mix(in srgb, var(--c) 6%, transparent); font-size: 13.5px; line-height: 1.5; color: var(--sub); max-width: 52ch; }
.pilot b { display: block; color: var(--c); font-size: 10px; font-weight: 500; margin-bottom: 5px; }
.e-fig { margin: 0; }
.e-fig .hand { margin-top: 14px; }

/* The record sheet: the container the artwork, and the contact form, sit in */
.sheet { --fg: var(--paper); --mut: #b4b6a8; --line: #5b5e53; --card: #1d1f1a; --bg: #171814; --on-c: #141510; --alert: #ff8f7a; --art-font: var(--ui); --display-font: var(--ui);
  border: 1px solid #3d3f37; background: #171814; position: relative; color: var(--paper); }
.sheet::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; border: solid var(--c, var(--pen)); border-width: 2px 0 0 2px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; font-size: 10px; color: var(--c, var(--pen)); border-bottom: 1px solid #3d3f37; }
.stamp-chip { border: 1.5px solid var(--c, var(--pen)); padding: 4px 8px; border-radius: 0; transform: rotate(-3deg); font-weight: 600; white-space: nowrap; }
.sheet-art { padding: clamp(12px, 1.8vw, 24px); background: radial-gradient(circle, #8c8f8030 .7px, transparent .9px) 0 0 / 16px 16px; }
.sheet-rows { border-top: 1px solid #3d3f37; display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.sheet-rows div { padding: 10px 14px; border-bottom: 1px solid #2d2f28; }
.sheet-rows div:nth-child(odd) { border-right: 1px solid #2d2f28; }
.sheet-rows div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.sheet-rows dt { font-size: 9.5px; color: var(--dim); }
.sheet-rows dd { font-size: 14px; margin: 2px 0 0; font-variant-numeric: tabular-nums; }

/* Questions */
.faq, .contact { border-top: 1px solid var(--rule); padding-block: clamp(64px, 7vw, 110px); }
.index, .faq, .contact, .log { scroll-margin-top: 68px; }
.faq h2.title, .contact h2.title { margin-bottom: 18px; }
.faq .wrap, .contact .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact h2.title { max-width: 17ch; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 10px; align-items: baseline; padding: 20px 0; font: 400 clamp(19px, 1.5vw, 23px)/1.2 var(--serif); letter-spacing: -.025em; transition: color .25s; }
.faq-list summary::-webkit-details-marker { display: none; }
.fq-n { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--dim); }
.faq-list summary::after { content: "+"; font: 300 24px/1 var(--ui); color: var(--pen); justify-self: end; transition: transform .35s var(--ease); }
.faq-list summary:hover { color: var(--pen); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] .fq-n { color: var(--pen); }
.faq-list details p { color: var(--sub); padding: 0 34px 22px 48px; max-width: 64ch; font-size: 15.5px; }

/* Talk to us: the P.S. is a pen note, the form is a record sheet */
.ps { margin-top: 30px; max-width: 30ch; color: var(--pen); font: 400 clamp(18px, 1.4vw, 21px)/1.25 var(--hand); transform: rotate(-1.5deg); display: flex; gap: 10px; align-items: flex-start; }
.ps .pen { transform: scaleX(-1) rotate(-20deg); margin-top: 4px; }
.ps b { font-weight: 400; }
.contact-form { display: block; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 0; }
.cf-grid label { display: block; padding: 12px 14px 10px; border-bottom: 1px solid #2d2f28; transition: background .2s; }
.cf-grid label:nth-child(odd):not(.wide) { border-right: 1px solid #2d2f28; }
.cf-grid .wide { grid-column: 1 / -1; }
.cf-grid label:focus-within { background: color-mix(in srgb, var(--pen) 5%, transparent); }
.cf-k { display: block; font-size: 9.5px; color: var(--dim); }
.cf-grid label:focus-within .cf-k { color: var(--pen); }
.contact-form .opt { margin-left: 6px; text-transform: none; letter-spacing: 0; font-family: var(--ui); color: #6f7066; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 3px; padding: 4px 0 2px; font: 400 15px/1.4 var(--ui); color: var(--paper); background: transparent; border: 0; border-radius: 0; outline: 0; }
.contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2388887c' stroke-width='1.5'/%3E%3C/svg%3E") right 2px center no-repeat; }
.contact-form select option { background: #171814; color: var(--paper); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form label:has([aria-invalid="true"]) { box-shadow: inset 2px 0 0 var(--rose); }
.contact-form label:has([aria-invalid="true"]) .cf-k { color: var(--rose); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 14px; background: radial-gradient(circle, #8c8f8030 .7px, transparent .9px) 0 0 / 16px 16px; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--pen); }
.form-status.err { color: var(--rose); }
.fine { font-size: 12.5px; color: var(--dim); margin: 0; padding: 10px 14px 12px; border-top: 1px solid #3d3f37; }

/* Close: one sky, and the family */
.close-sky { text-align: center; padding-block: clamp(80px, 9vw, 140px) clamp(50px, 6vw, 80px); background: radial-gradient(900px 480px at 50% 100%, rgba(110, 120, 255, .18), transparent 70%), var(--night-2); }
.close-sky .kicker { justify-content: center; }
.close-sky h2 { font: 400 clamp(34px, 4vw, 60px)/1.02 var(--serif); letter-spacing: -.05em; margin: 16px auto 20px; max-width: 13ch; }
.close-sky h2 em { font-style: italic; background: linear-gradient(100deg, #50FFD2, #A8A5FF 30%, #FFDB54 55%, #FF9768 75%, #CA9BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.close-sky p:not(.kicker) { color: var(--sub); max-width: 46ch; margin: 0 auto 24px; font-size: clamp(16px, 1.15vw, 18px); }
.fam { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: clamp(56px, 6vw, 90px) 0 0; padding: 0; list-style: none; text-align: left; }
.fam li { --word: var(--paper); border: 1px solid var(--rule); background: rgba(240, 234, 220, .025); display: flex; flex-direction: column; transition: border-color .3s, background .3s, box-shadow .4s, transform .9s var(--ease); }
.fam li > a, .fam li.soon { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 20px 16px 16px; text-decoration: none; }
.js .fam li { transform: translateY(34px); }
.fam li:nth-child(2) { transition-delay: 70ms; } .fam li:nth-child(3) { transition-delay: 140ms; } .fam li:nth-child(4) { transition-delay: 210ms; } .fam li:nth-child(5) { transition-delay: 280ms; } .fam li:nth-child(6) { transition-delay: 350ms; }
.js .fam.in li { transform: none; }
.fam li:has(a):is(:hover, :focus-within) { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 6%, transparent); box-shadow: 0 18px 40px -24px var(--c); transform: translateY(-5px); transition-delay: 0s; }
.fam .lockup { width: 100%; height: auto; aspect-ratio: 3 / 1; }
.fam span { font-size: 9.5px; color: var(--dim); }
.fam .fam-job { font: 500 14px/1.25 var(--ui); text-transform: none; letter-spacing: normal; color: var(--paper); }
.fam li.soon { opacity: .55; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: clamp(44px, 5vw, 70px); background: var(--night); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.foot-note { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin-top: 16px; }
.foot h3 { font-size: 10.5px; font-weight: 500; color: var(--dim); margin: 0 0 14px; }
.foot-grid div > a:not(.brand) { display: flex; align-items: center; gap: 8px; width: fit-content; color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 4px 0; overflow-wrap: anywhere; transition: color .2s; }
.foot-grid div > a:not(.brand):hover { color: var(--fg); }
.f-sym { width: 14px; height: 14px; color: var(--c, var(--muted)); }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(40px, 5vw, 64px); min-height: 68px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.foot-base a { color: var(--muted); text-decoration: none; } .foot-base a:hover { color: var(--pen); }

/* Product artwork (inside a .sheet) */
.art { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--art-font, system-ui, sans-serif); }
.art text { fill: var(--fg); font-size: 13px; font-weight: 600; }
.art .dim { fill: var(--mut); font-weight: 400; font-size: 11.5px; }
.art .mini { font-size: 11.5px; }
.art .caption { fill: var(--mut); font-size: 14px; font-weight: 500; }
.art .card { fill: var(--card); stroke: var(--line); stroke-width: 1.2; }
.art .plus { fill: var(--c); }
.art .mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; }
@keyframes ts-spin { to { transform: rotate(360deg); } }
@keyframes ts-dash { to { stroke-dashoffset: -200; } }
.art-sirius .fence { fill: color-mix(in srgb, var(--c) 6%, transparent); stroke: var(--c); stroke-width: 1.8; stroke-dasharray: 3 7; }
.art-sirius .waves circle { fill: none; stroke: var(--c); stroke-width: 2; opacity: 0; transform-origin: 270px 150px; }
.art-sirius.play .waves circle { animation: ts-wave 3s cubic-bezier(.2, .7, .2, 1) infinite; }
.art-sirius.play .waves circle:nth-child(2) { animation-delay: 1s; } .art-sirius.play .waves circle:nth-child(3) { animation-delay: 2s; }
.art-sirius.play .fence { animation: ts-dash 18s linear infinite; }
.art-sirius .ap rect { fill: var(--c); } .art-sirius .ap path { fill: none; stroke: var(--on-c); stroke-width: 2; stroke-linejoin: round; } .art-sirius .ap circle { fill: var(--on-c); }
.art-sirius .walk { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-dasharray: 2 6; }
.art-sirius .phone rect { fill: var(--card); stroke: var(--fg); stroke-width: 1.6; } .art-sirius .phone circle { fill: var(--fg); }
.art-sirius .stamp { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.art-sirius .stamp.on { opacity: 1; transform: none; }
.art-sirius .stamp circle { fill: var(--c); } .art-sirius .stamp path { fill: none; stroke: var(--on-c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ts-wave { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
.art-altair .panel > rect:first-child { fill: var(--card); stroke: var(--line); }
.art-altair .slot { fill: color-mix(in srgb, var(--fg) 7%, transparent); }
.art-altair .slot.hit { fill: color-mix(in srgb, var(--c) 22%, transparent); stroke: var(--c); stroke-width: 1.4; }
.art-altair .box { fill: none; stroke: var(--line); stroke-width: 1.5; }
.art-altair .box.done, .art-altair .node.done { fill: var(--c); stroke: var(--c); }
.art-altair .box.hit, .art-altair .node.hit { stroke: var(--c); }
.art-altair .tick { fill: none; stroke: var(--on-c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; }
.art-altair .edge { fill: none; stroke: var(--line); stroke-width: 1.5; }
.art-altair .node { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.art-altair .sync { fill: none; stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0; }
.art-altair.play .box.hit { animation: ts-fill 6s infinite; }
.art-altair.play .tick { animation: ts-tick 6s infinite; }
.art-altair.play .sync { animation: ts-sync 6s infinite; }
.art-altair.play .slot.hit { animation: ts-slot 6s infinite; }
.art-altair.play .node.hit { animation: ts-fill 6s infinite; animation-delay: .35s; }
@keyframes ts-tick { 0%, 18% { stroke-dashoffset: 14; } 26%, 88% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 14; } }
@keyframes ts-fill { 0%, 20% { fill: transparent; stroke: var(--c); } 28%, 88% { fill: var(--c); stroke: var(--c); } 96%, 100% { fill: transparent; stroke: var(--c); } }
@keyframes ts-sync { 0%, 22% { opacity: 0; stroke-dashoffset: 40; } 30% { opacity: 1; } 50% { opacity: .9; stroke-dashoffset: 0; } 62%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes ts-slot { 0%, 30% { fill: color-mix(in srgb, var(--c) 22%, transparent); } 38%, 88% { fill: color-mix(in srgb, var(--c) 55%, transparent); } 96%, 100% { fill: color-mix(in srgb, var(--c) 22%, transparent); } }
.art-polaris .rings circle, .art-polaris .rings path { fill: none; stroke: var(--line); stroke-width: 1; }
.art-polaris .sweep { fill: color-mix(in srgb, var(--c) 32%, transparent); transform-origin: 140px 150px; }
.art-polaris.play .sweep { animation: ts-spin 4s linear infinite; }
.art-polaris .blip { fill: var(--alert); filter: drop-shadow(0 0 6px var(--alert)); }
.art-polaris .blip.calm { fill: var(--c); filter: none; opacity: .75; }
.art-polaris.play .blip:not(.calm) { animation: ts-blip 4s infinite; }
.art-polaris .alert rect { stroke: var(--alert); } .art-polaris .alert .t { fill: var(--alert); }
.art-polaris.play .alert { animation: ts-pop 4s infinite; }
.art-polaris .bar { fill: var(--mut); opacity: .45; }
@keyframes ts-blip { 0%, 8% { opacity: 0; } 12%, 70% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes ts-pop { 0%, 12% { opacity: 0; transform: translateX(10px); } 18%, 76% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateX(10px); } }
.art-procyon .receipt { opacity: 0; transform: translateY(-12px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.art-procyon.s1 .receipt { opacity: 1; transform: none; }
.art-procyon .rule { stroke: var(--line); fill: none; }
.art-procyon .pass { transform-origin: 303px 127px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.art-procyon.bump .pass { transform: scale(1.035); }
.art-procyon .pass-body { fill: var(--c); }
.art-procyon .pass-star { fill: var(--on-c); transform-origin: 258px 126px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.art-procyon.s3 .pass-star { transform: rotate(90deg) scale(.9); }
.art-procyon .pass text { fill: var(--on-c); }
.art-procyon .pass-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.art-procyon .balance { font: 700 46px var(--display-font, system-ui); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.art-procyon .sparks path { fill: var(--c); opacity: 0; filter: drop-shadow(0 0 4px var(--c)); }
.art-procyon .code { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.art-procyon.s3 .code { opacity: 1; transform: none; }
.art-procyon .dashed { stroke: var(--c); stroke-dasharray: 5 4; stroke-width: 1.5; }
.art-carina .route { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-dasharray: 5 6; opacity: .9; }
.art-carina .stop { fill: var(--bg); stroke: var(--c); stroke-width: 2; }
.art-carina .truck rect { fill: var(--fg); filter: drop-shadow(0 0 6px var(--c)); }
.art-carina .ticket, .art-carina .invoice { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.art-carina .ticket.on, .art-carina .invoice.on { opacity: 1; transform: none; }
.art-carina .ticket rect, .art-carina .invoice rect { stroke: color-mix(in srgb, var(--c) 70%, transparent); }
.art-carina .link { fill: none; stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: 0; transition: opacity .5s; }
.art-carina .link.on { opacity: 1; }

/* The invoice pay page (/pay/<token>) */
.pay .pay-status { margin: 26px 0 8px; font-weight: 600; }
.pay .pay-status.paid { color: var(--teal); }
.pay .pay-status.overdue { color: #f6ad55; }
.pay .pay-notice { margin: 22px 0 0; padding: 12px 16px; border-radius: 0; border: 1px solid #f6ad55; background: color-mix(in srgb, #f6ad55 10%, transparent); }
.pay-lines { width: 100%; margin: 18px 0 28px; border-collapse: collapse; font-size: 15px; }
.pay-lines th, .pay-lines td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pay-lines th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pay-lines .num { text-align: right; white-space: nowrap; }
.pay-lines tfoot td { border-bottom: 0; }
.pay-actions { display: grid; gap: 8px; justify-items: start; margin-bottom: 30px; }
.pay-actions .muted { margin: 0 0 14px; font-size: 14px; }
.pay-eft { padding: 18px 20px; border-radius: 0; border: 1px solid var(--line); background: var(--panel); }
.pay-eft h2 { font-size: 18px; margin-bottom: 12px; }
.pay-eft dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; }
.pay-eft dt { color: var(--muted); }
.pay-eft dd { margin: 0; overflow-wrap: anywhere; }
.pay-foot { margin-top: 30px; font-size: 14px; }
@media (max-width: 520px) {
  .pay-lines th:nth-child(2), .pay-lines td:nth-child(2) { display: none; }
  .pay-eft dl { grid-template-columns: 1fr; gap: 2px; }
  .pay-eft dd { margin-bottom: 8px; }
}

/* The customer billing portal (/billing): sign in by email, then every account billed there */
.portal .lede { max-width: 60ch; }
.portal-form { display: grid; gap: 14px; max-width: 460px; margin-top: 28px; }
.portal-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.portal input { width: 100%; font: 16px/1.4 var(--body); color: var(--fg); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 0; padding: 12px 14px; color-scheme: dark; }
.portal input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(63, 224, 197, .18); }
.portal-form .btn { justify-self: start; }
.portal-form-inline { margin-top: 30px; }
.portal-note { margin-top: 18px; font-size: 14px; }
.portal-note a, .portal-account a:not(.btn) { color: var(--teal); }
.portal-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.portal-product { margin-top: 44px; }
.portal-product > h2 { display: flex; align-items: center; gap: 12px; font-size: 30px; }
.portal-account { margin-top: 18px; padding: 22px 24px; border-radius: 0; border: 1px solid var(--line); background: var(--panel); }
.portal-account h4 { margin: 24px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.portal-account-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; }
.portal-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.portal-facts dt { font-size: 12.5px; color: var(--muted); }
.portal-facts dd { margin: 0; font-weight: 600; }
.portal-owing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 0; border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); background: color-mix(in srgb, var(--a) 8%, transparent); }
.portal-owing.overdue { border-color: #f6ad55; background: color-mix(in srgb, #f6ad55 10%, transparent); }
.portal-clear { margin-top: 16px; color: var(--teal); font-weight: 600; }
.portal-scroll { overflow-x: auto; position: relative; } /* holds the sr-only headers, which would otherwise widen the page on phones */
.portal .pay-lines { margin: 10px 0 18px; font-size: 14.5px; }
.portal-statement { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.portal-statement label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.portal-statement input { width: auto; padding: 8px 10px; font-size: 15px; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
@media (max-width: 520px) {
  .portal .pay-lines th:nth-child(2), .portal .pay-lines td:nth-child(2) { display: table-cell; }
  .portal-docs th:nth-child(3), .portal-docs td:nth-child(3) { display: none; }
  .portal-account { padding: 18px 16px; }
}

/* Legal, support and 404 */
.doc { padding: 130px 0 100px; max-width: 820px; }
.product-landing { --word: var(--paper); --pen: var(--c, #50FFD2); max-width: 820px; padding: 120px 0 80px; }
.product-landing .lockup { width: 230px; height: auto; aspect-ratio: 3 / 1; margin-bottom: 28px; }
.product-landing h1 { font-size: clamp(38px, 6vw, 68px); margin-block: 12px 20px; }
.product-landing .lede { max-width: 62ch; color: var(--sub); margin-bottom: 26px; }
.product-facts { margin: 0 0 26px; padding: 18px 24px 18px 42px; }
.product-facts li + li { margin-top: 8px; }
.product-privacy { display: inline-block; margin: 12px 0 0 14px; font-size: 14px; }
.doc h1 { font-size: clamp(36px, 5vw, 58px); }
.updated { color: var(--muted); margin-top: 12px; }
.doc-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 32px 0 8px; padding: 16px 18px; border-radius: 0; border: 1px solid var(--line); background: var(--panel); }
.doc-toc p { width: 100%; font-size: 14px; color: var(--muted); }
.doc-toc a { padding: 6px 12px; border-radius: 0; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.doc-toc a:hover { border-color: var(--teal); }
.text { margin-top: 32px; color: #d4dcf2; }
.text h2 { font-size: 27px; margin: 46px 0 14px; letter-spacing: -.015em; }
.text h3 { font-size: 19.5px; margin: 30px 0 10px; }
.text p, .text ul { margin: 0 0 16px; }
.text ul { padding-left: 22px; }
.text li { margin: 6px 0; }
.text a { color: var(--teal); }
.text mark { background: rgba(246, 193, 91, .18); color: var(--amber); padding: 0 4px; border-radius: 0; }
.doc-section { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 8px; scroll-margin-top: 90px; }
.doc-section > h2 { font-size: 34px; color: var(--teal); }
.doc-contact { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.doc-contact a { color: var(--teal); }
.support { max-width: 1040px; }
.support .lede { max-width: 60ch; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 44px; }
.support-card { scroll-margin-top: 90px; display: flex; flex-direction: column; }
.sc-name { font: 650 26px/1 var(--ui); letter-spacing: -.045em; color: var(--paper); }
.sc-help { color: var(--dim); }
.sc-logo { display: block; margin: 0; padding: 18px 14px 14px; background: radial-gradient(circle, #8c8f8030 .7px, transparent .9px) 0 0 / 16px 16px; }
.sc-logo .lockup { --word: var(--paper); width: 150px; height: auto; aspect-ratio: 3 / 1; }
.support-card .sheet-rows { grid-template-columns: 1fr; margin-top: auto; }
.support-card .sheet-rows div, .support-card .sheet-rows div:nth-child(odd) { border-right: 0; }
.support-card .sheet-rows div:last-child { border-bottom: 0; }
.support-card dd a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--c, var(--pen)); text-underline-offset: 3px; overflow-wrap: anywhere; }
.support-card dd a:hover { color: var(--c, var(--pen)); }
.support #delete { margin-top: 70px; max-width: 760px; scroll-margin-top: 90px; }
.support-form { margin-top: 60px; }
.support-form h2 { font-size: 30px; margin-bottom: 20px; }
.lost { min-height: 70vh; }
.lost a { color: var(--teal); }

/* Scroll reveal (site.js adds .in; without script everything is simply shown) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -200; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1100px) { .nav { gap: 18px; } .top-row { gap: 20px; } }
@media (max-width: 1020px) {
  .nav, .top-signin, .top-row > .btn-square { display: none; }
  .menu { display: block; }
  .e-grid { grid-template-columns: 1fr; } .e-fig { max-width: 640px; }
  .fam { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .faq .wrap, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .index { display: flex; flex-direction: column; }
  .index > .chart { position: relative; inset: auto; order: 2; height: 290px; margin: 56px 22px 0; }
  .index .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "read" "acc"; order: 3; padding-top: 34px; }
  .star { width: 44px; height: 44px; } .star-sym { width: 26px; height: 26px; } .halo { inset: -16px; } .star-label { font-size: 12px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .page-home .hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding-block: 100px 90px; }
  .lg-list a { grid-template-columns: 48px minmax(0, 1fr); } .lg-by { display: none; }
  .spine { left: calc(var(--edge) + 6px); }
  .entry { grid-template-columns: 30px minmax(0, 1fr); }
  .spine-mark time { display: none; } .spine-mark i { left: 0; top: 6px; }
  .e-head { flex-wrap: wrap; } .e-n { display: none; }
  .sheet-rows { grid-template-columns: 1fr; } .sheet-rows div:nth-child(odd) { border-right: 0; }
  .acc-top { grid-template-columns: minmax(0, auto) minmax(0, 1fr); } .acc-n { display: none; } .acc { --open-h: 210px; } .acc-in { grid-template-columns: 1fr; } .acc-q { max-width: none; }
  .fam { grid-template-columns: repeat(2, 1fr); }
  .cf-grid { grid-template-columns: 1fr; } .cf-grid label:nth-child(odd):not(.wide) { border-right: 0; }
}
@media (max-width: 560px) {
  .faq-list summary { grid-template-columns: 28px minmax(0, 1fr) 20px; } .faq-list details p { padding: 0 0 20px 38px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding-block: 16px; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .fam li { opacity: 1; transform: none; }
  .art-polaris .alert { opacity: 1; } .art-altair .tick { stroke-dashoffset: 0; } .art-altair .box.hit { fill: var(--c); }
}

/* Checkout (/subscribe/c/<id>, lib/checkout.js) */
.checkout-form { display: grid; gap: 26px; margin-top: 26px; }
.checkout-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.checkout-form legend { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.checkout-form .field { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.checkout-form .field .muted, .pay-method .muted { font-weight: 400; font-size: 13px; }
.checkout-form .opt { font-weight: 400; }
.checkout-form input:not([type=radio]):not([type=checkbox]), .checkout-form select, .checkout-form textarea { width: 100%; font: 16px/1.4 var(--body); color: var(--fg); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 0; padding: 12px 14px; color-scheme: dark; }
.checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(63, 224, 197, .18); }
.checkout-form select option { background: var(--night-2); }
.plan-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plan-card { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 0; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; }
.plan-card input { position: absolute; inset: 14px 14px auto auto; accent-color: var(--teal); }
.plan-card:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(63, 224, 197, .18); }
.plan-card .plan-name { font-weight: 700; font-size: 17px; }
.plan-card .plan-price { font-size: 20px; color: var(--teal); }
.plan-card .plan-blurb { font-size: 14px; color: var(--muted); }
.plan-card ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.plan-contact { cursor: default; }
.pay-method { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 0; border: 1px solid var(--line-2); cursor: pointer; }
.pay-method > span { display: grid; gap: 4px; }
.pay-method:has(input:checked) { border-color: var(--teal); }
.pay-method input, .agree input { accent-color: var(--teal); margin-top: 4px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }

/* Tendspace account (/account, lib/account-web.js) */
.account-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.account-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14.5px; }
.account-nav a { color: var(--muted); }
.account-nav a:hover { color: var(--fg); }
.link-button { font: inherit; font-size: 14px; color: var(--teal); background: none; border: 0; padding: 0; cursor: pointer; }
.link-button.danger { color: #f6ad55; }
.account-section { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.account-section h2 { font-size: 22px; margin-bottom: 8px; }
.account-section h3 { font-size: 16px; margin: 22px 0 8px; }
.account-form { max-width: 620px; }
.account-form fieldset { border: 0; margin: 0 0 6px; padding: 0; display: grid; gap: 14px; min-width: 0; }
.account-form legend { padding: 0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.portal-form .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.portal-form .opt { font-weight: 400; }
.portal select, .portal textarea { width: 100%; font: 16px/1.4 var(--body); color: var(--fg); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 0; padding: 12px 14px; color-scheme: dark; }
.portal select:focus, .portal textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(63, 224, 197, .18); }
.portal select option { background: var(--night-2); }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.portal .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--fg); }
.portal .agree input { width: auto; margin-top: 4px; accent-color: var(--teal); }
.portal .agree a { color: var(--teal); }
.pay-notice.ok { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, transparent); }
.choice-grid, .space-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.choice-card, .space-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 0; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); text-decoration: none; transition: border-color .2s; }
.choice-card:hover, .space-card:hover { border-color: var(--teal); }
.choice-form { display: grid; }
button.choice-card { width: 100%; height: 100%; text-align: left; font: inherit; cursor: pointer; }
.choice-title, .space-name { font-weight: 700; font-size: 19px; }
.choice-text { color: var(--muted); font-size: 14.5px; }
.choice-go { color: var(--teal); font-weight: 600; margin-top: 6px; }
.space-kind { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.invite-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 0; margin-top: 10px; }
.invite-row p { margin: 0; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.inline-form select { width: auto; padding: 6px 10px; font-size: 14px; }
.invite-form { grid-template-columns: 1fr 200px auto; align-items: end; max-width: 760px; }
@media (max-width: 640px) { .invite-form { grid-template-columns: 1fr; } }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.portal-facts.stacked { display: grid; gap: 10px; }
.totp-setup { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin: 22px 0; }
.totp-qr { border-radius: 0; background: #fff; padding: 6px; }
.totp-key { font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: .06em; }

/* Buying from a product: the three steps (account, plan and payment, the product) */
.buy-steps { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; font-size: 14px; color: var(--muted); }
.buy-steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; }
.buy-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; }
.buy-steps li[aria-current] { color: var(--fg); font-weight: 600; }
.buy-steps li[aria-current]::before { border-color: var(--teal); color: var(--teal); }
.buy-steps li.done::before { content: '✓'; border-color: var(--teal); background: var(--teal); color: #04121a; }
.buy-what { margin-bottom: 4px; }
.pay-open { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* After paying: what was bought, and where to go next */
.done-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 26px 0; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 0; background: var(--panel); }
.done-facts dt { color: var(--muted); }
.done-facts dd { margin: 0; }
.done-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 18px; }
.done-link { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line-2); border-radius: 0; background: var(--panel); color: var(--fg); text-decoration: none; transition: border-color .2s; }
.done-link:hover { border-color: var(--teal); }
.done-link span { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .done-facts { grid-template-columns: 1fr; } }

/* Busy: a form being sent (site.js). The label stays; a spinner shows it is working. */
.is-busy { cursor: progress; pointer-events: none; opacity: .85; }
.btn.is-busy::after, button.is-busy::after { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
button.choice-card.is-busy::after { position: absolute; top: 18px; right: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::after, button.is-busy::after { animation-duration: 2s; } }
.link-button.is-busy::after { display: inline-block; vertical-align: -3px; margin-left: 8px; width: 12px; height: 12px; }
button.choice-card { position: relative; }

/* ── The Tendspace account as a workspace (body.page-app, lib/account-web.js): the layout. Its colours and type are re-dressed in the logbook look by the last block of this file. ─
   Calm and corporate: a slim header, a sidebar of the account's pages and spaces, and settings
   panels (what a setting is for, beside its controls). The brand's night palette, one accent
   (teal) kept for the primary action, the current page and good news; amber for what needs care. */
.page-app { --app-bg: #070c18; --app-panel: #0c1324; --app-panel-2: #101a30; --app-line: rgba(160, 180, 255, .11); --app-line-2: rgba(160, 180, 255, .19); --amber-ink: #f6c15b;
  background: var(--app-bg); font-size: 15px; line-height: 1.55; display: flex; flex-direction: column; min-height: 100vh; }
.page-app h1, .page-app h2, .page-app h3 { font-family: var(--body); letter-spacing: -.01em; text-wrap: pretty; }
.page-app a { color: inherit; }
.page-app .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-app .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-app .muted { color: var(--muted); }

/* Header */
.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 24px; background: rgba(7, 12, 24, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--app-line); }
/* The mark is always the turn and the name in Bricolage Grotesque 650 (brand bible §2), Night pages included. */
.app-top .brand { font: 650 17px/1 "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.045em; }
.app-top .turn-mark { width: 22px; height: 21px; }
.app-top-name { padding-left: 14px; border-left: 1px solid var(--app-line-2); color: var(--muted); font-weight: 600; font-size: 14.5px; }
.app-top-links { margin-left: auto; display: flex; gap: 6px; }
.app-top-links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.app-top-links a:hover { color: var(--fg); background: var(--app-panel); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 0; border: 1px solid var(--app-line-2); cursor: pointer; font-size: 14px; font-weight: 600; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: var(--app-panel); }
.user-menu-list { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 6px; border-radius: 0; border: 1px solid var(--app-line-2); background: var(--app-panel-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
.user-menu-who { display: grid; padding: 10px 12px 12px; margin: 0 0 6px; border-bottom: 1px solid var(--app-line); font-size: 14px; }
.user-menu-who span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.user-menu-list a, .user-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.user-menu-list a:hover, .user-menu-list button:hover { background: rgba(160, 180, 255, .08); }
.user-menu-list form { margin: 0; }

/* Avatars and badges */
.avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, rgba(63, 224, 197, .22), rgba(143, 156, 255, .22)); border: 1px solid var(--app-line-2); color: var(--fg); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.avatar.xs { width: 22px; height: 22px; border-radius: 50%; font-size: 10px; }
.avatar.sm { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; border-radius: 50%; font-size: 19px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 0; border: 1px solid var(--app-line-2); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; color: var(--muted); vertical-align: middle; font-family: var(--body); letter-spacing: 0; }
.badge.ok { color: var(--teal); border-color: rgba(63, 224, 197, .35); background: rgba(63, 224, 197, .08); }
.badge.ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.warn { color: var(--amber-ink); border-color: rgba(246, 193, 91, .35); background: rgba(246, 193, 91, .08); }
.badge.info { color: var(--peri); border-color: rgba(143, 156, 255, .35); background: rgba(143, 156, 255, .08); }
.badge.role { color: var(--fg); background: rgba(160, 180, 255, .06); }

/* Layout: sidebar and content */
.app { flex: 1; display: grid; grid-template-columns: 248px minmax(0, 1fr); width: 100%; max-width: 1280px; margin: 0 auto; }
.app-side { border-right: 1px solid var(--app-line); padding: 26px 14px 40px; }
.side-nav { position: sticky; top: 86px; display: grid; gap: 2px; }
.side-label { margin: 18px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.side-label:first-child { margin-top: 0; }
.side-nav a { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 6px 10px; border-radius: 0; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.side-nav a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav a:hover { color: var(--fg); background: rgba(160, 180, 255, .06); }
.side-nav a[aria-current="page"] { color: var(--fg); background: rgba(63, 224, 197, .09); box-shadow: inset 2px 0 0 var(--teal); }
.side-nav a[aria-current="page"] .ico { color: var(--teal); }
.app-main { padding: 34px 40px 72px; max-width: 1000px; }

/* Page heading */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; margin-bottom: 26px; }
.page-head-text { flex: 1; min-width: 240px; }
.page-head h1 { font-size: 26px; font-weight: 700; line-height: 1.25; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.page-sub .badge { margin: 0 4px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: -8px 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--app-line); }
.sub-nav a { padding: 6px 12px; border-radius: 0; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.sub-nav a:hover { color: var(--fg); background: rgba(160, 180, 255, .06); }

/* Summary tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: 0; border: 1px solid var(--app-line); background: var(--app-panel); text-decoration: none; transition: border-color .15s; }
.tile:hover { border-color: var(--app-line-2); }
.tile .badge { justify-self: start; }
.tile-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile-value { font-size: 20px; font-weight: 700; line-height: 1.3; }
.tile-email { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-note { font-size: 13px; color: var(--muted); }

/* Panels: what it is for, beside its controls */
.panel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px 40px; margin-bottom: 18px; padding: 26px 28px; border-radius: 0; border: 1px solid var(--app-line); background: var(--app-panel); scroll-margin-top: 80px; }
.panel.stack { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.panel.stack .panel-intro { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.panel.highlight { border-color: rgba(63, 224, 197, .35); }
.panel.compact { grid-template-columns: minmax(0, 1fr); }
.panel.compact .panel-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.panel.compact .panel-body:empty { display: none; }
.panel-intro h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; line-height: 1.4; }
.panel-intro p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 62ch; }
.panel-aside { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-aside form { margin: 0; }
.panel-body { min-width: 0; }
.panel-body > :first-child { margin-top: 0; }
.panel-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.panel-note a, .page-app .link-strong { color: var(--teal); font-weight: 600; text-decoration: none; }
.panel-note a:hover, .page-app .link-strong:hover { text-decoration: underline; }
.panel-sub { margin: 24px 0 10px; font-size: 14px; font-weight: 650; }
.empty { margin: 0; padding: 22px; border-radius: 0; border: 1px dashed var(--app-line-2); color: var(--muted); font-size: 14px; text-align: center; }

/* Forms inside the account */
.page-app .portal-form { margin-top: 0; max-width: 520px; gap: 16px; }
.page-app .portal-form label { gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.page-app .portal-form .hint { font-size: 12.5px; }
.page-app .portal-form .opt { color: var(--dim); font-weight: 500; margin-left: 4px; }
.page-app .portal input, .page-app .portal select, .page-app .portal textarea { font-size: 15px; padding: 9px 12px; border-radius: 0; background: var(--app-bg); border-color: var(--app-line-2); }
.page-app .portal input:focus, .page-app .portal select:focus, .page-app .portal textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(63, 224, 197, .16); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.page-app .btn { min-height: 38px; padding: 0 16px; border-radius: 0; font-size: 14px; gap: 8px; }
.page-app .btn-big { min-height: 46px; font-size: 15.5px; }
.page-app .btn:hover { transform: none; }
.page-app .btn-primary { background: var(--teal); color: #04121a; box-shadow: none; }
.page-app .btn-primary:hover { background: color-mix(in srgb, var(--teal) 86%, white); box-shadow: none; }
.page-app .btn-ghost { border-color: var(--app-line-2); }
.page-app .btn-ghost:hover { background: rgba(160, 180, 255, .07); border-color: var(--app-line-2); }
.page-app .btn .ico { width: 16px; height: 16px; }
.page-app .account-actions { margin-top: 16px; }
.page-app .account-actions form { margin: 0; }
.page-app .pay-notice { margin: 0 0 20px; padding: 11px 14px; border-radius: 0; font-size: 14px; }

/* Facts, rows and tables */
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--app-line); }
.facts > div:first-child { padding-top: 0; }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--app-line); border-radius: 0; overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--app-line); }
.row, .row-link { display: flex; align-items: center; gap: 14px; padding: 13px 16px; }
.row-link { text-decoration: none; transition: background .15s; }
.row-link:hover { background: rgba(160, 180, 255, .05); }
.row-link > .ico { color: var(--dim); }
.row-main { flex: 1; min-width: 0; display: grid; margin: 0; font-size: 14.5px; }
.row-main > span { color: var(--muted); font-size: 13.5px; }
.row-main > span strong, .row-main > strong { color: var(--fg); font-weight: 600; }
.row-main > span:only-child { color: var(--fg); font-size: 14.5px; }
.row form { margin: 0; }
.page-app table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.page-app table.data th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); background: rgba(160, 180, 255, .035); border-bottom: 1px solid var(--app-line); }
.page-app table.data td { padding: 13px 12px; border-bottom: 1px solid var(--app-line); vertical-align: middle; }
.page-app table.data tr:last-child td { border-bottom: 0; }
.page-app table.data .num { text-align: right; white-space: nowrap; }
.page-app .portal-scroll { border: 1px solid var(--app-line); border-radius: 0; }
.person { display: flex; align-items: center; gap: 12px; }
.page-app .inline-form select { padding: 6px 10px; font-size: 13.5px; }
.invite-form { margin-top: 6px; }
.invite-fields { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 12px; align-items: end; }
.invite-fields label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.page-app .totp-setup { margin: 0 0 22px; }

/* Footer */
.app-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 18px 24px; border-top: 1px solid var(--app-line); color: var(--dim); font-size: 13px; }
.app-foot nav { display: flex; gap: 18px; }
.app-foot a { color: var(--muted); text-decoration: none; }
.app-foot a:hover { color: var(--fg); }

/* Signed out: one centred column (sign-in, sign-up, codes, links) */
.auth-main { flex: 1; display: flex; justify-content: center; padding: 56px 20px 80px; }
.auth-card { width: 100%; max-width: 720px; }
.auth-card > h1 { font-size: 30px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.auth-card .lede { color: var(--muted); font-size: 16px; margin: 0 0 6px; }
.auth-card .portal-form { margin-top: 24px; max-width: 480px; }

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { border-right: 0; border-bottom: 1px solid var(--app-line); padding: 10px 14px; overflow-x: auto; }
  .side-nav { position: static; display: flex; gap: 4px; }
  .side-label { display: none; }
  .side-nav a { white-space: nowrap; }
  .app-main { padding: 26px 20px 60px; }
  .panel { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .app-top { padding: 0 14px; gap: 10px; }
  .app-top-name, .user-menu-name, .app-top-links span { display: none; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .invite-fields { grid-template-columns: minmax(0, 1fr); }
  /* A third column of words (a status) can go; an amount never does. */
  .page-app table.data th:nth-child(3):not(.num), .page-app table.data td:nth-child(3):not(.num) { display: none; }
}
.page-app .account-form fieldset { gap: 16px; }
.page-app .account-form fieldset + fieldset { padding-top: 18px; border-top: 1px solid var(--app-line); }
.page-app .account-form legend { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; color: var(--dim); margin-bottom: 4px; }
.auth-card .account-form fieldset + fieldset, .auth-card .account-form fieldset + .agree { padding-top: 18px; border-top: 1px solid var(--app-line); }
.auth-card .account-form legend { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; color: var(--dim); }
.auth-card .portal-form label { color: var(--fg); }
.auth-card .portal input, .auth-card .portal select, .auth-card .portal textarea { background: var(--app-bg); border-radius: 0; }
.page-app .auth-card { max-width: 580px; padding: 36px 40px 40px; border-radius: 0; border: 1px solid var(--app-line); background: var(--app-panel); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); align-self: flex-start; }
.page-app .auth-card .portal-form { max-width: none; }
.page-app .auth-card .choice-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.page-app .auth-card .choice-card { border-radius: 0; background: var(--app-bg); }
.page-app .auth-card .btn-big { width: 100%; }
@media (max-width: 640px) { .page-app .auth-card { padding: 26px 20px 28px; } .auth-main { padding: 24px 12px 48px; } }

/* The billing portal (/billing) in the account's frame */
.page-app .auth-card.wide { max-width: 1000px; padding: 0; border: 0; background: none; box-shadow: none; }
.page-app .portal-product { margin-top: 30px; }
.page-app .portal-product-name { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 18px; font-weight: 650; }
.page-app .portal-account { margin-top: 0; padding: 24px 28px; border-radius: 0; }
.page-app .portal-account h2 { font-size: 17px; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 0 0 18px; }
.facts-inline dt { font-size: 12.5px; color: var(--muted); }
.facts-inline dd { margin: 2px 0 0; font-weight: 600; }
.page-app .portal-owing { margin: 0 0 6px; padding: 14px 16px; border-radius: 0; border: 1px solid rgba(143, 156, 255, .35); background: rgba(143, 156, 255, .07); }
.page-app .portal-owing p { margin: 0; }
.page-app .portal-owing.overdue { border-color: rgba(246, 193, 91, .4); background: rgba(246, 193, 91, .08); }
.page-app .portal-clear { margin: 0 0 6px; }
.page-app .portal-statement { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--app-line); }
.portal-statement-label { align-self: center; font-size: 14px; font-weight: 650; margin-right: 6px; }
.page-app .portal-statement label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.page-app .portal-statement input { width: auto; padding: 7px 10px; font-size: 14px; }
.page-app table.data tfoot td { border-top: 1px solid var(--app-line-2); border-bottom: 0; padding-top: 14px; }
.portal-help { margin: 28px 0 0; color: var(--dim); font-size: 13.5px; }
.portal-help a { color: var(--muted); }
.page-app .auth-card .lede a, .page-app .link-strong { color: var(--teal); }
.page-app .auth-card .portal-form .btn-primary { width: 100%; min-height: 44px; font-size: 15px; }

/* The money pages in the account's look: an invoice (/pay/<token>), after paying, the checkout */
.flow-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 44px 24px 80px; }
.page-app .star-dot { display: inline-block; flex: none; width: 8px; height: 8px; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.pay-card, .flow-card { padding: 32px 36px 34px; border-radius: 0; border: 1px solid var(--app-line); background: var(--app-panel); }
.flow-card { max-width: 640px; margin: 0 auto; }
.flow-card.wide { max-width: 920px; }
.flow-card > h1, .pay-card h1 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.flow-card .lede { color: var(--muted); font-size: 16px; margin: 10px 0 22px; }
.pay-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.pay-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pay-for { margin: 6px 0 0; color: var(--muted); }
.pay-amount { display: grid; gap: 2px; margin: 26px 0 22px; padding: 20px 22px; border-radius: 0; border: 1px solid var(--app-line-2); background: var(--app-bg); }
.pay-amount.overdue { border-color: rgba(246, 193, 91, .45); }
.pay-amount-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.pay-amount-value { font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.page-app .pay .pay-status { margin: 4px 0 0; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.pay-amount.overdue .pay-status { color: var(--amber-ink); }
.page-app .pay-actions { display: grid; gap: 0; justify-items: stretch; margin: 0 0 26px; }
.page-app .pay-actions .btn-big { width: 100%; min-height: 50px; font-size: 16px; }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.pay-alt { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--app-line); }
.pay-alt .btn { width: 100%; }
.pay-alt p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.page-app .pay-open { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 22px; font-size: 13.5px; }
.pay-sub { margin: 4px 0 10px; font-size: 14px; font-weight: 650; }
.page-app .pay .pay-notice { margin: 18px 0 0; }
.pay-side { display: grid; gap: 14px; }
.side-card { padding: 20px 22px; border-radius: 0; border: 1px solid var(--app-line); background: var(--app-panel); }
.side-card h2 { margin: 0 0 12px; font-size: 14px; font-weight: 650; }
.side-card .facts > div { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 8px 0; font-size: 14px; }
.side-note { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.side-card h2 + .side-note { margin-top: 0; }
.side-note a, .side-links a { color: var(--teal); text-decoration: none; font-weight: 600; }
.side-note a:hover, .side-links a:hover { text-decoration: underline; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
/* After paying */
.done-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; border: 2px solid var(--app-line-2); font-size: 24px; font-weight: 700; }
.done-mark:not(.ok) { border-top-color: var(--teal); animation: spin .9s linear infinite; }
.done-mark.ok { color: #04121a; background: var(--teal); border-color: var(--teal); }
.page-app .done-facts { display: grid; grid-template-columns: none; margin: 4px 0 24px; padding: 16px 20px; border: 1px solid var(--app-line); border-radius: 0; background: var(--app-bg); }
.page-app .done-links { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.page-app .done-link { padding: 16px 18px; border-radius: 0; border-color: var(--app-line); background: var(--app-bg); text-decoration: none; }
.page-app .done-link:hover { border-color: var(--app-line-2); }
.page-app .done-link strong { font-size: 14.5px; }
.page-app .done-link span { font-size: 13px; }
.page-app .flow-card .buy-steps { margin-bottom: 26px; }
/* The checkout */
.page-app .checkout-form { margin-top: 22px; gap: 24px; }
.page-app .checkout-form fieldset + fieldset, .page-app .checkout-form > .field { padding-top: 0; }
.page-app .checkout-form legend { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; color: var(--dim); }
.page-app .checkout-form .field { color: var(--fg); font-size: 13.5px; }
.page-app .checkout-form input:not([type=radio]):not([type=checkbox]), .page-app .checkout-form select, .page-app .checkout-form textarea { font-size: 15px; padding: 9px 12px; border-radius: 0; background: var(--app-bg); border-color: var(--app-line-2); }
.page-app .plan-card { border-radius: 0; border-color: var(--app-line-2); background: var(--app-bg); }
.page-app .plan-card .plan-price { font-size: 18px; font-weight: 700; }
.page-app .pay-method { border-radius: 0; border-color: var(--app-line-2); background: var(--app-bg); }
.page-app .checkout-form .btn-big { width: 100%; }
.page-app .checkout .eyebrow { color: var(--muted); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; }
@media (max-width: 900px) {
  .pay-layout { grid-template-columns: minmax(0, 1fr); }
  .flow-main { padding: 24px 14px 56px; }
  .pay-card, .flow-card { padding: 24px 20px 26px; }
}
@media (prefers-reduced-motion: reduce) { .done-mark:not(.ok) { animation: none; } }

/* ── The account in the logbook look (2026-11-29, brand bible §4.2) ───────────────────────────
   The account, billing portal, checkout and pay pages (body.page-app) wear the public site's
   look: warm paper-dark, serif headlines, the interface in Bricolage Grotesque, monospace
   uppercase labels, record sheets with a pen-coloured corner tick, and the pen as the one accent.
   The layout (slim header, sidebar, panels) stays; this block only re-dresses it. */
.page-app {
  --night: #151612; --night-2: #121310; --night-3: #1a1b16;
  --panel: rgba(240, 234, 220, .035); --panel-2: rgba(240, 234, 220, .07); --line: #33342d; --line-2: #4a4c42;
  --fg: #efeadc; --muted: #bab9ac; --dim: #88887c; --teal: #50FFD2; --peri: #A8A5FF; --amber: #FFDB54; --rose: #ff8f7a;
  --paper: #efeadc; --sub: #bab9ac; --rule: #33342d; --pen: #50FFD2; --a: var(--pen);
  --serif: Georgia, "Times New Roman", serif; --ui: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace; --body: var(--ui);
  --app-bg: #151612; --app-panel: #171814; --app-panel-2: #1d1f1a; --app-line: #2d2f28; --app-line-2: #3d3f37; --amber-ink: #FFDB54;
  --tint: rgba(240, 234, 220, .05); --pen-tint: color-mix(in srgb, var(--pen) 8%, transparent);
  font-family: var(--ui); color: var(--fg);
}
.page-app :focus-visible { outline-color: var(--pen); }
.page-app h1, .page-app h2, .page-app h3 { font-family: var(--ui); letter-spacing: -.015em; }

/* Headlines in serif, as on the public site */
.page-app .page-head h1, .page-app .auth-card > h1, .page-app .flow-card > h1, .page-app .pay-card h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; font-size: clamp(32px, 3.4vw, 44px); }
.page-app .auth-card > h1 { margin-bottom: 14px; }
.page-app .page-sub, .page-app .auth-card .lede, .page-app .flow-card .lede { color: var(--sub); font-size: 15.5px; }
.page-app .page-head { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }

/* Labels, kickers, times and codes: monospace caps */
.page-app .side-label, .page-app table.data th, .page-app .tile-label, .page-app .account-form legend, .page-app .checkout-form legend,
.page-app .facts dt, .page-app .facts-inline dt, .page-app .portal-facts dt, .page-app .pay-amount-label, .page-app .app-top-name,
.page-app .badge, .page-app .eyebrow, .page-app .pay-eyebrow, .page-app .sub-nav a, .page-app .pay-lines th, .page-app .portal-account h4,
.page-app .side-card h2, .page-app .buy-steps, .page-app .app-foot, .page-app .portal-form .opt, .page-app .space-kind, .page-app .totp-key {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.page-app .side-label { font-size: 10.5px; font-weight: 400; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.page-app .side-label::before { content: ""; width: 14px; height: 1.5px; background: var(--pen); transform: rotate(-10deg); }
.page-app table.data th, .page-app .pay-lines th { font-size: 10px; font-weight: 400; color: var(--dim); background: none; }
.page-app .tile-label, .page-app .facts dt, .page-app .facts-inline dt, .page-app .portal-facts dt, .page-app .pay-amount-label { font-size: 10px; font-weight: 400; color: var(--dim); }
.page-app .account-form legend, .page-app .checkout-form legend { font-size: 10px; font-weight: 400; color: var(--pen); }
.page-app .portal-form .opt { font-size: 9.5px; color: var(--dim); }
.page-app .eyebrow, .page-app .pay-eyebrow { font-size: 11px; font-weight: 400; color: var(--pen); letter-spacing: .12em; }
.page-app .app-top-name { font-size: 10.5px; font-weight: 400; color: var(--sub); }
.page-app .sub-nav a { font-size: 10.5px; font-weight: 400; padding: 7px 12px; }
.page-app .sub-nav a:hover { color: var(--pen); background: none; }
.page-app .app-foot { font-size: 10px; color: var(--dim); }
.page-app .app-foot a { text-decoration: none; }

/* Header */
.page-app .app-top { height: 64px; background: color-mix(in srgb, var(--night) 90%, transparent); border-bottom-color: var(--rule); }
.page-app .app-top-links a:hover, .page-app .user-menu summary:hover, .page-app .user-menu[open] summary { color: var(--fg); background: var(--tint); }
.page-app .user-menu summary { border-color: var(--line-2); font-weight: 500; }
.page-app .user-menu-list { background: #171814; border-color: #3d3f37; }
.page-app .user-menu-list a:hover, .page-app .user-menu-list button:hover { background: var(--pen-tint); color: var(--pen); }

/* Sidebar: the current page is ticked in the pen colour */
.page-app .side-nav a { font-weight: 450; color: var(--sub); }
.page-app .side-nav a:hover { color: var(--fg); background: var(--tint); }
.page-app .side-nav a[aria-current="page"] { color: var(--fg); background: var(--pen-tint); box-shadow: inset 2px 0 0 var(--pen); }
.page-app .side-nav a[aria-current="page"] .ico { color: var(--pen); }

/* Record sheets: panels, tiles, cards. A 1 px rule and a 12 px corner tick in the pen colour. */
.page-app .panel, .page-app .tile, .page-app .auth-card:not(.wide), .page-app .flow-card, .page-app .pay-card, .page-app .side-card,
.page-app .portal-account, .page-app .choice-card, .page-app .plan-card, .page-app .done-link {
  position: relative; border: 1px solid #3d3f37; background: #171814; box-shadow: none; }
.page-app .panel::before, .page-app .tile::before, .page-app .auth-card:not(.wide)::before, .page-app .flow-card::before, .page-app .pay-card::before,
.page-app .side-card::before, .page-app .portal-account::before, .page-app .choice-card::before, .page-app .plan-card::before, .page-app .done-link::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; border: solid var(--pen); border-width: 2px 0 0 2px; pointer-events: none; }
.page-app .tile:hover, .page-app .choice-card:hover, .page-app .done-link:hover { border-color: #5b5e53; }
.page-app .panel.highlight { border-color: color-mix(in srgb, var(--pen) 45%, #3d3f37); }
.page-app .panel-intro h2 { font-size: 17px; font-weight: 650; }
.page-app .panel-intro p, .page-app .panel-note, .page-app .choice-text, .page-app .tile-note { color: var(--sub); }
.page-app .tile-value { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.03em; }
.page-app .tile-email { font-family: var(--ui); font-size: 15.5px; font-weight: 600; letter-spacing: 0; }
.page-app .choice-title { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.035em; }
.page-app .empty { border-color: #3d3f37; color: var(--sub); background: radial-gradient(circle, #8c8f8024 .7px, transparent .9px) 0 0 / 16px 16px; }

/* Rows, facts and tables on ruled lines */
.page-app .rows, .page-app .portal-scroll { border-color: #3d3f37; }
.page-app .rows > li + li, .page-app .facts > div, .page-app table.data td, .page-app table.data th { border-color: #2d2f28; }
.page-app .row-link:hover { background: var(--tint); }
.page-app table.data td { font-variant-numeric: tabular-nums; }

/* Badges: stamp chips */
.page-app .badge { font-size: 10px; font-weight: 500; padding: 3px 8px; line-height: 1.4; border-color: var(--line-2); background: none; }
.page-app .badge.ok { color: var(--pen); border-color: color-mix(in srgb, var(--pen) 55%, transparent); background: none; }
.page-app .badge.warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, transparent); background: none; }
.page-app .badge.info { color: var(--peri); border-color: color-mix(in srgb, var(--peri) 55%, transparent); background: none; }
.page-app .badge.role { color: var(--fg); background: none; }

/* Avatars: ink on paper-dark */
.page-app .avatar { background: #1d1f1a; border-color: #4a4c42; color: var(--paper); font-family: var(--ui); }

/* Buttons: the public site's square button (pen fill, near-black text, a 4 px offset shadow on hover) */
.page-app .btn { font: 650 14.5px/1 var(--ui); letter-spacing: -.01em; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s; }
.page-app .btn-primary { background: var(--pen); color: #141510; border: 0; box-shadow: 0 0 0 0 var(--pen); }
.page-app .btn-primary:hover { background: var(--pen); transform: translateY(-1px); box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--pen) 35%, transparent); }
.page-app .btn-ghost { background: transparent; border-color: #4a4c42; color: var(--fg); }
.page-app .btn-ghost:hover { background: transparent; border-color: var(--pen); color: var(--pen); }
.page-app .link-button, .page-app .link-strong, .page-app .panel-note a, .page-app .side-note a, .page-app .side-links a,
.page-app .portal-note a, .page-app .auth-card .lede a, .page-app .portal-account a:not(.btn) { color: var(--pen); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-app .choice-go { color: var(--pen); }
.page-app .link-button.danger { color: var(--rose); }

/* Forms: square fields on the sheet, the label always above */
.page-app .portal-form label, .page-app .checkout-form .field, .page-app .invite-fields label { color: var(--fg); font-weight: 600; font-size: 13.5px; }
.page-app .portal input, .page-app .portal select, .page-app .portal textarea,
.page-app .checkout-form input:not([type=radio]):not([type=checkbox]), .page-app .checkout-form select, .page-app .checkout-form textarea {
  background: #121310; border: 1px solid #3d3f37; color: var(--paper); font-family: var(--ui); }
.page-app .portal input:focus, .page-app .portal select:focus, .page-app .portal textarea:focus,
.page-app .checkout-form input:focus, .page-app .checkout-form select:focus, .page-app .checkout-form textarea:focus {
  outline: none; border-color: var(--pen); box-shadow: inset 2px 0 0 var(--pen); }
.page-app .portal select option, .page-app .checkout-form select option { background: #171814; color: var(--paper); }
.page-app .portal-form .hint { color: var(--dim); }
.page-app .account-form fieldset + fieldset, .page-app .auth-card .account-form fieldset + .agree { border-top-color: var(--rule); }
.page-app .plan-card:has(input:checked), .page-app .pay-method:has(input:checked) { border-color: var(--pen); box-shadow: inset 0 0 0 1px var(--pen); }
.page-app .pay-method { border-color: #3d3f37; background: #121310; }
.page-app .plan-card .plan-price { color: var(--pen); font-family: var(--serif); font-weight: 400; font-size: 24px; }

/* Notices */
.page-app .pay-notice { border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent); background: color-mix(in srgb, var(--amber) 7%, transparent); color: var(--fg); }
.page-app .pay-notice.ok { border-color: color-mix(in srgb, var(--pen) 55%, transparent); background: var(--pen-tint); }
.page-app .portal-owing { border-color: color-mix(in srgb, var(--peri) 45%, transparent); background: color-mix(in srgb, var(--peri) 6%, transparent); }
.page-app .portal-owing.overdue { border-color: color-mix(in srgb, var(--amber) 55%, transparent); background: color-mix(in srgb, var(--amber) 7%, transparent); }

/* Money pages: the amount in serif figures */
.page-app .pay-amount { background: #121310; border-color: #3d3f37; }
.page-app .pay-amount-value { font-family: var(--serif); font-weight: 400; font-size: 44px; letter-spacing: -.03em; }
.page-app .done-mark.ok { color: #141510; background: var(--pen); border-color: var(--pen); }
.page-app .buy-steps { font-size: 10.5px; color: var(--dim); }
.page-app .buy-steps li[aria-current] { color: var(--fg); }
.page-app .buy-steps li.done::before { color: #141510; }
@media (max-width: 960px) { .page-app .side-label { display: none; } }
