/* Signed-out landing: the dashboard's title screen, then a sign-in card over the same sky. */
.ln-signin { position: absolute; inset: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: dn-in 0.5s var(--dash-ease, ease) both; }
.ln-signin[hidden] { display: none; }
.ln-title { margin: 0 0 6px; font: 700 clamp(26px, 4vw, 40px) / 1 var(--sans); letter-spacing: 0.2em; color: var(--text); }
.ln-form { width: min(420px, 90vw); display: flex; flex-direction: column; gap: 4px; margin: 0; }
/* C-454 (Avi's pick B, 04-plans/mockups/2026-11-22_login-profile.html): inline mono label at a fixed width,
   text typed from the left right after it, no side bar (it read as a caret). Hover lifts the fill; focus draws a full ring. */
.ln-field { display: flex; align-items: center; gap: 16px; padding: 0 18px; min-height: 46px; background: color-mix(in srgb, var(--panel) 78%, transparent); border: 0; border-radius: 12px; color: var(--muted); font: 700 14px / 1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; cursor: text; transition: background 120ms ease, box-shadow 120ms ease, color 120ms ease; }
.ln-field > span { flex: none; min-width: 84px; }
.ln-field:hover { background: var(--panel-3); }
.ln-field:focus-within { background: var(--panel-3); box-shadow: inset 0 0 0 1.5px var(--muted-2); color: var(--text); }
.ln-field input { flex: 1; min-width: 0; padding: 14px 0; background: transparent; border: 0; outline: 0; color: var(--text); caret-color: var(--text); font: 500 15px / 1.2 var(--sans); letter-spacing: 0; text-transform: none; text-align: left; }
@media (prefers-reduced-motion: reduce) { .ln-field { transition: none; } }
.ln-go { margin-top: 10px; min-height: 46px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font: 700 14px / 1 var(--sans); cursor: pointer; }
.ln-go:disabled { opacity: 0.5; cursor: default; }
.ln-error { margin: 0; width: min(420px, 90vw); min-height: 1.4em; color: var(--rec, var(--text)); font: 500 13px / 1.4 var(--sans); }
.ln-note { margin: 0; color: var(--faint); font: 500 11px / 1.2 var(--mono); }
.ln-link { background: none; border: 0; padding: 0; color: var(--muted-2); font: inherit; text-decoration: underline; cursor: pointer; }

/* The join page: the title screen first, then the card over the same sky. */
.dn-layer.is-backdrop { z-index: 40; pointer-events: none; }
#join.overlay { background: transparent; }
/* The join card, styled like the landing's sign-in card (.ln-card): one card on
   the sky, labels above the fields, Show password, Forgot password, the --fill
   button (never amber). The ids stay the same (main.js, tests). */
#join .join-card { width: min(400px, 92vw); gap: 12px; border: 0; padding: 28px; border-radius: 16px; background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); backdrop-filter: blur(2px); }
#join .join-card > h1 { margin: 0; color: var(--text); font: 650 15px / 1 var(--sans); letter-spacing: 0.04em; }
#join .auth { border: 0; border-radius: 0; padding: 0; gap: 6px; }
#join .auth legend { padding: 0; margin-bottom: 4px; color: var(--text); font: 650 22px / 1.2 var(--sans); letter-spacing: -0.01em; }
#join .join-card .ln-input input { padding: 10px 0; border: 0; background: transparent; }
#join .join-card button[type='submit'] { min-height: 40px; padding: 0 18px; border-radius: 8px; background: var(--fill); color: var(--on-fill); font: 600 14px / 1 var(--sans); letter-spacing: 0; text-transform: none; }
#join .join-card .hint { font-size: 12.5px; }
.ln-field-hint { color: var(--faint); font: 400 12px / 1 var(--sans); }
.ln-field-hint[hidden] { display: none; }
#join .join-card > p:not(.hint):not(.join-error) { display: none; } /* the pitch line: the title already says it */
body.join-sky #join #setup-steps, body.join-sky #join label:has(#name) { display: none; } /* name comes from the account; shortcuts and track side keep their defaults and live in Settings */

