/* The intake follows the reviewed a6e1c0a prototype; paid generation stays in the existing form. */
body{background:#fff}
.remix-desktop-sidebar,.remix-desktop-breadcrumb{display:none}
.remix-mobile-back{display:none}
.studio-header{max-width:none;border-bottom:1px solid #edeaf2;background:#fff;color:#38323f}
.studio-header nav a{color:#686171}
.studio-header nav a:hover{color:#7858d1}
.studio-shell{max-width:1320px;padding-top:24px}
.studio-title{align-items:center;color:#25212a;margin-bottom:24px;padding:6px 0 18px;border-bottom:1px solid #eeeaf3}
.studio-title>div>p{color:#8062cb;letter-spacing:0;margin-bottom:4px}
.studio-title h1{font-size:clamp(1.35rem,2.3vw,2rem);line-height:1.25;letter-spacing:0}
.studio-subtitle{display:block;margin-top:3px;color:#88808d;font-size:.79rem}
.studio-status{width:auto;min-width:155px;background:#f9f7ff;border-color:#eee9fa;border-radius:13px;padding:8px 13px}
.studio-status span,.studio-status small{color:#776d87}
.studio-status strong{color:#6c4fca;font-size:1.12rem;margin:0}
.studio-status .ready{color:#43795e}
.remix-entry{max-width:880px;margin:26px auto 80px;padding:0 8px}
.remix-entry-icon{width:66px;height:66px;margin:0 auto 20px;display:grid;place-items:center;border-radius:20px;background:#f4f0ff;color:#805fd7;font-size:2rem}
.remix-entry>h2{text-align:center;font-size:1.5rem;font-weight:760;margin:0 0 7px}
.remix-entry-intro{text-align:center;color:#8b8590;font-size:.86rem;margin:0 0 35px}
.story-spotlight{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:-4px 0 32px;padding:22px 24px;border:1px solid #d6c8ff;border-radius:18px;background:linear-gradient(115deg,#f3edff,#fff 80%);box-shadow:0 12px 30px rgba(90,62,165,.08)}
.story-spotlight-kicker{color:#7654c8;font-size:.76rem;font-weight:800}
.story-spotlight h3{margin:5px 0 7px;font-size:1.2rem;line-height:1.35}
.story-spotlight p{margin:0;color:#726b7a;font-size:.82rem;line-height:1.6}
.story-spotlight button{flex:none;min-height:44px;border:0;border-radius:11px;background:#7654cf;color:#fff;padding:10px 16px;font-weight:800}
.idea-mode-switch{display:flex;gap:8px;margin:0 0 18px}
.idea-mode-switch button{padding:8px 13px;border:1px solid #e4dcef;border-radius:10px;background:#fff;color:#6a6173;font-weight:700}
.idea-mode-switch button[aria-pressed=true]{border-color:#9774e6;background:#f2edff;color:#6944bd}
#storyStructurePicker{margin-bottom:18px}
#storyStructurePicker>strong{display:block;font-size:.95rem}
#storyStructurePicker>p{margin:3px 0 10px;color:#817888;font-size:.78rem}
.story-structure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.story-structure-grid button{min-width:0;padding:11px;border:1px solid #e6dfed;border-radius:11px;background:#fff;text-align:left;color:#37303c}
.story-structure-grid button[aria-pressed=true]{border-color:#8662d8;background:#f4efff;box-shadow:inset 0 0 0 1px #8662d8}
.story-structure-grid b,.story-structure-grid small{display:block}
.story-structure-grid b{font-size:.82rem}.story-structure-grid small{margin-top:4px;color:#817889;font-size:.72rem}
.story-spotlight,.idea-mode-switch{display:none}
.story-script-route .remix-entry-icon,.story-script-route .remix-entry>h2,.story-script-route .remix-entry-intro,.story-script-route .remix-entry-tabs,.story-script-route .remix-entry-sources,.story-script-route #entryLink,.story-script-route #entryUpload{display:none!important}
.story-script-route .story-spotlight{display:flex;margin:0 0 24px}
.story-script-route .story-spotlight button{display:none}
.story-script-route .remix-entry{margin-top:16px}
.story-script-route .story-module-plan,.story-script-route .analysis-block{display:none!important}
.story-module-plan{margin-bottom:20px;padding:20px;border:1px solid #e9dfff;border-radius:16px;background:#fcfaff}
.story-structure-reason{margin:6px 0 18px;color:#6d5d8a;font-size:.83rem;line-height:1.6}
.story-structure-reason:empty{display:none}
.story-module-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.story-module-card{min-width:0;padding:16px;border:1px solid #e8e1f2;border-radius:12px;background:#fff}
.story-module-card h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:.96rem}
.story-module-card h3 span{display:grid;place-items:center;width:22px;height:22px;flex:none;border-radius:7px;background:#f0eaff;color:#7654c8;font-size:.74rem}
.story-module-card p{margin:8px 0;color:#4c4555;font-size:.82rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.story-module-card p b{display:block;color:#8a77b1;font-size:.73rem}
.remix-entry-tabs{display:flex;gap:24px;margin:0 0 46px;border-bottom:1px solid #eeeaf2}
.remix-entry-tabs button{border:0;border-bottom:2px solid transparent;background:none;color:#706977;padding:0 0 14px;font-weight:620;font-size:.88rem}
.remix-entry-tabs button[aria-selected=true]{border-color:#805fd7;color:#7958ce}
.remix-entry label{display:block;margin:0 0 12px;font-size:.96rem;font-weight:750}
.remix-entry textarea{width:100%;min-height:135px;padding:15px;border:1px solid #e8e4ed;border-radius:10px;background:#fff;color:#302b33;line-height:1.65;resize:vertical}
.remix-entry textarea:focus,.remix-entry input:focus{outline:2px solid #d7c8ff;outline-offset:1px}
.remix-entry input[type=file]{width:100%;padding:16px;border:1px dashed #cfc2e8;border-radius:10px;background:#fbfaff}
.remix-entry-primary{min-height:44px;margin-top:12px;padding:9px 20px;border:0;border-radius:10px;background:#805fd7;color:#fff;font-weight:750}
.remix-entry-primary:hover{background:#6c4cc1}
.remix-entry-note{color:#8c8491;font-size:.78rem;line-height:1.6;margin:10px 0 0}
.story-voice{margin:12px 0 16px;padding:14px;border:1px solid #e7dffc;border-radius:12px;background:#faf8ff}
.story-voice[hidden],.story-voice-clip[hidden],.story-voice-actions[hidden]{display:none!important}
.story-voice-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0}
.story-voice-actions button,.story-voice-actions a{min-height:38px;padding:8px 12px;border:1px solid #d8c9f6;border-radius:9px;background:#fff;color:#6c4bc1;text-decoration:none;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}
.story-voice-actions button:disabled{opacity:.6;cursor:wait}
.story-voice-actions #storyVoiceStart,.story-voice-actions #storyVoiceTranscribe{border-color:#7654cf;background:#7654cf;color:#fff}
#storyVoiceStatus{flex:1 1 200px;color:#625a6c;font-size:.8rem;line-height:1.5;overflow-wrap:anywhere}
.story-voice-clip{display:grid;gap:10px;margin-top:12px}
.story-voice-clip audio{display:block;width:min(100%,480px);height:42px}
.story-voice>.remix-entry-note{margin-top:12px}
.remix-entry-sources{margin-top:42px}
.remix-entry-section-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}
.remix-entry-section-head h3{font-size:1rem;margin:0}
.remix-entry-section-head a{color:#7860bf;text-decoration:none;font-size:.79rem}
.remix-history-link{border:0;background:none;color:#7860bf;font-size:.79rem}
.remix-entry-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.remix-entry-cards>p,.remix-entry-recent>p{color:#89818e;font-size:.81rem}
.remix-entry-card,.remix-entry-recent button{width:100%;border:1px solid #ece7f2;border-radius:12px;background:#fff;text-align:left;padding:14px;color:#312b37}
.remix-entry-card:hover,.remix-entry-recent button:hover{border-color:#a590e0;background:#faf8ff}
.remix-entry-card-cover{display:block;height:145px;margin:-14px -14px 12px;overflow:hidden;border-radius:11px 11px 0 0;background:#f4f0f8}
.remix-entry-card-cover img{display:block;width:100%;height:100%;object-fit:cover}
.remix-entry-card small,.remix-entry-card strong,.remix-entry-recent strong,.remix-entry-recent small{display:block}
.remix-entry-card small,.remix-entry-recent small{color:#8e829e;font-size:.75rem}
.remix-entry-card strong,.remix-entry-recent strong{margin-top:6px;font-size:.86rem;line-height:1.45}
.remix-entry-recent{display:grid;gap:9px}
.remix-back{margin-top:12px;padding:5px 0;border:0;background:none;color:#7958ce;font-size:.8rem;font-weight:700}
#remixDetails{grid-template-columns:minmax(300px,470px) minmax(0,1fr)}
#remixDetails .history-panel{grid-column:1/-1}
#remixDetails .brief-panel{position:static}
#remixDetails .canvas-panel{min-height:520px}
.studio-grid .brief-panel,.studio-grid .canvas-panel{box-shadow:0 10px 35px rgba(34,20,58,.05)}
@media(min-width:851px){
  body{padding-left:176px}
  .remix-desktop-sidebar{display:flex;position:fixed;z-index:50;inset:0 auto 0 0;width:176px;flex-direction:column;padding:22px 13px;border-right:1px solid #ece9f0;background:#fff}
  .remix-sidebar-brand{display:flex;align-items:center;gap:8px;color:#24202a;font-size:.86rem;text-decoration:none}
  .remix-sidebar-brand span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#805fd7;color:#fff;font-size:1.3rem}
  .remix-desktop-sidebar>small{margin:30px 10px 15px;color:#8a8390;font-size:.68rem}
  .remix-desktop-sidebar nav{display:grid;gap:2px}
  .remix-desktop-sidebar nav a{padding:11px 13px;color:#6c6672;font-size:.82rem;text-decoration:none}
  .remix-desktop-sidebar nav a:hover{border-radius:8px;background:#f7f3ff;color:#7555c8}
  .remix-sidebar-create{display:block;margin-top:18px;padding:10px 8px;border-radius:9px;background:#805fd7;color:#fff;text-align:center;text-decoration:none;font-size:.78rem;font-weight:700}
  .remix-sidebar-account{margin-top:auto;padding:15px 8px;border-top:1px solid #edeaf1;color:#5f5867;text-decoration:none;font-size:.78rem}
  .studio-header{height:82px;max-width:none;padding:0 28px;border-bottom:1px solid #efecf1}
  .studio-header .studio-brand,.studio-header nav{display:none}
  .remix-desktop-breadcrumb{display:flex;align-items:center;gap:18px;color:#756e7c;font-size:.78rem}
  .remix-desktop-breadcrumb b{color:#2e2933;font-size:1.08rem}
  .studio-shell{max-width:none;padding:24px 28px 60px}
}
@media(max-width:850px){.studio-shell{padding:18px 18px 76px}.studio-title{align-items:start}.studio-status{width:100%}#remixDetails{grid-template-columns:1fr}.remix-entry{margin-top:25px}.remix-entry-tabs{margin-bottom:30px}.story-spotlight{align-items:stretch;flex-direction:column}.story-spotlight button{width:100%}}
@media(max-width:650px){.studio-header nav{display:none}.story-module-cards{grid-template-columns:1fr}}
@media(max-width:560px){.story-voice{padding:12px}.story-voice-actions button,.story-voice-actions a{flex:1 1 auto;text-align:center}.story-voice-actions #storyVoiceStatus{flex-basis:100%}}
@media(max-width:560px){
  .studio-header{height:58px}
  .studio-shell{padding:15px 14px 92px}
  .studio-title{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:10px;margin:0 0 18px;padding:0 0 12px}
  .remix-mobile-back{display:block;grid-column:1;grid-row:1;color:#514956;text-decoration:none;font-size:1.45rem;line-height:1}
  .studio-title>div:not(.studio-status){grid-column:2;grid-row:1;min-width:0}
  .studio-title .studio-status{grid-column:1/-1;grid-row:2;min-width:0;width:100%}
  body.prototype-shell-page .studio-title h1{font-size:1.12rem!important;line-height:1.2!important;letter-spacing:0!important}
  .studio-title>div>p{display:none}
  .studio-subtitle{font-size:.69rem}
  .studio-status{padding:8px 12px}
  #loginNotice{padding:8px 10px;font-size:.76rem;margin-bottom:8px}
  .remix-entry{padding:0;margin:28px auto 64px}
  .remix-entry-icon{width:58px;height:58px}
  .remix-entry>h2{font-size:1.27rem}
  .remix-entry-intro{font-size:.8rem}
  .remix-entry-tabs{gap:18px}
  .remix-entry-tabs button{font-size:.8rem}
  .remix-entry-cards{grid-template-columns:1fr}
  .remix-entry-sources{margin-top:30px}
  .story-spotlight{padding:17px;margin-bottom:25px}.story-spotlight h3{font-size:1.07rem}
  .story-structure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.story-script-route #targetPlatformField{display:none}
.story-script-route #targetPlatformField+label{grid-column:1/-1}
