:root {
  color-scheme: light;
  --ink: #1e2440;
  --muted: #5d6984;
  --line: #e3e7f1;
  --paper: #f5f7fc;
  --white: #fff;
  --primary: #5043ce;
  --primary-hover: #3c2fb1;
  --tint: #efedff;
  --radius: 16px;
  --shadow: 0 3px 12px #23285907;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); line-height: 1.55; }
main { flex: 1 0 auto; min-width: 0; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { line-height: 1.17; font-size: clamp(1.9rem, 3vw, 2.45rem); font-weight: 780; letter-spacing: -.045em; }
h2 { font-size: 1.22rem; letter-spacing: -.02em; line-height: 1.4; }
h3 { font-size: 1rem; line-height: 1.5; }
:focus-visible { outline: 3px solid #7164e7; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 5; padding: 8px 16px; background: white; border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.metadata { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.controls { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.full { width: 100%; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-content { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 11px; font-size: 1.1rem; font-weight: 760; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: .77rem; font-weight: 540; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 2px; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #7267ed, #4a3cbc); box-shadow: 0 3px 8px #5043ce32; flex: 0 0 auto; }
.brand-mark i { width: 2px; height: 8px; background: white; border-radius: 4px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 15px; }
.brand-mark i:nth-child(3) { height: 20px; }
.header-content nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; color: #464270; font-weight: 650; }
.header-content nav a:hover { background: var(--tint); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; padding-block: 20px; margin-top: 52px; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 10px; }

.icon { display: inline-block; position: relative; flex: 0 0 auto; width: 20px; height: 20px; color: inherit; }
.icon::before, .icon::after { content: ""; position: absolute; box-sizing: border-box; }
.icon.inbox::before { inset: 4px 1px 2px; border: 1.7px solid; border-radius: 3px; }
.icon.inbox::after { inset: 8px 6px 6px; border: 1.7px solid; border-top: 0; border-radius: 0 0 4px 4px; }
.icon.tasks::before { inset: 2px 3px 1px; border: 1.7px solid; border-radius: 3px; }
.icon.tasks::after { inset: 7px 6px 6px; border-block: 1.6px solid; }
.icon.archive::before { inset: 6px 2px 2px; border: 1.7px solid; border-radius: 2px; }
.icon.archive::after { inset: 2px 1px 13px; border: 1.6px solid; border-radius: 2px; }
.icon.logout::before { inset: 3px 8px 3px 2px; border: 1.7px solid; border-right: 0; border-radius: 2px; }
.icon.logout::after { width: 8px; height: 8px; border-top: 1.7px solid; border-right: 1.7px solid; transform: rotate(45deg); inset: 6px 3px auto auto; }
.icon.search::before { inset: 2px 6px 6px 2px; border: 1.7px solid; border-radius: 50%; }
.icon.search::after { width: 7px; height: 1.7px; background: currentColor; transform: rotate(45deg); left: 12px; top: 14px; }
.icon.person::before { inset: 2px 7px 11px; border: 1.7px solid; border-radius: 50%; }
.icon.person::after { inset: 11px 3px 2px; border: 1.7px solid; border-radius: 8px 8px 2px 2px; }
.icon.clock::before, .icon.resume::before { inset: 2px; border: 1.7px solid; border-radius: 50%; }
.icon.clock::after, .icon.resume::after { width: 5px; height: 6px; border-left: 1.7px solid; border-bottom: 1.7px solid; top: 5px; left: 9px; }
.icon.checkmark::before { width: 11px; height: 6px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); inset: 6px auto auto 4px; }
.icon.mic { background: linear-gradient(currentColor,currentColor) center 15px / 1.6px 4px no-repeat, linear-gradient(currentColor,currentColor) center 18px / 6px 1.6px no-repeat; }
.icon.mic::before { inset: 1px 7px 8px; border: 1.7px solid; border-radius: 5px; }
.icon.mic::after { inset: 8px 4px 4px; border: 1.7px solid; border-top: 0; border-radius: 0 0 7px 7px; }
.icon.invite::before { inset: 4px 1px; border: 1.7px solid; border-radius: 3px; }
.icon.invite::after { width: 8px; height: 8px; border-right: 1.7px solid; border-bottom: 1.7px solid; inset: 3px auto auto 6px; transform: rotate(45deg); }
.icon.download { background: linear-gradient(currentColor,currentColor) center 2px / 1.6px 9px no-repeat; }
.icon.download::before { width: 7px; height: 7px; border-right: 1.7px solid; border-bottom: 1.7px solid; transform: rotate(45deg); inset: 5px auto auto 6.5px; }
.icon.download::after { inset: 12px 2px 2px; border: 1.7px solid; border-top: 0; border-radius: 0 0 3px 3px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 720; color: var(--primary); letter-spacing: .055em; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #5143be; background: var(--tint); flex: 0 0 auto; }
.mint { color: #187655; background: #e1f6ec; }
.amber { color: #8b5b0d; background: #fff1d9; }
.rose { color: #ad4260; background: #fbe9f0; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 14px; min-height: 43px; border: 1px solid transparent; border-radius: 9px; font-weight: 680; line-height: 1.25; color: var(--ink); text-align: center; cursor: pointer; }
.primary { background: var(--primary); color: white; box-shadow: 0 2px 4px #24148625; }
.primary:hover:not(:disabled) { background: var(--primary-hover); }
.outline { background: white; border-color: #d9ddeb; color: #453d77; }
.outline:hover:not(:disabled) { background: #f5f3ff; border-color: #c5bced; }
.ghost, .link-button { background: transparent; color: var(--primary); border-color: transparent; }
.ghost:hover:not(:disabled), .link-button:hover:not(:disabled) { background: var(--tint); }
.link-button { cursor: pointer; border: 0; padding: 8px 10px; border-radius: 8px; }
.danger { background: #a9284f; color: white; }
.danger:hover:not(:disabled) { background: #8a1e3d; }
button:disabled { opacity: .5; cursor: default; box-shadow: none; }
.plus { font-size: 1.2rem; line-height: .8; }
.narrow { max-width: 510px; padding-top: 54px; }
.form-card { padding: clamp(18px, 4vw, 32px); }
.form-card h1 { margin: 8px 0 20px; }
.form-stack { display: grid; gap: 14px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
label { display: grid; gap: 5px; min-width: 0; font-weight: 630; }
input:not([type=checkbox]), select, textarea { display: block; padding: 9px 11px; min-height: 43px; width: 100%; border: 1px solid #d7dcea; border-radius: 9px; background: #fff; color: var(--ink); min-width: 0; }
input::placeholder, textarea::placeholder { color: #67728a; opacity: 1; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 27px; }
input[type=checkbox] { accent-color: var(--primary); width: 17px; height: 17px; margin: 3px 0 0; flex: 0 0 auto; cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 530; }
.consent { background: #f4f3fc; padding: 13px; border-radius: 10px; font-size: .92rem; }
.notice { margin-block: 14px; padding: 11px 13px; border: 1px solid #e0dbf9; border-radius: 10px; background: #f1edff; color: #3f3280; }
.notice.error, .error-text { color: #a0264a; }
.notice.error { background: #fef0f3; border-color: #f7dae3; }
.notice.success { background: #e8f8ef; border-color: #caebdc; color: #176043; }

.dashboard { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; }
.dashboard > .shell { width: min(1250px, calc(100% - 64px)); padding: 33px 0 52px; }
.dashboard-nav { position: sticky; top: 0; min-height: 100dvh; display: flex; flex-direction: column; gap: 38px; padding: 25px 15px 18px; background: white; border-right: 1px solid var(--line); }
.dashboard-nav .brand { margin-inline: 9px; }
.dashboard-nav nav { display: grid; gap: 6px; }
.dashboard-nav nav a, .nav-logout { display: flex; gap: 10px; align-items: center; min-height: 44px; border-radius: 9px; padding: 7px 12px; color: var(--muted); font-weight: 660; }
.dashboard-nav nav a:hover, .nav-logout:hover { background: #f4f3fc; color: var(--primary); }
.dashboard-nav nav a[aria-current] { color: #4738bd; background: var(--tint); }
.dashboard-nav form { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.nav-logout { width: 100%; text-align: left; background: white; border: 0; cursor: pointer; }
.console-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.console-heading h1, .page-heading h1 { margin: 9px 0 8px; }
.breadcrumbs { color: var(--muted); font-size: .86rem; }
.breadcrumbs span { padding-inline: 6px; color: #8c93a9; }
.console-heading > .button, .page-heading > .pill { flex: 0 0 auto; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 0 0 22px; }
.metric { padding: 15px 17px; min-width: 0; color: var(--ink); display: grid; gap: 3px; }
a.metric:hover { border-color: #c3b9ed; }
.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--muted); font-weight: 650; font-size: .94rem; }
.metric .tile-icon { width: 34px; height: 34px; border-radius: 9px; }
.metric strong { font-size: clamp(1.7rem, 3vw, 2.35rem); font-variant-numeric: tabular-nums; line-height: 1.16; margin-top: 3px; }
.metric small { color: var(--muted); font-size: .82rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(236px, .395fr); align-items: start; gap: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 19px 19px 15px; }
.panel-heading .muted { font-size: .88rem; margin-top: 3px; }
.status-tabs { display: flex; gap: clamp(13px, 2vw, 25px); padding-inline: 19px; border-bottom: 1px solid var(--line); }
.status-tabs a { color: var(--muted); font-weight: 660; padding-block: 9px 11px; border-bottom: 2px solid transparent; white-space: nowrap; }
.status-tabs a:hover, .status-tabs a[aria-current] { color: var(--primary); }
.status-tabs a[aria-current] { border-bottom-color: var(--primary); }
.queue-filter { display: grid; grid-template-columns: minmax(145px,1fr) minmax(100px,auto) auto; gap: 8px; padding: 14px 19px; border-bottom: 1px solid var(--line); }
.queue-filter .ghost { justify-self: start; }
.search-field { position: relative; }
.search-field .icon { position: absolute; top: 11px; left: 10px; color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 35px; }
.review-card { display: grid; gap: 10px; padding: 19px; }
.review-card + .review-card { border-top: 1px solid var(--line); }
.review-card h3 { font-size: 1.15rem; }
.review-card audio { width: 100%; }
.confirm { background: #f6f5fd; padding: 10px 12px; border-radius: 9px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.pill, .status { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; padding: 4px 10px; font-size: .84rem; font-weight: 680; line-height: 1.42; }
.pill { background: var(--tint); color: #483ba9; }
.pill.neutral { background: #f0f1f8; color: #4b5871; }
.status { background: #fff4dd; color: #795016; white-space: nowrap; }
.status.approved { background: #e6f7ed; color: #176043; }
.status.rejected { background: #fcecf1; color: #a1254a; }
.status i, .split-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.empty-state { display: grid; justify-items: center; gap: 7px; padding: 45px 18px 52px; text-align: center; }
.empty-state h3 { font-size: 1.04rem; }
.empty-state p { color: var(--muted); font-size: .9rem; }
.empty-glyph { display: grid; place-items: center; width: 61px; height: 61px; margin-bottom: 5px; color: #6253c5; background: radial-gradient(circle, #f4f0ff 55%, #ede9ff 56%); border: 1px solid #e4dff8; border-radius: 18px; }
.empty-glyph .icon { transform: scale(1.28); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 13px 19px; border-top: 1px solid var(--line); color: var(--muted); }
.dataset-panel { padding: 17px; scroll-margin-top: 18px; }
.dataset-heading { display: flex; align-items: center; gap: 10px; }
.dataset-heading .muted { font-size: .85rem; }
.split-list { margin: 13px 0 16px; }
.split-list > div { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.split-list dt { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.split-list dd { margin: 0; color: var(--muted); font-size: .83rem; }
.split-list dd strong { color: var(--ink); font-size: 1rem; }
.split-dot.train { background: #7366db; }
.split-dot.dev { background: #3c9686; }
.split-dot.test { background: #bf7739; }
.export-form { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 15px; gap: 11px; }
.export-form label { font-size: .89rem; }
.export-form .metadata { text-align: center; font-size: .8rem; }

.task-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(236px,.43fr); gap: 18px; align-items: start; margin-top: 16px; }
.task-layout .panel-heading { border-bottom: 1px solid var(--line); }
.task-editor form { padding: 17px 19px 19px; }
.task-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.prompt-picker { border: 1px solid var(--line); border-radius: 11px; min-width: 0; }
.picker-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px; }
.picker-filters { display: grid; grid-template-columns: minmax(140px,1fr) auto auto; gap: 7px; padding: 0 11px 10px; }
.picker-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 9px 11px; background: #f8f8fd; border-block: 1px solid var(--line); font-size: .88rem; }
.picker-list { max-height: 350px; overflow: auto; scrollbar-gutter: stable; }
.prompt-option { display: flex; align-items: start; gap: 9px; border-bottom: 1px solid #edf0f5; padding: 10px 11px; cursor: pointer; font-size: .93rem; overflow-wrap: anywhere; }
.prompt-option:hover { background: #f7f7ff; }
.prompt-option:has(input:checked) { background: #f0edff; }
.prompt-option small { display: block; color: var(--muted); font-size: .79rem; margin-top: 3px; }
.picker-empty { padding: 25px 11px; color: var(--muted); }
.task-actions { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
#picker-count { color: #4c3aba; font-weight: 680; }
.task-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 8px; padding: 14px; overflow-wrap: anywhere; }
.task-row + .task-row { border-top: 1px solid var(--line); }
.task-row .button { padding-inline: 8px; white-space: nowrap; }
.task-row progress { grid-column: 1 / -1; margin: 0; }
.recovery { margin-block: 17px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 16px; }

.page-heading { margin: 31px 0 18px; }
.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; }
.tabs a { padding: 8px 15px; min-height: 40px; min-width: 58px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--muted); text-align: center; font-weight: 640; }
.tabs a[aria-current] { color: #4435ac; background: var(--tint); border-color: #d9d0fa; }
progress { width: 100%; height: 11px; accent-color: var(--primary); }
audio { display: block; width: min(540px,100%); }
summary { cursor: pointer; font-weight: 680; }
@media (max-width: 1060px) {
  .dashboard { grid-template-columns: 188px minmax(0,1fr); }
  .dashboard > .shell { width: calc(100% - 42px); }
  .queue-filter { padding-inline: 13px; }
}
@media (max-width: 840px) {
  .shell { width: calc(100% - 36px); }
  .dashboard { display: block; }
  .dashboard > .shell { width: calc(100% - 36px); padding-top: 24px; }
  .dashboard-nav { position: static; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 11px 18px 0; border: 0; border-bottom: 1px solid var(--line); }
  .dashboard-nav .brand { margin: 0; }
  .dashboard-nav nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 5px; }
  .dashboard-nav form { grid-column: 2; grid-row: 1; margin: 0; border: 0; padding: 0; }
  .dashboard-nav nav a, .nav-logout { padding: 6px 9px; font-size: .89rem; }
  .nav-logout .icon { display: none; }
}
@media (max-width: 650px) {
  .shell, .dashboard > .shell { width: calc(100% - 28px); }
  .admin-grid, .task-layout { grid-template-columns: 1fr; gap: 12px; }
  .metrics { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; margin-bottom: 15px; }
  .metric { padding: 11px 12px; }
  .console-heading, .page-heading { align-items: start; flex-wrap: wrap; margin-bottom: 17px; }
  .page-heading { margin-top: 20px; }
  .console-heading > .button { font-size: .89rem; }
  .queue-filter { grid-template-columns: minmax(0,1fr) auto; }
  .queue-filter .search-field { grid-column: 1 / -1; }
  .queue-filter .ghost { grid-column: 1 / -1; }
  .dataset-panel { scroll-margin-top: 10px; }
  .task-fields { grid-template-columns: 1fr; }
  .picker-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .picker-filters .search-field { grid-column: 1 / -1; }
  .recovery { grid-template-columns: minmax(0,1fr) auto; }
  .recovery > div { grid-column: 1 / -1; }
  .header-content { min-height: 60px; }
  .site-footer { margin-top: 32px; }
}
@media (min-width: 651px) and (max-width: 1120px) {
  .picker-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .picker-filters .search-field { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .page-heading { flex-wrap: nowrap; }
  .page-heading > div { min-width: 0; }
}

.audio-theme {
  color-scheme: dark;
  --audio-bg: #0c1014;
  --audio-panel: #151b21;
  --audio-line: #303c43;
  --audio-text: #f1f6f6;
  --audio-muted: #a7b8be;
  --audio-accent: #75efd0;
  --audio-wash: #1b3331;
  color: var(--audio-text);
  background: var(--audio-bg);
}
.audio-theme .site-header { background: var(--audio-bg); border-color: #273138; }
.audio-theme .header-content { min-height: 62px; }
.audio-theme .brand { color: var(--audio-text); }
.audio-theme .brand-mark { background: var(--audio-accent); box-shadow: none; border-radius: 9px; }
.audio-theme .brand-mark i { background: #163532; }
.audio-theme .header-content nav a { color: var(--audio-muted); font-size: .9rem; }
.audio-theme .header-content nav a:hover { background: var(--audio-wash); color: var(--audio-accent); }
.audio-theme .site-footer { border-color: #273138; color: var(--audio-muted); margin-top: 38px; }
.audio-theme :focus-visible { outline-color: var(--audio-accent); }
.audio-theme .primary { background: var(--audio-accent); color: #102923; box-shadow: none; }
.audio-theme .primary:hover:not(:disabled) { background: #a2ffe7; }
.audio-theme .outline, .audio-theme .ghost { color: var(--audio-text); background: #202a30; border-color: #39474e; }
.audio-theme .outline:hover:not(:disabled), .audio-theme .ghost:hover:not(:disabled) { background: #2c3a40; }
.audio-theme input:not([type=checkbox]), .audio-theme select { color: var(--audio-text); background-color: #11181d; border-color: #43525a; }
.audio-theme select { --muted: #a7b8be; }
.audio-theme input[type=checkbox] { accent-color: var(--audio-accent); }
.audio-theme .notice.error { background: #311d26; border-color: #5f3945; color: #ffb4c2; }

.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  grid-template-areas: "intro photo" "entries photo";
  align-items: start;
  gap: 25px 48px;
  margin-top: clamp(30px, 6vw, 76px);
}
.home-intro { grid-area: intro; padding-top: 14px; align-self: end; }
.home-intro h1 { font-size: clamp(2.35rem, 5.15vw, 4.65rem); line-height: 1.08; letter-spacing: -.06em; }
.home-intro h1 span { display: block; }
.home-intro h1 span:last-child { color: var(--audio-accent); margin-top: 5px; }
.home-intro p { max-width: 410px; margin-top: 21px; color: var(--audio-muted); line-height: 1.75; }
.home-photo {
  grid-area: photo;
  min-height: 446px;
  align-self: stretch;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #334743;
  border-radius: 17px;
  background: radial-gradient(ellipse at 68% 43%, #224340, #11191d 63%);
}
.home-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 57% 49%; }
.home-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 65px #050a0f35; pointer-events: none; }
.home-entry-list { grid-area: entries; display: grid; gap: 9px; }
.home-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  min-height: 78px;
  color: var(--audio-text);
  background: var(--audio-panel);
  border: 1px solid var(--audio-line);
  border-radius: 11px;
}
.home-entry-primary { border-color: #477367; background: #142420; }
.home-entry:hover { border-color: var(--audio-accent); }
.entry-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #253339; color: #d0dddf; }
.home-entry-primary .entry-symbol { color: var(--audio-accent); background: #23403a; }
.entry-copy strong, .entry-copy small { display: block; }
.entry-copy strong { font-size: 1.02rem; }
.entry-copy small { margin-top: 3px; color: var(--audio-muted); font-size: .82rem; line-height: 1.45; }
.entry-cta { color: var(--audio-text); border: 1px solid #48585e; font-size: .85rem; font-weight: 690; padding: 8px 10px; border-radius: 7px; white-space: nowrap; }
.home-entry-primary .entry-cta { color: #102923; background: var(--audio-accent); border-color: var(--audio-accent); }

.record-shell { width: min(1260px, calc(100% - 56px)); }
.record-page .header-content { width: min(1260px, calc(100% - 56px)); }
.record-topline { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 24px 0 15px; }
.record-title { min-width: 0; }
.record-title h1 { margin-top: 4px; font-size: clamp(1.5rem, 2.95vw, 2.15rem); overflow-wrap: anywhere; letter-spacing: -.035em; }
.record-entry-mode { color: var(--audio-accent); font-size: .84rem; font-weight: 670; }
.record-categories { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--audio-line); border-radius: 10px; background: #131a1e; }
.record-categories a, .record-categories .button { display: grid; place-items: center; padding: 6px 14px; min-height: 36px; border-radius: 6px; color: var(--audio-muted); font-size: .92rem; font-weight: 680; white-space: nowrap; }
.record-categories a:hover { color: var(--audio-text); }
.record-categories a[aria-current], .record-categories .primary { color: var(--audio-accent); background: var(--audio-wash); }
.workspace { --signal: 0; display: grid; grid-template-columns: minmax(195px, .68fr) minmax(0, 2.15fr); border: 1px solid var(--audio-line); border-radius: 14px; background: var(--audio-panel); }
.side { border-right: 1px solid var(--audio-line); min-width: 0; }
.side-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; padding: 13px 14px 8px; list-style: none; }
.side-heading::-webkit-details-marker { display: none; }
.side-heading span { font-weight: 720; }
.side-heading small { color: var(--audio-muted); font-size: .8rem; white-space: nowrap; }
.side-body { padding: 0 12px 13px; }
.record-page progress { display: block; width: 100%; height: 5px; margin: 6px 0 12px; appearance: none; border: 0; background: #364248; border-radius: 9px; }
.record-page progress::-webkit-progress-bar { background: #364248; border-radius: 9px; }
.record-page progress::-webkit-progress-value { background: var(--audio-accent); border-radius: 9px; }
.record-page progress::-moz-progress-bar { background: var(--audio-accent); border-radius: 9px; }
.question-filter { font-size: .83rem; color: var(--audio-muted); }
#question-list { list-style: none; padding: 0; margin: 9px 0 0; max-height: 395px; overflow: auto; scrollbar-width: thin; scrollbar-color: #4f676a transparent; }
#question-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; width: 100%; min-height: 39px; padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; color: #cbd6d9; cursor: pointer; font-size: .9rem; }
#question-list button:hover:not(:disabled) { background: #233038; }
#question-list button[aria-current] { background: var(--audio-wash); border-color: #3c665e; color: var(--audio-accent); }
#question-list button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#question-list small { color: var(--audio-muted); font-size: .78rem; }
#question-list small.rejected { color: #ffadb9; }
.recording-card { min-width: 0; }
.record-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 20px; border-bottom: 1px solid var(--audio-line); font-size: .86rem; color: var(--audio-muted); }
#question-count { color: var(--audio-accent); font-weight: 680; }
#question-mode { border: 1px solid #3e4c51; border-radius: 6px; padding: 2px 7px; }
.prompt-display { display: grid; align-content: center; min-height: 214px; padding: 20px clamp(20px, 4.2vw, 62px); background: radial-gradient(ellipse at 95% 0, #21342e95, transparent 64%), #131a1f; }
.prompt-caption { display: flex; align-items: center; gap: 8px; color: #b7cacc; font-size: .84rem; font-weight: 650; }
.prompt-caption::before { content: ""; width: 11px; height: 2px; background: var(--audio-accent); }
.recording-card h2 { font-size: clamp(1.45rem, 3vw, 2.38rem); margin: 8px 0; line-height: 1.44; letter-spacing: -.026em; overflow-wrap: anywhere; }
#question-help { color: var(--audio-muted); font-size: .88rem; }
.recording-card > .notice { margin-inline: 15px; }
.studio { padding: 14px 19px 13px; display: grid; grid-template-columns: minmax(105px, 1fr) auto auto; align-items: end; gap: 9px; border-top: 1px solid var(--audio-line); }
.signal-module { min-width: 0; }
.signal-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--audio-muted); font-size: .79rem; margin-bottom: 3px; }
.timer { color: var(--audio-accent); font: 700 .88rem ui-monospace, monospace; font-variant-numeric: tabular-nums; }
[data-state="recording"] .timer { color: #ff9aab; }
.signal-display { display: grid; place-items: center; height: 38px; background: repeating-linear-gradient(90deg,#10171c 0 19px,#223037 19px 20px); border: 1px solid #35454b; border-radius: 7px; overflow: hidden; }
.signal-line { width: 100%; padding-inline: 10px; height: 38px; display: flex; align-items: center; justify-content: space-evenly; gap: 3px; }
.signal-line i { width: 3px; height: var(--peak); border-radius: 3px; background: var(--audio-accent); opacity: calc(.38 + var(--signal) * .62); transform: scaleY(calc(.10 + var(--signal) * .82)); }
[data-state="recording"] .signal-line i { background: #ff98ac; }
.capture-controls, .capture-actions { display: flex; gap: 7px; align-items: center; }
.capture-controls:empty, [data-state="preview"] .capture-controls, [data-state="uploading"] .capture-controls { display: none; }
[data-state="preview"] .capture-actions, [data-state="uploading"] .capture-actions { grid-column: 2 / -1; }
.capture-button { min-height: 44px; min-width: 127px; }
.stop-icon { width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.studio .danger { background: #b73b55; color: white; }
.studio .danger:hover:not(:disabled) { background: #9d2b43; }
.studio audio, .studio-status, .device-settings, .file-upload { grid-column: 1 / -1; }
.studio audio { width: 100%; max-width: none; }
.studio-status { color: var(--audio-muted); font-size: .83rem; overflow-wrap: anywhere; }
.studio-status.error-text { color: #ffacbf; }
.device-settings, .file-upload { padding-top: 8px; border-top: 1px solid var(--audio-line); color: var(--audio-muted); font-size: .87rem; }
.device-settings summary:hover, .file-upload summary:hover { color: var(--audio-text); }
.meter-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.file-upload label { margin-top: 8px; }
.resume-panel { color: var(--audio-muted); font-size: .88rem; padding: 9px 0; margin-top: 10px; }
.resume-panel .recovery { margin: 0; padding: 9px 0; }

@media (max-width: 900px) {
  .home-feature { column-gap: 24px; }
  .home-entry { grid-template-columns: auto minmax(0,1fr); }
  .entry-cta { grid-column: 2; justify-self: start; }
}
@media (max-width: 700px) {
  .audio-theme .header-content { min-height: 52px; }
  .audio-theme .brand-mark { width: 31px; height: 31px; }
  .audio-theme .header-content nav a { padding-inline: 2px; }
  .home-feature { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "entries" "photo"; gap: 17px; margin-top: 23px; }
  .home-intro { padding-top: 0; }
  .home-intro h1 { font-size: clamp(2.42rem, 11vw, 3.25rem); }
  .home-intro p { margin-top: 11px; font-size: .91rem; }
  .home-photo { min-height: 198px; border-radius: 11px; }
  .home-photo img { object-position: center 46%; }
  .home-entry { grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; min-height: 68px; padding: 9px; }
  .entry-cta { grid-column: auto; justify-self: auto; font-size: .76rem; padding: 7px; }
  .entry-copy small { font-size: .78rem; }
  .entry-symbol { width: 29px; height: 29px; }
  .record-shell, .record-page .header-content { width: calc(100% - 24px); }
  .record-topline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin: 12px 0 9px; }
  .record-categories { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
  .record-categories form { min-width: 0; }
  .record-categories .button { width: 100%; white-space: normal; overflow-wrap: anywhere; padding-inline: 4px; }
  .record-categories a { padding-inline: 4px; min-height: 34px; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .side { order: 2; border: 0; border-top: 1px solid var(--audio-line); }
  .side-heading { align-items: center; padding: 10px 12px; }
  .side-heading small { margin-left: auto; }
  .side-heading::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid var(--audio-accent); border-bottom: 1.6px solid var(--audio-accent); transform: translateY(-2px) rotate(45deg); }
  .side[open] .side-heading::after { transform: translateY(2px) rotate(225deg); }
  #question-list { max-height: 182px; }
  .record-meta { padding: 8px 12px; }
  .prompt-display { min-height: 0; padding: 11px 13px 13px; }
  .recording-card h2 { margin: 5px 0; font-size: clamp(1.29rem, 6.1vw, 1.7rem); }
  .studio { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 10px 12px; gap: 7px; }
  .capture-controls { grid-column: 1; }
  .capture-actions { justify-content: stretch; }
  .capture-actions .button, .capture-controls .button { flex: 1 1 auto; min-width: 0; }
  [data-state="preview"] .capture-actions, [data-state="uploading"] .capture-actions { grid-column: 1 / -1; }
  .signal-module { grid-column: 1 / -1; }
  .signal-display { height: 25px; }
  .signal-line { height: 25px; }
  .signal-line i { max-height: 24px; }
}
@media (max-width: 365px) {
  .home-entry { grid-template-columns: auto minmax(0,1fr); }
  .entry-cta { grid-column: 2; justify-self: start; }
}
.audio-theme .form-card { color: var(--audio-text); background: var(--audio-panel); border-color: var(--audio-line); }
.audio-theme .form-card .muted { color: var(--audio-muted); }
.audio-theme .form-card .eyebrow { color: var(--audio-accent); }
.audio-theme .form-card .consent { background: #1d282d; }
.audio-theme input::placeholder { color: var(--audio-muted); }
@media (min-width: 701px) {
  .recording-card { display: flex; flex-direction: column; }
  .prompt-display { flex: 1; }
}
.signal-peak-8 { --peak: 8px; }
.signal-peak-13 { --peak: 13px; }
.signal-peak-14 { --peak: 14px; }
.signal-peak-18 { --peak: 18px; }
.signal-peak-22 { --peak: 22px; }
.signal-peak-23 { --peak: 23px; }
.signal-peak-28 { --peak: 28px; }
.signal-peak-30 { --peak: 30px; }
.signal-peak-34 { --peak: 34px; }
.signal-peak-38 { --peak: 38px; }

@media (min-height: 900px) and (min-width: 701px) {
  .home-feature { margin-top: clamp(36px, 5svh, 64px); }
  .home-photo { min-height: clamp(510px, 68svh, 1020px); }
  .record-page .workspace { min-height: min(68svh, 1020px); }
  .record-page #question-list { max-height: clamp(395px, calc(68svh - 110px), 900px); }
  .record-page .prompt-display { min-height: clamp(214px, 29svh, 470px); }
}
@media (min-height: 850px) and (max-width: 700px) {
  .home-photo { min-height: clamp(198px, 29svh, 390px); }
  .record-page .workspace { min-height: min(66svh, 760px); }
  .record-page .recording-card { display: flex; flex-direction: column; }
  .record-page .prompt-display { flex: 1; min-height: clamp(140px, 26svh, 310px); }
}
