/* The script page: your own script's page, and every script's lines */
.sp { padding: 18px 20px 40px; display: grid; gap: 18px; }
.sp-head { display: grid; gap: 8px; }
.sp-welcome { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: var(--pill, 999px); background: var(--free-soft); font-size: 13.5px; color: var(--free-ink); }
.sp-welcome i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--free); }
.sp-title { font: var(--display, 400) 42px/1.02 var(--serif); letter-spacing: var(--title-track, -0.01em); text-wrap: balance; }
.sp-by { margin-top: 2px; }
.sp-purpose { font-size: 17px; color: var(--soft); }
.sp-from { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.sp-from svg { width: 16px; height: 16px; flex: none; }
.sp-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; padding: 0; color: var(--deep); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; font: inherit; }

.sp-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.sp-stat { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 12px; border-radius: var(--pill, 999px); color: inherit; font: inherit; white-space: nowrap; }
.sp-stat-forks { background: var(--free-soft); color: var(--free-ink); }
.sp-stat-forks svg, .sp-stat-forks b { color: var(--free-ink); }
.sp-stat-listens { background: var(--free-soft); color: var(--free-ink); }
.sp-stat-listens b { color: var(--free-ink); }
.sp-stat b { font: 500 13.5px var(--mono); color: var(--ink); }
.sp-stat svg { width: 20px; height: 20px; color: var(--deep); }
button.sp-stat { cursor: pointer; min-height: 44px; padding: 6px 12px 6px 9px; border-radius: var(--pill, 999px); border: 1px solid var(--line); background: var(--sheet); }
button.sp-stat.is-on { border-color: var(--deep); background: var(--deep); color: var(--paper); }
button.sp-stat.is-on svg, button.sp-stat.is-on b { color: var(--paper); }

