/* Recorder by Proscris. House tokens first (shared with Video Generator Hub); the dark theme is
   the default and the light theme swaps the tokens. Sizes are in rem so Settings → Text size
   scales everything; 1rem is 14px at the standard size. Text keeps 4.5:1 on its surfaces. */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('assets/fonts/plus-jakarta-sans.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  --bg: #0A0B10; --surface: #12141B; --surface2: #191C26; --raise: #212533; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #ECEFF4; --muted: #A3ABB8; --faint: #8A93A3;
  --accent: #93A5FF; --accent-2: #B79CFF; --accent-ink: #0B0E2A; --accent-soft: rgba(147,165,255,.14);
  --rec: #FF5B6E; --rec-soft: rgba(255,91,110,.15); --amber: #FFB547; --amber-soft: rgba(255,181,71,.13);
  --danger: #FF8A80; --ok: #7EE2AC; --ok-soft: rgba(126,226,172,.12); --focus: #FFD27A;
  --radius: 14px; --radius-s: 9px; --shadow: 0 18px 50px rgba(0,0,0,.45);
  --font: 'Plus Jakarta Sans', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif; --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --top: 58px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3F5F8; --surface: #FFFFFF; --surface2: #F6F7FA; --raise: #ECEFF4; --line: rgba(10,20,40,.10); --line2: rgba(10,20,40,.22);
  --text: #14161C; --muted: #4E5664; --faint: #5E6675;
  --accent: #3A4BD0; --accent-2: #6A3FD0; --accent-ink: #FFFFFF; --accent-soft: rgba(58,75,208,.10);
  --rec: #C4233A; --rec-soft: rgba(196,35,58,.10); --amber: #8A5A00; --amber-soft: rgba(176,115,0,.12);
  --danger: #B3261E; --ok: #17714A; --ok-soft: rgba(23,113,74,.10); --focus: #8A5A00; --shadow: 0 14px 40px rgba(20,30,60,.14);
  color-scheme: light;
}
html { font-size: 14px; scroll-padding-top: calc(var(--top) + 12px); }
html[data-size="16"] { font-size: 16px; } html[data-size="18"] { font-size: 18px; } html[data-size="20"] { font-size: 20px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 1rem/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
code { font: .9em var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--surface2); border: 1px solid var(--line); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 99; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 8px; }
kbd { display: inline-block; padding: 0 .4rem; min-width: 1.4rem; text-align: center; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; font: .82rem/1.45 var(--mono); color: var(--muted); background: var(--surface2); }
.kbd-on-accent { background: rgba(0,0,0,.14); color: inherit; border-color: rgba(0,0,0,.25); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.07rem; font-weight: 750; }
h3 { font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
small, .muted { color: var(--muted); }
p { margin: 0; }
.grow { flex: 1; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.center { text-align: center; }
.hint { font-size: .86rem; color: var(--muted); margin: 0; }
.error { color: var(--danger); font-weight: 600; margin: 0; }
.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; font-weight: 600; }

/* ── header ── */
.top { height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; border-radius: 10px; }
.brand img { width: 32px; height: 32px; }
.brand b { font-size: 1.14rem; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1.15; }
.brand small { display: block; font-size: .79rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.search { position: relative; flex: 0 1 460px; min-width: 120px; margin-left: 10px; }
.search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: .9rem; pointer-events: none; }
.search input[type=search] { width: 100%; padding: 8px 64px 8px 36px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.menu-btn { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; min-height: 30px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-size: .86rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
button.pill:hover { background: var(--raise); color: var(--text); }
.pill.on { color: var(--ok); }
.pill.warn { color: var(--amber); }
.pill.rec { color: var(--rec); }
.pill i { font-size: .9em; }

/* ── buttons and fields ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 14px; border-radius: var(--radius-s); border: 1px solid var(--line2); background: var(--surface2); font-weight: 650; text-decoration: none; color: var(--text); white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--raise); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); background: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { color: var(--text); background: var(--surface2); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn.small { min-height: 32px; padding: 4px 11px; font-size: .93rem; }
.btn.icon { width: 36px; padding: 0; }
.btn.small.icon { width: 32px; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.wide { width: 100%; }
label.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-weight: 650; font-size: .93rem; min-width: 0; }
input[type=text], input[type=url], input[type=password], input[type=email], input[type=search], select, textarea { width: 100%; min-height: 36px; padding: 7px 11px; border-radius: var(--radius-s); border: 1px solid var(--line2); background: var(--bg); color: var(--text); }
select.compact { width: auto; min-height: 32px; padding: 4px 8px; font-size: .93rem; }
textarea { resize: vertical; line-height: 1.5; }
input[type=range] { accent-color: var(--accent); min-height: 24px; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .96rem; padding: 4px 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grow-field { flex: 1; min-width: 180px; }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: var(--radius-s); background: var(--surface2); border: 1px solid var(--line); font-size: .93rem; color: var(--text); }
.notice i { margin-top: 3px; }
.notice { flex-wrap: wrap; }
.notice > .grow { flex: 1 1 260px; }
.notice.ask { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.notice.ask > i { color: var(--accent); }
.notice.warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.notice.warn i { color: var(--amber); }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.notice.ok i { color: var(--ok); }
.where { font-size: .86rem; color: var(--muted); margin: 0; display: flex; gap: 6px; align-items: baseline; }
.where.internet { color: var(--amber); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.inset { background: var(--surface2); }

/* ── layout ── */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: calc(100dvh - var(--top)); }
.side { overflow: auto; padding: 14px; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.side-actions { display: grid; gap: 8px; }
.side-actions .btn.primary .fa-circle { color: var(--rec); font-size: .8em; filter: drop-shadow(0 0 0 #000); }
.side-actions .btn.primary { justify-content: flex-start; }
.side-actions .btn.primary kbd { margin-left: auto; }
.side-actions .btn:not(.primary) { justify-content: flex-start; }
.nav { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 6px 10px; border-radius: var(--radius-s); border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 650; text-align: left; }
.nav-item i { width: 18px; text-align: center; }
.nav-item span:first-of-type { flex: 1; }
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item[aria-current="page"], .nav-item[aria-current="true"] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--text); }
.nav-item[aria-current="page"] i, .nav-item[aria-current="true"] i { color: var(--accent); }
.count { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; font-size: .86rem; font-weight: 650; color: var(--muted); }
.tag-btn:hover { color: var(--text); background: var(--surface2); }
.tag-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.folder-card { margin-top: auto; background: var(--surface2); display: grid; gap: 8px; }
.folder-card h2 { font-size: .96rem; display: flex; gap: 8px; align-items: center; }
.folder-card h2 i { color: var(--accent); }
.folder-card[data-status="granted"] h2 i { color: var(--ok); }
.folder-card[data-status="prompt"] h2 i, .folder-card[data-status="denied"] h2 i { color: var(--amber); }
.folder-path { font: .86rem var(--mono); color: var(--text); word-break: break-word; }
.storage-line { font-size: .82rem; }
.side-backdrop { display: none; }

main { overflow: hidden; min-width: 0; }
main:focus { outline: none; }
/* The recordings list is as wide as the library sidebar beside it. */
.cols { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: 100%; }
.list-col { border-right: 1px solid var(--line); overflow: auto; display: flex; flex-direction: column; min-width: 0; }
.list-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.count-badge { padding: 1px 8px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--muted); }
.work-col { overflow: auto; padding: 18px 22px 48px; min-width: 0; }
.view { max-width: 980px; margin: 0 auto; display: grid; gap: 16px; }

/* ── recording list ── */
.rec-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
.rec-item { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px 10px; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid transparent; background: transparent; text-align: left; color: var(--text); }
.rec-item:hover { background: var(--surface); border-color: var(--line); }
.rec-item[aria-current="true"] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.rec-item b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-item .when { font-size: .82rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; margin-top: -2px; }
.rec-item .spark { height: 22px; width: 100%; color: var(--accent); opacity: .85; }
.rec-item .snip { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec-item .snip mark, .segments mark { background: color-mix(in srgb, var(--amber) 40%, transparent); color: var(--text); border-radius: 3px; padding: 0 1px; }
.rec-item .badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .79rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); font-weight: 650; }
.badge.fav { color: var(--amber); }
.badge.synced { color: var(--ok); }
.badge.pending { color: var(--muted); }
.badge.match { color: var(--accent); }
.list-head h2 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-head select.compact { max-width: 92px; padding-right: 4px; }
/* Empty list: a quiet picture of what will be here, then the next steps. */
.list-empty { padding: 18px 14px 28px; display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--muted); }
.ghost-list { width: 100%; display: grid; gap: 6px; margin-bottom: 4px; }
.ghost-item { padding: 10px 12px; border-radius: var(--radius-s); border: 1px dashed var(--line2); display: grid; gap: 6px; opacity: .55; }
.ghost-item:nth-child(2) { opacity: .38; } .ghost-item:nth-child(3) { opacity: .22; }
.ghost-item span { height: 8px; border-radius: 4px; background: var(--raise); }
.ghost-item span:first-child { width: 62%; height: 10px; }
.ghost-item span:last-child { width: 88%; }
.ghost-item svg { width: 100%; height: 18px; color: var(--line2); }
.empty-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.empty-ic.ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.list-empty h3 { color: var(--text); text-transform: none; letter-spacing: -0.01em; font-size: 1.07rem; }
.list-empty p { font-size: .93rem; max-width: 230px; }
.list-empty .stack { display: grid; gap: 8px; width: 100%; }
.list-empty .learn { display: grid; gap: 2px; width: 100%; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.list-empty .learn h4 { margin: 0 0 4px 10px; font-size: .79rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }

/* ── information screens ── */
.info { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.info:focus { outline: none; }
.info-hero { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.info-ic { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; color: var(--accent-ink); background: linear-gradient(140deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 30%, transparent); }
.info-ic img { width: 56px; height: 56px; }
.info-hero:has(img) .info-ic { background: none; box-shadow: none; }
.info-kicker { margin: 0; font-size: .79rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.info-hero h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 4px; }
.info-sub { margin: 0; color: var(--muted); font-size: 1.04rem; max-width: 680px; }
.info h2 { font-size: 1rem; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.info h2 i { color: var(--accent); }
.info .card p { color: var(--muted); margin: 0; line-height: 1.55; }
.info-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.info-flow li { position: relative; display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.info-flow li::before { content: counter(step); position: absolute; top: 10px; right: 12px; font: 700 .79rem var(--mono); color: var(--faint); }
.info-flow li > span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.info-flow li:first-child > span { color: var(--rec); background: var(--rec-soft); }
.info-flow b { font-size: 1rem; }
.info-flow small { color: var(--muted); font-size: .89rem; line-height: 1.45; }
.info-more { justify-self: start; font-size: .86rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 2px; }
.info-more:hover { text-decoration: underline; }
.info-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.info-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.info-tips div { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface2); border: 1px solid var(--line); font-size: .89rem; color: var(--muted); }
.info-stat { color: var(--muted); }
.info-stat b { color: var(--text); }
.info-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-option { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line2); background: var(--surface); }
.info-option.current { border-color: var(--accent); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface); }
.info-option header { display: flex; gap: 10px; align-items: center; }
.info-option header i { color: var(--accent); font-size: 1.1rem; }
.info-option header b { flex: 1; font-size: 1.04rem; }
.info-option ul { margin: 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: 4px; }
.info-option .btn { justify-self: start; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.info-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.info-stack { display: grid; gap: 12px; }
.info-tree { padding: 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 4px; font-size: .93rem; }
.info-tree div { display: flex; gap: 8px; align-items: baseline; padding: 5px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-tree .t1 { padding-left: 28px; } .info-tree .t2 { padding-left: 48px; } .info-tree .t3 { padding-left: 68px; font-family: var(--mono); font-size: .86rem; }
.info-tree .fa-folder { color: var(--amber); }
.info-tree .hi { background: var(--accent-soft); }
.info-tree .hi i { color: var(--accent); }
.info-tree small { margin-left: auto; padding-left: 12px; font-family: var(--font); color: var(--muted); font-size: .79rem; }
.info-tree em { color: var(--muted); }
.info-status { display: grid; gap: 8px; }
.info-status.ok h2 i { color: var(--ok); }
.info-status .btn { justify-self: start; }
.info-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info-facts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); line-height: 1.5; }
.info-facts li i { color: var(--accent); margin-top: 4px; }
.info-facts b { color: var(--text); }
.info-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.info-chips .badge { font-size: .89rem; padding: 4px 10px; }
.info-chips .badge i { color: var(--accent); }
.info-where { display: flex; gap: 8px; align-items: baseline; color: var(--muted); margin: 0; }
.info-where.ok i { color: var(--ok); }
.info-chat { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-chat p { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: .93rem; }
.info-chat .u { justify-self: end; max-width: 85%; background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.info-chat .t { font-family: var(--mono); font-size: .86rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); }
.info-chat .t i { color: var(--ok); margin-right: 6px; }
.info-chat .s { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.info-chat .s i { color: var(--ok); margin-right: 6px; }
.info-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.info-keys dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .89rem; }
.info-keys dt { white-space: nowrap; }
.info-keys dd { margin: 0; color: var(--muted); }
.info-story { display: grid; gap: 10px; }
.info-story p { font-size: 1.04rem; line-height: 1.65; color: var(--text) !important; }
.info-sign { font-weight: 700; color: var(--accent) !important; }
#learn-nav .nav-item { min-height: 34px; font-size: .96rem; }
@media (max-width: 1280px) { .info-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .info-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .info-keys { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .info-flow, .info-options, .info-grid, .info-grid.four, .info-split, .info-keys { grid-template-columns: minmax(0, 1fr); } .info-tips { grid-template-columns: 1fr 1fr; } .info-hero { flex-direction: column; align-items: flex-start; } }

/* ── the recorder ── */
.stage { display: grid; gap: 14px; padding: 18px; position: relative; overflow: hidden; }
.stage-top { display: flex; align-items: center; gap: 10px; }
.mic-pick { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); max-width: 60%; }
.mic-pick select { max-width: 100%; text-overflow: ellipsis; }
.state-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.stage[data-state="recording"] .state-pill { color: var(--rec); border-color: color-mix(in srgb, var(--rec) 40%, transparent); background: var(--rec-soft); }
.stage[data-state="recording"] .state-pill .dot { background: var(--rec); animation: blink 1.6s ease-in-out infinite; }
.stage[data-state="paused"] .state-pill { color: var(--amber); background: var(--amber-soft); }
.stage[data-state="paused"] .state-pill .dot { background: var(--amber); }
.stage[data-state="saving"] .state-pill { color: var(--accent); }
@keyframes blink { 50% { opacity: .35; } }
.timer { font: 750 clamp(2.6rem, 6vw, 4rem)/1 var(--mono); text-align: center; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.timer small { font-size: .45em; color: var(--muted); margin-left: 2px; }
.stage[data-state="recording"] .timer { color: var(--text); }
.live-wrap { position: relative; height: 150px; border-radius: 12px; background: linear-gradient(180deg, var(--surface2), var(--bg)); border: 1px solid var(--line); overflow: hidden; }
.live { width: 100%; height: 100%; display: block; }
.meter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meter-label { font-size: .86rem; font-weight: 650; color: var(--muted); }
.meter { position: relative; flex: 1; min-width: 140px; height: 10px; border-radius: 5px; background: var(--raise); overflow: hidden; }
.meter span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--ok), var(--accent) 65%, var(--amber) 85%, var(--rec)); border-radius: 5px; }
.meter i { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--text); opacity: .7; }
.gain { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 650; color: var(--muted); }
.gain input { width: 120px; }
.controls { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2.4vw, 22px); flex-wrap: wrap; padding: 4px 0; }
.ctl { display: grid; justify-items: center; gap: 5px; min-width: 64px; padding: 6px 4px; border: 0; background: none; color: var(--muted); font-size: .86rem; font-weight: 650; border-radius: 12px; }
.ctl i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line2); font-size: 1.1rem; color: var(--text); }
.ctl:hover:not(:disabled) i { background: var(--raise); }
.ctl:disabled { opacity: .45; cursor: not-allowed; }
.ctl[aria-pressed="true"] i { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.rec-btn { width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--line2); background: var(--surface2); display: grid; place-items: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.rec-btn:hover { border-color: color-mix(in srgb, var(--rec) 60%, var(--line2)); }
.rec-core { width: 46px; height: 46px; border-radius: 50%; background: var(--rec); transition: border-radius .18s ease, width .18s ease, height .18s ease; }
.stage[data-state="recording"] .rec-btn, .stage[data-state="paused"] .rec-btn { border-color: var(--rec); }
.stage[data-state="recording"] .rec-core, .stage[data-state="paused"] .rec-core { width: 32px; height: 32px; border-radius: 7px; }
.stage[data-state="recording"] .rec-btn::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--rec); opacity: 0; animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .55; } 100% { transform: scale(1.18); opacity: 0; } }
.stage[data-state="saving"] .rec-btn { opacity: .6; }
.rec-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; }
.rec-fields .hint { grid-column: 1 / 3; }
.live-tx { display: grid; gap: 10px; }
.live-head h2 { font-size: 1.07rem; }
/* The Live transcript switch: a real checkbox, drawn as a switch. */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 32px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line2); transition: background .15s ease; }
.switch-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s ease, background .15s ease; }
.switch input:checked + .switch-ui { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); background: var(--accent-ink); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--focus); outline-offset: 2px; }
.live-privacy { font-size: .86rem; color: var(--muted); margin: -2px 0 0; }
.live-privacy i { color: var(--faint); margin-right: 6px; }
.live-privacy .link { margin-left: 6px; }
.live-lines li.pending span:last-child { color: var(--muted); font-style: italic; }
.live-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.live-lines li, .segments li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ts { font: 600 .82rem var(--mono); color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 6px; padding: 2px 7px; min-height: 24px; font-variant-numeric: tabular-nums; }
button.ts:hover { filter: brightness(1.15); }
.interim { margin: 0; color: var(--muted); font-style: italic; min-height: 1.5em; }
.live-lines:empty::before { content: attr(data-empty); color: var(--faint); font-size: .93rem; }
.marker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.marker-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: var(--radius-s); background: var(--surface2); border: 1px solid var(--line); }
.marker-list .ts { color: var(--amber); background: var(--amber-soft); }
.marker-list input { min-height: 32px; padding: 4px 8px; background: transparent; border-color: transparent; }
.marker-list input:hover, .marker-list input:focus { border-color: var(--line2); background: var(--bg); }

