/* Prompter360 Creator Studio — shared presentation tokens. No runtime logic. */
:root{color-scheme:light;--bg:#F8F7FC;--card:#FFFFFF;--accent:#6046C5;--accent-hover:#5138B0;--ice:#EDE8FA;--text:#242139;--muted:#77718C;--line:#E7E1F0;--stage:#13111A;--shadow:0 3px 16px #24213904;--radius:18px;--space:8px}
body{background:var(--bg);color:var(--text);font-family:Inter,'Segoe UI',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,a,input,textarea,summary{transition:background-color .18s,border-color .18s,box-shadow .18s}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6046C54D;outline-offset:3px}
button.play,a.play{background:var(--accent);border-color:var(--accent);box-shadow:none;font-weight:650}
button.play:hover,a.play:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
body>header{min-height:72px;padding:12px max(24px,calc((100vw - 1320px)/2));gap:16px;background:var(--card);border-bottom:1px solid var(--line)}
.brand{font-size:23px;letter-spacing:-.8px}.brand-mark{width:34px;height:34px;background:var(--ice);color:var(--accent)}.brand .muted{color:var(--accent)}
header .badge{font-size:9px;letter-spacing:1.4px;color:var(--muted)}
#plansLink{background:var(--ice);color:var(--accent);border-color:transparent;min-height:42px}
#accountLink{background:var(--card);color:var(--text);border-color:var(--line);min-height:42px}#accountLink:hover{background:var(--bg)}
#fullscreen{color:var(--muted);min-height:42px}
main{max-width:1376px;padding:24px 32px 20px}
main .intro{padding:0;margin:0 0 24px;align-items:center;gap:24px}main .intro .eyebrow{font-size:10px;color:var(--muted);letter-spacing:1.5px}
main .intro h1{font-size:clamp(26px,2.5vw,34px);font-weight:650;letter-spacing:-1.1px;line-height:1.25;margin:8px 0}main .intro p{font-size:15px;color:var(--muted);margin:0}
.saved{font-size:11px;background:transparent;border:0;padding:8px 0;color:var(--muted)}
main .project-toolbar{padding:16px 20px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:none;margin-bottom:20px;gap:16px;background:var(--card)}
main .project-toolbar strong{font-size:15px;color:var(--text)}main .project-toolbar p{font-size:12px;color:var(--muted);margin:5px 0 0}
#createProject{min-height:46px;padding:12px 22px;border-radius:11px;font-size:14px}
main .premium-banner{padding:12px 18px;margin:0 0 16px;border-radius:12px;background:var(--ice);border:0;gap:16px}
main .premium-banner .eyebrow,main .premium-banner p{display:none}main .premium-banner h2{font-size:14px;font-weight:550;line-height:1.5;margin:0;color:var(--text)}
main .premium-banner .play{background:transparent;border:0;color:var(--accent);font-size:12px;padding:8px;min-height:40px}
main .workspace-caption{margin:0 0 12px;color:var(--muted);font-size:12px}.workspace-caption>span:first-child{font-size:10px;color:var(--text);letter-spacing:1.4px}
.workspace{grid-template-columns:minmax(300px, .48fr) minmax(0,1fr);gap:24px;align-items:stretch}
.workspace>aside{padding:24px;border-radius:var(--radius);border:1px solid var(--line);box-shadow:var(--shadow);background:var(--card)}
.section-title h2{font-size:16px;color:var(--text)}.section-title button{background:var(--bg);color:var(--text);border:1px solid var(--line);min-height:36px}
#title{margin:20px 0 16px;padding:12px 14px;font-size:15px;font-weight:600;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:10px}
.workspace #editor{min-height:180px;height:clamp(180px,26dvh,270px);font-size:15px;line-height:1.85;color:var(--text);padding:0 2px;resize:vertical}
.character-meter{margin-top:16px}.character-meter>span{color:var(--muted);letter-spacing:.8px}.character-meter strong{color:var(--text);font-size:12px}
.stats{font-size:12px;padding:16px 0;border-color:var(--line);color:var(--muted)}.file-actions{gap:8px}.file-actions button{font-size:12px;border-color:var(--line);min-height:44px}
.reading-options{border-color:var(--line);margin-top:20px;padding-top:12px}.reading-options>summary{color:var(--text);font-size:14px;min-height:44px}.reading-options>summary span{color:var(--muted);font-size:11px}.reading-options>summary:after{color:var(--muted)}
.settings label,.toggle-row{color:var(--text);font-size:13px}.settings output{background:var(--ice);color:var(--accent);font-size:12px}.toggle-row small,.range-labels{color:var(--muted)}
.workspace>.stage{background:var(--stage);border:1px solid #292532;border-radius:var(--radius);box-shadow:var(--shadow);display:flex;flex-direction:column;min-width:0;overflow:hidden}
.stage-head{min-height:48px;padding:16px 24px;background:var(--stage);color:#BAB5C9;border-bottom:1px solid #2C2837;font-size:10px;letter-spacing:1px}.stage-head i{background:#B6A6EE}.stage-head #stageTitle{font-size:12px;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50%}
.workspace .viewport{background:var(--stage);height:clamp(320px,44dvh,480px);flex:1;min-height:320px}
#script{color:#F7F5FC;font-weight:450;line-height:1.65;letter-spacing:-.6px}.focus{background:#BCA8FF0D;border-left:3px solid #AE97F0}
.transport{background:#191620;border-top:1px solid #2C2837;padding:20px 28px 16px}.progress{background:#34303F;height:2px}.progress>div{background:#B8A6ED}.controls{gap:24px;margin-top:20px}
.stage .controls #play{min-width:148px;min-height:46px;background:var(--accent);border-color:var(--accent);color:#FFFFFF;border-radius:11px;font-size:14px}.stage .controls #play:hover{background:var(--accent-hover)}
.stage .controls #reset{min-width:44px;min-height:44px;color:#D6D0E3}.stage #percent{font-size:12px;color:#C5BFD2}.stage .transport p{font-size:11px;color:#B2AABE;margin:16px 0 0}
footer{color:var(--muted);margin-top:20px;font-size:11px}
/* Account, payment and camera share the same restrained palette. */
.welcome-product{background:#F1EDF9}.welcome-product>h2,.welcome-features strong{color:var(--text)}.welcome-product>h2>span,.welcome-brand b{color:var(--accent)}.welcome-description,.welcome-auth-description{color:#514B62;font-size:14px;line-height:1.8}
.welcome-features small,.welcome-caption>small{color:#655D77}.welcome-caption>span{color:var(--text)}.welcome-icon{background:var(--ice);color:var(--accent);border:0}
.auth-content .eyebrow,.welcome-kicker{color:#655D77}.auth-content label{color:var(--text);font-weight:600}.auth-content input::placeholder{color:#77718C}
#authDialog,#legalDialog{border-color:var(--line);box-shadow:0 20px 70px #24213914}.google-login{border-color:var(--line);box-shadow:none}.account-plan,.plans .recommended{background:var(--ice);border-color:#CEBFF0}.profile-info dt,.account-plan p{color:#655D77}
.studio-sheet .sheet-kicker{color:#655D77}.studio-sheet .payment-sheet-head,.studio-sheet .camera-sheet-head,.payment-trust,.camera-sheet-footer{border-color:var(--line)}
#plansDialog .plans article{border-radius:16px;border-color:var(--line)}#plansDialog .plans article.recommended{border-color:#C7B7ED;background:var(--ice)}#plansDialog .plans p,#plansDialog .plans small{color:#655D77}
.plans .recommended>.offer{background:#E1D8F5;color:#5138A1}.premium-highlights,.payment-note,.shopier-email-note,.camera-subtle{color:#655D77}.camera-view{background:var(--bg);border-color:var(--line)}.camera-tabs button[aria-selected=true]{color:var(--accent);border-color:var(--accent);background:var(--ice)}
.studio-toast{border-color:var(--line);border-left-color:var(--accent);box-shadow:0 8px 30px #2421390C}.toast-icon{color:var(--accent);background:var(--ice)}.studio-toast strong{color:var(--text)}.studio-toast>div>span{color:#655D77}
@media(min-width:701px) and (max-width:1000px){.workspace{grid-template-columns:minmax(260px,.65fr) minmax(0,1fr);gap:16px}.workspace>aside{padding:20px}.transport{padding:18px}.reading-options>summary span{display:none}}
@media(max-width:700px){
 body>header{padding:10px 16px;min-height:64px;gap:8px;flex-wrap:nowrap;position:sticky;top:0;background:#FFFFFF;z-index:20;backdrop-filter:none}.brand{font-size:19px;gap:7px}.brand-mark{width:30px;height:30px}.brand-mark svg{width:24px;height:24px}header .badge{display:none}header button{font-size:11px;padding:8px 10px;min-height:42px}#plansLink{margin-left:auto}#fullscreen{padding:8px;min-width:36px}#fullscreen span{display:none}
 main{padding:20px 16px}main .intro{margin-bottom:20px}main .intro h1{font-size:26px;letter-spacing:-.8px;margin:8px 0}main .intro p{font-size:13px}main .intro .eyebrow{font-size:9px}main .intro .saved{display:none}
 main .premium-banner{padding:8px 12px;flex-direction:row;align-items:center;margin-bottom:12px}main .premium-banner h2{font-size:12px;max-width:none}main .premium-banner .play{font-size:11px;padding:8px 4px}
 main .project-toolbar{padding:16px;gap:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;margin-bottom:20px}main .project-toolbar strong{font-size:13px}main .project-toolbar p{font-size:11px;line-height:1.6}#createProject{font-size:12px;padding:10px 14px;min-height:46px}
 .workspace-switch{margin-bottom:12px;background:var(--ice);border-color:var(--line);border-radius:12px}.workspace-switch button{color:#655D77;font-size:13px;min-height:44px}.workspace-switch button[aria-pressed=true]{color:var(--text);background:var(--card);box-shadow:0 1px 3px #24213909}
 .workspace{display:block}.workspace>aside{padding:20px}.workspace #editor{height:25dvh;min-height:180px;font-size:16px}.workspace .viewport{height:clamp(280px,45dvh,420px);min-height:280px;flex:auto}.stage-head{padding:14px 18px}.transport{padding:16px 20px}.controls{gap:20px}.stage .transport p{font-size:10px}
 #plansDialog .plans article>p,#plansDialog .plans article>small{font-size:12px}#plansDialog .plans button{font-size:12px}#paymentIntro{font-size:13px}.payment-trust{font-size:10px}
}
@media(max-width:370px){.brand{font-size:17px}.brand-mark{display:none}body>header{gap:6px;padding-inline:12px}header button{padding-inline:8px}main .intro h1{font-size:24px}}
/* Fullscreen and recording must stay viewport-sized, regardless of editor height. */
.stage:fullscreen,body.recording-focus .stage{border-radius:0}.stage:fullscreen .viewport,body.recording-focus .stage .viewport{height:auto;min-height:0;flex:1}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
@media(min-width:701px){.workspace{align-items:start}.workspace>.stage{height:clamp(460px,58dvh,620px)}.workspace #editor{height:clamp(160px,22dvh,220px);min-height:160px}.workspace .viewport{min-height:0;height:auto}main .intro{margin-bottom:20px}}
@media(max-width:700px){.workspace>.stage{height:clamp(360px,calc(100dvh - 390px),500px)}.workspace .stage .viewport{flex:1;min-height:0;height:auto}.stage .transport{padding:14px 18px}.stage .transport p{margin-top:10px}.stage .controls{margin-top:14px}.stage .controls #play{min-height:44px}}

.workspace .script-preparation{border-color:#dbcee9}
.script-preparation .section-title h2{font-size:clamp(18px,2vw,22px);color:#30223d;letter-spacing:-.025em}
.script-preparation-hint{margin:4px 0 18px;color:#594867;font-size:13px}
.script-preparation .script-field-label{display:block;margin:10px 0 7px;font-size:13px;font-weight:650;color:#42314f}
.script-preparation #title:focus-visible{outline:2px solid #8054c1;outline-offset:2px}
.speed-preview{margin:10px 0 16px;color:#594867;font-size:12px;font-weight:600}
.speed-preview-window{height:36px;overflow:hidden;display:grid;place-items:center;margin-top:5px;border:1px solid #e3d7ee;border-radius:9px;background:#faf7fd;color:#42314f}
.speed-preview-window span{white-space:nowrap}
.workspace .script-editor-card {
  margin-top: 18px;
  overflow: hidden;
  background: #faf7ff;
  border: 1px solid #cbb6e5;
  border-radius: 15px;
  box-shadow: 0 4px 14px #4b2c7410;
}
.workspace .script-editor-card:focus-within {
  border-color: #8559bf;
  box-shadow: 0 0 0 3px #8559bf26;
}
.workspace .script-editor-card .script-field-label {
  margin: 0;
  padding: 10px 16px;
  background: #eee5fa;
  border-bottom: 1px solid #ded0ee;
  color: #4a2f69;
  font-weight: 700;
}
.workspace .script-editor-card #editor {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 210px;
  height: clamp(210px, 28dvh, 320px);
  margin: 0;
  padding: 15px 16px;
  background: #fcfaff;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  color: #2d233b;
  font-size: 16px;
  line-height: 1.65;
  resize: vertical;
}
.workspace .file-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.workspace .file-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 47px;
  padding: 4px 6px;
  background: #fff;
  color: #1e2340;
  border: 1px solid #e4e7f0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(30, 35, 64, 0.06);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 190ms, border-color 190ms, transform 190ms, box-shadow 190ms;
}
.workspace .file-actions > button svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #3b82f6;
}
html[lang="en"] .file-actions button span[lang="tr"],
html:not([lang="en"]) .file-actions button span[lang="en"] { display: none; }
@media (hover: hover) {
  .workspace .file-actions > button:enabled:hover {
    background: #f5f8ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(30, 35, 64, 0.09);
  }
}
.workspace .file-actions > button:enabled:active { transform: none; }
.workspace .file-actions > button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .workspace .file-actions > button { transition: none; }
  .workspace .file-actions > button:enabled:hover { transform: none; }
}

.workspace .stage .primary-speed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .55fr);
  column-gap: 20px;
  flex: none;
  margin: 0;
  padding: 12px 18px;
  background: #f8f4ff;
  color: #35234e;
  border: 0;
  border-top: 1px solid #d9c7ee;
}
.workspace .primary-speed > label {
  grid-column: 1;
  margin: 0 0 4px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}
.workspace .primary-speed > input,
.workspace .primary-speed > .range-labels { grid-column: 1; }
.workspace .primary-speed .speed-preview {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  min-width: 0;
  margin: 0;
}
.workspace .stage:fullscreen .primary-speed,
body.recording-focus .workspace .stage .primary-speed { display: none; }
@media (max-width: 480px) {
  .workspace .stage .primary-speed { column-gap: 10px; padding: 10px 12px; }
}
#cameraDialog .effect-preview {
  position: relative;
  width: min(100%, 320px, 42dvh);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #382f48;
  border-radius: 22px;
  background: #120f19;
  box-shadow: 0 10px 30px #130d2533;
}
#cameraDialog #effectPreview {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
#cameraDialog .camera-shutter {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
  padding: 24px 8px 12px;
  background: linear-gradient(transparent, #100b1cdb);
}
#cameraDialog #startRecording {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}
#cameraDialog #startRecording i {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #eb3048;
  box-shadow: inset 0 0 0 4px #251721, 0 3px 12px #0007;
}
#cameraDialog #startRecording:enabled:hover i { background: #ff4c60; }
#cameraDialog #startRecording:disabled { opacity: .55; }
#cameraDialog #startRecording:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
/* Keep the reading area independent of the controls below it. */
body:not(.recording-focus) .workspace > .stage:not(:fullscreen) {
  height: auto;
}
body:not(.recording-focus) .workspace > .stage:not(:fullscreen) > .viewport {
  flex: none;
  height: clamp(360px, 48dvh, 540px);
}
@media (max-width: 700px) {
  body:not(.recording-focus) .workspace > .stage:not(:fullscreen) > .viewport {
    height: clamp(280px, 44dvh, 400px);
  }
}
body.recording-camera-scene .stage { isolation: isolate; background: #000; }
#stageCamera:not([hidden]) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -1;
  pointer-events: none;
}
body.recording-camera-scene .workspace .stage .viewport { background: #100c1c66; }
body.recording-camera-scene .stage #script { text-shadow: 0 2px 6px #000, 0 0 20px #0008; }
body.recording-focus:not(.recording-camera-scene) .workspace .stage .viewport { background: #000; }