/* First run (ui/firstrun.js): welcome, shortcuts, track controls, theme. Cards slide left out, the next in from the right. */
.ln-firstrun { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; animation: none; }
.ln-firstrun.is-out { opacity: 0; transition: opacity 0.32s ease; }
.ln-stepwrap { position: relative; display: grid; place-items: center; width: min(960px, 94vw); }
.ln-step { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.ln-step.is-in { animation: ln-in-r 0.36s var(--dash-ease, ease) both; }
.ln-step.is-in-back { animation: ln-in-l 0.36s var(--dash-ease, ease) both; }
.ln-step.is-out { animation: ln-out-l 0.32s ease both; pointer-events: none; }
.ln-step.is-out-back { animation: ln-out-r 0.32s ease both; pointer-events: none; }
@keyframes ln-in-r { from { opacity: 0; transform: translateX(72px); } to { opacity: 1; transform: none; } }
@keyframes ln-in-l { from { opacity: 0; transform: translateX(-72px); } to { opacity: 1; transform: none; } }
@keyframes ln-out-l { to { opacity: 0; transform: translateX(-72px); } }
@keyframes ln-out-r { to { opacity: 0; transform: translateX(72px); } }
@media (prefers-reduced-motion: reduce) { .ln-step.is-in, .ln-step.is-in-back, .ln-step.is-out, .ln-step.is-out-back { animation: none; } .ln-step.is-out, .ln-step.is-out-back { display: none; } }
.ln-welcome { width: min(360px, calc(100vw - 32px)); }
.ln-welcome .ln-input { width: 100%; }
.ln-hello { margin: 0; font: 700 clamp(40px, 9vw, 84px) / 1 var(--sans); letter-spacing: 0.12em; color: var(--text); text-align: center; overflow-wrap: anywhere; }
.ln-label { margin: 0; color: var(--muted-2); font: 700 12px / 1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; }
.ln-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; width: min(760px, 92vw); }
.ln-choice { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 14px 16px; background: color-mix(in srgb, var(--panel) 78%, transparent); border: 0; border-left: 2px solid transparent; border-radius: 12px; color: var(--muted); font: 500 12px / 1.35 var(--sans); cursor: pointer; }
.ln-choice b { font: 700 14px / 1 var(--mono); letter-spacing: 0.08em; color: var(--text); }
.ln-choice:hover, .ln-choice:focus-visible { background: color-mix(in srgb, var(--text) 10%, var(--panel)); outline: 0; }
.ln-choice[aria-pressed="true"] { color: var(--text); }
.ln-back { margin-top: 8px; }
.ln-themerow { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; width: 100%; }
.ln-themecol { display: flex; flex-direction: column; gap: 10px; width: 210px; }
.ln-themes { display: flex; flex-direction: column; gap: 4px; }
.ln-theme { padding: 10px 14px; }
.ln-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ln-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 600 11px / 1 var(--mono); letter-spacing: 0.08em; cursor: pointer; }
.ln-chip[aria-pressed="true"] { color: var(--text); border-color: color-mix(in srgb, var(--select) 55%, transparent); background: color-mix(in srgb, var(--text) 9%, transparent); }
/* The preview: a stand-in DAW drawn from the page's own tokens. */
.ln-pv { flex: 1 1 380px; max-width: 540px; aspect-ratio: 16 / 10; display: grid; grid-template-rows: 9% 1fr 16%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.ln-pv-top { display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.ln-pv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec, var(--accent)); }
.ln-pv-bar { width: 34%; height: 6px; border-radius: 3px; background: var(--line); }
.ln-pv-bar.short { width: 14%; }
.ln-pv-mid { display: grid; grid-template-columns: 22% 1fr; min-height: 0; }
.ln-pv-lib { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--panel-2); border-right: 1px solid var(--line); }
.ln-pv-lib b { height: 6px; border-radius: 3px; background: var(--line); }
.ln-pv-lib b:nth-child(2) { width: 70%; } .ln-pv-lib b:nth-child(3) { width: 85%; } .ln-pv-lib b:nth-child(4) { width: 55%; }
.ln-pv-tracks { position: relative; display: flex; flex-direction: column; background: var(--bg); }
.ln-pv-row { position: relative; flex: 1; border-bottom: 1px solid var(--line-soft, var(--line)); }
.ln-pv-clip { position: absolute; top: 18%; bottom: 18%; border-radius: 3px; background: var(--accent); opacity: 0.9; }
.ln-pv-clip.b { background: var(--solo, var(--accent)); }
.ln-pv-clip.c { background: var(--select, var(--text)); opacity: 0.75; }
.ln-pv-head { position: absolute; top: 0; bottom: 0; right: 0; width: 18%; background: var(--panel); border-left: 1px solid var(--line); }
.ln-pv.heads-left .ln-pv-head { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); }
.ln-pv.heads-left .ln-pv-clip { margin-left: 18%; }
.ln-pv-play { position: absolute; top: 0; bottom: 0; left: 46%; width: 1px; background: var(--text); opacity: 0.8; }
.ln-pv-mix { display: flex; align-items: flex-end; gap: 6%; padding: 6px 10px; background: var(--panel); border-top: 1px solid var(--line); }
.ln-pv-mix u { flex: 1; border-radius: 2px; background: var(--accent); opacity: 0.8; text-decoration: none; }
.ln-pv-mix u:nth-child(1) { height: 70%; } .ln-pv-mix u:nth-child(2) { height: 45%; } .ln-pv-mix u:nth-child(3) { height: 85%; } .ln-pv-mix u:nth-child(4) { height: 55%; }
.ln-navrow { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 8px; }
.ln-navrow .ln-link { margin: 0; }
.ln-play { width: min(280px, 80vw); padding: 0 24px; }
.ln-choice[hidden] { display: none; }

