/* One readable scale for explanatory text, controls and secondary details. */
:root{--text-body:16px;--text-detail:14px;--text-title:22px;font-size:var(--text-body)}
body{font-size:var(--text-body);line-height:1.5}
.text-button,.quiet-button,.small-button,.primary-button,.read-button,.reset-button,.demo-button,.light-boost-button,.record-button,.permission-help-entry button,.topbar nav button,.camera-welcome .primary-button,.result-bottom .primary-button,.result-bottom .quiet-button,.saved-recording button,.prompter-panel #view-full-script{font-size:var(--text-body);line-height:1.4}
label,.check,.appearance label,.appearance summary,.step-label,.panel-heading,.directing-label,.record-state,.mode-help,.local-note,.small-note,.wheel-hint,.meter-row,.record-bar p,.result-panel #export-status,.welcome p:not(.eyebrow),.camera-welcome p,.entry-mode small,.permission-steps p,.permission-steps b,.browser-sketch,.browser-sketch b,.privacy-info p,.privacy-info b,dialog p,dialog li,dialog .check,.help-steps p,.help-steps li>b,.preflight-list+p,.font-control label,.speed-label,.font-control output{font-size:var(--text-body);line-height:1.6}
input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea,.setup-card select,.prompter-only .setup-card select,.prompter-only .setup-card input{font-size:var(--text-body)}
.studio-choice,.direction b{font-size:var(--text-body);line-height:1.4}.direction small{font-size:var(--text-detail);white-space:normal;line-height:1.4}.direction{min-height:105px;padding:12px 8px}.studio-choice{overflow-wrap:anywhere}
.wheel-hint{font-size:var(--text-body);font-weight:500;color:var(--ink);margin:12px 20px 16px;line-height:1.6}
.prompt-info,.panel-heading #record-time,.result-heading>span,.saved-recording small,.stage-caption,footer,.preview-tools .live-record-badge{font-size:var(--text-detail);line-height:1.5}.prompt-info{letter-spacing:.35px;padding-top:10px;padding-bottom:8px}.product-name{font-size:18px}.product-name small,.eyebrow{font-size:12px}.camera-welcome h2,.result-heading h2,dialog h2{font-size:var(--text-title);line-height:1.35}
#permission-dialog p,#permission-dialog .small-note,#permission-dialog .privacy-info p,#permission-dialog .privacy-info b{font-size:var(--text-body);line-height:1.6}.toast{font-size:var(--text-body)}
.font-control,.speed-control{border:1px solid var(--line);border-radius:10px;background:var(--field);padding:10px 12px;margin:12px 20px;gap:10px}.font-control output{min-width:34px;font-variant-numeric:tabular-nums}.speed-control{display:grid;grid-template-columns:minmax(150px,190px) minmax(0,1fr);align-items:center;gap:14px}.speed-control .speed-label{display:flex;flex-direction:column;gap:2px;justify-content:center;margin:0;padding:0}.speed-label strong{font-size:var(--text-detail);font-weight:500}.speed-control .range-stepper{margin:0;min-width:0}.step-button{width:44px;height:44px;font-size:26px}.preview-panel .panel-heading{row-gap:10px}.preview-tools{flex-wrap:wrap}.camera-welcome .demo-button{padding:8px}.camera-welcome p{margin-bottom:12px}.record-actions{flex-wrap:wrap}
.prompter-only .panel-heading,.prompter-only #return-studio,.prompter-only .read-button,.prompter-only .reset-button{font-size:var(--text-body)}.prompter-only .font-control{margin:6px 12px;padding:8px 10px;gap:8px}.prompter-only .speed-control{grid-column:3/7;grid-row:5;margin:0 12px 10px;padding:8px 10px}.prompter-only .speed-control .speed-label,.prompter-only .speed-control .range-stepper{grid-column:auto;grid-row:auto;margin:0}.prompter-only .speed-control .speed-label{padding:0}.prompter-only #view-full-script{margin-bottom:10px}.prompter-only .step-button{width:40px;height:40px}.prompter-only .font-control label{font-size:var(--text-body)}
@media(max-width:760px){
  .topbar{padding-left:10px;padding-right:10px;gap:8px}.topbar .brand img{width:78px}.topbar nav{gap:6px}.topbar nav .quiet-button,.topbar nav .text-button{font-size:var(--text-detail);padding:7px}.topbar .quiet-button span{margin-left:2px}.setup-card{padding:14px}.studio-choice{font-size:var(--text-detail)}.entry-mode small,.record-bar p,.record-state,.record-actions .quiet-button,.record-button{font-size:var(--text-detail)}.record-bar{gap:8px;padding:12px}.record-bar p{max-width:180px}.record-button{padding:12px 16px}.record-actions{justify-content:flex-end}.direction small{font-size:var(--text-detail)}.speed-control{grid-template-columns:1fr;gap:8px}.font-control{flex-wrap:wrap}.font-control label{flex-basis:100%}.font-control input{flex:1}.prompter-only .font-control label{flex-basis:auto}.prompter-only .speed-control{grid-row:6;grid-column:1/-1;display:grid;grid-template-columns:135px minmax(0,1fr);margin:4px 10px;padding:6px 10px}.prompter-only .speed-control .speed-label{font-size:var(--text-body)}.prompter-only #view-full-script{grid-row:7;grid-column:1/-1;margin:4px 10px 8px}.prompter-only .prompter-panel{grid-template-rows:auto auto minmax(0,1fr) auto auto auto auto}.prompter-only .setup-card input,.prompter-only .setup-card select{font-size:var(--text-detail)}
}
@media(max-width:380px){.topbar{height:auto;min-height:94px;flex-wrap:wrap}.topbar nav{width:100%;justify-content:space-between}.topbar .brand{margin:auto}.prompter-only .topbar{height:102px}.prompter-only main{height:calc(100dvh - 102px)}}