/* ── one recording ── */
.rv-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.back-btn { display: none; }
.rv-title { flex: 1; min-width: 240px; }
.title-input { font-size: 1.6rem !important; font-weight: 800; letter-spacing: -0.02em; border-color: transparent !important; background: transparent !important; padding: 2px 6px !important; margin-left: -6px; }
.title-input:hover { border-color: var(--line2) !important; }
.title-input:focus { background: var(--bg) !important; border-color: var(--line2) !important; }
.meta { color: var(--muted); font-size: .93rem; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.meta .ok { color: var(--ok); }
.rv-actions { display: flex; gap: 6px; flex-wrap: wrap; }
#fav-btn[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }
.tags-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 11px; min-height: 30px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-size: .9rem; font-weight: 650; }
.chip button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.chip button:hover { background: var(--raise); color: var(--text); }
.tag-input { width: 140px !important; min-height: 30px !important; padding: 3px 11px !important; border-radius: 999px !important; border-style: dashed !important; background: transparent !important; }
.player { display: grid; gap: 12px; }
.wave-wrap { position: relative; }
.wave { position: relative; height: 124px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; touch-action: none; }
.wave canvas { width: 100%; height: 100%; display: block; border-radius: 12px; }
.wave-hover { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text); opacity: 0; pointer-events: none; }
.wave-hover::after { content: attr(data-t); position: absolute; top: 4px; left: 6px; font: 600 .79rem var(--mono); color: var(--text); background: var(--surface); border: 1px solid var(--line2); padding: 1px 5px; border-radius: 5px; white-space: nowrap; }
.wave:hover .wave-hover { opacity: .8; }
.wave-markers { position: absolute; inset: 0; pointer-events: none; }
.wave-markers button { pointer-events: auto; position: absolute; top: -2px; width: 24px; height: 24px; margin-left: -12px; border: 0; background: transparent; color: var(--amber); display: grid; place-items: center; font-size: .86rem; }
.wave-markers button::after { content: ''; position: absolute; top: 20px; left: 11px; width: 2px; height: 104px; background: var(--amber); opacity: .55; }
.transport { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.play-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1.2rem; display: grid; place-items: center; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.play-btn:hover { filter: brightness(1.07); }
.play-btn .fa-play { margin-left: 3px; }
.time { font: 600 .93rem var(--mono); color: var(--muted); min-width: 120px; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--radius-s); overflow: hidden; }
.seg button { border: 0; min-height: 32px; padding: 4px 9px; background: transparent; font-weight: 650; font-size: .89rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); }
.seg.big { display: flex; flex-wrap: wrap; }
.seg.big label { flex: 1; position: relative; }
.seg.big input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg.big span { display: block; text-align: center; min-height: 36px; padding: 7px 12px; font-weight: 650; color: var(--muted); border-right: 1px solid var(--line); cursor: pointer; }
.seg.big label:last-child span { border-right: 0; }
.seg.big input:checked + span { background: var(--accent-soft); color: var(--text); }
.seg.big input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.vol { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.vol input { width: 90px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs [role=tab] { padding: 9px 12px; min-height: 40px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-weight: 650; color: var(--muted); white-space: nowrap; }
.tabs [role=tab][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count:not(:empty) { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--surface2); }
.panel { display: grid; gap: 12px; }
.panel:focus-visible { outline-offset: 4px; }
.tx-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.find { position: relative; flex: 0 1 300px; min-width: 160px; }
.find > i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: .86rem; }
.find input { padding-left: 32px; padding-right: 54px; min-height: 32px; }
.find-count { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: .79rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wide-find { flex: none; width: 100%; }
.segments { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.segments li { padding: 6px 8px; border-radius: var(--radius-s); border: 1px solid transparent; }
.segments li.now { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.segments li.hit { border-color: color-mix(in srgb, var(--amber) 50%, transparent); }
.seg-text { margin: 0; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.segments.editing .seg-text { padding: 3px 8px; border-radius: 6px; border: 1px dashed var(--line2); background: var(--bg); }
.segments.editing .seg-text:focus { border-style: solid; border-color: var(--accent); outline: none; }
.ai-row { align-items: flex-end; }
.outputs { display: grid; gap: 12px; }
.output { display: grid; gap: 8px; }
.output-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.output-head b { font-size: 1rem; }
.output-head small { font-size: .82rem; }
.output-body { white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; }
.output.streaming .output-body::after { content: '▍'; color: var(--accent); }
.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: .93rem; }
.details dt { color: var(--muted); font-weight: 650; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details code { font-size: .86rem; }

/* ── empty state ── */
.empty { max-width: 760px; margin: 4vh auto 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty img { width: 72px; height: 72px; }
.empty h1 { font-size: 2.15rem; font-weight: 800; letter-spacing: -0.02em; }
.empty p { color: var(--muted); font-size: 1.07rem; max-width: 600px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; text-align: left; width: 100%; }
.steps div { padding: 12px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); font-size: .93rem; }
.steps b { display: block; margin-bottom: 3px; }

/* ── dialogs ── */
dialog { width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--line2); border-radius: 16px; background: var(--surface); color: var(--text); padding: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog form, dialog .body { padding: 18px 20px; display: grid; gap: 12px; }
dialog h2 { font-size: 1.29rem; display: flex; gap: 10px; align-items: center; }
dialog .actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 4px; flex-wrap: wrap; }
dialog fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
dialog legend { font-weight: 750; font-size: .93rem; margin-bottom: 6px; padding: 0; }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); border-radius: 0; border-width: 0 0 0 1px; display: none; flex-direction: column; }
.drawer[open] { display: flex; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { flex: 1; font-size: 1.21rem; }
.drawer-head h2 i { color: var(--accent); }
.drawer-body { overflow: auto; padding: 16px; display: grid; gap: 18px; align-content: start; flex: 1; }
.drawer-body > section { display: grid; gap: 18px; }
.drawer-body fieldset { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); }
.drawer-body legend { padding: 0 6px; margin-left: -6px; font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, transparent) !important; }
.panel-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 16px 0; }
.panel-tabs [role=tab] { padding: 5px 11px; min-height: 32px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; font-weight: 650; font-size: .93rem; color: var(--muted); }
.panel-tabs [role=tab][aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.radio-cards { display: grid; gap: 8px; }
.rcard { position: relative; display: block; cursor: pointer; }
.rcard input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.rcard > span { display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--line2); background: var(--bg); }
.rcard b { display: flex; gap: 8px; align-items: center; font-size: .96rem; }
.rcard b i { color: var(--muted); width: 18px; text-align: center; }
.rcard small { font-size: .86rem; }
.rcard input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.rcard input:checked + span b i { color: var(--accent); }
.rcard input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pledge { padding: 14px; border-radius: var(--radius); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); display: grid; gap: 8px; }
.pledge h3 { color: var(--ok); }
.pledge ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pledge li { display: flex; gap: 10px; align-items: baseline; }
.pledge i { color: var(--ok); }
.table-wrap { overflow: auto; max-height: 300px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); }
.netlog { width: 100%; border-collapse: collapse; font-size: .86rem; }
.netlog th, .netlog td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.netlog th { position: sticky; top: 0; background: var(--surface2); font-size: .79rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.netlog .internet { color: var(--amber); }
.netlog .bad { color: var(--danger); }
.tool-list, .module-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.tool-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.tool-list code { grid-row: span 2; align-self: start; }
.module-list li { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: var(--radius-s); background: var(--bg); border: 1px solid var(--line); }
.module-list li span { flex: 1; font-weight: 650; }
.about { text-align: center; }
.fmt-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px !important; }
.fmt-grid legend { grid-column: 1 / -1; }
.fmt { position: relative; }
.fmt input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.fmt span { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--radius-s); border: 1px solid var(--line2); background: var(--bg); font-size: .93rem; font-weight: 650; text-align: center; cursor: pointer; }
.fmt span i { font-size: 1.15rem; color: var(--muted); }
.fmt span small { font-size: .79rem; font-weight: 600; }
.fmt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.fmt input:checked + span i { color: var(--accent); }
.fmt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
details.more summary { cursor: pointer; font-weight: 650; font-size: .93rem; color: var(--muted); min-height: 24px; }
details.more[open] summary { margin-bottom: 10px; }
progress { width: 100%; height: 8px; accent-color: var(--accent); }
.keys-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.keys-table th { text-align: left; padding: 10px 0 4px; font-size: .79rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.keys-table td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.keys-table td:first-child { width: 42%; }
.welcome { width: min(560px, calc(100vw - 24px)); }
.welcome .body { padding: 26px 26px 18px; gap: 16px; }
.welcome-progress { height: 4px; border-radius: 2px; background: var(--raise); overflow: hidden; }
.welcome-progress span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.welcome-slide { display: grid; gap: 12px; justify-items: center; text-align: center; min-height: 270px; align-content: center; }
.welcome-slide h2 { font-size: 1.57rem; font-weight: 800; justify-content: center; }
.welcome-slide p { color: var(--muted); font-size: 1.04rem; max-width: 460px; }
.welcome-ic { font-size: 2.6rem; color: var(--accent); }
.welcome-nav { display: flex; align-items: center; gap: 8px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.dots button::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.dots button[aria-selected="true"]::before { background: var(--accent); }
.docs { display: grid; gap: 18px; }
.docs section { display: grid; gap: 8px; scroll-margin-top: 12px; }
.docs h3 { color: var(--text); text-transform: none; letter-spacing: -0.01em; font-size: 1.14rem; display: flex; gap: 8px; align-items: center; }
.docs h3 i { color: var(--accent); width: 20px; }
.docs p, .docs li { color: var(--muted); line-height: 1.6; }
.docs ul, .docs ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 4px; }
.docs strong { color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 650; }
.toc a:hover { color: var(--text); background: var(--surface2); }

/* ── toasts, tips, drop zone ── */
.toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(520px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line2); border-left: 4px solid var(--accent); box-shadow: var(--shadow); font-weight: 600; }
.toast.ok { border-left-color: var(--ok); } .toast.warn { border-left-color: var(--amber); } .toast.error { border-left-color: var(--danger); }
.toast span { flex: 1; }
.toast .btn { min-height: 30px; }
.tip { position: fixed; z-index: 70; max-width: 260px; padding: 5px 9px; border-radius: 7px; background: #111318; color: #F2F4F8; font-size: .86rem; font-weight: 600; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.drop-zone { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(4px); }
.drop-zone > div { display: grid; gap: 8px; justify-items: center; padding: 40px 56px; border-radius: 20px; border: 3px dashed var(--accent); background: var(--surface); text-align: center; }
.drop-zone i { font-size: 2.6rem; color: var(--accent); }
.drop-zone b { font-size: 1.29rem; }

/* ── responsive ── */
@media (max-width: 1180px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .side { position: fixed; z-index: 40; top: var(--top); bottom: 0; left: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); visibility: hidden; }
  body.side-open .side { transform: none; visibility: visible; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: var(--top) 0 0 0; z-index: 35; background: rgba(0,0,0,.45); }
}
@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols[data-view="list"] .work-col, .cols[data-view="record"] .list-col, .cols[data-view="recording"] .list-col, .cols[data-view="info"] .list-col { display: none; }
  .cols[data-view="list"] .list-col { border-right: 0; }
  .back-btn { display: inline-flex; }
  .search { flex: 1; }
  .search kbd { display: none; }
  .search input[type=search] { padding-right: 12px; }
  .top .pill span, #tx-engine span { display: none; }
  /* Icon only on narrow screens; the word stays as the button's accessible name (WCAG 4.1.2). */
  #settings-btn .label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .work-col { padding: 14px 14px 40px; }
}
@media (max-width: 600px) {
  :root { --top: 106px; }
  .top { gap: 6px; padding: 6px 8px; flex-wrap: wrap; align-content: center; row-gap: 6px; }
  .search { order: 9; flex: 1 0 100%; margin-left: 0; min-width: 0; }
  .brand b { font-size: 1rem; }
  #theme-btn { display: none; }
  .rec-fields, .two { grid-template-columns: minmax(0, 1fr); }
  .rec-fields .hint { grid-column: auto; }
  .ctl { min-width: 52px; }
  .ctl i { width: 44px; height: 44px; }
  .rec-btn { width: 76px; height: 76px; }
  .live-wrap { height: 110px; }
  .title-input { font-size: 1.3rem !important; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .vol { display: none; }
  .gain input { width: 90px; }
}
@media (pointer: coarse) { .btn, .nav-item, .seg button { min-height: 44px; } .ts { min-height: 32px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
@media (forced-colors: active) {
  .btn, .pill, .nav-item, .rec-item, .card, .ctl i, .rec-btn, .seg, .chip, .rcard > span, .fmt span { border: 1px solid ButtonText; }
  .nav-item[aria-current="page"], .rec-item[aria-current="true"], .btn[aria-pressed="true"], .seg button[aria-pressed="true"] { outline: 2px solid Highlight; }
  .rec-core { background: Highlight; forced-color-adjust: none; }
  .switch-ui { border: 1px solid ButtonText; } .switch input:checked + .switch-ui { background: Highlight; forced-color-adjust: none; }
  .meter span { background: Highlight; forced-color-adjust: none; }
}
@media print { .top, .side, .list-col, .player, .tabs, .tx-tools, .rv-actions { display: none !important; } body { overflow: visible; } .shell, .cols { display: block; height: auto; } [role=tabpanel][hidden] { display: none !important; } }

/* ── the standard layer: header name, Install button, Setup button, Settings → Agents & app ── */
.brand > span { min-width: 0; }
.brand b { white-space: nowrap; }
.brand-and { font-weight: 600; }
#install-btn .label { margin-left: 2px; }
@media (max-width: 1280px) { .brand b { white-space: normal; max-width: 9.5rem; line-height: 1.05; font-size: 1.02rem; } }
@media (max-width: 900px) { #install-btn .label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; } #install-btn { width: 32px; padding: 0; } }
@media (max-width: 600px) { .brand b { max-width: 8rem; font-size: .95rem; } }
/* The shared setup checklist (setup-kit.css) in the app's own colours and type; contrast stays 4.5:1. */
:root[data-theme][data-px-theme] .px-setup, :root[data-theme][data-px-theme] .px-setup-trigger {
  --px-bg: var(--surface); --px-surface: var(--surface2); --px-text: var(--text); --px-muted: var(--muted); --px-line: var(--line2); --px-hover: var(--raise);
  --px-accent: var(--accent); --px-on-accent: var(--accent-ink); --px-focus: var(--focus); --px-ok: var(--ok); --px-error: var(--danger); --px-font: var(--font);
}
:root[data-theme="light"][data-px-theme] .px-setup, :root[data-theme="light"][data-px-theme] .px-setup-trigger { --px-on-ok: #FFFFFF; --px-on-error: #FFFFFF; }
:root[data-theme="dark"][data-px-theme] .px-setup, :root[data-theme="dark"][data-px-theme] .px-setup-trigger { --px-on-ok: #0B2A1B; --px-on-error: #3A0B0E; }
.px-setup-trigger { min-height: 32px; font-size: .86rem; margin-right: 0; }
.px-setup__note a { overflow-wrap: anywhere; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; }
.copy-row .copy-label { grid-column: 1 / -1; font-weight: 650; font-size: .9rem; }
.copy-row .copy-value { display: block; overflow-wrap: anywhere; padding: 6px 8px; font-size: .84rem; line-height: 1.4; }
.folder-form { display: grid; gap: 8px; }
.folder-form input[aria-invalid="true"] { border-color: var(--danger); }
.token-box { display: grid; gap: 8px; }
.token-value { font: .84rem var(--mono); }
.about-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); }
.about-card h3 { margin: 0; }
#handoff-dlg p { color: var(--muted); }
.px-setup h3.px-setup__title { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 750; color: var(--px-text); }
.px-setup h3.px-setup__group-title { color: var(--px-muted); }
dialog form.folder-form { padding: 0; }
/* The header grows when it wraps (phones, larger text sizes); app-shell.js keeps --top equal to its real height. */
.top { height: auto; min-height: 58px; }
.btn.btn-wrap { white-space: normal; overflow-wrap: anywhere; text-align: start; justify-content: flex-start; max-width: 100%; }
/* Settings and Help use the whole width on phones (the browser's default dialog margin left them 286px wide at 320). */
.drawer { max-width: 100vw; }
.tool-list code { overflow-wrap: anywhere; }
@media (max-width: 420px) { .tool-list li { grid-template-columns: minmax(0, 1fr); } .tool-list code { grid-row: auto; } }