/* First-run polish + input cards (ui/firstrun.js, ui/firstruninputs.js; Avi's picks in 04-plans/setup-mic-mockups.html). */
/* Q6: a visible ring for keyboard focus only (a click keeps today's look). */
.ln-firstrun .ln-choice:focus-visible, .ln-firstrun .ln-chip:focus-visible, .ln-firstrun .ln-go:focus-visible, .ln-firstrun .ln-link:focus-visible, .ln-firstrun .ln-select:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }
/* Q5: a small playlist on each track-controls card, controls on that side. */
.ln-sidepic { display: grid; grid-template-columns: 24% 1fr; width: 100%; height: 46px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--bg); }
.ln-sidepic.is-right { grid-template-columns: 1fr 24%; }
.ln-sp-head { display: grid; align-content: center; gap: 4px; padding: 0 6px; background: var(--panel); }
.ln-sidepic.is-left .ln-sp-head { border-right: 1px solid var(--line); }
.ln-sidepic.is-right .ln-sp-head { border-left: 1px solid var(--line); }
.ln-sp-head i { display: block; height: 4px; border-radius: 2px; background: var(--muted); opacity: 0.5; }
.ln-sp-lane { position: relative; }
.ln-sp-clip { position: absolute; height: 10px; border-radius: 2px; background: var(--accent); opacity: 0.85; }
/* What do you play in?: four choices in two columns. */
.ln-choices.ln-two { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(560px, 92vw); }
/* The mic and MIDI cards. */
.ln-mic { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(520px, 92vw); }
.ln-mic .ln-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.ln-hint { margin: 0; color: var(--muted-2); font: 500 12px / 1.4 var(--sans); text-align: center; }
.ln-hint.is-ok { color: var(--meter-lo, var(--text)); }
.ln-skip { font-size: 12px; }
.ln-pickrow { display: block; width: 100%; }
.ln-select { width: 100%; min-height: 42px; padding: 0 14px; background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--text); border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--select) 22%, transparent); font: 600 13px / 1 var(--mono); }
.ln-meter { width: 100%; height: 10px; border-radius: 5px; background: var(--meter-bg, var(--panel-2)); overflow: hidden; }
.ln-meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--meter-lo, var(--accent)) 0 70%, var(--accent) 70% 90%, var(--meter-hi, var(--rec)) 90%); background-size: min(520px, 92vw) 100%; transition: width 60ms linear; }
.ln-bt { margin: 0; width: 100%; padding: 10px 12px; border-left: 2px solid var(--solo, var(--accent)); background: color-mix(in srgb, var(--solo, var(--accent)) 10%, var(--panel)); color: var(--muted-2); font: 500 12px / 1.45 var(--sans); }
.ln-bt b { color: var(--text); }
.ln-steps { margin: 0; padding-left: 20px; width: 100%; display: grid; gap: 6px; color: var(--muted-2); font: 500 13px / 1.45 var(--sans); }
.ln-mic .ln-chips { justify-content: center; }
.ln-keys { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; width: 100%; height: 34px; }
.ln-keys i { border-radius: 0 0 3px 3px; background: var(--text); opacity: 0.8; transition: background 80ms; }
.ln-keys i.is-on { background: var(--accent); opacity: 1; }
/* A drawing of the browser's own permission prompt (no logos). */
.ln-prompt { width: min(320px, 88vw); padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); text-align: left; }
.ln-pr-bar { display: flex; align-items: center; gap: 6px; margin: -10px -12px 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 11px / 1 var(--mono); }
.ln-pr-bar i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--accent); }
.ln-pr-ask { margin: 0; color: var(--text); font: 600 13px / 1.35 var(--sans); }
.ln-pr-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ln-pr-btn { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted-2); font: 500 11px / 1.2 var(--sans); }
.ln-pr-btn.is-allow { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .ln-meter i, .ln-keys i { transition: none; } }
@media (max-width: 480px) { .ln-choices.ln-two, .ln-mic .ln-choices { grid-template-columns: 1fr; } }
.ln-handle .ln-field > span { min-width: 0; } /* ui/handlestep.js: the handle reads straight from the @ */
/* C-541 (pick B): What do you play in? as one row of four picture tiles.
   Selected = --fill ring + check; keyboard focus = an outer ring; Not now is
   dashed and grey; 2 x 2 under 600 px. No amber (amber means sound). */
