/* 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}
}
