/* Reading controls occupy a separate column in the camera-free workspace. */
.prompt-reader{min-width:0;outline:none}
.prompt-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.prompt-heading-actions button{font-size:14px}
.prompt-focus-toolbar{display:none}
body.prompter-only{display:flex;flex-direction:column;height:100dvh;overflow:hidden}
.prompter-only .topbar{flex:none;height:auto;min-height:64px}
.prompter-only main{flex:1;height:auto!important;min-height:0;padding:0 16px 14px;overflow:hidden}
.prompter-only .welcome{padding:8px 0;margin:0}
.prompter-only .workbench{flex:1;min-height:0}
.prompter-only .prompter-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,340px);grid-template-rows:minmax(0,1fr);height:100%;min-height:0}
.prompter-only .prompt-reader{display:flex;flex-direction:column;min-height:0;grid-column:1;grid-row:1}
.prompter-only .prompt-reader .panel-heading{flex:none;min-height:54px;gap:12px;padding:10px 16px}
.prompter-only .prompt-info{flex:none;gap:12px;padding:8px 20px}
.prompter-only .prompt-viewport{flex:1;grid-area:auto;height:auto!important;min-height:0;margin:0}
.prompter-only .prompt-copy{padding:24px clamp(24px,4vw,70px) 80vh;line-height:1.65}
.prompter-only .prompt-tools{display:flex;flex-direction:column;gap:16px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px;border-left:1px solid var(--line);background:var(--field)}
.prompter-only .prompt-tools>*{flex:none}
.prompter-only .prompt-tools .setup-grid{display:flex;flex-direction:column;gap:12px;margin:0}
.prompter-only .prompt-tools .setup-card{display:block;padding:12px;grid-area:auto}
.prompter-only .prompt-tools .setup-card:last-child{display:none}
.prompter-only .prompt-tools .setup-card:first-child>label{display:block;margin:0 0 6px;font-size:14px}
.prompter-only .prompt-tools .setup-card:nth-child(2){display:flex;flex-direction:column;align-items:stretch;gap:10px}
.prompter-only .prompt-tools .select-pair{display:flex;gap:8px;width:100%}
.prompter-only .prompt-tools .select-pair select{flex:1;min-width:0}
.prompter-only .prompt-tools input,.prompter-only .prompt-tools select{font-size:14px;width:100%}
.prompter-only .prompt-tools .small-button{font-size:14px}
.prompter-only .prompt-tools .prompt-controls{display:flex;flex-direction:column;gap:8px;padding:0;grid-area:auto}
.prompter-only .prompt-tools .reset-button{width:100%;font-size:14px}
.prompter-only .prompt-tools #view-full-script{grid-area:auto;width:100%;margin:0;font-size:14px}
.prompter-only .prompt-tools .reading-settings{display:flex;flex-direction:column;gap:12px;grid-area:auto;margin:0}
.prompter-only .prompt-tools .reading-setting{padding:12px;gap:10px}
.prompter-only .prompt-tools .setting-heading{min-height:0;flex-wrap:nowrap;gap:8px}
.prompter-only .prompt-tools .setting-heading label{font-size:14px;white-space:normal}
.prompter-only .prompt-tools .setting-heading strong,.prompter-only .prompt-tools .setting-heading output{font-size:13px}
.prompter-only .prompt-tools .step-button{width:38px;height:40px}
.prompter-only .prompt-tools .wheel-hint{font-size:14px;padding:10px 12px}