.ln-choices.ln-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: min(720px, 92vw); }
.ln-tile { position: relative; align-items: center; justify-content: center; gap: 10px; min-height: 176px; padding: 24px 12px 20px; text-align: center; border-left: 0; border-radius: 14px; background: color-mix(in srgb, var(--panel) 86%, transparent); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted-2); font: 400 12.5px / 1.3 var(--sans); transition: background 120ms, box-shadow 120ms; }
.ln-tile b { font: 600 15px / 1.15 var(--sans); letter-spacing: 0; color: var(--text); }
:root button.ln-tile:hover { background: color-mix(in srgb, var(--text) 6%, var(--panel)); }
.ln-firstrun .ln-tile:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--fill) 60%, transparent); }
:root button.ln-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--text) 9%, var(--panel)); box-shadow: inset 0 0 0 1.5px var(--fill); }
.ln-firstrun .ln-tile[aria-pressed="true"]:focus-visible { box-shadow: inset 0 0 0 1.5px var(--fill), 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--fill) 60%, transparent); }
.ln-tile.is-skip { background: transparent; box-shadow: none; border: 1px dashed var(--line); color: var(--muted); }
.ln-tile.is-skip b { color: var(--muted-2); }
.ln-tile.is-skip .ln-glyph { color: var(--muted); }
.ln-tile.is-skip[aria-pressed="true"] { border-style: solid; border-color: var(--fill); }
.ln-glyph { position: relative; display: flex; align-items: center; justify-content: center; height: 64px; color: var(--text); }
.ln-glyph .ln-ic { width: 52px; height: 52px; }
.ln-glyph.is-two { width: 92px; }
.ln-glyph.is-two .ln-ic:first-child { position: absolute; left: 0; width: 42px; height: 42px; }
.ln-glyph.is-two .ln-ic:last-child { position: absolute; right: 0; top: 16px; width: 50px; height: 50px; color: var(--muted-2); }
.ln-ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ln-ic .is-solid { fill: currentColor; stroke: none; }
.ln-tile-num { position: absolute; top: 10px; left: 12px; font: 500 11px / 1 var(--mono); color: var(--faint, var(--muted)); }
.ln-tile-check { position: absolute; top: 10px; right: 10px; display: none; width: 20px; height: 20px; border-radius: 50%; background: var(--fill); color: var(--on-fill); }
.ln-tile-check .ln-ic { width: 14px; height: 14px; margin: 3px; stroke-width: 3; }
.ln-tile[aria-pressed="true"] .ln-tile-check { display: block; }
@media (max-width: 600px) { .ln-choices.ln-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(420px, 92vw); } .ln-tile { min-height: 148px; } }
@media (prefers-reduced-motion: reduce) { .ln-tile { transition: none; } }

/* ---------- C-542 (Avi's pick A, 04-plans/mockups/2026-11-22_home-style-system.html):
   one style on the way in. Sky stays behind title, sign-in, setup and the
   launcher; sans in sentence case; mono only for numbers, keys and handles;
   DAW buttons (--fill primary, 8 px radius), labels above fields, focus =
   full ring, no left bar; one footer per setup step. ---------- */