/* Both reading controls use the same two-row structure. */
.reading-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 20px 18px}
.reading-settings .reading-setting{display:flex;flex-direction:column;gap:12px;margin:0;padding:12px;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--field)}
.setting-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%;min-height:26px}
.reading-settings .setting-heading label{display:block;flex-basis:auto;grid-area:auto;margin:0;padding:0;font-size:16px;font-weight:500;line-height:1.6;white-space:nowrap}
.reading-settings .setting-heading output,.reading-settings .setting-heading strong{font-size:14px;font-weight:500;line-height:1.6;color:var(--muted);min-width:0;white-space:nowrap}
.reading-settings .range-stepper{display:flex;align-items:center;gap:10px;grid-area:auto;margin:0;width:100%;min-width:0}
.reading-settings input[type=range]{flex:1;min-width:0;width:100%;margin:0}
.reading-settings .step-button{flex:none;width:44px;height:44px}
.reading-settings .wheel-hint{display:block;grid-column:1/-1;margin:0;padding:12px 16px;border:1px solid #e8792560;border-radius:10px;background:#e8792512;font-size:17px;font-weight:500;line-height:1.6;color:var(--ink)}
.prompter-only .reading-settings{grid-row:5;grid-column:1/-1;margin:0 12px 10px;gap:8px}
.prompter-only .reading-settings .reading-setting{grid-area:auto;display:flex;margin:0;padding:8px 10px;gap:6px}
.prompter-only .reading-settings .range-stepper{grid-area:auto;margin:0}
.prompter-only .reading-settings .wheel-hint{display:block;font-size:16px;padding:8px 12px}
.prompter-only .prompt-controls{grid-row:4;grid-column:1/4}
.prompter-only #view-full-script{grid-row:4;grid-column:4/7;margin:10px 12px;align-self:center}
.toast{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);width:min(520px,calc(100vw - 32px));max-width:none;padding:22px 26px;border:2px solid #b69bdf;border-radius:14px;background:#4b2b75;color:#fff;font-size:18px;line-height:1.6;font-weight:550;box-shadow:0 12px 55px #0008;pointer-events:none}
@media(max-width:760px){.reading-settings{grid-template-columns:1fr;margin:10px}.prompter-only .reading-settings{grid-template-columns:repeat(2,minmax(0,1fr));grid-row:5;grid-column:1/-1}.prompter-only .prompter-panel{grid-template-rows:auto auto minmax(0,1fr) auto auto}.prompter-only .prompt-controls{grid-row:4;grid-column:1}.prompter-only #view-full-script{grid-row:4;grid-column:2;font-size:14px;margin:6px 10px}.prompter-only .reading-settings .step-button{width:32px;height:34px}.prompter-only .setting-heading{flex-wrap:wrap;gap:0;min-height:45px}.prompter-only .reading-settings .range-stepper{gap:5px}}
#glossary-dialog{width:min(820px,94vw);max-height:90dvh;overflow:auto}#glossary-alphabet{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 6px}#glossary-alphabet button{min-width:36px;min-height:36px;border:1px solid var(--line);border-radius:7px;background:var(--field);color:var(--ink);font-size:16px}#glossary-alphabet button[aria-pressed=true]{background:#e87925;border-color:#e87925;color:#fff}.glossary-list{height:clamp(180px,34vh,360px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;padding:4px 14px}.glossary-list details{border-bottom:1px solid var(--line);padding:10px 0}.glossary-list details:last-child{border:0}.glossary-list summary{cursor:pointer;font-size:16px;font-weight:600}.glossary-list p{font-size:16px;margin:8px 0;line-height:1.65}.glossary-credit{font-size:14px!important;line-height:1.6!important;margin-bottom:0}#glossary-dialog h2{margin-top:0}.topbar nav{gap:12px}@media(max-width:760px){.topbar{height:auto;min-height:110px;flex-wrap:wrap}.topbar .brand{margin:auto}.topbar nav{width:100%;justify-content:center;gap:8px}.prompter-only .topbar{height:110px}.prompter-only main{height:calc(100dvh - 110px)}}
.device-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.device-actions button{flex:1;min-width:140px}.device-test-step{padding:14px 0;border-top:1px solid var(--line)}.device-test-step h3{font-size:18px;margin:0 0 10px}.device-test-step p{font-size:16px}.device-test-step video{display:block;width:100%;aspect-ratio:16/9;max-height:230px;object-fit:cover;background:#060d12;border-radius:10px}.device-test-step .meter{margin:12px 0;height:10px}.device-test-step .meter i{display:block;height:100%;background:#e87925;width:0}#device-check-dialog{width:min(680px,94vw)}#test-audio-status{padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--field)}
.mode-help{display:grid;gap:8px}.mode-help p{margin:0;font-size:16px;line-height:1.6}.mode-help b{font-weight:700;color:var(--ink)}
.reading-settings .setting-heading{align-items:center}

.glossary-credit{font-size:10px!important;line-height:1.45!important;opacity:.75;margin-top:14px!important}.glossary-credit a{font-size:inherit!important;text-decoration:underline}.support-nav-button,.studio-home-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1px solid #e8792566;border-radius:9px;background:var(--field);color:var(--ink);font:inherit;font-size:14px;font-weight:600;text-decoration:none;transition:background .18s,color .18s,border-color .18s}.support-nav-button:hover,.support-nav-button:focus-visible{background:#e87925;color:#fff;border-color:#e87925}.studio-home-button{background:#e87925;color:#fff;border-color:#e87925}.studio-home-button:hover{background:#c76419;border-color:#c76419}.topbar nav{flex-wrap:wrap;gap:10px}.support-nav-button+.support-nav-button{margin-left:3px}@media(max-width:760px){.support-nav-button,.studio-home-button{font-size:13px;padding:9px 11px}.glossary-credit{font-size:10px!important}}

/* Recording feedback stays outside document flow. */
#name-cue.active{background:#ed7c23!important;border-color:#ed7c23!important;color:#fff!important}#name-cue.active small{color:#fff!important}.workbench + .setup-grid{margin-top:24px}.on-air-guidance{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:1500;pointer-events:none}.prompt-viewport{overscroll-behavior:contain}
/* Keep the mobile guidance readable in both dark and light themes. */
#mobile-note.mobile-note{background:#fff0d4!important;color:#4b351a!important;border:1px solid #e0b467!important;font-size:14px!important;line-height:1.6!important;padding:12px 14px!important;border-radius:10px;text-align:left}#mobile-note.mobile-note b,#mobile-note.mobile-note strong{color:#3a2711!important}.prompter-only #mobile-note.mobile-note{font-size:12px!important;line-height:1.5!important;padding:9px 12px!important}

/* Native transparent marks; light mode keeps the original dark lettering. */
.topbar .brand img,.permission-brand-logo{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.light-boost .topbar .brand img,.light-boost .permission-brand-logo{content:url('./assets/hakan-logo.svg')}

/* Every navigation action uses the same cell and button dimensions. */
.topbar{height:auto;min-height:76px}
.topbar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;width:min(100%,800px);margin-left:auto;align-items:stretch;flex-shrink:1}
.topbar nav>a,.topbar nav>button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;height:52px;min-height:52px;margin:0;padding:8px 10px;border-width:1px;border-style:solid;border-radius:10px;font-size:16px;font-weight:600;line-height:1.25;text-align:center;white-space:normal;box-sizing:border-box}
.topbar nav #recordings-count{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;margin:0;font-size:12px;line-height:1}
@media(max-width:1200px){
  .topbar{flex-wrap:wrap;padding-top:12px;padding-bottom:12px;gap:12px}
  .topbar .brand{margin:0}
  .topbar nav{width:100%;flex-basis:100%;margin:0}
}
@media(max-width:600px){
  .topbar nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .topbar nav>a,.topbar nav>button{height:48px;min-height:48px;font-size:14px;padding:8px}
}
