/* 2026-11-13: Official wordmark + release model indigo. No external assets. */
:root{color-scheme:light;--bg:#fafafb;--panel:#fff;--raised:#f4f4f7;--line:#e4e4eb;--text:#17171d;--ink:#17171d;--muted:#64646f;--dim:#71717c;--accent:#6366f1;--error:#b42336}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}a{color:inherit;text-decoration:none}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #6366f188;outline-offset:3px}input,select,textarea{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:11px 13px}input:focus,textarea:focus{border-color:var(--accent)}button{color:inherit}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header{max-width:1280px;margin:auto;min-height:92px;padding:22px 40px;display:flex;align-items:center;justify-content:space-between;gap:32px}.wordmark{display:block;flex:none;line-height:0}.wordmark img{display:block;width:260px;height:auto;min-width:240px}.site-nav{display:flex;align-items:center;gap:10px;font-size:14px}.site-nav>a,.account-menu>summary{padding:9px 15px;border-radius:8px;cursor:pointer}.site-nav>a:hover,.account-menu>summary:hover{background:#eeeef4}.site-nav>a[aria-current=page]{background:#eeeeff;color:#4548c8}.account-menu{position:relative}.account-menu>summary{list-style:none}.account-menu>summary::-webkit-details-marker{display:none}.account-menu>summary span{margin-left:8px;color:var(--muted)}.account-menu>div{position:absolute;right:0;top:48px;min-width:170px;padding:6px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px #18182912;z-index:20}.account-menu a,.account-menu button{display:block;width:100%;padding:10px 12px;border:0;background:none;text-align:left;border-radius:7px;font-size:14px}.account-menu a:hover,.account-menu button:hover{background:var(--raised)}
h1,h2,h3{color:var(--ink);font-weight:600}h1{font-size:36px;letter-spacing:-1.3px;line-height:1.2}h2{font-size:18px;letter-spacing:-.35px}.muted,.hint{color:var(--muted)}.error,.form-error{color:var(--error)}.primary,.run,.button.solid{background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:10px;padding:11px 20px;font-weight:600}.primary:hover,.run:hover,.button.solid:hover{background:#5356db}.secondary,.button,.table-button{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:9px 14px}.secondary:hover,.button:hover{background:#f4f4f8}.danger{color:#a82735;background:#fff4f4;border-color:#f2cdd1}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#202027;color:white;padding:12px 20px;border-radius:10px;box-shadow:0 5px 25px #20202722;z-index:40;max-width:calc(100% - 32px)}dialog{color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;max-width:calc(100% - 32px);max-height:90dvh}dialog::backdrop{background:#14142170;backdrop-filter:blur(3px)}.code,pre{background:#f5f5f9;color:#252531;border:1px solid var(--line);border-radius:10px}.code{padding:14px;overflow-wrap:anywhere}.notice{background:#f4f4ff;border-color:#d6d6f5}.icon-button{display:inline-grid;place-items:center;border:0;border-radius:7px;background:transparent;padding:8px;color:var(--muted)}.icon-button:hover{background:#eeeef5}.text-button{background:none;border:0;color:var(--muted);padding:6px;font-size:12px}
.reference-drop{min-width:0;max-width:100%;border-radius:10px}.reference-drop.dragging{background:#eeeefe;outline:2px dashed var(--accent);outline-offset:5px}
/* A single composer; result tools appear only when there is a result. */
.studio-page .app,.studio-page .shell{display:block}.studio-page .workspace{width:min(760px,calc(100% - 40px));margin:28px auto 60px}.create-heading{text-align:center;margin:26px 0 32px}.create-heading h1{margin:0 0 12px}.create-heading p{margin:0;color:var(--muted);font-size:15px}.studio-page[data-mode=result] .create-heading{display:none}.composer{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 4px 24px #25254205}.composer fieldset{border:0;padding:0;margin:0;min-width:0}.composer-heading{display:none}.field-label{display:block;font-size:13px;font-weight:550;margin:20px 0 9px}.upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;height:144px;border:1px dashed #d2d2df;border-radius:12px;background:#fcfcfe;color:var(--ink)}.upload-zone:hover,.upload-zone.dragging{background:#f5f5ff;border-color:var(--accent)}.upload-zone svg{width:25px;height:25px;color:var(--accent);margin-bottom:7px}.upload-zone strong{font-weight:550;font-size:15px}.upload-zone small{font-size:12px;color:var(--muted)}textarea{display:block;width:100%;min-height:105px;resize:vertical;max-height:300px;font-size:15px;line-height:1.6;background:#fff}textarea::placeholder{color:#858592}.prompt-foot{display:none}.optional-row{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-top:14px}.ref-add{display:flex;align-items:center;gap:7px;border:0;background:none;padding:7px 0;color:var(--muted);font-size:13px}.ref-add:hover{color:#4548c8}.ref-add small{display:none}.ref-card{display:flex;gap:9px;align-items:center;padding:7px 10px;border:1px solid var(--line);border-radius:10px;max-width:100%}.ref-preview{border:0;background:none;padding:0;cursor:zoom-in}.ref-card img{width:42px;height:34px;object-fit:contain}.file-info{flex:1;min-width:0}.file-name{display:block;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.file-meta{font-size:11px;color:var(--muted)}.file-card{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:10px}.file-icon{display:grid;place-items:center;color:var(--accent)}.replace-link{background:none;border:0;padding:7px 0 0;font-size:12px;color:var(--muted)}.clip-settings{margin-left:auto;font-size:13px;color:var(--muted)}.clip-settings>summary{cursor:pointer;padding:7px 0}.clip-settings[open]{width:100%;margin:0;padding-top:10px;border-top:1px solid var(--line)}.clip-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px}.clip-row label{font-size:12px}.clip-row input,.clip-row select{display:block;width:100%;margin-top:6px}.duration-hint{font-size:12px;color:var(--muted);margin:12px 0 0}.studio-page[data-mode=empty] .duration-hint{display:none}.settings{font-size:12px;margin-top:16px;border-top:1px solid var(--line);padding-top:14px}.settings summary{cursor:pointer}.settings dl{display:grid;grid-template-columns:1fr 1fr;gap:4px}.settings dd{margin:0;text-align:right}.settings p{line-height:1.7}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;flex-wrap:wrap}.run{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:14px}.run kbd{display:none}.run-sub{font-size:12px;color:var(--muted);margin:0}.form-error{width:100%;font-size:13px;margin:0}.welcome{margin-top:27px}.starter-label{font-size:12px;color:var(--muted);margin-bottom:12px;text-align:center}.example-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.example-card{display:flex;align-items:center;gap:13px;padding:10px;background:white;border:1px solid var(--line);border-radius:12px;text-align:left;min-width:0}.example-card:hover{border-color:#a5a7ef;background:#fdfdff}.example-thumb{width:82px;height:56px;border-radius:7px;overflow:hidden;background:#eeeef4;flex:none}.example-thumb video{width:100%;height:100%;object-fit:cover;display:block}.example-copy strong{font-size:13px;font-weight:550;display:block}.example-copy span{font-size:11px;color:var(--muted);display:block;margin-top:3px}.page-foot{text-align:center;font-size:12px;color:var(--muted);margin:24px 0}.page-foot a{border-bottom:1px solid #c9c9d5}.stage-column{margin-bottom:20px}.studio-page[data-mode=empty] .stage-column{display:none}.stage-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.stage-label{font-size:13px;font-weight:500}.view-switch{display:flex;background:#eeeef4;border-radius:9px;padding:3px;gap:2px}.view-switch button{border:0;background:none;padding:6px 12px;border-radius:7px;font-size:12px;color:var(--muted)}.view-switch button[aria-pressed=true]{background:white;color:var(--ink);box-shadow:0 1px 4px #0000000d}.studio-page[data-mode=input] .stage-top{display:none}.stage{background:#eeeef3;border:1px solid var(--line);border-radius:14px;overflow:hidden}.media-view{padding:12px}.video-pane video{display:block;width:100%;max-height:390px;aspect-ratio:7/4;object-fit:contain;background:#17171c;border-radius:8px}.pane-label{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.compare-view{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px}.compare-view video{object-fit:cover}.reference-badge{display:flex;align-items:center;gap:8px;margin:10px 0 0 auto;padding:5px 8px;border:1px solid var(--line);background:white;border-radius:7px;font-size:11px;cursor:zoom-in}.reference-badge img{width:40px;height:30px;object-fit:contain}.transport{display:flex;align-items:center;gap:12px;margin-top:12px}.transport button{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:7px;background:white}.transport input{padding:0;height:4px;min-width:0;flex:1;accent-color:var(--accent)}.time,.transport-note,.compare-note{font-size:11px;color:var(--muted)}.state-row{display:flex;gap:10px;align-items:flex-start;margin:20px 0}.state-row[data-state=draft]{display:none}.state-symbol{display:grid;place-items:center;width:24px;height:24px;flex:none;border:1px solid #c8c8ef;color:#5658d9;border-radius:50%}.state-symbol svg{width:13px}.state-copy strong{display:block;font-size:14px;font-weight:550}.state-copy p{font-size:12px;color:var(--muted);margin:4px 0}.busy .state-symbol{border-top:2px solid var(--accent);animation:spin 1s linear infinite}.busy .state-symbol svg{visibility:hidden}@keyframes spin{to{transform:rotate(360deg)}}.result-actions{display:flex;gap:12px;align-items:center;margin:14px 0}.button{display:inline-flex;gap:8px;align-items:center;font-size:13px}.result-format{font-size:11px;color:var(--muted)}.job-summary>summary{cursor:pointer;font-size:13px;font-weight:500}.job-meta-grid{display:flex;gap:32px;font-size:12px;margin:18px 0}.detail-label{font-size:10px;color:var(--muted);display:block}.job-meta-grid strong{font-size:12px;font-weight:400}.detail-heading{display:flex;justify-content:space-between;align-items:center}.job-prompt{font-size:13px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}.job-reference{display:flex;align-items:center;gap:12px;width:100%;padding:10px;background:#fafafe;border:1px solid var(--line);border-radius:9px;font-size:12px;text-align:left}.job-reference img{width:65px;height:48px;object-fit:contain}.job-reference small{display:block;color:var(--muted)}.job-reference svg{margin-left:auto}.settings-link{display:block;font-size:12px;color:var(--muted);margin:15px 0}.result-form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.return-draft,.cancel-queued{border:1px solid var(--line);background:white;border-radius:9px;padding:10px 14px;font-size:13px}.cancel-queued{color:var(--error)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;font-size:13px}#fullReference{display:block;max-width:min(80vw,1100px);max-height:70dvh;object-fit:contain}.connection{font-size:11px;color:var(--muted)}.connection:not(.offline){display:none}.connection.offline{display:block;text-align:center;padding:8px}
/* Consistent compact supporting pages. */
.portal-page .shell{display:block;min-height:0}.portal-page .sidebar{display:none}.portal-page .topbar{display:none}.portal-page main{max-width:1160px;padding:28px 40px 64px}.portal-page .grid{gap:20px}.portal-page .card,.portal-page .panel,.portal-page .stat{background:white;border-color:var(--line);box-shadow:none}.portal-page .thumb .state{color:white;background:#181824c9;border:0}.portal-page .tabs button.active{background:#eeeefe;color:#4548c8}.portal-page .card-actions button{background:#f7f7fa;color:var(--muted)}.portal-page .card-actions button.selected{color:#4548c8;border-color:#a6a7e6}.portal-page .heading{margin-bottom:24px}.portal-page .panels{gap:18px}.portal-page input,.portal-page select{background:#fff}.portal-page dialog{background:white;border-color:var(--line)}.portal-page .logout{color:var(--muted)}.portal-page .code{background:#f5f5fa}.portal-page .notice{background:#f3f3ff;border-color:#d7d7ef}.portal-page .toast{background:#25252d;color:#fff;border-color:#25252d}.auth-page .layout{display:block;min-height:0}.auth-page .story{display:none}.auth-page .pane{padding:38px 24px 70px}.auth-page .content{max-width:360px}.auth-page .badge{display:none}.auth-page h2{font-size:28px;letter-spacing:-.8px;margin-top:12px}.auth-page .primary{color:white}.auth-page .footer{font-size:12px;border-color:var(--line);margin-top:30px}.auth-page .recovery{background:#f7f7ff;border-color:#d9d9ef}.auth-page .code{background:white}.access-page main{max-width:820px;padding:28px 24px 70px}.access-page h1{font-size:32px}.access-page h2{margin-top:26px}.access-page a:not(.wordmark){color:#484bc4}.access-page .site-nav a{color:var(--ink)}.access-page pre{background:#f5f5f9;color:#252531;border-color:var(--line);padding:18px}.access-page td,.access-page th{border-color:var(--line)}.access-page input{background:white;color:var(--ink);border-color:var(--line)}.access-page button{background:var(--accent);border-color:var(--accent);color:white}.doc-section{border-top:1px solid var(--line);margin-top:26px;padding-top:20px}.doc-section>summary{cursor:pointer;font-size:18px;font-weight:550}.doc-section>summary+p{margin-top:18px}
@media(max-width:700px){.site-header{padding:18px 20px 12px;gap:16px;flex-wrap:wrap;min-height:0}.wordmark img{width:240px}.site-nav{width:100%;gap:4px;padding-top:4px}.site-nav>a,.account-menu>summary{padding:8px 12px}.account-menu{margin-left:auto}.studio-page .workspace{width:calc(100% - 32px);margin:24px auto 40px}.create-heading{margin:16px 0 24px}.create-heading h1{font-size:29px;letter-spacing:-1px}.create-heading p{font-size:13px}.composer{padding:18px;border-radius:14px}.upload-zone{height:134px}textarea{font-size:16px;min-height:110px}.composer-bottom{gap:14px}.run-sub{font-size:11px}.run{padding:10px 16px}.example-grid{gap:9px}.example-card{display:block;padding:9px}.example-thumb{width:100%;height:auto;aspect-ratio:7/4}.example-copy{padding:9px 1px 2px}.example-copy strong{font-size:12px}.example-copy span{font-size:11px}.clip-row{gap:10px}.compare-view{gap:7px;padding:8px}.pane-label{font-size:10px}.media-view{padding:8px}.transport-note{display:none}.result-actions{flex-wrap:wrap}.stage-top{gap:10px}.stage-label{font-size:12px}.view-switch button{padding:6px 9px}.portal-page main{padding:22px 16px 50px}.portal-page .stats{grid-template-columns:1fr 1fr 1fr}.portal-page .heading h1{font-size:28px}.auth-page .pane{padding:26px 24px 50px}.access-page main{padding-top:20px}.access-page h1{font-size:29px}}
.site-nav>a.active{background:#eeeeff;color:#4548c8}
.access-page .site-nav{border:0;padding:0;margin:0}
.studio-page[data-mode=input] .create-heading{display:none}
.studio-page[data-mode=input] .video-pane video{height:230px;max-height:230px;aspect-ratio:auto}
.studio-page[data-mode=input] .reference-badge{display:none}
.result-form-actions .run{background:white;color:var(--ink);border-color:var(--line)}
.stage-label{display:flex;align-items:center;gap:7px}
.account-section>summary{font-size:16px;font-weight:550;cursor:pointer}
.account-section[open]>summary{margin-bottom:20px}
.portal-page #accountPage .panels{grid-template-columns:1fr}
.portal-page #accountPage{max-width:820px;margin:auto}
.card-menu{margin-top:12px;font-size:12px;color:var(--muted)}
.card-menu>summary{cursor:pointer;list-style:none;width:fit-content;padding:3px 0}
.card-menu .card-actions{margin-top:8px}
.primary,.run,.button.solid{background:#5b5ee8;border-color:#5b5ee8}
@media(max-width:700px){.studio-page[data-mode=input] .video-pane video{height:180px;max-height:180px}.composer-bottom .run{width:100%;order:1}.composer-bottom .run-sub{width:100%;text-align:center;order:2}.composer-bottom .form-error{order:0}.access-page .site-nav{padding-top:4px}}
.optional-label{font-size:11px;color:var(--dim)}
.connection.offline{margin:0 auto;max-width:760px;padding:10px 20px;background:#fff8ec;border:1px solid #eee0c5;border-radius:9px;color:#775b28}
@media(max-width:700px){.site-nav>a,.account-menu>summary{min-height:44px;display:flex;align-items:center}.ref-add,.clip-settings>summary{min-height:44px}.optional-row{gap:8px}.ref-add{font-size:12px;gap:5px}.clip-settings{font-size:12px}.upload-zone small{font-size:11px;line-height:1.7}.connection.offline{margin:6px 16px 0}.icon-button{min-width:36px;min-height:36px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.busy .state-symbol{border:2px solid var(--accent)}}
.task-queue{margin:0 0 18px;padding:14px 16px;background:#f4f4fb;border:1px solid var(--line);border-radius:12px}
.queue-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:12px;margin-bottom:10px}.queue-heading strong{font-weight:550}.queue-heading a{color:#484bc4}
.queue-items{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.queue-task{display:flex;width:100%;min-width:0;gap:14px;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid transparent;background:#fff;border-radius:8px;text-align:left;font-size:12px}
.queue-task[aria-current=true]{border-color:#b4b5ee}.queue-task-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.queue-task-state{color:var(--muted);flex:none;font-size:11px}.queue-note{font-size:11px;color:var(--muted);margin:10px 0 0}
.completion-notice{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:16px;border:1px solid #d4d5f2;border-radius:10px;background:#f6f6ff;font-size:12px}.completion-notice>span{flex:1;min-width:0;overflow-wrap:anywhere}.completion-notice>button{padding:6px 8px;border:0;background:transparent;color:#484bc4;flex:none}.completion-notice>button:last-child{font-size:20px;line-height:1}
.health-alerts{display:grid;gap:10px}.health-alert{padding:12px 14px;border-left:3px solid #d5a53a;background:#fff9ed;border-radius:6px;font-size:13px}.health-alert.critical{border-color:#c94050;background:#fff2f3}.health-alert p{margin:4px 0 0;color:var(--muted);font-size:12px}.health-clear{color:#356545;font-size:13px}
@media(max-width:700px){.queue-task{min-height:44px}.completion-notice{flex-wrap:wrap}.completion-notice>span{flex-basis:100%}.completion-notice>button{min-height:36px}.task-queue{padding:12px}.queue-task-title{max-width:calc(100% - 90px)}}
/* Actual sampling progress; preparation/decoding remain separate named stages. */
#taskProgress{display:block;width:min(360px,60vw);height:5px;margin-top:10px;border:0;border-radius:99px;overflow:hidden;accent-color:var(--accent)}
#taskProgress[hidden]{display:none}
#taskProgress::-webkit-progress-bar{background:#e9e9f2;border-radius:99px}
#taskProgress::-webkit-progress-value{background:var(--accent);border-radius:99px;transition:width .3s}
#taskProgress::-moz-progress-bar{background:var(--accent);border-radius:99px}

/* 2026-11-16: Accepted workspace layout candidate; shared behavior preserved. */
.studio-page {--bg:#f5f5f7;--line:#e5e5ec;background:var(--bg)}
.studio-page .site-header{height:72px;min-height:72px;max-width:none;padding:0 28px;gap:24px;background:#fff;border-bottom:1px solid var(--line)}
.studio-page .wordmark img{width:240px;min-width:240px}
.studio-label{font-size:13px;color:#70717d;border-left:1px solid var(--line);padding-left:24px}
.studio-page .site-nav{margin-left:auto;gap:8px}
.studio-page .site-nav>a,.studio-page .account-menu>summary{padding:8px 15px}
.studio-page .workspace{width:auto;max-width:1760px;margin:0 auto;padding:20px;display:grid;grid-template-columns:340px minmax(0,1fr);gap:20px;min-height:calc(100dvh - 72px)}
.control-column{display:flex;flex-direction:column;gap:14px;min-width:0}
.studio-page .composer{padding:24px;display:flex;flex-direction:column;flex:1;border-radius:16px;box-shadow:0 2px 6px #18182b03;min-width:0}
.studio-page .composer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}
.studio-page .composer-heading h2{font-size:17px;letter-spacing:-.35px;margin:0}
.draft-label{font-size:9px;letter-spacing:.6px;color:#7b7b89;background:#f5f5f8;border-radius:5px;padding:4px 7px}
.studio-page .composer fieldset{display:flex;flex-direction:column;flex:1;min-width:0}
.studio-page .upload-zone{height:160px;background:#fafafd;border:1px dashed #cfcfdf;border-radius:11px;gap:3px}
.studio-page .upload-zone:hover,.studio-page .upload-zone.dragging{background:#f1f1ff;border-color:var(--accent)}
.studio-page .upload-zone svg{height:22px;width:22px;margin:0 0 10px;color:#6768b3}
.studio-page .upload-zone strong{font-size:13px;font-weight:550}
.studio-page .upload-zone small{font-size:12px;color:#6366df}
.upload-limits{font-size:10px;color:#888896;margin-top:12px}
.studio-page .field-label{font-size:12px;margin:24px 0 10px;font-weight:600}
.studio-page textarea{font-size:13px;line-height:1.7;min-height:142px;padding:12px 13px;border-color:#e7e7ed;background:#fff;max-height:280px;border-radius:10px}
.studio-page textarea::placeholder{color:#9999a6}
.studio-page .prompt-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:7px;color:#9696a3;font-size:10px}
.studio-page #promptHint{display:none}
.studio-page .optional-row{display:block;margin-top:22px}
.studio-page .reference-drop{width:100%}
.studio-page .ref-add{width:100%;padding:13px 12px;border:1px dashed #dadae5;border-radius:10px;font-size:12px;background:#fff;color:#4e4e5d;min-height:49px;gap:9px}
.studio-page .ref-add:hover{background:#f9f9fe;border-color:#9d9ee3}
.studio-page .optional-label{margin-left:auto;font-size:10px;color:#8c8c99}
.studio-page .clip-settings{font-size:12px;margin:20px 0 0;padding-top:3px;border-top:1px solid #ededf2}
.studio-page .clip-settings>summary{display:flex;justify-content:space-between;list-style:none;padding:15px 0 2px;min-height:38px}
.studio-page .clip-settings>summary::-webkit-details-marker{display:none}
.studio-page .clip-settings>summary span{font-size:15px;color:#92929f}
.studio-page .clip-settings[open]{padding-top:3px}
.studio-page .clip-row{gap:12px}
.studio-page .clip-row input,.studio-page .clip-row select{font-size:11px;padding:9px 6px}
.studio-page .settings{font-size:11px;line-height:1.7}
.studio-page .duration-hint{font-size:10px;line-height:1.65;margin-top:12px}
.studio-page .composer-bottom{margin-top:auto;padding-top:26px;gap:10px;flex-direction:column}
.studio-page .composer-bottom .run{width:100%;min-height:44px;border-radius:10px;order:1;font-size:13px;box-shadow:0 3px 8px #5b5ee818}
.studio-page .composer-bottom .run-sub{order:2;font-size:10px;text-align:center;width:100%;line-height:1.6}
.studio-page .composer-bottom .form-error{order:0;font-size:12px;line-height:1.65}
.studio-page .run kbd{display:block;margin-left:auto;opacity:.65;font:10px -apple-system,BlinkMacSystemFont,sans-serif}
.studio-page .run svg{width:16px;height:16px}
.studio-page .file-name{font-size:11px}.studio-page .file-meta{font-size:10px}
.canvas-column{display:flex;flex-direction:column;min-width:0}
.studio-page .stage-column,.studio-page[data-mode=empty] .stage-column{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
.studio-page .stage-top,.studio-page[data-mode=input] .stage-top{display:flex;margin:0 0 14px;min-height:32px;padding:0 2px}
.studio-page .stage-label{font-size:11px;color:#646471;gap:7px}
.studio-page .stage-label svg{height:15px;width:15px}
.studio-page .view-switch{padding:3px;border:1px solid #e5e5ec;background:#ececf1;border-radius:8px}
.studio-page .view-switch button{font-size:11px;padding:5px 13px;border-radius:5px}
.studio-page .view-switch button:disabled{opacity:.35}
.studio-page .stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:490px;background-color:#fafafb;background-image:radial-gradient(#d8d8e3 .7px,transparent .7px);background-size:20px 20px;border:1px solid #e1e1e9;border-radius:16px;position:relative;overflow:hidden}
.studio-page .welcome{width:100%;max-width:640px;margin:0;padding:48px 30px 36px;text-align:center}
.canvas-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;margin:0 auto 20px;background:#ededff;color:#6465da;box-shadow:0 3px 12px #5353bb05}
.canvas-mark svg{height:26px;width:26px;stroke-width:1.25}
.canvas-eyebrow{font-size:10px;letter-spacing:2px;color:#898996;margin:0 0 12px}
.canvas-intro h1{font-size:29px;letter-spacing:-.9px;line-height:1.3;font-weight:550;margin:0 0 12px}
.canvas-intro>p:last-child{font-size:13px;line-height:1.8;color:#81818e;margin:0}
.studio-page .starter-label{margin:38px 0 14px;font-size:10px;letter-spacing:.2px;color:#92929f}
.studio-page .example-grid{gap:14px}
.studio-page .example-card{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:6px;border-radius:12px;overflow:hidden;box-shadow:0 3px 10px #25254204}
.studio-page .example-card:hover{transform:translateY(-2px);border-color:#b5b6e7;box-shadow:0 5px 15px #2525420b}
.studio-page .example-thumb{width:100%;height:auto;aspect-ratio:7/4;border-radius:7px;background:#eeeef4;overflow:hidden}
.studio-page .example-copy{padding:12px 9px 10px;position:relative}
.studio-page .example-copy:after{content:"↗";position:absolute;right:9px;top:16px;font-size:15px;color:#9b9baa}
.studio-page .example-copy strong{font-size:12px;font-weight:550}
.studio-page .example-copy span{font-size:10px;margin-top:3px;color:#9393a1}
.example-note{font-size:10px;line-height:1.6;color:#a0a0ad;margin:17px 0 0}
.workspace-foot{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:#9696a4;margin:14px 2px 0}
.workspace-foot span{display:inline-flex;align-items:center;gap:5px}
.workspace-foot svg{height:12px;width:12px}
.workspace-foot a{display:inline-flex;gap:5px;align-items:center}
.studio-page .media-view{width:100%;padding:24px}
.studio-page .video-pane video,.studio-page[data-mode=input] .video-pane video{height:auto;width:100%;aspect-ratio:7/4;max-height:calc(100dvh - 260px);object-fit:contain;background:#17171c;border-radius:8px}
.studio-page .pane-label{font-size:10px;margin-bottom:10px;color:#797986}
.studio-page .compare-view{gap:18px;padding:24px}
.studio-page .compare-view video{aspect-ratio:7/4;object-fit:cover}
.studio-page .reference-badge{position:absolute;bottom:13px;right:13px;background:#fff;box-shadow:0 2px 5px #0000000b}
.studio-page .state-row{margin:18px 2px 0;gap:9px}
.studio-page .state-copy strong{font-size:12px}
.studio-page .state-copy p{font-size:11px;margin:3px 0}
.studio-page .state-symbol{width:21px;height:21px}
.studio-page .result-actions{margin:14px 2px 0}
.studio-page .result-actions .button{font-size:11px}
.studio-page .result-format{font-size:10px}
.studio-page .job-summary{margin-bottom:24px}
.studio-page .job-summary>summary{font-size:12px}
.studio-page .job-meta-grid{display:block;margin:24px 0}
.studio-page .job-meta-grid>div+div{margin-top:14px}
.studio-page .job-prompt{font-size:12px;line-height:1.9;max-height:300px}
.studio-page .result-form-actions{display:flex;flex-direction:column;margin-top:auto;gap:9px}
.studio-page #jobDetails{display:flex;flex:1;flex-direction:column}
.studio-page .result-form-actions .run,.studio-page .return-draft,.studio-page .cancel-queued{font-size:12px;justify-content:center;text-align:center}
.studio-page .return-draft{background:#5b5ee8;border-color:#5b5ee8;color:white;order:-1}
.studio-page .task-queue{margin:0 0 14px;padding:12px 14px;background:#fff;border-radius:12px}
.studio-page .queue-items{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.studio-page .queue-heading{font-size:11px}
.studio-page .queue-task{font-size:11px;padding:9px 10px;background:#f7f7fb;gap:8px}
.studio-page .queue-task-state{font-size:10px}
.studio-page .queue-note{display:none}
.studio-page .completion-notice{font-size:11px;margin:0 0 12px}
.studio-page .connection.offline{margin:8px 20px 0;max-width:none}
.studio-page .transport{margin:14px 2px 0}
@media(min-width:901px) and (max-height:800px){
 .studio-page .composer{padding:20px}
 .studio-page .composer-heading{margin-bottom:16px}
 .studio-page .upload-zone{height:120px}
 .studio-page textarea{min-height:104px}
 .studio-page .field-label{margin-top:18px}
 .studio-page .optional-row{margin-top:16px}
 .studio-page .clip-settings{margin-top:14px}
 .studio-page .composer-bottom{padding-top:20px}
 .studio-page .welcome{max-width:560px;padding:24px}
 .canvas-mark,.canvas-eyebrow{display:none}
 .canvas-intro h1{font-size:26px}
 .studio-page .starter-label{margin-top:26px}
 .studio-page .stage{min-height:490px}
}
@media(min-width:901px){
 .studio-page .workspace{height:calc(100dvh - 72px);min-height:0}
 .control-column{min-height:0;overflow:auto;scrollbar-width:thin}
 .control-column .composer{flex:1 0 auto}
 .canvas-column{min-height:0}
 .studio-page .stage{min-height:0}
 .studio-page .welcome{max-height:100%;overflow:auto;scrollbar-width:thin}
 .studio-page .job-prompt{max-height:180px}
 .studio-page .job-meta-grid{display:flex;gap:20px;margin:18px 0}
 .studio-page .job-meta-grid>div+div{margin-top:0}
}
@media(max-width:1100px) and (min-width:901px){.studio-page .workspace{grid-template-columns:300px minmax(0,1fr);gap:16px;padding:16px}.studio-page .composer{padding:20px}.studio-page .welcome{padding:30px 22px}.canvas-intro h1{font-size:25px}.studio-page .example-grid{gap:10px}.studio-page .example-copy{padding:10px 6px}.studio-page .example-copy:after{display:none}}
@media(max-width:900px){
 .studio-page .workspace{display:flex;flex-direction:column;padding:16px;gap:20px;min-height:0;width:auto;margin:0}
 .studio-page .site-header{padding:16px 20px;gap:12px;flex-wrap:wrap;height:auto;min-height:72px}
 .studio-page .studio-label{display:none}
 .studio-page .site-nav{width:auto;padding:0}
 .studio-page .composer{padding:22px}.studio-page .composer-heading{margin-bottom:20px}
 .studio-page .upload-zone{height:142px}.studio-page textarea{min-height:115px;font-size:16px}
 .studio-page .optional-row{margin-top:18px}.studio-page .composer-bottom{padding-top:24px}
 .studio-page .stage{min-height:440px;flex:none}
 .studio-page .welcome{padding:30px 20px 24px;max-width:580px}
 .canvas-intro h1{font-size:25px}.canvas-intro>p:last-child{font-size:12px}
 .canvas-mark{width:44px;height:44px;margin-bottom:16px}
 .studio-page .starter-label{margin-top:26px}
 .studio-page .stage-top{margin-bottom:12px}
 .studio-page[data-mode=empty] .stage-top{display:none}
 .studio-page .example-copy{padding:10px 6px 7px}
 .studio-page .example-copy:after{display:none}
 .studio-page .example-copy strong{font-size:11px}
 .studio-page .example-copy span{font-size:9px}
 .studio-page .media-view,.studio-page .compare-view{padding:12px}
 .studio-page:not([data-mode=empty]) .stage{min-height:0;padding:0}
 .studio-page .video-pane video,.studio-page[data-mode=input] .video-pane video{max-height:none;height:auto}
 .studio-page .compare-view{gap:9px}
 .studio-page .pane-label{font-size:9px}
 .studio-page .connection.offline{margin:8px 16px 0}
 .studio-page[data-mode=result] .canvas-column{order:-1}
}
@media(max-width:560px){
 .studio-page .site-header{padding:16px 20px 10px}
 .studio-page .site-nav{width:100%;gap:4px;margin:2px 0 0;justify-content:flex-start}
 .studio-page .site-nav>a{font-size:12px;padding:6px 12px;min-height:36px}
 .studio-page .account-menu{margin-left:auto}.studio-page .account-menu>summary{font-size:12px;min-height:36px;padding:6px 12px}
 .studio-page .workspace{padding:14px;gap:16px}
 .studio-page .composer{padding:20px}
 .studio-page .example-grid{gap:10px}
 .studio-page .welcome{padding:28px 16px 22px}
 .canvas-intro h1{font-size:23px}
 .studio-page .result-actions{gap:10px}
}