.ln-title { margin: 0 0 4px; font: 650 clamp(22px, 3vw, 28px) / 1.15 var(--sans); letter-spacing: -0.01em; color: var(--text); text-align: center; }
.ln-note { color: var(--muted-2); font: 400 14px / 1.5 var(--sans); text-align: center; }
.ln-label { font: 500 13px / 1 var(--sans); letter-spacing: 0; text-transform: none; }
.ln-hello { font: 650 clamp(36px, 7vw, 64px) / 1.05 var(--sans); letter-spacing: -0.02em; }
.ln-choice { border-left: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.ln-choice b { font: 600 14px / 1.2 var(--sans); letter-spacing: 0; }
:root button.ln-choice:hover { background: color-mix(in srgb, var(--text) 8%, var(--panel)); }
:root button.ln-choice[aria-pressed="true"] { background: color-mix(in srgb, var(--text) 9%, var(--panel)); box-shadow: inset 0 0 0 1.5px var(--fill); }
.ln-firstrun .ln-choice:focus-visible, .ln-firstrun .ln-chip:focus-visible, .ln-firstrun .ln-go:focus-visible, .ln-firstrun .ln-link:focus-visible, .ln-firstrun .ln-select:focus-visible,
.ln-signin .ln-go:focus-visible, .ln-signin .ln-link:focus-visible, .ln-show:focus-visible { outline: 2px solid color-mix(in srgb, var(--fill) 70%, transparent); outline-offset: 2px; }
.ln-chip { font: 500 12px / 1 var(--sans); letter-spacing: 0; }
.ln-chip[aria-pressed="true"] { border-color: var(--fill); }
/* Buttons: --fill primary (never amber), 8 px radius, 40 px tall on the way in. */
.ln-go { margin-top: 6px; min-height: 40px; padding: 0 18px; border-radius: 8px; background: var(--fill); color: var(--on-fill); font: 600 14px / 1 var(--sans); }
:root button.ln-go:hover:not(:disabled) { background: color-mix(in srgb, var(--fill) 88%, var(--bg)); }
.ln-link { color: var(--muted-2); font: 500 13px / 1.2 var(--sans); text-decoration: none; }
.ln-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
/* The step bar and the one footer (ui/firstrun.js withBack). */
.ln-stepbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; width: min(240px, 60vw); margin-bottom: 10px; }
.ln-stepbar i { height: 3px; border-radius: 2px; background: var(--line); }
.ln-stepbar i.is-done { background: color-mix(in srgb, var(--fill) 55%, var(--line)); }
.ln-stepbar i.is-now { background: var(--fill); }
.ln-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(720px, 92vw); margin-top: 18px; gap: 12px; }
.ln-foot-l { justify-self: start; }
.ln-foot-m { justify-self: center; }
.ln-foot-r { justify-self: end; }
.ln-footer .ln-go { margin: 0; min-width: 120px; }
.ln-footer .ln-go:disabled { background: var(--panel-3); color: var(--faint); opacity: 1; }
.ln-step.ln-wide .ln-footer { width: min(960px, 94vw); }
/* Sign in / create account: a real card on the sky. */
.ln-card { display: flex; flex-direction: column; gap: 14px; width: min(400px, 92vw); padding: 28px; border-radius: 16px; background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.ln-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 650 15px / 1 var(--sans); }
.ln-card-title { margin: 0; font: 650 22px / 1.2 var(--sans); letter-spacing: -0.01em; color: var(--text); }
.ln-card .ln-form { width: 100%; gap: 6px; }
.ln-card .ln-error { width: 100%; min-height: 0; }
.ln-card .ln-error:empty { display: none; }
.ln-card .ln-note { text-align: left; font-size: 13px; }
.ln-field.ln-field-top { display: block; min-height: 0; padding: 0; margin-top: 8px; background: none; box-shadow: none; cursor: default; font: 500 12px / 1 var(--sans); letter-spacing: 0; text-transform: none; }
.ln-field-label { display: block; color: var(--muted-2); font: 500 12px / 1 var(--sans); letter-spacing: 0; text-transform: none; }
.ln-field-row { display: flex; align-items: baseline; justify-content: space-between; }
.ln-input { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 12px; border-radius: 8px; background: var(--input-bg); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 120ms ease; }
.ln-input:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); }
.ln-input:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--fill) 70%, transparent); }
.ln-input input { flex: 1; min-width: 0; padding: 10px 0; background: transparent; border: 0; outline: 0; color: var(--text); caret-color: var(--text); font: 400 14px / 1.2 var(--sans); }
.ln-input input::placeholder { color: var(--faint); }
.ln-show { flex: none; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-2); font: 500 12px / 1 var(--sans); cursor: pointer; }
:root button.ln-show:hover { color: var(--text); background: var(--panel-3); }
.ln-form-row { display: flex; justify-content: flex-end; margin-top: 2px; }
.ln-forgot { font-size: 12px; }
.ln-forgot[hidden], .ln-hint-line[hidden] { display: none; }
.ln-hint-line { margin: 0; color: var(--muted-2); font: 400 12.5px / 1.45 var(--sans); }
.ln-signin > #ln-back { margin-top: 4px; }
/* The handle step's field: the same input box, with the @ in front. */
.ln-handle .ln-field { min-height: 40px; padding: 0 12px; gap: 2px; border-radius: 8px; background: var(--input-bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted-2); font: 400 14px / 1 var(--mono); letter-spacing: 0; text-transform: none; }
.ln-handle .ln-field:focus-within { background: var(--input-bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fill) 70%, transparent); }
.ln-handle .ln-field input { padding: 10px 0; font: 400 14px / 1.2 var(--mono); }
.ln-handle { width: min(400px, 92vw); }
.ln-finish { width: min(400px, 92vw); }
.ln-finish .ln-go { align-self: stretch; }
@media (prefers-reduced-motion: reduce) { .ln-input { transition: none; } }