/* The same reading surface fills the screen, with no sliders over the copy. */
body.prompt-focus-active{overflow:hidden!important}
.prompt-reader.prompt-focus{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;width:100vw;height:100dvh;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:var(--field);color:var(--ink);overflow:hidden;cursor:none}
.prompt-reader.prompt-focus .panel-heading,.prompt-reader.prompt-focus .prompt-info{display:none}
.prompt-reader.prompt-focus .prompt-viewport{flex:1;width:100%;height:100%!important;min-height:0;margin:0;scrollbar-width:none}
.prompt-reader.prompt-focus .prompt-viewport::-webkit-scrollbar{display:none}
.prompt-reader.prompt-focus .prompt-copy{padding:clamp(48px,10vh,100px) clamp(30px,6vw,120px) 95vh}
.prompt-reader.prompt-focus .reading-line{top:clamp(48px,10vh,100px)}
.prompt-focus .prompt-focus-toolbar{position:absolute;top:16px;right:20px;z-index:3;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;max-width:calc(100vw - 40px);padding:12px 14px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 26px #0004;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s}
.prompt-focus.show-focus-controls,.prompt-focus:has(.prompt-focus-toolbar:focus-within){cursor:auto}
.prompt-focus.show-focus-controls .prompt-focus-toolbar,.prompt-focus .prompt-focus-toolbar:focus-within{opacity:1;visibility:visible;pointer-events:auto}
.prompt-focus-toolbar button{font-size:14px;padding:8px 12px}
.prompt-focus-toolbar span{font-size:14px;font-variant-numeric:tabular-nums}
.prompt-focus-toolbar small{flex-basis:100%;text-align:right;font-size:12px;color:var(--muted)}
@media(max-width:760px){
  body.prompter-only{height:auto;min-height:100dvh;overflow:auto}
  .prompter-only main{flex:none;overflow:visible;padding:0 10px 14px}
  .prompter-only .prompter-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(340px,60dvh) auto;height:auto}
  .prompter-only .prompt-tools{grid-column:1;grid-row:2;max-height:none;border-left:0;border-top:1px solid var(--line);padding:14px}
  .prompter-only .prompt-reader .panel-heading{align-items:flex-start;padding:12px}
  .prompt-heading-actions{gap:8px}
  .prompt-heading-actions button{font-size:13px;padding:7px 9px}
  .prompter-only .prompt-copy{padding-left:24px;padding-right:24px}
  .prompt-focus .prompt-focus-toolbar{top:10px;right:10px;max-width:calc(100vw - 20px);gap:8px;padding:10px}
}
/* Compact mobile camera + prompter work area, with the real recording preview. */
@media(max-width:760px){
 .mobile-practice main{padding:0 10px}
 .mobile-practice .welcome{padding:18px 0;gap:12px;flex-wrap:wrap}
 .mobile-practice .welcome h1{font-size:28px}
 .mobile-practice .welcome .local-note,.mobile-practice .mobile-note{display:none}
 .mobile-practice-dock{position:sticky;top:0;z-index:30;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel);box-shadow:0 5px 16px #0002;margin:0 0 12px;isolation:isolate}
 .mobile-practice-dock .stage-wrap{height:clamp(164px,23dvh,210px);min-height:0;aspect-ratio:auto}
 .mobile-practice-dock .stage-wrap canvas{object-fit:contain}
 .mobile-practice-dock .camera-welcome{padding:8px}
 .mobile-practice-dock .camera-welcome h2{font-size:17px;margin:0 0 4px}
 .mobile-practice-dock .camera-welcome p{font-size:12px;margin:0 0 6px}
 .mobile-practice-dock .camera-welcome .primary-button{min-height:40px;padding:8px 10px;font-size:13px}
 .mobile-practice-dock .demo-button{padding:8px;font-size:12px;min-height:32px}
 .mobile-practice-dock .stage-caption{font-size:9px;bottom:3px}
 .mobile-practice-dock #prompt-reader:not(.prompt-focus){position:relative;display:block;border-top:1px solid var(--line);background:var(--panel)}
 .mobile-practice-dock #prompt-reader:not(.prompt-focus)>.panel-heading{min-height:30px;padding:4px 10px;font-size:12px}
 .mobile-practice-dock #prompt-reader:not(.prompt-focus) #prompt-settings-button{font-size:11px;padding:4px 7px;min-height:28px}
 .mobile-practice-dock #prompt-reader:not(.prompt-focus) #prompt-fullscreen{font-size:11px;padding:4px 7px;min-height:28px}
 .mobile-practice-dock #prompt-reader:not(.prompt-focus) .prompt-info{display:none}
 .mobile-practice-dock #prompt-reader:not(.prompt-focus) .prompt-viewport{height:clamp(100px,16dvh,150px);min-height:0;max-height:150px;margin:0;flex:none}
 .mobile-practice-dock #prompt-reader:not(.prompt-focus) .prompt-copy{padding:10px 18px 140px;line-height:1.45}
 .mobile-practice-dock .prompt-controls{display:flex;padding:6px 8px;gap:8px;background:var(--panel);border-top:1px solid var(--line)}
 .mobile-practice-dock .prompt-controls button{font-size:13px;min-height:38px;padding:7px 10px}
 .mobile-practice .workbench{display:flex;flex-direction:column;gap:10px}
 .mobile-practice .prompter-panel{width:100%;order:0}
 .mobile-practice .preview-panel{width:100%;order:1;overflow:visible}
 .mobile-practice .preview-panel>.panel-heading{display:none}
 .mobile-practice .prompt-tools{padding:8px}
 .mobile-practice .reading-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
 .mobile-practice .reading-setting{display:block;margin:0;padding:0;min-width:0}
 .mobile-practice .setting-heading{display:flex;justify-content:space-between;min-height:24px;font-size:12px;gap:3px}
 .mobile-practice .reading-setting label,.mobile-practice .reading-setting output,.mobile-practice .speed-control strong{font-size:12px!important;margin:0;padding:0}
 .mobile-practice .reading-setting .range-stepper{gap:3px}
 .mobile-practice .reading-setting .step-button{width:30px;height:32px;font-size:18px}
 .mobile-practice .wheel-hint{display:none}
 .mobile-practice #view-full-script{font-size:12px!important;margin:0 0 8px!important;padding:4px 8px;min-height:30px}
 .mobile-practice .directing{padding:10px}
 .mobile-practice .direction-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .mobile-practice .direction{padding:8px 3px;min-height:60px}
 .mobile-practice .direction b{font-size:10px!important}
 .mobile-practice .direction small{display:none}
 .mobile-practice .directing-label{font-size:12px;margin-bottom:8px}
 .mobile-practice .mode-help{font-size:12px;line-height:1.5}
 .mobile-practice .appearance{padding:12px;scroll-margin-top:calc(var(--mobile-practice-height,400px) + 12px)}
 .mobile-practice .appearance summary{font-size:13px;font-weight:600;cursor:pointer}
 .mobile-practice .appearance-grid{grid-template-columns:1fr;gap:0}
 .mobile-practice .appearance label{font-size:13px;line-height:1.4;margin:10px 0}
 .mobile-practice .appearance input[type=range]{width:100%;min-height:28px}
 .mobile-practice .background-tuning{margin:10px 0;padding:10px}
 .mobile-practice .background-tuning legend{font-size:13px}
 .mobile-practice .background-tuning>.small-note{display:none}
 .mobile-practice .background-tuning-grid{display:block}
 .mobile-practice .background-tuning small,.mobile-practice #background-status{font-size:11px;line-height:1.5}
 .mobile-device-options,.mobile-mask-options{padding-top:10px;border-top:1px solid var(--line);margin-top:10px}
 .mobile-practice .meter-row{font-size:12px}
 .mobile-practice .device-actions{display:flex;flex-wrap:wrap;gap:7px}
 .mobile-practice .device-actions button{font-size:12px;min-height:38px;padding:7px 10px;margin:0!important}
 .mobile-practice .setup-grid{margin-top:12px}
 .mobile-practice dialog{box-sizing:border-box;width:calc(100% - 24px);max-height:72dvh;padding:22px 18px 18px}
 .mobile-practice #permission-dialog{max-height:68dvh}
 .mobile-practice #permission-dialog .permission-brand-logo{max-width:128px;max-height:42px;margin-bottom:10px}
 .mobile-practice #permission-dialog h2{font-size:23px;line-height:1.25;margin:8px 0 12px}
 .mobile-practice #permission-dialog p,.mobile-practice #permission-dialog .privacy-info p,.mobile-practice #permission-dialog .privacy-info b{font-size:13px;line-height:1.55}
 .mobile-practice #permission-dialog .eyebrow{font-size:10px;margin:0}
 .mobile-permission-details{border-top:1px solid var(--line);padding-top:12px;margin:12px 0}
 .mobile-permission-details summary{font-size:13px;font-weight:600;cursor:pointer}
 .mobile-practice #permission-dialog .privacy-info{padding:10px;margin:10px 0}
 .mobile-practice #permission-continue{min-height:44px;font-size:14px;margin-top:10px}
 .mobile-practice.prompt-focus-active .mobile-practice-dock{position:static;overflow:visible;isolation:auto}
 .mobile-practice.prompt-focus-active .mobile-practice-dock>.stage-wrap,.mobile-practice.prompt-focus-active .mobile-practice-dock>.prompt-controls{visibility:hidden}
}
@media(max-width:760px){
 .mobile-practice .topbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px}
 .mobile-practice .topbar .brand img{width:80px}
 .mobile-practice .topbar nav{display:flex;flex-wrap:wrap;gap:4px;margin-left:auto}
 .mobile-practice .topbar nav button,.mobile-practice .topbar nav a{font-size:11px!important;padding:6px 8px!important;min-height:32px}
 .mobile-practice .topbar .product-name{display:none}
 .mobile-practice .welcome h1{font-size:24px}
 .mobile-practice .entry-mode{padding:0}
 .mobile-practice .entry-mode button{font-size:13px;padding:9px 12px;min-height:38px}
 .mobile-practice .entry-mode small{display:none}
 .mobile-practice .workbench :is(input,button,summary),.mobile-practice .setup-grid :is(input,button,select){scroll-margin-top:calc(var(--mobile-practice-height,400px) + 18px)}
}
@media(max-width:760px){
 .mobile-practice .topbar nav{display:grid!important;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0}
 .mobile-practice .topbar nav>*{width:auto!important;min-width:0;white-space:normal;flex:none!important;text-align:center;font-size:11px!important;padding:6px 4px!important;min-height:32px}
}