.sp-ask { display: grid; gap: 12px; padding: 18px; border-radius: calc(22px * var(--round, 1)); background: var(--deep); color: var(--paper); }
.sp-ask .label { color: #b9cbc1; }
.sp-ask-lead { font: 400 22px/1.2 var(--serif); }
.sp-ask-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp-pub { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #cfdcd4; }
.sp-pub svg { width: 18px; height: 18px; }

.sp-end { height: 70px; }

.sp-h2 { font: var(--display, 400) 28px/1.1 var(--serif); letter-spacing: var(--title-track, normal); }
.sp-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sp-script { display: grid; gap: 6px; margin-top: 8px; }
.sp-script-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.sp-phase { display: grid; gap: 2px; }
.sp-phase-name { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font: 400 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sp-phase-name::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sp-line { position: relative; display: grid; gap: 2px; padding: 8px 12px; margin: 0 -12px; border-radius: calc(12px * var(--round, 1)); }
.sp-line-text { font: 400 20px/1.35 var(--serif); color: var(--ink); }
.sp-line-dir { font: 11.5px/1.3 var(--mono); color: var(--muted); }
.sp-line.is-now { background: var(--sheet); box-shadow: inset 3px 0 0 var(--deep); }
.sp-line.is-yours .sp-line-text { color: var(--deep); font-style: italic; }
/* the line the safety check stopped at: outlined in the warning colour, never filled */
.sp-line.is-held { margin-inline: 0; padding: 10px 14px 12px; box-shadow: inset 0 0 0 1.5px var(--signal-text, var(--signal)); }
.sp-held { grid-column: 1 / -1; color: var(--signal-text, var(--signal)); }
/* publishing sits inside the side card as a part of it, not a card in a card */
.sp-ask .pub { padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
/* the refusal is said by the publish part; the toast saying the same is not drawn beside it */
.screen-box:has(.pub-held.is-fresh) > .layer > .toast { display: none; }

.sp-family { display: grid; gap: 16px; margin-top: 14px; padding: 20px 18px; border-radius: calc(24px * var(--round, 1)); background: var(--free-soft); }
.sp-family-head { display: flex; align-items: center; gap: 14px; }
.sp-family-n { flex: none; display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 10px; border-radius: var(--pill, 999px); background: var(--free); color: #fff; font: 500 18px/1 var(--mono); }
.sp-family .sp-sub { color: var(--free-ink); }
.sp-family .card { background: var(--sheet); }
.sp-family-list { display: grid; gap: 12px; }

@container app (min-width: 700px) {
  .sp-desk { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding-top: 36px; padding-bottom: 80px; }
  .sp-main { display: grid; gap: 22px; min-width: 0; }
  .sp-side { position: sticky; top: 90px; display: grid; gap: 16px; }
  .sp-title { font-size: 64px; }
  .sp-purpose { font-size: 19px; max-width: 40em; }
  .sp-line { grid-template-columns: minmax(0, 1fr) 170px; gap: 18px; align-items: baseline; }
  .sp-line-dir { justify-content: flex-end; text-align: right; }

  .sp-family-list { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

/* changing a line of your own session */
/* a line's direction and its Change sit on one row, always: the direction, then the key */
.sp-line-dir { display: flex; align-items: baseline; gap: 10px; }
.sp-dir-t { min-width: 0; }
/* a line of your own is the door to change it: pointed at or focused it is lit and says Change */
.sp-line-tap { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: text; }
.sp-line:has(.sp-line-tap) { cursor: text; }
.sp-change { display: none; flex: none; padding: 2px 8px; border-radius: 6px; background: var(--raise, var(--sheet)); font: 500 11px/1.5 var(--mono); color: var(--ink); }
.sp-line:has(.sp-line-tap:hover, .sp-line-tap:focus-visible) { background: var(--wash); }
.sp-line:has(.sp-line-tap:hover, .sp-line-tap:focus-visible) .sp-change { display: inline-block; }
.sp-line:has(.sp-line-tap:hover, .sp-line-tap:focus-visible) .sp-dir-t { display: none; }
.sp-line-tap:focus-visible { outline: none; }
.sp-edited { font-weight: 500; color: var(--deep); }
.sp-line.is-editing { background: var(--sheet); }
.sp-edit { display: grid; gap: 10px; }
.sp-edit-field { width: 100%; resize: vertical; font: 400 19px/1.35 var(--serif); color: var(--ink); }
.sp-edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sp-edit-note { font: 12px/1.4 var(--sans); color: var(--muted); }
.sp-revoice { display: grid; gap: 10px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: calc(14px * var(--round, 1)); background: var(--sheet); }
.sp-revoice p { font: 14px/1.45 var(--sans); color: var(--muted); }
.sp-revoice p b { color: var(--ink); font-weight: 500; }

/* your own session: sage, yours and saved */
.sp-mine { background: var(--free-soft); color: var(--ink); }
.sp-mine .label { color: var(--free-ink); }
.sp-mine .sp-ask-lead { color: var(--ink); }
.sp-mine .btn-primary { background: var(--deep); color: var(--paper); }
.sp-mine .sp-pub { color: var(--free-ink); }
.sp-revoice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }


/* ---- The landing: a script that is not yours ------------------------------------------------
   The night version of the video, then chapters on paper, each one screen tall (100cqh is the
   screen); the dock is sticky at the foot of the stretch it serves, so it leaves with it. */
.lp { background: var(--paper); }
.lp .label { letter-spacing: 0.08em; }

/* the hero: night, the session listened to first */
/* --built: where How it's built stands; the intro starts under it */
.lp-hero { --built: 68px; position: relative; height: 100cqh; min-height: 560px; overflow: hidden; color: var(--paper); background: radial-gradient(120% 80% at 50% 38%, #16291f 0%, var(--night) 62%); }
.lp-hero .appbar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; background: transparent; backdrop-filter: none; }
.lp-hero .appbar-brand, .lp-hero .appbar-back { color: var(--paper); }
.lp-hero .appbar-link { color: #c8d1ca; }
.lp-hero .appbar-link:hover { color: var(--paper); }
.lp-hero .appbar-you { color: var(--paper); text-decoration-color: rgb(244 239 231 / 0.3); }
.lp-hero .appbar-you:hover { text-decoration-color: currentColor; }
.lp-hero .appbar-signin, .lp-hero .appbar-credits { background: transparent; border-color: rgb(244 239 231 / 0.26); color: var(--paper); }
.lp-hero .appbar-credits span { color: var(--night-muted); }
.lp-hero-gami { position: absolute; width: 900px; height: 900px; left: calc(100% - 421px); top: calc(30% - 542px); opacity: 0.06; transform-origin: 61.23% 60.25%; pointer-events: none; }
/* the intro starts 14px under How it's built (its pill drawn 30px tall from --built), so the welcome never
   runs under it; too tall for the screen, it runs on down, never up under the pill, and nothing in it is squeezed */
.lp-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; text-align: center; padding: calc(var(--built) + 44px) 22px 134px; }
.lp-intro > * { flex: none; }
.lp-intro .sp-welcome { justify-self: center; margin-bottom: 20px; background: rgb(226 237 227 / 0.12); color: #d3e4d7; font-size: 13px; text-align: left; }
.lp-kind { color: var(--night-muted); margin-bottom: 14px; }
.lp-title { font: var(--display, 400) 56px/0.95 var(--serif); letter-spacing: var(--title-track, -0.015em); text-wrap: balance; }
.lp .lp-purpose { margin-top: 14px; font-size: 17px; color: #c8d1ca; max-width: 30ch; }
.lp-intro .sp-from { margin-top: 10px; color: var(--night-muted); }
.lp-intro .sp-link { color: var(--paper); }
.lp-play { position: relative; margin-top: 34px; width: 104px; height: 104px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; color: var(--night); }
.lp-play::before, .lp-play-ring { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(244 239 231 / 0.32); }
.lp-play-disc { width: 76px; height: 76px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.lp-play-disc svg { width: 30px; height: 30px; margin-left: 4px; }
.lp-play-label { margin-top: 16px; color: var(--night-muted); }
.lp-built { position: absolute; top: var(--built); left: 50%; z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; height: 44px; margin-top: -7px; padding: 0 13px 0 10px; border: 0; background: none; color: var(--night-muted); font: 400 10.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.lp-built::before { content: ""; position: absolute; inset: 7px 0; z-index: -1; border: 1px solid rgb(244 239 231 / 0.2); border-radius: var(--pill, 999px); background: rgb(244 239 231 / 0.04); }
.lp-built svg { width: 15px; height: 15px; }
.lp-built:hover { color: var(--paper); }
.lp-built:hover::before { border-color: rgb(244 239 231 / 0.4); }
.lp-now { position: absolute; top: 112px; left: 0; right: 0; text-align: center; color: var(--night-muted); }
.lp-words { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 22px 170px; pointer-events: none; }
.lp-line { grid-area: 1 / 1; max-width: min(1040px, 100%); text-align: center; font: 400 34px/1.14 var(--serif); letter-spacing: -0.005em; color: rgb(244 239 231 / 0.26); text-wrap: balance; }
.lp-line .is-on { color: var(--paper); }
.lp-line .is-now { color: #fff; }
.lp-line-title { font-style: italic; color: rgb(244 239 231 / 0.9); }
.lp-ring { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.lp-ring svg { display: block; width: 15px; height: 15px; }
.lp-cue, .lp-pill { position: absolute; left: 50%; bottom: 20px; z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 17px 0 5px; border: 0; border-radius: var(--pill, 999px); font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer; }
.lp-cue { background: var(--paper); color: var(--night); box-shadow: 0 12px 30px -14px rgb(0 0 0 / 0.6); }
.lp-cue .lp-ring { background: rgb(13 26 21 / 0.08); }
.lp-cue:hover { background: #fff; }

/* dawn: the night wakes into paper */
.lp-dawn { position: relative; height: 66cqh; margin-top: -1px; display: flex; justify-content: center; align-items: flex-start; padding: 18cqh 20px 0; background: linear-gradient(to bottom in oklab, var(--night) 0%, #11231c 18%, var(--deep) 36%, #53685a 50%, #a9a68d 62%, #dccfb4 74%, #efe6d6 86%, var(--paper) 100%); }
.lp-dawn p { font: var(--display, 400) 42px/1 var(--serif); letter-spacing: var(--title-track, -0.012em); color: var(--paper); text-align: center; text-wrap: balance; }
.lp-dawn p i { color: #f1dcb2; }
.lp-dawn-night { position: absolute; left: 0; top: 55%; width: 1px; height: 1px; }

/* a chapter: one screen, the copy, what it shows, and the pill to the next */
.lp-ch { position: relative; min-height: 100cqh; background: var(--paper); }
.lp-stage { height: 100cqh; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 84px; transform: translateY(calc(-1 * var(--lp-give, 0px))); }
.lp-copy { flex: none; }
.lp-kicker { display: flex; align-items: center; gap: 10px; min-height: 26px; margin-bottom: 6px; color: var(--muted); }
.lp-kicker b { font-weight: 500; color: var(--ink); }
.lp-again { margin: -9px 0 -9px 4px; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border: 0; border-radius: var(--pill, 999px); background: none; font: 400 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.lp-again:hover { color: var(--ink); background: rgb(27 26 36 / 0.05); }
.lp-again svg { width: 12px; height: 12px; }
.lp-h2 { font: var(--display, 400) 31px/1.02 var(--serif); letter-spacing: var(--title-track, -0.012em); text-wrap: balance; }
.lp-h2 i { font-style: italic; }
.lp .lp-lead { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.lp-wide { display: none; }
.lp-show { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lp-pill { background: var(--deep); color: var(--paper); overflow: hidden; isolation: isolate; box-shadow: 0 12px 26px -16px rgb(31 58 48 / 0.7); }
.lp-pill:hover { background: var(--deep-2); }
.lp-pill-fill { position: absolute; inset: 0; z-index: -1; background: #456f5f; transform-origin: left center; }
.lp-pill .lp-ring { background: rgb(244 239 231 / 0.13); }
.lp-pill-label b { font-weight: 500; }
.lp-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--pill, 999px); font: 400 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.lp-tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.lp-tag.is-hand { background: var(--free-soft); color: var(--free-ink); }
.lp-tag.is-ai { background: var(--ai-soft); color: var(--ai-ink); }
.lp-guide-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ai-soft); display: grid; place-items: center; }
.lp-guide-dot svg { width: 15px; height: 15px; }
.lp-caret { display: inline-block; width: 1.5px; height: 18px; margin-left: 1px; background: var(--ink); vertical-align: middle; }
.lp-caret.is-ai, .lp-caret.is-hand { width: 2px; height: 0.9em; margin-left: 2px; background: var(--ai); vertical-align: -0.1em; }
.lp-caret.is-hand { background: var(--free); }

/* 1 tell it what you want: the conversation */
.lp-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: calc(20px * var(--round, 1)); background: var(--sheet); box-shadow: 0 30px 60px -40px rgb(31 58 48 / 0.35); }
.lp-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.lp-chat-who { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 14.5px; font-weight: 600; }
.lp-chat-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 14px 12px; -webkit-mask-image: linear-gradient(transparent 0, #000 40px); mask-image: linear-gradient(transparent 0, #000 40px); }
.lp-msg-at { flex: none; display: grid; }
.lp-msg-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.lp-msg-at-you .lp-msg-in { align-items: flex-end; }
.lp-msg-at-script .lp-msg-in { align-items: stretch; }
.lp-msg { max-width: 88%; margin-top: 10px; }
.lp-msg-you { padding: 10px 15px; border-radius: calc(18px * var(--round, 1)) calc(18px * var(--round, 1)) 5px calc(18px * var(--round, 1)); background: var(--deep); color: var(--paper); font-size: 15px; line-height: 1.4; }
.lp-msg-guide { display: flex; align-items: flex-end; gap: 8px; }
.lp-msg-guide .lp-guide-dot { width: 22px; height: 22px; }
.lp-msg-guide .lp-guide-dot svg { width: 13px; height: 13px; }
.lp-bubble { min-width: 58px; min-height: 41px; padding: 10px 15px; border-radius: calc(18px * var(--round, 1)) calc(18px * var(--round, 1)) calc(18px * var(--round, 1)) 5px; background: var(--ai-soft); color: #173a51; font-size: 15px; line-height: 1.4; }
.lp-dots { display: inline-flex; align-items: center; gap: 4px; height: 21px; }
.lp-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ai); }
.lp-msg-script { max-width: none; padding: 13px 15px 14px; border: 1px solid var(--line); border-radius: calc(16px * var(--round, 1)); background: var(--paper); color: var(--ink); }
.lp-first-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.lp-first-title { margin: 0 0 4px; font: var(--display, 400) 23px/1.1 var(--serif); letter-spacing: var(--title-track, normal); }
.lp-msg-script p { margin-top: 3px; font: 400 18px/1.32 var(--serif); }
.lp-sw { display: inline-block; }
.lp-hl { border-radius: 4px; }
.lp-msg-you .lp-hl.is-lit { background: rgb(226 237 227 / 0.22); box-shadow: 0 0 0 3px rgb(226 237 227 / 0.22); }
.lp-msg-script .lp-hl.is-lit { background: var(--free-soft); box-shadow: 0 0 0 2px var(--free-soft); color: var(--free-ink); }
/* the demo's composer: a played example, never drawn as a field that could take typing */
.lp-composer { flex: none; display: flex; align-items: center; gap: 10px; margin: 0 10px 10px; padding: 8px 6px 4px 6px; border-top: 1px dashed var(--line); pointer-events: none; }
.lp-field { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; overflow: hidden; font-size: 15px; white-space: nowrap; }
.lp-ph { color: var(--muted); font: italic 400 15px/1.2 var(--serif); }
.lp-send { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); }
.lp-send.is-ready { background: var(--deep); color: var(--paper); }
.lp-send svg { width: 14px; height: 14px; }
.lp-steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-steps li { display: flex; align-items: center; gap: 14px; height: 38px; color: var(--muted); }
.lp-steps li span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 400 11px/1 var(--mono); }
.lp-steps li.is-on { color: var(--ink); }
.lp-steps li.is-on span { color: #fff; }
.lp-steps li.is-on.is-hand span { background: var(--free); border-color: var(--free); }
.lp-steps li.is-on.is-ai span { background: var(--ai); border-color: var(--ai); }

/* 2 written with the craft of hypnosis: the plan, and the lines */
/* safe: when the screen is short, what it shows starts under the copy instead of spilling up into it */
.lp-craft { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; }
.lp-plan { position: relative; }
.lp-plan-chart { position: relative; height: 72px; }
.lp-plan-draw { height: 100%; }
.lp-plan-marks { position: absolute; inset: 0; pointer-events: none; }
.lp-mark { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2.5px solid var(--paper); background: var(--ai); color: #fff; display: grid; place-items: center; font: 400 10.5px/1 var(--mono); }
.lp-lines { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lp-ln { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: calc(14px * var(--round, 1)); background: var(--sheet); }
.lp-ln-n { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ai); color: #fff; display: grid; place-items: center; font: 400 10.5px/1 var(--mono); }
.lp-ln-t { font: 400 16.5px/1.25 var(--serif); color: var(--ink); }
.lp-ln-t em { border-radius: 3px; background: var(--ai-soft); box-shadow: 0 0 0 2px var(--ai-soft); color: var(--ai-ink); }
.lp-ln-tags { margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-ln-tags .label { font-size: 10px; }
.lp-ln-tags > span:last-child { display: inline-flex; }
.lp-ln-tags .lp-tag { height: 20px; font-size: 10px; }

/* 3 tune every part: one session, seven parts changing on it */
.lp-tune { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; gap: 8px; }
.lp-dimrow { flex: none; margin: 0 -16px; padding: 0 16px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 15px, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 15px, #000 16px, #000 calc(100% - 28px), transparent); }
.lp-dimrow-in { display: flex; gap: 6px; }
.lp-dimrow button { flex: none; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--pill, 999px); background: var(--sheet); font: 400 13px/1 var(--sans); color: var(--muted); white-space: nowrap; cursor: pointer; }
.lp-dimrow button.is-done { color: var(--ink); }
.lp-dimrow button.is-on { color: var(--ink); border-color: var(--ink); background: linear-gradient(90deg, #ebe4d6 var(--k), var(--sheet) var(--k)); }
.lp-card { padding: 13px 14px 2px; border: 1px solid var(--line); border-radius: calc(18px * var(--round, 1)); background: var(--sheet); box-shadow: 0 30px 60px -42px rgb(31 58 48 / 0.4); }
.lp-card-head { display: flex; align-items: center; justify-content: space-between; }
.lp-card-len { color: var(--ink); font-variant-numeric: tabular-nums; }
.lp .lp-card-title { margin-top: 3px; font: var(--display, 400) 23px/1.05 var(--serif); letter-spacing: var(--title-track, normal); }
.lp-card-line { position: relative; height: calc(3 * 1.28em + 14px); margin: 8px -8px 6px; padding: 7px 8px; border-radius: calc(12px * var(--round, 1)); font: 400 18.5px/1.28 var(--serif); color: var(--ink); }
.lp-card-words { position: absolute; inset: 7px 8px; }
.lp-tl { position: absolute; inset: 0; }
.lp-card-line.is-sweep .lp-tl { background: linear-gradient(90deg, var(--ink) 0 var(--sw, 0%), rgb(27 26 36 / 0.35) var(--sw, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-rows { border-top: 1px solid var(--line); }
.lp-r { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 31px; margin: 0 -8px; padding: 0 8px; border-bottom: 1px solid var(--line); border-radius: calc(10px * var(--round, 1)); }
.lp-r:last-child { border-bottom: 0; }
.lp-card.is-focusing .lp-r:not([class*="is-focus-"]) { opacity: 0.5; }
.lp-card.is-focusing .lp-card-line:not([class*="is-focus-"]) { opacity: 0.55; }
.is-focus-hand { background: color-mix(in oklab, var(--free-soft) 65%, transparent); box-shadow: inset 0 0 0 1px rgb(111 154 123 / 0.45); }
.is-focus-ai { background: color-mix(in oklab, var(--ai-soft) 70%, transparent); box-shadow: inset 0 0 0 1px rgb(79 134 168 / 0.45); }
.lp-r-k { font: 400 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lp-r-v { position: relative; height: 22px; min-width: 0; font-size: 14px; color: var(--ink); }
.lp-r-v > span { position: absolute; top: 0; left: 0; height: 22px; display: flex; align-items: center; white-space: nowrap; }
.lp-av { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: #9b998f; color: var(--paper); font: 600 11px/1 var(--sans); }
.lp-av.is-on { background: var(--deep-2); }
.lp-viz { display: block; width: 104px; height: 22px; overflow: visible; }
.lp-wave rect { fill: #9b998f; }
.lp-wave rect.is-on { fill: var(--deep-2); }
.lp-ticks line { stroke: #9b998f; stroke-width: 1.4; stroke-linecap: round; }
.lp-ticks line.is-on { stroke: var(--free-ink); }
.lp-sound path { fill: none; stroke: #9b998f; stroke-width: 1.6; stroke-linecap: round; }
.lp-sound g { stroke: var(--ai); stroke-width: 1.5; stroke-linecap: round; }
.lp-pulse path { fill: none; stroke: #9b998f; stroke-width: 1.5; stroke-linejoin: round; }
.lp-pulse path.is-on { stroke: var(--free-ink); }
.lp-pulse line { stroke: var(--ink); stroke-width: 1.4; }
.lp-len-0 { fill: #c9d8cc; }
.lp-len-1 { fill: #8fb19a; }
.lp-len-2 { fill: var(--free-ink); }
.lp-len-3 { fill: #a9c3b0; }
.lp-langs rect { fill: none; stroke: var(--line); }
.lp-langs text { font: 400 9.5px var(--mono); fill: var(--muted); }
.lp-langs .is-on rect { fill: var(--ai-soft); stroke: var(--ai); }
.lp-langs .is-on text { fill: var(--ai-ink); }
.lp-end path { fill: none; stroke: var(--free-ink); stroke-width: 1.6; stroke-linecap: round; }
.lp-invite { min-height: 72px; justify-content: center; }
.lp-invite p { font-size: 15px; line-height: 1.4; color: var(--muted); }
.lp-invite b { font-weight: 600; color: var(--ink); }
.lp-how { flex: none; display: flex; flex-direction: column; gap: 8px; }
.lp-how-lab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-how-lab .label { color: var(--ink); }
.lp-how-ctl { min-height: 42px; display: flex; align-items: center; min-width: 0; }
.lp-ask { max-width: 100%; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: calc(16px * var(--round, 1)) calc(16px * var(--round, 1)) calc(16px * var(--round, 1)) 5px; background: var(--ai-soft); color: #173a51; font-size: 14px; }
.lp-ask.is-hand { padding: 9px 14px; border-radius: calc(16px * var(--round, 1)); background: var(--free-soft); color: var(--free-ink); }
.lp-ask .lp-guide-dot { width: 22px; height: 22px; background: #fff; }
.lp-ask .lp-guide-dot svg { width: 13px; height: 13px; }
.lp-chips { min-width: 0; display: flex; gap: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.lp-chips span { flex: none; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--pill, 999px); background: var(--sheet); display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.lp-chips span.is-sel { border-color: var(--free); background: var(--free-soft); color: var(--free-ink); }
.lp-slider { flex: 1; max-width: 340px; display: flex; align-items: center; gap: 14px; }
.lp-slider-track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.lp-slider-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; background: var(--free); }
.lp-slider-thumb { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid var(--free); border-radius: 50%; background: var(--sheet); box-shadow: 0 2px 6px rgb(44 86 56 / 0.25); }
.lp-slider-v { font: 400 12px/1 var(--mono); color: var(--free-ink); font-variant-numeric: tabular-nums; }
.lp-toggle { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; }
.lp-switch { position: relative; flex: none; width: 42px; height: 24px; border-radius: var(--pill, 999px); background: var(--line); }
.lp-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); }
.lp-toggle.is-on .lp-switch { background: var(--free); }
.lp-toggle.is-on .lp-switch::after { transform: translateX(18px); }
.lp-dims { position: relative; margin-top: 16px; display: flex; flex-direction: column; padding-left: 18px; }
.lp-dims::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 0; width: 2px; border-radius: 2px; background: var(--line); }
.lp-dims-rail { position: absolute; top: 8px; left: 0; width: 2px; max-height: calc(100% - 16px); border-radius: 2px; background: var(--ink); }
.lp-dim { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 44px; padding: 0; border: 0; background: none; font: 400 16.5px/1 var(--sans); color: var(--muted); text-align: left; cursor: pointer; }
.lp-dim:hover, .lp-dim.is-on { color: var(--ink); }
.lp-dim.is-on b { font-weight: 600; }
.lp-dim b { font-weight: 400; }
.lp-dim .lp-tag { opacity: 0; }
.lp-dim.is-done .lp-tag { opacity: 0.55; }
.lp-dim.is-on .lp-tag { opacity: 1; }

/* 4 the close: its words, and a pointer at the dock */
.lp-close { z-index: 7; display: flex; flex-direction: column; align-items: center; padding: 40px 20px 64px; text-align: center; }
.lp-close-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 720px; }
.lp-close-gami { width: 56px; height: 56px; margin-bottom: 26px; transform-origin: 61.23% 60.25%; }
.lp-close-title { font: var(--display, 400) 48px/0.98 var(--serif); letter-spacing: var(--title-track, -0.015em); text-wrap: balance; }
.lp-close-title i { font-style: italic; }
.lp .lp-close-sub { margin-top: 22px; max-width: 34ch; font-size: 16.5px; color: var(--muted); }
.lp .lp-free { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.lp-point { --go-w: calc(30px + var(--n, 13) * 6.85px); position: absolute; right: 19px; bottom: 6px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 400 10.5px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.lp-point-arrow { width: var(--go-w, 124px); display: grid; place-items: center; color: var(--ink); }
.lp-point-arrow svg { width: 20px; height: 20px; }
.lp-resume { width: 100%; max-width: 420px; margin-top: 22px; display: grid; justify-items: center; gap: 10px; padding: 20px 18px 12px; border-radius: calc(22px * var(--round, 1)); background: var(--free-soft); }
.lp-resume .label { color: var(--free-ink); }
.lp-resume-lead { font: 400 22px/1.2 var(--serif); text-wrap: balance; }
.lp-resume-note { font-size: 14px; line-height: 1.45; color: var(--free-ink); }
.lp-resume .btn-go { min-width: 220px; }

.lp-foot { padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.lp .lp-close .lp-foot { max-width: 46ch; margin-top: 18px; padding: 0; border: 0; font-size: 12.5px; }

/* the dock: listening, the plan, and the one honey step */
/* the listening dock has a band of its own at the foot of the screen, and the page ends above it: what
   plays is always in reach, and nothing on the page is ever under it */
.lp-dock-fixed, .layer > .lp-dock-fixed { position: absolute; left: 0; right: 0; bottom: 0; height: 86px; pointer-events: none; background: var(--bg); border-top: 1px solid var(--line); }
.screen-box:has(> .layer > .lp-dock-fixed) > .screen { margin-bottom: 86px; }
.lp-dock { position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; align-items: center; gap: 11px; padding: 8px; border: 1px solid rgb(244 239 231 / 0.12); border-radius: calc(22px * var(--round, 1)); background: rgb(13 26 21 / 0.9); backdrop-filter: blur(14px); color: var(--paper); box-shadow: 0 4px 14px -6px rgb(13 26 21 / 0.45); pointer-events: auto; }
.lp-dock-pp { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--night); display: grid; place-items: center; cursor: pointer; }
.lp-dock-pp svg { width: 18px; height: 18px; }
.lp-dock-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lp-dock-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lp-dock-phase { overflow: hidden; font: 400 10.5px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.lp-dock-time { font: 400 10.5px/1.2 var(--mono); color: var(--night-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-dock-curve { height: 24px; }
.lp-dock .curve-area { fill: rgb(244 239 231 / 0.07); }
.lp-dock .curve-line { stroke: var(--paper); stroke-width: 1.6; }
.lp-dock .curve-tick { stroke: rgb(244 239 231 / 0.13); }
.lp-dock .curve-dot { --dot: var(--signal); --ring: var(--night); }
.lp-dock-go { position: relative; flex: none; display: flex; }
.lp-dock-halo { position: absolute; inset: -5px; border: 2px solid var(--go); border-radius: var(--pill, 999px); pointer-events: none; }
.lp-dock .btn { flex: none; min-height: 44px; padding: 8px 15px; font-size: 14px; }
/* a button that names the version it opens shrinks before the plan does: its second line wraps */
.lp-dock-meta { flex: 1 0 96px; }
.lp-dock-go:has(.btn-two), .lp-dock .btn-two { flex: 0 1 auto; min-width: 0; }

@container app (min-width: 700px) {
  .lp-hero-gami { width: 1500px; height: 1500px; left: calc(100% - 688px); top: calc(50% - 904px); }
  .lp-hero { --built: 84px; }
  .lp-intro { padding: calc(var(--built) + 48px) 40px 148px; }
  .lp-intro .sp-welcome { font-size: 14px; }
  .lp-title { font-size: 104px; }
  .lp .lp-purpose { margin-top: 18px; font-size: 19px; }
  .lp-play { margin-top: 44px; width: 116px; height: 116px; }
  .lp-play-disc { width: 84px; height: 84px; }
  .lp-now { top: 132px; }
  .lp-words { padding: 0 6% 200px; }
  .lp-line { font-size: 62px; line-height: 1.12; }
  .lp-cue, .lp-pill { bottom: 20px; height: 46px; padding: 0 20px 0 7px; font-size: 15px; }
  .lp-dawn { padding-top: 22cqh; }
  .lp-dawn p { font-size: 68px; }
  .lp-stage { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; padding: 40px 48px 88px; }
  .lp-show { height: 100%; justify-content: center; align-items: flex-end; }
  .lp-h2 { font-size: 56px; line-height: 1; }
  .lp-kicker { margin-bottom: 14px; }
  .lp .lp-lead { margin-top: 20px; max-width: 34ch; font-size: 17.5px; line-height: 1.55; }
  .lp-wide { display: inline; }
  .lp .lp-lead.lp-wide { display: block; }
  /* the steps sit in two columns beside the card, so the list ends above the pill */
  .lp-dims { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 32px; padding-left: 0; }
  .lp-dims::before, .lp-dims-rail { display: none; }
  .lp-dim.is-on { box-shadow: inset 0 -2px var(--ink); }
  .lp-chat { flex: none; width: 100%; max-width: 560px; height: min(560px, 100%); border-radius: calc(24px * var(--round, 1)); }
  .lp-chat-head { padding: 15px 20px; }
  .lp-chat-body { padding: 0 20px 16px; }
  .lp-msg { max-width: 84%; margin-top: 12px; }
  .lp-msg-you, .lp-bubble { font-size: 15.5px; }
  .lp-msg-guide { gap: 10px; }
  .lp-msg-guide .lp-guide-dot { width: 26px; height: 26px; }
  .lp-msg-script { padding: 16px 18px 18px; }
  .lp-first-title { margin-bottom: 8px; font-size: 26px; }
  .lp-msg-script p { font-size: 20px; }
  .lp-composer { margin: 0 14px 14px; }
  .lp-craft, .lp-tune { flex: none; width: 100%; max-width: 640px; }
  .lp-plan-chart { height: 92px; }
  .lp-lines { margin-top: 14px; gap: 8px; }
  .lp-ln { grid-template-columns: 24px 1fr; gap: 14px; padding: 11px 16px 11px 14px; }
  .lp-ln-n { width: 24px; height: 24px; margin-top: 2px; }
  .lp-ln-t { font-size: 19px; line-height: 1.3; }
  .lp-ln-tags { margin-top: 5px; }
  .lp-ln-tags .lp-tag { height: 22px; font-size: 10.5px; }
  .lp-tune { max-width: 600px; gap: 14px; }
  .lp-card { padding: 20px 22px 8px; border-radius: calc(22px * var(--round, 1)); }
  .lp .lp-card-title { margin-top: 6px; font-size: 30px; }
  .lp-card-line { height: calc(2 * 1.28em + 24px); margin: 14px -10px 8px; padding: 12px 10px; font-size: 24px; }
  .lp-card-words { inset: 12px 10px; }
  .lp-r { grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; height: 44px; margin: 0 -10px; padding: 0 10px; }
  .lp-r-v { font-size: 15px; }
  .lp-viz { width: 150px; height: 30px; }
  .lp-how { min-height: 64px; flex-direction: row; align-items: center; gap: 14px; padding: 0 4px; }
  .lp-how-lab { flex: none; width: 150px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .lp-how-lab .label { color: var(--muted); }
  .lp-how-ctl { flex: 1; }
  .lp-ask { font-size: 15px; }
  .lp-close { padding: 60px 40px 88px; }
  .lp-point { --go-w: calc(40px + var(--n, 13) * 7.4px); right: calc(50% - 320px); bottom: 10px; }
  .lp-close-title { font-size: 84px; }
  .lp .lp-close-sub { margin-top: 30px; font-size: 18px; }
  .lp-dock-fixed, .layer > .lp-dock-fixed { height: 88px; }
  .screen-box:has(> .layer > .lp-dock-fixed) > .screen { height: calc(100% - 88px); margin-bottom: 0; }
  .lp-dock { left: 50%; right: auto; bottom: 12px; width: 660px; transform: translateX(-50%); gap: 14px; padding: 9px; border-radius: var(--pill, 999px); }
  .lp-dock.is-plain { width: 460px; }
  .lp-dock-pp { width: 44px; height: 44px; }
  .lp-dock-meta { padding-right: 4px; }
  .lp-dock-curve { height: 26px; }
  .lp-dock .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
}

/* while the hero's own play or player is in view, the dock is the honey step alone: one player at a time */
.layer[data-slim] .lp-dock:not(.is-plain) :is(.lp-dock-pp, .lp-dock-meta) { display: none; }
.layer[data-slim] .lp-dock:not(.is-plain) { left: 50%; right: auto; width: auto; transform: translateX(-50%); justify-content: center; padding: 6px; border-radius: 14px; }

/* a chapter not reached yet is already there, faint, so the page never scrolls into an empty band */
.lp-chat.is-ghost .lp-chat-body { opacity: 0.38; }
.lp-example { display: block; margin-top: 8px; font-size: 10px; }
.lp-close .legal-foot { margin-top: 6px; }

/* the chat is as tall as what is said in it, so it is never an empty box; the head keeps its badge inside */
@container app (max-width: 699px) { .lp-chat { flex: 0 1 auto; } .lp-chat-body { flex: 0 1 auto; } }
.lp-chat-head .lp-tag { flex: none; }
.lp-chat-head { min-width: 0; }

/* a voiced version of their own: changed in the editor, as a new version */
.sp-reshape { display: grid; gap: 8px; }
.sp-reshape p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--soft); }
.sp-reshape .btn { justify-self: start; }
.sp-lang-note { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* a phone has room for two of the example lines above the pill: the first two, and their marks on the plan */
@container app (max-width: 699px) { .lp-craft :is(.lp-ln, .lp-mark):nth-child(n+3) { display: none; } }