/* ---------- UI adoption step 10 (mockup #scr-join; Avi liked the invite join):
   the invite landing. The project on the left (logo, "You are invited to", its
   name, the preview's waveform, who is in), one card on the right: steps bar,
   who invited you and with what role, Make your account, Show password and a
   live length hint, inputs at 16 px so phones do not zoom (audit 73, 84), one
   brand-ring button. Step 2 (#join-hear): hear it, shortcuts, Enter the room.
   Amber only on the playing preview (sound). ---------- */
.join-side { display: contents; }
#join .join-card[hidden], #join-art[hidden], .join-steps[hidden], #join-wave-box[hidden], #join-inroom[hidden], #hear-schemes-field[hidden], #auth-switch-row[hidden], .ln-pw-hint[hidden], #su-name-label[hidden], #su-name-box[hidden] { display: none; }
#join .ln-input input, .ln-card .ln-input input { font-size: 16px; } /* audit 84: under 16 px, phones zoom into the field */
.ln-field-hint.is-ok { color: var(--meter-lo, var(--text)); }
.ln-pw-hint { margin: 2px 0 0; color: var(--muted); font: 400 12px / 1.4 var(--sans); }
.ln-pw-hint.is-ok { color: var(--meter-lo, var(--text)); }
.join-fine { margin: 0; text-align: center; color: var(--muted); font: 400 12px / 1.45 var(--sans); }
#join .join-card p.join-fine { display: block; }
.join-fine .linkbtn { color: var(--text); }
.join-eyebrow { font: 400 10px / 1.4 'Michroma', var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.join-steps { display: flex; gap: 6px; }
.join-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--chrome-2); }
.join-steps i.on { background: var(--fill); }
/* Who invited you: one row with their initial. */
#join #join-invite.join-invite:not([hidden]) { display: flex; }
#join .join-invite { align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-soft); color: var(--text); }
#join .join-invite p { display: block; margin: 0; color: var(--text); font: 400 14px / 1.4 var(--sans); }
#join .join-invite b { font-weight: 600; }
#join .join-invite .join-role { padding: 0; border: 0; border-radius: 0; font-size: inherit; }
#join .join-invite small { display: block; margin-top: 2px; color: var(--muted); font: 400 12px / 1.4 var(--sans); }
.join-av { position: relative; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); color: var(--on-fill); font: 600 11px / 1 var(--sans); box-shadow: 0 0 0 2px var(--bg); }
#join-invite .join-av { width: 40px; height: 40px; font-size: 15px; box-shadow: none; }
.join-av.is-on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--meter-lo, var(--text)); box-shadow: 0 0 0 2px var(--bg); }
/* The one primary button on each step: --fill with the logo's brand ring. */
#join .join-card button.join-brand-btn, .join-brand-btn { min-height: 48px; padding: 0 18px; border: 2px solid transparent; border-radius: 999px; color: var(--on-fill); background: linear-gradient(var(--fill), var(--fill)) padding-box, var(--ring-brand) border-box; font: 600 15px / 1 var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: transform .15s; }
.join-brand-btn:active { transform: scale(0.98); }
.join-brand-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--fill) 70%, transparent); outline-offset: 3px; }
.join-brand-btn:disabled { opacity: 0.6; cursor: default; }

