/* The Hypnogami app prototype. Two parts: the review studio around the devices (dark, quiet,
   prototype-only, never built into the app), and the app itself: its parts and base tokens here,
   its one theme, Lantern, in theme.css. */
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; }
@font-face { font-family: "Geist"; src: url(/fonts/geist.woff2) format("woff2"); font-weight: 400 600; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono.woff2) format("woff2"); font-weight: 400 500; }

:root {
  --paper: #f4efe7;
  --sheet: #fbf8f2;
  --line: #d9d2c5;
  --deep: #1f3a30;
  --deep-2: #2b4c40;
  --ink: #1b1a24;
  --soft: #4a4954;
  --muted: #6b6a63;
  --signal: #e4572e;
  --signal-text: #b8401d;
  --wash: #ebe4d8;
  /* the night version: the session as it is listened to, before the page wakes into paper */
  --night: #0d1a15;
  --night-2: #142620;
  --night-muted: #9fb1a7;
  /* the warm companions: each colour means one thing, so the eye knows where to go */
  --go: #e9a23b;        /* honey: the way forward (Make it yours, the next step that converts) */
  --go-soft: #fbe8c6;
  --go-ink: #6e4206;
  --free: #6f9a7b;      /* sage: free, yours, saved */
  --free-soft: #e2ede3;
  --free-ink: #2c5638;
  --ai: #4f86a8;        /* lake: AI, paid for in credits */
  --ai-soft: #dde9f1;
  --ai-ink: #1f4d6b;
  /* the editor's track colours, warm and saturated on the night ground: each track its own, each
     family of blocks its own. They name a track or a block, never a meaning */
  --rose: #ec8fa4;
  --clay: #dc8b60;
  --tide: #74c2b3;
  --mauve: #c49bc4;
  --fern: #a9c47f;
  --shell: #f2c0ad;
  --ember: #e8875f;     /* a direction over words: the warm band and its label */
  --ember-soft: #f7ddd0;
  --ember-ink: #8a3f22;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* the studio around the devices */
  --st-bg: #121318;
  --st-panel: #1a1c22;
  --st-line: #2a2d35;
  --st-text: #e9e4da;
  --st-dim: #8d8a83;
  --st-soft: #b9b5ad;   /* AAA on the rail */
  --st-honey: #ffb43c;  /* Lantern's honey (theme.css --go): a note's number */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--st-bg); color: var(--st-text); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; }
/* what is pressed is never selected: a double or triple click lands on nothing */
.screen-box button, .screen-box [data-act], .screen-box .label { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }

/* ---- The studio (prototype only) ---------------------------------------------------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto minmax(0, 1fr); height: 100vh; }
.studio-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--st-line); background: var(--st-panel); }
.studio-brand { display: flex; align-items: center; gap: 8px; font: 400 18px/1 var(--serif); white-space: nowrap; }
.studio-brand small { font: 400 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-dim); }
.studio-bar select, .rail input[type="number"] { background: var(--st-bg); color: var(--st-text); border: 1px solid var(--st-line); border-radius: 8px; padding: 6px 8px; font: 13px var(--sans); }
.studio-bar select { max-width: 280px; }
.transport { display: flex; align-items: center; gap: 6px; }
.tbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--st-line); background: var(--st-bg); cursor: pointer; }
.tbtn:hover { border-color: #444955; }
.tbtn svg { width: 16px; height: 16px; }
.tbtn.is-on { background: var(--st-text); color: var(--st-bg); }
.speed { font: 12px var(--mono); width: auto; padding: 0 8px; }
.timeline { flex: 1; position: relative; min-width: 200px; height: 32px; display: flex; align-items: center; }
.timeline input { width: 100%; position: relative; z-index: 2; accent-color: var(--signal); background: transparent; }
.ticks { position: absolute; inset: 0 8px; pointer-events: none; }
.ticks i { position: absolute; top: 4px; width: 2px; height: 6px; border-radius: 1px; background: #5b5f69; transform: translateX(-1px); }
.ticks i.say { background: var(--st-text); height: 8px; top: 2px; }
.ticks i.you { background: #8fb7a4; }
.ticks i.refused { background: var(--signal); }
.time { font: 12px var(--mono); color: var(--st-dim); min-width: 96px; text-align: right; }
.live-pill { font: 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: #2f4a3e; color: #cfe5d8; }
.views { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--st-line); border-radius: 8px; }
.views button { border: 0; background: none; padding: 5px 9px; border-radius: 6px; font-size: 12px; color: var(--st-dim); cursor: pointer; }
.views button.is-on { background: var(--st-line); color: var(--st-text); }

.stage { grid-row: 2; grid-column: 1; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.devices { flex: 1; display: flex; align-items: center; justify-content: center; gap: 36px; padding: 18px 24px 6px; min-height: 0; }
.device { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.device-box { width: 100%; }
.device-scale { transform-origin: top left; width: max-content; }
.device-name { font: 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-dim); }
.phone .device-frame { width: 414px; height: 868px; padding: 12px; border-radius: 56px; background: #0b0b0e; box-shadow: 0 0 0 1px #2c2f37, 0 30px 80px rgb(0 0 0 / 0.5); position: relative; }
.phone .device-frame::before { content: ""; position: absolute; top: 22px; left: 50%; width: 112px; height: 32px; margin-left: -56px; border-radius: 20px; background: #0b0b0e; z-index: 6; }
.phone .screen-box { width: 390px; height: 844px; border-radius: 44px; display: flex; flex-direction: column; }
.phone .screen { flex: 1; }
.desktop .device-frame { width: 1280px; height: 840px; border-radius: 12px; background: #23252c; box-shadow: 0 0 0 1px #33363f, 0 30px 80px rgb(0 0 0 / 0.5); overflow: hidden; display: flex; flex-direction: column; }
.desktop .chrome { flex: none; height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #2b2e36; }
.desktop .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #4a4e58; display: inline-block; margin-right: 4px; }
.desktop .url { flex: 1; max-width: 560px; margin: 0 auto; padding: 5px 12px; border-radius: 7px; background: #1c1e24; color: #b9b5ad; font: 12px var(--sans); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desktop .screen-box { width: 1280px; height: 800px; }
.desktop .screen { height: 100%; }
.screen-box { position: relative; overflow: hidden; background: var(--paper); container: app / inline-size; }
.layer { position: absolute; inset: 0; z-index: 10; pointer-events: none; color: var(--ink); font: 400 16px/1.55 var(--sans); }
.layer > * { pointer-events: auto; }
.layer > .toast, .layer > .sheet-scrim { pointer-events: none; }
.screen { position: relative; overflow-y: auto; overflow-x: hidden; background: var(--paper); color: var(--ink); scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen { container: screen / size; } /* 100cqh is one screen: a page part may be exactly as tall as the screen */
.statusbar { flex: none; position: relative; z-index: 5; height: 50px; background: var(--paper); color: var(--ink); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 30px 8px 34px; font: 600 15px/1 var(--sans); pointer-events: none; }
.statusbar.is-dark { color: #fff; background: #000; }
.statusbar.is-night { color: var(--paper); background: var(--night); }
.taps { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.tap { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid var(--signal); background: rgb(228 87 46 / 0.18); }

.caption { flex: none; min-height: 84px; padding: 10px 24px 18px; text-align: center; }
.caption-say { font: 400 24px/1.25 var(--serif); color: var(--st-text); text-wrap: balance; }
.caption-sells { margin-top: 6px; font: 12px/1.45 var(--sans); color: var(--st-dim); }
.caption-sells b { font: 500 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #f0a387; margin-right: 8px; }

.rail { grid-row: 2; grid-column: 2; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--st-line); background: var(--st-panel); }
.rail-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--st-line); }
.rail-tabs button { flex: 1; border: 0; background: none; padding: 7px 6px; border-radius: 6px; color: var(--st-dim); font-size: 12px; cursor: pointer; }
.rail-tabs button.is-on { background: var(--st-line); color: var(--st-text); }
.tab-count { font: 500 11px/1 var(--mono); color: var(--st-honey); margin-left: 2px; }
.rail-body { flex: 1; overflow-y: auto; padding: 10px 12px 24px; }
.pb-head { padding: 4px 4px 12px; border-bottom: 1px solid var(--st-line); margin-bottom: 10px; }
.pb-head h2 { margin: 0 0 4px; font: 400 22px/1.15 var(--serif); }
.pb-head p { margin: 0; color: var(--st-dim); font-size: 12.5px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.step:hover { background: #20232a; }
.step.is-past { opacity: 0.55; }
.step.is-now { background: #232a27; opacity: 1; box-shadow: inset 2px 0 0 var(--signal); }
.step-t { font: 11px/1.6 var(--mono); color: var(--st-dim); }
.step-say { font-size: 13px; }
.step-sells { margin-top: 3px; font-size: 11.5px; color: #c9a596; }
.log-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 5px 4px; border-bottom: 1px solid #22252c; font-size: 12px; }
.log-row .t { font: 11px/1.6 var(--mono); color: var(--st-dim); }
.log-row b { font: 500 12px var(--mono); }
.log-row .a { color: var(--st-dim); word-break: break-word; }
.log-row.you b { color: #9fd0b8; }
.log-row.refused b { color: var(--signal); }
.log-row .why { color: #f0a387; }
.log-row.future { opacity: 0.35; }
.mail { padding: 10px; border: 1px solid var(--st-line); border-radius: 10px; margin-bottom: 8px; }
.mail-k { font: 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-dim); }
.mail-s { margin: 6px 0 4px; font-weight: 500; }
.mail-b { color: var(--st-dim); font-size: 12.5px; }
.knob { display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; }
.knob input { width: 100%; }
.rail-note { color: var(--st-dim); font-size: 12px; margin: 14px 0 0; }
.rail-empty { color: var(--st-dim); font-size: 12.5px; padding: 6px 4px; }
/* notes: the box a note is typed in, over a device (in its Lantern tokens), kept the size it is seen at
   however small the device is drawn (--gk); and their list in the rail. Nothing marks the screens */
.is-noting .screen-box, .is-noting .screen-box * { cursor: crosshair !important; }
.notes { position: absolute; inset: 0; pointer-events: none; z-index: 55; }
.note-box { position: absolute; width: 280px; padding: 10px 10px 8px; border: 1px solid var(--line-2, #354a45); border-radius: 10px; background: var(--raise, #223430); color: var(--ink); box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.75); pointer-events: auto; transform: scale(calc(1 / var(--gk, 1))); transform-origin: 0 0; font: 400 14px/1.4 var(--sans); }
.note-box.is-up { transform-origin: 0 100%; }
.note-box-on { margin: 0 0 6px; font: 400 11.5px/1.35 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.note-box textarea { display: block; width: 100%; min-height: 52px; padding: 7px 9px; border: 1px solid var(--line-2, #354a45); border-radius: 7px; background: var(--abyss, #050908); color: var(--ink); font: inherit; resize: none; field-sizing: content; max-height: 180px; }
.note-box textarea:focus { outline: 2px solid var(--go); outline-offset: 0; border-color: transparent; }
.note-box textarea::placeholder { color: var(--muted); }
.note-box-k { margin-top: 6px; font: 400 11px/1 var(--mono); color: var(--muted); text-align: right; }
.notes-hint, .notes-none { margin: 2px 4px 12px; color: var(--st-soft); }
.notes-hint kbd { font: 500 11px/1 var(--mono); padding: 2px 5px; border: 1px solid var(--st-line); border-radius: 4px; color: var(--st-text); }
.note-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; padding: 8px 6px 10px; border-radius: 8px; border-bottom: 1px solid #22252c; }
.note-row.is-lit { background: #232a27; box-shadow: inset 2px 0 0 var(--st-honey); }
.note-go { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 2px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.note-go:hover .note-where { color: var(--st-text); }
.note-n { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--st-honey); color: #050908; font: 600 11px/1 var(--mono); }
.note-where { font-size: 12px; line-height: 1.45; color: var(--st-soft); overflow-wrap: anywhere; padding-top: 1px; }
.note-del { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--st-soft); cursor: pointer; }
.note-del:hover { border-color: var(--st-line); color: var(--st-text); }
.note-del svg { width: 16px; height: 16px; }
.note-on { grid-column: 1 / -1; padding-left: 28px; font-size: 12px; color: var(--st-soft); overflow-wrap: anywhere; }
.note-text { grid-column: 1 / -1; margin: 2px 0 0 20px; width: calc(100% - 20px); padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--st-text); font: 13.5px/1.45 var(--sans); resize: none; field-sizing: content; }
.note-text:hover { border-color: var(--st-line); }
.note-text:focus { outline: none; border-color: #444955; background: var(--st-bg); }
.notes-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0 4px; font-size: 12.5px; }
.notes-foot.is-confirm span { flex: 1; color: var(--st-text); }
.rail-btn { min-height: 32px; padding: 0 12px; border: 1px solid var(--st-line); border-radius: 8px; background: var(--st-bg); color: var(--st-text); font-size: 12.5px; cursor: pointer; }
.rail-btn:hover { border-color: #444955; }
.rail-btn.is-main { flex: 1; background: var(--st-text); color: var(--st-bg); border-color: var(--st-text); }
/* changes: the last review round, one row per note */
.ch-nav { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font: 11px/1 var(--mono); color: var(--st-dim); }
.ch-nav span { flex: 1; text-align: center; }
.ch-nav .rail-btn { flex: none; }
.ch-nav .rail-btn:disabled { opacity: 0.4; cursor: default; }
.ch-row { display: flex; gap: 8px; width: 100%; padding: 9px 6px 11px; border: 0; border-bottom: 1px solid #22252c; border-radius: 8px; background: none; color: var(--st-text); text-align: left; font: inherit; cursor: pointer; }
.ch-row:hover { background: #20232a; }
.ch-row.is-lit { background: #232a27; box-shadow: inset 2px 0 0 var(--st-honey); }
.ch-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--st-honey); color: #050908; font: 600 11px/1 var(--mono); }
.ch-body { display: grid; gap: 3px; min-width: 0; }
.ch-said { font-size: 12px; font-style: italic; color: var(--st-soft); }
.ch-what { font-size: 13px; line-height: 1.4; }
.ch-where { font: 10.5px/1.4 var(--mono); color: var(--st-dim); }
.missing { padding: 80px 24px; text-align: center; color: var(--muted); font: 14px var(--mono); }

/* ---- The app (its base tokens; the Lantern theme in theme.css sets its look) ------------------- */
.app { min-height: 100%; position: relative; font: 400 16px/1.55 var(--sans); }
/* nothing a person types widens the page: a long title, wish or line breaks where it must, on
   every screen and in every sheet, dock and card; a button's own label never does (nowrap) */
.app, .layer { overflow-wrap: anywhere; }
.app h1, .app h2, .app h3, .app p { margin: 0; }
.app p { text-wrap: pretty; }
.gami { display: block; }
.label { font: 400 11.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@container app (min-width: 700px) { .wrap { padding: 0 40px; } }

/* a scaled frame can land the sticky bar a pixel below the top of the page: the paper above it covers
   that pixel, so no sliver of the scrolled page shows along the browser bar */
.appbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid transparent; box-shadow: 0 -3px 0 var(--paper); }
.appbar-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; border: 0; background: none; padding: 0; cursor: pointer; font: 400 22px/1 var(--serif); }
.appbar-back { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -8px 0 -12px; border: 0; background: none; cursor: pointer; }
.appbar-back svg { width: 22px; height: 22px; }
.appbar-nav { display: none; gap: 22px; margin-left: 28px; }
@container app (min-width: 700px) { .appbar { padding: 14px 40px; } .appbar-nav { display: flex; } }
.appbar-link { min-height: 44px; border: 0; background: none; color: var(--soft); cursor: pointer; padding: 0; font-size: 15px; }
.appbar-link:hover { color: var(--ink); }
.appbar-signin, .appbar-credits { margin-left: auto; min-height: 44px; border: 1px solid var(--line); background: var(--sheet); border-radius: var(--pill, 999px); padding: 7px 16px; cursor: pointer; font-size: 14px; }
.appbar-credits { display: inline-flex; gap: 5px; align-items: center; margin-left: 0; padding-inline: 13px; }
.appbar-you { margin-left: auto; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; text-decoration-color: var(--line); cursor: pointer; white-space: nowrap; }
.appbar-you:hover { text-decoration-color: currentColor; }
/* a phone signed in keeps the mark and gives its room to Your sessions and the credits */
@container app (max-width: 699px) { .appbar.is-in .appbar-brand span { display: none; } }
.appbar-credits b { font: 500 14px/1 var(--mono); }
.appbar-credits span { font-size: 12px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--pill, 999px); border: 1px solid transparent; cursor: pointer; font: 500 16px/1.2 var(--sans); white-space: nowrap; transition: none; }
.btn-primary { background: var(--deep); color: var(--paper); }
.btn-primary:hover { background: var(--deep-2); }
.btn-ghost { background: var(--sheet); border-color: var(--line); color: var(--ink); }
.btn-quiet { background: none; color: var(--deep); padding-inline: 8px; min-height: 44px; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.btn-signal { background: var(--signal); color: #fff; }
.btn-go { background: var(--go); color: var(--ink); box-shadow: 0 1px 0 rgb(110 66 6 / 0.25); }
.btn-go:hover { background: color-mix(in srgb, var(--go) 88%, var(--sheet)); }
/* the way forward that glows (K.glow): a halo breathing with --glow and a warm light turning with
   --turn, both set from the clock on every frame; never animated by the browser */
.btn-glow { position: relative; isolation: isolate; background: conic-gradient(from var(--turn, 0deg), var(--go) 0deg, #f6c978 70deg, var(--go) 150deg, #dc8d26 250deg, var(--go) 360deg);
  box-shadow: 0 1px 0 rgb(110 66 6 / 0.25), 0 0 calc(8px + 18px * var(--glow, 0)) calc(1px + 3px * var(--glow, 0)) rgb(233 162 59 / calc(0.22 + 0.28 * var(--glow, 0))); }
.btn-glow:hover { background: conic-gradient(from var(--turn, 0deg), #edad4f 0deg, #f8d38b 70deg, #edad4f 150deg, #e19734 250deg, #edad4f 360deg); }
.btn-free { background: #4d7d5b; color: #fff; }
.btn-free:hover { background: color-mix(in srgb, #4d7d5b 88%, var(--ink)); }
.btn-ai { background: var(--ai); color: #fff; }
.btn-ai:hover { background: color-mix(in srgb, var(--ai) 88%, var(--ink)); }
/* what AI costs, on every AI action */
.ai-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--pill, 999px); background: var(--ai-soft); color: var(--ai-ink); font: 500 11px/1.5 var(--mono); letter-spacing: 0.02em; white-space: nowrap; }
.ai-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ai); }
.free-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--pill, 999px); background: var(--free-soft); color: var(--free-ink); font: 500 11px/1.5 var(--mono); letter-spacing: 0.02em; white-space: nowrap; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-icon { display: inline-grid; width: 20px; height: 20px; }
.btn-icon svg { width: 20px; height: 20px; }
.btn-wide { width: 100%; }
/* a button that says which one it opens: the label, and under it, smaller, the name */
.btn-two { white-space: normal; min-width: 0; max-width: 100%; padding-block: 7px; border-radius: calc(24px * var(--round, 1)); text-align: left; }
.btn-lines { display: grid; gap: 1px; min-width: 0; }
.btn-sub { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 400 12.5px/1.25 var(--sans); opacity: 0.82; }

.chip { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 44px; padding: 9px 14px; border-radius: calc(14px * var(--round, 1)); border: 1px solid var(--line); background: var(--sheet); cursor: pointer; text-align: left; font-size: 14.5px; }
.chip small { color: var(--muted); font-size: 12px; }
.chip.is-on { border-color: var(--deep); background: var(--deep); color: var(--paper); }
.chip.is-on small { color: #c5d3cb; }

.field { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: calc(14px * var(--round, 1)); background: var(--sheet); color: var(--ink); font: 16px/1.45 var(--sans); resize: none; }
.field:focus { outline: 2px solid var(--deep); outline-offset: 1px; }

.curve { display: block; width: 100%; height: 100%; overflow: visible; }
.curve-none { display: grid; place-items: center; border: 1px dashed var(--line); border-radius: calc(12px * var(--round, 1)); font: 11px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.curve-area { fill: rgb(31 58 48 / 0.08); }
.curve-line { fill: none; stroke: var(--deep); stroke-width: 2; }
.curve-line path, .art-line path { vector-effect: non-scaling-stroke; }
.curve-tick { stroke: var(--line); stroke-width: 1; }
.curve-dot { --dot: var(--signal); --ring: var(--paper); }
.dot-core { stroke: var(--dot); }
.dot-ring { stroke: var(--ring); }
.curve-labels { position: relative; height: 15px; margin-top: 6px; font: 10.5px/15px var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.curve-labels span { position: absolute; top: 0; white-space: nowrap; }

.player { margin: 0; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: calc(20px * var(--round, 1)); background: var(--sheet); }
.player-play { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--deep); color: var(--paper); cursor: pointer; }
.player-play svg { width: 26px; height: 26px; }
.player-track { height: 64px; }
.player-cap { display: flex; justify-content: space-between; font: 12px/1 var(--mono); color: var(--muted); }
.player-phase { color: var(--ink); }

.byline { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.byline-where { color: var(--muted); }
.byline-where::before { content: "·"; margin-right: 7px; }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--wash); color: var(--deep); font: 400 15px/1 var(--serif); }
.avatar-house { background: var(--sheet); border: 1px solid var(--line); }

.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: calc(18px * var(--round, 1)); background: var(--sheet); overflow: hidden; cursor: pointer; }
/* the length sits in its own band above the curve: the curve never runs through it */
.card-art { position: relative; height: 104px; padding: 28px 0 0; background: var(--wash); }
.card-min { position: absolute; top: 10px; right: 12px; font: 11px/1 var(--mono); color: var(--muted); }
.card-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.card-title { font: var(--display, 400) 23px/1.1 var(--serif); letter-spacing: var(--title-track, normal); }
.card-stats { display: flex; gap: 14px; font: 12px/1 var(--mono); color: var(--muted); }
.card-stats span { display: inline-flex; align-items: center; gap: 4px; }
.card-stats svg { width: 15px; height: 15px; }


/* the toast sits in the app bar's band: on a desktop in the bar's empty middle, between where you are
   and who you are; on a phone over the bar's row, under the status bar. Never over the page */
.toast { position: absolute; left: 50%; top: 14px; z-index: 30; display: grid; place-items: center; min-height: 44px; padding: 6px 18px; border-radius: calc(22px * var(--round, 1)); background: var(--ink); color: var(--paper); font-size: 14.5px; line-height: 1.3; width: max-content; max-width: calc(100% - 720px); overflow-wrap: anywhere; text-align: center; text-wrap: balance; box-shadow: 0 10px 30px rgb(27 26 36 / 0.25); }
@container app (max-width: 699px) { .toast { top: 56px; width: calc(100% - 20px); max-width: none; min-height: 52px; padding: 6px 14px; font-size: 14px; } }
.toast.is-writing { display: flex; align-items: center; justify-content: center; }
.toast-dots { display: inline-block; width: 1.2em; text-align: left; }
/* the service's answer under a field: what to change, in its own words */
.why { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--signal-text); overflow-wrap: anywhere; }
/* a capped field's count, near the cap, and by how much it is over */
.limit { margin: 0; font: 400 12px/1.3 var(--mono); color: var(--muted); text-align: right; }
.limit.is-over { color: var(--signal-text); }
/* what people type is quoted as typed: a long unbroken run wraps instead of pushing the page wide */
q, blockquote, .field { overflow-wrap: anywhere; }

.sheet-scrim { position: absolute; inset: 0; z-index: 20; background: rgb(27 26 36 / 0.4); }
.sheet h1, .sheet h2, .sheet h3, .sheet p { margin: 0; }
.sheet { color: var(--ink); font: 400 16px/1.55 var(--sans); position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 92%; overflow-y: auto; padding: 22px 20px 28px; border-radius: calc(26px * var(--round, 1)) calc(26px * var(--round, 1)) 0 0; background: var(--paper); transform: translateY(calc((1 - var(--p)) * 40%)); opacity: var(--p); }
@container app (min-width: 700px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; border-radius: calc(26px * var(--round, 1)); transform: translate(-50%, calc(-50% + (1 - var(--p)) * 30px)); } }

/* pricing, terms and privacy: quiet links, and the footer that carries them */
.legal-link { position: relative; display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; cursor: pointer; }
.legal-link::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
.legal-foot .legal-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.legal-foot { min-height: 44px; align-items: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; font-size: 13.5px; color: var(--muted); }
.app q, .app blockquote, .app .field { overflow-wrap: anywhere; }

/* items joined by a dot: each item carries its dot in front of it, in a gutter the list draws one
   gutter to the left of its own edge and clips, so the first item on every line, wrapped or not, shows
   none: a line never starts or ends in a dot, and an item (a date, a name) never breaks inside */
.dots { --dot: 15px; display: flex; flex-wrap: wrap; clip-path: inset(-4px -4px -4px var(--dot)); }
.app .dots, .layer .dots { margin-left: calc(-1 * var(--dot)); }
.dots > span { position: relative; min-width: 0; max-width: 100%; padding-left: var(--dot); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dots > span::before { content: "·"; position: absolute; left: 0; width: var(--dot); text-align: center; }