/* The two-column landing, only for a live invite. */
#join.overlay.is-invite:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); place-items: stretch; padding: 0; background: var(--bg); overflow-y: auto; }
#join.is-handle { visibility: hidden; } /* the handle card (ui/handlestep.js) sits on the sky instead */
.join-art { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; padding: 56px 64px; background: radial-gradient(800px 500px at 90% -10%, color-mix(in srgb, var(--muted-2) 12%, transparent), transparent 60%), var(--bg); }
.join-logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.join-logo b { font: 600 16px / 1 var(--sans); }
.join-art .join-eyebrow { margin-top: 96px; }
.join-art h2 { margin: 14px 0 18px; color: var(--text); font: 500 clamp(44px, 6.4vw, 88px) / 0.95 var(--sans); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.join-art-sub { margin: 0; max-width: 46ch; color: var(--muted-2); font: 400 15px / 1.55 var(--sans); }
.join-wave { height: 120px; margin: 30px 0 22px; }
.join-wave canvas { display: block; width: 100%; height: 100%; }
.join-inroom { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--muted-2); font: 400 13px / 1.4 var(--sans); }
.join-avs { display: flex; }
.join-avs .join-av + .join-av { margin-left: -6px; }
#join.is-invite .join-side { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--panel); border-left: 1px solid var(--line); }
#join.is-invite .join-card:not([hidden]) { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 400px; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
#join.is-invite .join-card > h1, #join.is-invite .join-roomline { display: none; }
#join.is-invite .auth legend, .join-hear h3 { margin: 0 0 2px; padding: 0; color: var(--text); font: 500 26px / 1.2 var(--sans); letter-spacing: -0.02em; }
#join.is-invite .auth { gap: 6px; }
#join.is-invite .ln-field.ln-field-top { margin-top: 10px; }
#join.is-invite .ln-input { min-height: 44px; border-radius: 10px; background: var(--bg); padding: 0 6px 0 14px; }
#join.is-invite .join-error { margin: 0; }
/* Step 2: hear what you are joining. */
.join-hear h3 { margin-top: -6px; }
.join-hear-box { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line-soft); }
.join-hear-box p { margin: 0; color: var(--muted-2); font: 400 13px / 1.45 var(--sans); }
.join-hear-box p b { display: block; margin-bottom: 2px; color: var(--text); font: 500 15px / 1.3 var(--sans); }
.join-big-play { flex: none; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: var(--fill); color: var(--on-fill); cursor: pointer; transition: background .2s, box-shadow .3s; }
.join-big-play .ic-pause, .join-big-play.is-on .ic-play { display: none; }
.join-big-play.is-on .ic-pause { display: inline; }
.join-big-play.is-on { background: var(--accent); box-shadow: var(--glow-sound); } /* amber: the preview is sounding */
.join-big-play:focus-visible { outline: 2px solid color-mix(in srgb, var(--fill) 70%, transparent); outline-offset: 3px; }
.join-field { display: flex; flex-direction: column; gap: 6px; }
.join-field-label { color: var(--muted-2); font: 500 12px / 1.2 var(--sans); }
.join-schemes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.join-schemes button { min-height: 44px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 500 13px / 1.2 var(--sans); cursor: pointer; }
.join-schemes button:hover { background: var(--panel-2); }
.join-schemes button[aria-pressed="true"] { border-color: var(--fill); background: var(--panel-3); }
.join-schemes button:focus-visible { outline: 2px solid color-mix(in srgb, var(--fill) 70%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .join-big-play, .join-brand-btn { transition: none; } }
/* Phones and narrow windows: one column, the project on top, the card under it. */
@media (max-width: 860px) {
  #join.overlay.is-invite:not([hidden]) { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .join-art { padding: 24px 16px 20px; }
  .join-art .join-eyebrow { margin-top: 24px; }
  .join-art h2 { margin: 8px 0 10px; font-size: 40px; }
  .join-art-sub { font-size: 14px; }
  .join-wave { height: 56px; margin: 16px 0 10px; }
  #join.is-invite .join-side { align-items: flex-start; padding: 24px 16px 32px; border-left: 0; border-top: 1px solid var(--line); }
  .join-schemes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
