/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--radius-sm:.25rem;--radius-lg:.5rem;--radius-xl:.75rem;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden}.absolute,.sr-only{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.isolate{isolation:isolate}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.grid{display:grid}.hidden{display:none}.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.grayscale{--tw-grayscale:grayscale(100%)}.grayscale,.invert{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}:root{color-scheme:dark;--canvas:#0b0b0c;--surface:#131315;--surface-raised:#1a1a1d;--surface-hover:#212124;--surface-muted:#2a2a2e;--panel:var(--surface);--border:#262629;--border-strong:#343438;--line:var(--border);--ink-1:rgba(255,255,255,0.03);--ink-2:rgba(255,255,255,0.06);--ink-3:rgba(255,255,255,0.1);--ink-4:rgba(255,255,255,0.16);--ink-5:rgba(255,255,255,0.28);--ink-6:rgba(255,255,255,0.45);--scrim-soft:rgba(0,0,0,0.4);--scrim:rgba(0,0,0,0.72);--text:#f2f2f0;--text-secondary:#c9c9c5;--text-muted:#9a9a95;--text-subtle:#6f6f6a;--muted:var(--text-muted);--on-accent:#0f0f12;--on-media:#ffffff;--action:#f2f2f0;--action-text:#111113;--action-hover:#ffffff;--accent:#8f97ff;--accent-strong:#a9afff;--accent-soft:rgba(143,151,255,0.1);--accent-border:rgba(143,151,255,0.32);--accent-glow:rgba(143,151,255,0.55);--studio-primary:var(--accent);--focus:var(--accent);--focus-ring:0 0 0 3px var(--accent-border);--success:#7fcf9a;--success-bg:rgba(127,207,154,0.1);--success-border:rgba(127,207,154,0.32);--warning:#e3b96e;--warning-bg:rgba(227,185,110,0.1);--warning-border:rgba(227,185,110,0.32);--danger:#f08a83;--danger-bg:rgba(240,138,131,0.1);--danger-border:rgba(240,138,131,0.32);--shadow-sm:0 1px 2px rgba(0,0,0,0.3);--shadow-md:0 8px 24px -8px rgba(0,0,0,0.55);--shadow-lg:0 18px 44px -12px rgba(0,0,0,0.7);--radius-sm:8px;--radius:12px;--radius-lg:16px;--radius-xl:20px;--radius-pill:999px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;--font-mono:ui-monospace,"SF Mono",Menlo,monospace}[data-theme=light]{color-scheme:light;--canvas:#f4f4f2;--surface:#ffffff;--surface-raised:#fafaf8;--surface-hover:#f1f1ee;--surface-muted:#e6e6e2;--border:#e3e3df;--border-strong:#cfcfca;--ink-1:rgba(17,17,19,0.03);--ink-2:rgba(17,17,19,0.05);--ink-3:rgba(17,17,19,0.08);--ink-4:rgba(17,17,19,0.12);--ink-5:rgba(17,17,19,0.2);--ink-6:rgba(17,17,19,0.32);--scrim-soft:rgba(17,17,19,0.28);--scrim:rgba(17,17,19,0.55);--text:#161618;--text-secondary:#3a3a3d;--text-muted:#6a6a6e;--text-subtle:#8f8f93;--on-accent:#ffffff;--action:#161618;--action-text:#ffffff;--action-hover:#000000;--accent:#4f57d6;--accent-strong:#3d45c4;--accent-soft:rgba(79,87,214,0.08);--accent-border:rgba(79,87,214,0.3);--accent-glow:rgba(79,87,214,0.35);--success:#1f8a4c;--success-bg:rgba(31,138,76,0.09);--success-border:rgba(31,138,76,0.3);--warning:#9a6b12;--warning-bg:rgba(154,107,18,0.09);--warning-border:rgba(154,107,18,0.3);--danger:#c93f36;--danger-bg:rgba(201,63,54,0.08);--danger-border:rgba(201,63,54,0.3);--shadow-sm:0 1px 2px rgba(17,17,19,0.08);--shadow-md:0 8px 24px -8px rgba(17,17,19,0.16);--shadow-lg:0 18px 44px -12px rgba(17,17,19,0.22)}*{box-sizing:border-box}body,html{min-width:320px;background:var(--canvas)}body{margin:0;min-height:100dvh;overflow-x:hidden;color:var(--text);font-family:var(--font);font-size:1rem;line-height:1.5;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}a,button,label{-webkit-tap-highlight-color:transparent}a,button{color:inherit}a{text-decoration:none}a,button:not(:disabled),label[for]{cursor:pointer}[aria-disabled=true],button:disabled{cursor:not-allowed;opacity:.48}a,button,input,select,textarea{outline:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{box-shadow:0 0 0 3px var(--accent-border)}input,select,textarea{width:100%;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text)}input,select{min-height:48px;padding:0 14px}textarea{padding:14px;resize:vertical;line-height:1.55}input::placeholder,textarea::placeholder{color:var(--text-subtle)}input:hover,select:hover,textarea:hover{border-color:var(--border-strong)}input:focus,select:focus,textarea:focus{border-color:var(--focus)}::selection{background:var(--accent-border)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--radius-pill);background:var(--surface-muted);background-clip:content-box}.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}.brand-mark{width:30px;height:30px;flex:0 0 auto;color:currentColor}.danger-button,.primary-button,.secondary-button,.status-button-approved{min-height:46px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:var(--radius-lg);font-size:.875rem;font-weight:600;line-height:1.2;white-space:nowrap;transition:background .14s ease,border-color .14s ease,color .14s ease}.primary-button{background:var(--action);color:var(--action-text)}.primary-button:hover:not(:disabled){background:var(--action-hover)}.secondary-button{border-color:var(--border);background:var(--surface-raised);color:var(--text)}.secondary-button:hover:not(:disabled){border-color:var(--border-strong);background:var(--surface-hover)}.danger-button{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger)}.status-button-approved{border-color:var(--success-border);background:var(--success-bg);color:var(--success)}.text-button{min-height:40px;padding:0 6px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);font-size:.875rem;font-weight:500}.text-button:hover:not(:disabled){color:var(--text)}.action-error,.form-error,.inline-error{color:var(--danger)}.form-error,.form-notice,.inline-error{margin:0;font-size:.875rem;line-height:1.45}.form-error,.form-notice{padding:12px 14px;border:1px solid var(--danger-border);border-radius:var(--radius);background:var(--danger-bg)}.status-pending{color:var(--warning);font-size:.875rem;white-space:nowrap}.form-notice{border-color:var(--success-border);background:var(--success-bg);color:var(--success)}.status-danger,.status-neutral,.status-success{min-height:30px;padding:5px 10px;display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:var(--radius-pill);font-size:.875rem;line-height:1.2;white-space:nowrap}.status-success{border-color:var(--success-border);background:var(--success-bg);color:var(--success)}.status-danger{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger)}.status-neutral{color:var(--text-muted)}.auth-screen{width:100%;min-height:100dvh;padding:var(--auth-pad,32px);display:grid;place-items:center}.auth-card{width:min(100%,480px);padding:var(--auth-card-pad,32px);display:flex;flex-direction:column;gap:var(--auth-gap,20px);border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface)}.auth-brand,.wordmark{display:inline-flex;align-items:center;gap:10px;font-weight:600;letter-spacing:-.02em}.auth-brand{align-self:flex-start;font-size:1rem}.auth-heading h1,.page-heading h1,.stage-header h1{margin:0;font-size:clamp(1.75rem,4vw,2.25rem);font-weight:500;line-height:1.15;letter-spacing:-.035em}.auth-heading p,.page-heading p{margin:8px 0 0;color:var(--text-muted)}.auth-switch{padding:4px;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--canvas)}.setup-screen{min-height:100dvh;padding:clamp(20px,4vw,42px);display:grid;grid-template-rows:auto 1fr;gap:26px;background:radial-gradient(circle at 68% -8%,var(--accent-border),transparent 31%),var(--canvas)}.setup-brand{width:min(100%,1120px);margin:0 auto;display:flex;align-items:center;gap:10px;font-weight:600}.setup-brand small{margin-left:auto;color:var(--text-subtle);font-size:.8rem;font-weight:500}.setup-card{width:min(100%,960px);margin:auto;display:flex;flex-direction:column;gap:24px}.setup-heading{max-width:760px}.provider-kicker,.setup-heading>span,.setup-option-label{display:block;color:var(--accent);font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.setup-heading h1{margin:10px 0 12px;font-size:clamp(2rem,5vw,3.6rem);font-weight:500;line-height:1.02;letter-spacing:-.05em}.setup-heading p{max-width:720px;margin:0;color:var(--text-muted);font-size:1rem}.setup-options{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}.setup-option{min-height:250px;padding:24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:28px;border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface)}.setup-option-featured{border-color:var(--accent-border);background:linear-gradient(145deg,var(--accent-soft),var(--surface) 58%)}.setup-option h2,.setup-pairing-ready h2{margin:10px 0 8px;font-size:1.35rem;font-weight:600;letter-spacing:-.03em}.setup-option p,.setup-pairing-ready p{margin:0;color:var(--text-muted)}.setup-skip{align-self:center;min-height:42px;border:0;background:transparent;color:var(--text-subtle);font-size:.875rem}.setup-skip:hover:not(:disabled){color:var(--text)}.setup-pairing-ready{padding:26px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;border:1px solid var(--success-border);border-radius:var(--radius-xl);background:linear-gradient(145deg,var(--success-bg),var(--surface) 60%)}.setup-success-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--success-bg);color:var(--success);font-size:1.2rem}.setup-pairing-ready details{grid-column:2/-1;padding-top:16px;border-top:1px solid var(--border)}.setup-pairing-ready summary{color:var(--text-muted);cursor:pointer}.setup-pairing-ready details label{margin-top:14px}.setup-pairing-ready>.secondary-button{grid-column:2/-1;justify-self:start}.auth-switch button{min-height:42px;border:0;border-radius:var(--radius);background:transparent;color:var(--text-muted);font-size:.875rem;font-weight:600}.auth-switch button[aria-selected=true]{background:var(--surface-raised);color:var(--text)}.auth-form{display:flex;flex-direction:column;gap:16px}.auth-form label,.new-project-fields label,.provider-form label,.source-add-form label{display:flex;flex-direction:column;gap:8px}.auth-form label>span,.new-project-fields label>span,.provider-form label>span,.source-add-form label>span{color:var(--text-muted);font-size:.875rem;font-weight:500}.auth-form .primary-button{width:100%;margin-top:2px}.auth-help{align-self:center;color:var(--text-muted);font-size:.875rem}.auth-help:hover{color:var(--text)}.auth-success{display:flex;flex-direction:column;gap:16px}.auth-success p{margin:0;color:var(--text-muted)}.app-shell{min-height:100dvh}.app-shell,.topbar{background:var(--canvas)}.topbar{position:sticky;z-index:40;top:0;min-height:70px;padding:0 28px;display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(190px,1fr);align-items:center;gap:24px;border-bottom:1px solid var(--border);backdrop-filter:blur(18px)}.wordmark{justify-self:start;font-size:1rem}.topnav{display:flex;align-items:center;gap:6px}.mobile-nav a,.topnav a{min-height:42px;padding:0 14px;display:flex;align-items:center;border-radius:var(--radius);color:var(--text-muted);font-size:.875rem;font-weight:500}.mobile-nav a.is-active,.topnav a.is-active,.topnav a:hover{background:var(--surface-raised);color:var(--text)}.topbar-actions{justify-self:end;display:flex;align-items:center;gap:12px}.topbar-create{min-height:42px;padding:0 16px}.account-menu{position:relative}.account-trigger{min-height:42px;padding:4px 10px 4px 4px;display:flex;align-items:center;gap:9px;border:1px solid transparent;border-radius:var(--radius-pill);background:transparent;color:var(--text-muted);font-size:.875rem}.account-trigger:hover{border-color:var(--border);background:var(--surface);color:var(--text)}.account-trigger>span:first-child{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--surface-raised);color:var(--text);font-weight:600}.account-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-popover{position:absolute;z-index:50;top:calc(100% + 10px);right:0;width:260px;padding:8px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-raised);box-shadow:0 20px 50px rgba(0,0,0,.42)}.account-popover>div{padding:10px 12px 14px;display:flex;flex-direction:column;gap:2px;border-bottom:1px solid var(--border)}.account-popover>div span,.account-popover>div strong{overflow:hidden;text-overflow:ellipsis}.account-popover>div span{color:var(--text-muted);font-size:.875rem}.account-popover a,.account-popover button{width:100%;min-height:44px;padding:0 12px;display:flex;align-items:center;border:0;border-radius:var(--radius);background:transparent;color:var(--text-muted);font-size:.875rem}.account-popover a:hover,.account-popover button:hover{background:var(--surface-hover);color:var(--text)}.app-content{width:min(100%,1480px);margin:0 auto;padding:34px clamp(18px,3vw,42px) 70px}.provider-required-banner{margin-bottom:24px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--accent-soft);border-radius:var(--radius);background:var(--warning-bg);color:var(--warning);font-size:.875rem}.provider-required-banner a{flex:none;color:var(--text);font-weight:600}.app-content:has(.studio-workspace){width:100%;padding:0}.app-content:has(.studio-workspace) .provider-required-banner{margin:16px clamp(18px,3vw,42px) 0}.mobile-nav{display:none}.assets-page,.projects-page,.settings-page{display:flex;flex-direction:column;gap:28px}.page-heading{min-height:66px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.projects-heading{align-items:center}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.project-tile{min-width:0}.project-cover{aspect-ratio:16/9;display:block;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.project-cover img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .22s ease}.project-cover:hover img{transform:scale(1.02)}.project-cover-empty{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:12px;color:var(--text-subtle);font-size:.875rem}.empty-frame svg,.project-cover-empty svg{width:66px;color:var(--text-subtle)}.project-meta{padding:14px 2px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.project-meta>div{min-width:0}.project-meta h2{margin:0;overflow:hidden;color:var(--text);font-size:1rem;font-weight:600;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.project-meta p{margin:5px 0 0;color:var(--text-subtle);font-size:.875rem}.asset-skeleton,.project-skeleton{min-height:260px;border-radius:var(--radius-lg);background:var(--surface);animation:pulse 1.2s ease-in-out infinite alternate}@keyframes pulse{to{opacity:.55}}.empty-projects,.error-panel,.simple-empty{min-height:440px;padding:42px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.empty-projects h2,.error-panel strong,.simple-empty h2{margin:22px 0 0;font-size:1.25rem}.empty-projects p,.error-panel p,.simple-empty p{max-width:560px;margin:8px 0 22px;color:var(--text-muted)}.new-project-screen{min-height:calc(100dvh - 140px);display:grid;place-items:start center}.new-project-form{width:min(100%,820px);padding:var(--new-pad,32px);display:flex;flex-direction:column;gap:var(--new-gap,20px);border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface)}.new-project-form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.back-label{display:block;margin-bottom:10px;color:var(--text-subtle);font-size:.875rem;font-weight:500}.new-project-form h1{margin:0;font-size:var(--new-title,2rem);font-weight:500;letter-spacing:-.035em}.new-project-form header p{max-width:620px;margin:8px 0 0;color:var(--text-muted)}.source-count{padding:7px 10px;border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--text-muted);font-size:.875rem}.new-project-fields{display:flex;flex-direction:column;gap:22px}.new-project-fields fieldset{padding:0;border:0}.new-project-fields legend{margin-bottom:10px;color:var(--text-muted);font-size:.875rem;font-weight:500}.source-url-list{display:flex;flex-direction:column;gap:10px}.source-url-list label{position:relative;flex-direction:row;align-items:center;gap:10px}.source-url-list label>span{width:32px;flex:0 0 32px;color:var(--text-subtle);font-variant-numeric:tabular-nums;text-align:center}.source-url-list label small{position:absolute;right:14px;color:var(--text-subtle);font-size:.875rem}.source-field-remove{min-height:40px;padding:0 4px;border:0;background:transparent;color:var(--text-subtle);font-size:.8rem}.source-field-remove:hover{color:var(--danger)}.source-field-add{min-height:42px;margin:10px 0 0 42px;padding:0;border:0;background:transparent;color:var(--text-muted);font-size:.875rem;text-align:left}.source-field-add:hover{color:var(--text)}.new-project-form>footer{min-height:var(--new-footer,72px);padding-top:14px;display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;border-top:1px solid var(--border)}.settings-note{padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.settings-note p{margin:4px 0 0;color:var(--text-muted)}.provider-settings-list{display:flex;flex-direction:column;gap:14px}.provider-row{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);overflow:hidden}.provider-row-featured{border-color:var(--accent-border)}.provider-summary{min-height:96px;padding:18px 20px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:18px}.provider-summary h2{margin:0;font-size:1.125rem}.provider-summary p{margin:4px 0 0;color:var(--text-muted)}.status-connected,.status-disconnected{font-size:.875rem;white-space:nowrap}.status-connected{color:var(--success)}.status-disconnected{color:var(--text-subtle)}.provider-form{padding:20px;display:flex;flex-direction:column;gap:18px;border-top:1px solid var(--border);background:var(--canvas)}.provider-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.provider-form-actions{display:flex;justify-content:flex-end;gap:10px}.app-modal-backdrop{position:fixed;inset:0;z-index:100;padding:20px;display:grid;place-items:center;background:var(--scrim)}.app-modal{width:min(100%,440px);padding:24px;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface-raised);box-shadow:0 24px 72px rgba(0,0,0,.42);animation:app-modal-enter .16s cubic-bezier(.22,1,.36,1)}.app-modal h3{margin:0;font-size:1.25rem;line-height:1.3}.app-modal>p:not(.form-error){margin:10px 0 0;color:var(--text-muted)}.app-modal .form-error{margin:16px 0 0}.app-modal-actions{margin-top:24px;display:flex;justify-content:flex-end;gap:10px}@keyframes app-modal-enter{0%{opacity:0;transform:translateY(8px) scale(.985)}}@media (max-width:520px){.app-modal-actions{display:grid;grid-template-columns:1fr}}.flow-instructions p{margin:0;color:var(--text-muted)}.provider-row-suno{border-color:var(--accent-border)}.suno-connection-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px}.suno-connection-panel strong{font-size:1rem}.suno-connection-panel p{max-width:780px;margin:6px 0 0;color:var(--text-muted);font-size:1rem;line-height:1.5}.suno-connection-panel small{display:block;margin-top:8px;color:var(--text-subtle);font-size:.875rem}.companion-instructions p,.companion-instructions small{margin:0;color:var(--text-muted)}.companion-pairing-box{padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.companion-pairing-box>.primary-button,.companion-pairing-box>.secondary-button,.companion-pairing-box>p,.companion-pairing-box>summary{grid-column:1/-1}.companion-pairing-box>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--text-muted);font-size:.875rem}.companion-pairing-box>p[role=status]{color:var(--success)}.openai-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.openai-method-card{min-width:0;height:100%;padding:18px;display:flex;flex-direction:column;gap:16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.openai-method-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.openai-method-card h3{margin:2px 0 0;font-size:1.05rem}.openai-method-card p,.openai-method-copy{margin:0;color:var(--text-muted)}.openai-method-card .companion-auth-explainer{padding:12px 14px;border-radius:var(--radius);background:var(--canvas);color:var(--text-muted)}.companion-auth-explainer strong{display:block;margin-bottom:3px;color:var(--text)}.openai-method-actions{margin-top:auto;display:flex;justify-content:flex-end;flex-wrap:wrap;align-items:center;gap:12px}.openai-api-form{flex:1;display:flex;flex-direction:column;gap:14px}.openai-api-form .provider-form-actions{margin-top:auto}.asset-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.asset-toolbar>label{width:min(100%,340px)}.asset-toolbar>div{padding:4px;display:flex;gap:3px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.asset-toolbar button{min-height:40px;padding:0 12px;border:0;border-radius:var(--radius);background:transparent;color:var(--text-muted);font-size:.875rem}.asset-toolbar button[aria-pressed=true]{background:var(--surface-raised);color:var(--text)}.asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.asset-folder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.asset-media-folder-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.asset-breadcrumbs{margin-bottom:9px;display:flex;align-items:center;gap:8px;color:var(--text-subtle);font-size:.8125rem}.asset-breadcrumbs a{color:var(--text-muted);transition:color .16s ease}.asset-breadcrumbs a:hover{color:var(--text)}.asset-technical-folder .asset-folder-cover img,.asset-technical-folder .asset-folder-cover video{filter:saturate(.72) brightness(.78)}.asset-technical-folder .asset-folder-info strong:before{width:8px;height:8px;margin-right:9px;display:inline-block;border:1px solid var(--text-subtle);border-radius:var(--radius-sm);content:"";transform:translateY(-1px)}.asset-folder-card{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);transition:border-color .16s ease,transform .16s ease}.asset-folder-card:hover{border-color:var(--border-strong);transform:translateY(-2px)}.asset-folder-cover{position:relative;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;background:var(--canvas);color:var(--text-subtle);font-size:.875rem}.asset-folder-cover:after{position:absolute;inset:auto 0 0;height:45%;content:"";background:linear-gradient(transparent,var(--scrim));pointer-events:none}.asset-folder-cover img,.asset-folder-cover video{width:100%;height:100%;display:block;object-fit:cover}.asset-folder-artwork{position:absolute;inset:0;overflow:hidden;background:radial-gradient(circle at 72% 18%,var(--ink-3),transparent 32%),linear-gradient(145deg,var(--surface-raised),var(--surface) 72%)}.asset-folder-artwork:before{position:absolute;inset:0;content:"";background:linear-gradient(115deg,transparent 22%,var(--ink-1) 50%,transparent 78%);transform:translateX(-32%)}.asset-folder-artwork span{position:absolute;display:block;border:1px solid var(--ink-4);background:var(--ink-2)}.asset-folder-artwork.is-images span,.asset-folder-artwork.is-sources span{width:30%;aspect-ratio:4/3;border-radius:var(--radius-sm);transform:rotate(-3deg)}.asset-folder-artwork.is-images span:first-child,.asset-folder-artwork.is-sources span:first-child{top:19%;left:13%}.asset-folder-artwork.is-images span:nth-child(2),.asset-folder-artwork.is-sources span:nth-child(2){top:31%;left:35%;transform:rotate(4deg)}.asset-folder-artwork.is-images span:nth-child(3),.asset-folder-artwork.is-sources span:nth-child(3){top:17%;right:12%;transform:rotate(-1deg)}.asset-folder-artwork.is-images span:nth-child(4),.asset-folder-artwork.is-sources span:nth-child(4){bottom:15%;left:21%;transform:rotate(2deg)}.asset-folder-artwork.is-images span:nth-child(5),.asset-folder-artwork.is-sources span:nth-child(5){right:22%;bottom:11%;transform:rotate(-4deg)}.asset-folder-artwork.is-sources{filter:saturate(.3) brightness(.82)}.asset-folder-artwork.is-renders span,.asset-folder-artwork.is-videos span{width:52%;aspect-ratio:16/9;border-radius:var(--radius-sm)}.asset-folder-artwork.is-renders span:first-child,.asset-folder-artwork.is-videos span:first-child{top:17%;left:16%;transform:rotate(-4deg)}.asset-folder-artwork.is-renders span:nth-child(2),.asset-folder-artwork.is-videos span:nth-child(2){top:29%;left:28%;transform:rotate(3deg)}.asset-folder-artwork.is-renders span:nth-child(3),.asset-folder-artwork.is-videos span:nth-child(3){right:10%;bottom:14%;transform:rotate(-2deg)}.asset-folder-artwork.is-renders span:nth-child(4),.asset-folder-artwork.is-renders span:nth-child(5),.asset-folder-artwork.is-videos span:nth-child(4),.asset-folder-artwork.is-videos span:nth-child(5){display:none}.asset-folder-artwork.is-renders span:nth-child(2){border-color:var(--ink-5);background:var(--ink-3)}.asset-folder-artwork.is-sounds span,.asset-folder-artwork.is-voice span{bottom:31%;width:7px;border:0;border-radius:var(--radius-pill);background:var(--ink-5)}.asset-folder-artwork.is-sounds span:first-child,.asset-folder-artwork.is-voice span:first-child{left:32%;height:20%}.asset-folder-artwork.is-sounds span:nth-child(2),.asset-folder-artwork.is-voice span:nth-child(2){left:41%;height:39%}.asset-folder-artwork.is-sounds span:nth-child(3),.asset-folder-artwork.is-voice span:nth-child(3){left:50%;height:52%}.asset-folder-artwork.is-sounds span:nth-child(4),.asset-folder-artwork.is-voice span:nth-child(4){left:59%;height:33%}.asset-folder-artwork.is-sounds span:nth-child(5),.asset-folder-artwork.is-voice span:nth-child(5){left:68%;height:16%}.asset-folder-artwork.is-sounds span:nth-child(odd){background:var(--ink-3)}.asset-folder-artwork.is-subtitles span{left:22%;height:7px;border:0;border-radius:var(--radius-pill);background:var(--ink-4)}.asset-folder-artwork.is-subtitles span:first-child{top:26%;width:55%}.asset-folder-artwork.is-subtitles span:nth-child(2){top:38%;width:42%}.asset-folder-artwork.is-subtitles span:nth-child(3){top:54%;width:58%}.asset-folder-artwork.is-subtitles span:nth-child(4){top:66%;width:34%}.asset-folder-artwork.is-subtitles span:nth-child(5){display:none}.asset-folder-cover i{position:absolute;z-index:1;right:12px;bottom:10px;padding:5px 8px;border-radius:var(--radius-pill);background:var(--scrim);color:var(--text);font-size:.75rem;font-style:normal;backdrop-filter:blur(10px)}.asset-folder-info{min-height:62px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:14px}.asset-folder-info>div{min-width:0;display:flex;flex-direction:column}.asset-folder-info small{color:var(--text-subtle);font-size:.75rem;font-weight:400}.asset-folder-info strong{overflow:hidden;font-size:1rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.asset-text-file{width:min(62%,220px);display:flex;flex-direction:column;gap:10px}.asset-text-file span{height:7px;border-radius:var(--radius-pill);background:var(--border-strong)}.asset-text-file span:nth-child(2){width:82%}.asset-text-file span:nth-child(3){width:93%}.asset-text-file span:nth-child(4){width:68%}.asset-back-link,.asset-folder-info span{color:var(--text-muted);font-size:.875rem}.asset-back-link:hover{color:var(--text)}.asset-project-list{display:flex;flex-direction:column;gap:34px}.asset-project-section{min-width:0}.asset-project-section>header{min-height:64px;margin-bottom:14px;padding-bottom:14px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border)}.asset-project-section>header>div{display:flex;flex-direction:column}.asset-project-section>header>div:last-child{align-items:flex-end}.asset-project-section>header a,.asset-project-section>header span{color:var(--text-muted);font-size:.875rem}.asset-project-section>header a{color:var(--text)}.asset-project-section h2{margin:2px 0 0;font-size:1.2rem}.asset-tile{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.asset-preview,.media-preview{min-height:190px;display:grid;place-items:center;overflow:hidden;background:var(--canvas);color:var(--text-subtle);font-size:.875rem}.asset-preview img,.asset-preview video,.media-preview img,.media-preview video{width:100%;height:100%;display:block;object-fit:cover}.asset-preview audio,.media-preview audio{width:calc(100% - 24px)}.asset-tile>footer{min-height:66px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.asset-tile footer>div{min-width:0;display:flex;flex-direction:column}.asset-tile footer strong{font-size:.875rem}.asset-tile footer a,.asset-tile footer span{color:var(--text-muted);font-size:.875rem}.studio-workspace{min-height:calc(100dvh - 70px);display:flex;flex-direction:column}.studio-project-header{min-height:66px;padding:10px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;border-bottom:1px solid var(--border);background:var(--canvas)}.studio-project-header>div:first-child{min-width:0;display:flex;align-items:center;gap:9px;color:var(--text-subtle);font-size:.875rem}.studio-project-header>div:first-child strong{overflow:hidden;color:var(--text);font-weight:600;text-overflow:ellipsis;white-space:nowrap}.studio-back:hover{color:var(--text)}.studio-provider-selects{display:flex;align-items:center;gap:8px}.studio-provider-selects label{display:flex;align-items:center;gap:7px}.studio-provider-selects label>span{color:var(--text-subtle);font-size:.875rem}.studio-provider-selects select{width:auto;min-height:40px;padding-right:34px;border-radius:var(--radius);font-size:.875rem}.studio-step-trigger{display:none}.studio-body{min-height:0;flex:1;display:grid;grid-template-columns:244px minmax(0,1fr)}.studio-rail{border-right:1px solid var(--border);background:var(--surface)}.studio-rail-mobile-head{display:none}.studio-rail nav{position:sticky;top:136px;padding:14px 10px;display:flex;flex-direction:column;gap:3px}.studio-rail nav button{width:100%;min-height:58px;padding:8px 10px;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:10px;border:0;border-radius:var(--radius);background:transparent;text-align:left}.studio-rail nav button.is-active,.studio-rail nav button:hover:not(:disabled){background:var(--surface-raised)}.studio-rail nav button>span:first-child{position:relative;width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;color:var(--text-subtle);font-size:.75rem;font-variant-numeric:tabular-nums}.studio-step-number>b{position:relative;z-index:1;font-weight:500}.studio-step-spinner{position:absolute;inset:-5px;display:block;border-left:2px solid var(--accent-border);border-bottom:2px solid var(--accent-border);border-right-color:var(--accent-border);border-top-color:var(--accent-border);border-top:2px solid var(--accent);border-right:2px solid var(--accent-glow);border-radius:50%;filter:drop-shadow(0 0 5px var(--accent-border));pointer-events:none}.studio-rail nav button.is-generating>.studio-step-number{border-color:var(--accent-border);color:var(--text)}.studio-rail nav button.is-done>span:first-child{border-color:var(--success-border);background:var(--success-bg);color:var(--success)}.studio-rail nav button>span:last-child{min-width:0;display:flex;flex-direction:column}.studio-rail nav strong{color:var(--text);font-size:.875rem;font-weight:600}.studio-rail nav small{overflow:hidden;color:var(--text-subtle);font-size:.875rem;text-overflow:ellipsis;white-space:nowrap}.stage-auto-failed,.stage-auto-progress,.stage-connection-waiting{min-height:430px;padding:clamp(32px,6vw,72px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border:1px solid var(--border);border-radius:var(--radius-lg);background:linear-gradient(145deg,var(--ink-1),transparent 54%),var(--surface)}.stage-auto-failed>span,.stage-auto-progress>span,.stage-connection-waiting>span{color:var(--text-subtle);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase}.stage-auto-failed h2,.stage-auto-progress h2,.stage-connection-waiting h2{max-width:760px;margin:12px 0 10px;font-size:clamp(1.5rem,3vw,2.35rem);font-weight:600;line-height:1.15;letter-spacing:-.035em}.provider-gate{padding:14px 16px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:14px;border:1px solid var(--accent-border);border-radius:var(--radius-lg);background:linear-gradient(105deg,var(--accent-soft),var(--accent-soft) 48%,var(--surface))}.provider-gate-mark{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--accent-border);border-radius:50%;color:var(--focus);background:var(--accent-soft)}.provider-gate-mark svg{width:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6}.provider-gate>div{min-width:0}.provider-gate strong{display:block;font-size:.875rem;font-weight:600}.provider-gate p{margin:2px 0 0;color:var(--text-muted);font-size:.8125rem}.provider-gate .secondary-button{min-height:40px;white-space:nowrap}.stage-auto-failed p,.stage-auto-progress p,.stage-connection-waiting p{max-width:680px;margin:0;color:var(--text-muted)}.stage-auto-progress>div{width:min(100%,680px);margin:38px 0 24px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.stage-auto-progress>div>i{height:72px;border:1px solid var(--border);border-radius:var(--radius-sm);background:linear-gradient(110deg,var(--surface-raised) 15%,var(--surface-hover) 45%,var(--surface-raised) 75%)}.stage-connection-waiting{border-color:var(--accent-border)}.stage-connection-waiting>div{margin-top:28px;display:flex;flex-wrap:wrap;gap:10px}.stage-connection-waiting .primary-button,.stage-connection-waiting .secondary-button{min-height:46px}.studio-main{min-width:0;padding:0 clamp(18px,3vw,42px) 48px}.stage-header{min-height:116px;padding:24px 0;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--border)}.stage-header>div>span{display:block;margin-bottom:4px;color:var(--text-subtle);font-size:.875rem;font-weight:500}.stage-header h1{font-size:clamp(1.55rem,3vw,2rem)}.action-error{margin-top:18px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--danger-border);border-radius:var(--radius);background:var(--danger-bg);font-size:.875rem}.action-error button{min-height:36px;border:0;background:transparent;color:var(--danger)}.stage-stack{padding:24px 0 0;display:flex;flex-direction:column;gap:18px}.stage-intro{display:flex;align-items:center;justify-content:space-between;gap:18px}.stage-intro p{max-width:740px;margin:0;color:var(--text-muted)}.stage-intro>span{color:var(--text-muted);font-variant-numeric:tabular-nums}.source-add-form{padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.source-work-list{display:flex;flex-direction:column;gap:10px}.source-work-list article{position:relative;min-height:92px;padding:12px;display:grid;grid-template-columns:110px minmax(0,1fr) auto auto;align-items:center;gap:16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);overflow:hidden}.source-processing-line{position:absolute;z-index:2;top:0;right:0;left:0;height:2px;transform-origin:left center;background:var(--focus)}.source-card-processing .source-real-thumb{position:relative}.source-card-processing .source-real-thumb:after{position:absolute;inset:0;content:"";background:linear-gradient(105deg,transparent 20%,var(--ink-4) 45%,transparent 70%);transform:translateX(-110%);animation:source-sheen 1.35s ease-in-out infinite}.source-lock-note{padding:16px 18px;border:1px solid var(--warning-border);border-radius:var(--radius-lg);background:var(--warning-bg)}.source-lock-note p{margin:4px 0 0;color:var(--warning)}.sources-stage>.stage-approval{position:static}@keyframes source-sheen{to{transform:translateX(110%)}}.source-error-detail{grid-column:2/-1;color:var(--danger);font-size:.78rem}.source-real-thumb{width:110px;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;border-radius:var(--radius-sm);background:var(--canvas);color:var(--text-subtle)}.source-real-thumb img{width:100%;height:100%;object-fit:cover}.source-work-list h2{margin:0;font-size:1rem;font-weight:600}.source-work-list p{margin:4px 0 0;overflow:hidden;color:var(--text-muted);font-size:.875rem;text-overflow:ellipsis;white-space:nowrap}.stage-empty,.studio-error{min-height:420px;padding:40px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.stage-empty h2,.studio-error strong{margin:0;font-size:1.5rem;font-weight:500}.stage-empty p,.studio-error p{max-width:640px;margin:10px 0 24px;color:var(--text-muted)}.analysis-failed,.analysis-progress{min-height:430px;padding:44px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.analysis-progress-visual{height:70px;display:flex;align-items:center;gap:7px}.analysis-progress-visual i{width:5px;height:46px;border-radius:var(--radius-pill);background:var(--focus);transform-origin:center}.analysis-progress>span{margin-top:20px;color:var(--focus);font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.analysis-failed h2,.analysis-progress h2{max-width:680px;margin:10px 0 0;font-size:clamp(1.45rem,3vw,2rem);font-weight:500;letter-spacing:-.025em}.analysis-progress-steps{margin-top:26px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.analysis-progress-steps p{margin:0;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);color:var(--text-muted);font-size:.8rem}.analysis-progress small{margin-top:24px;color:var(--text-subtle)}.analysis-failed>span{width:48px;height:48px;border:1px solid var(--danger-border);border-radius:50%;background:var(--danger-bg)}.analysis-failed>span:before{display:grid;place-items:center;height:100%;color:var(--danger);content:"!";font-weight:700}.analysis-failed p{max-width:560px;margin:10px 0 24px;color:var(--text-muted)}.chapter-plan,.content-panel,.production-scene-card,.render-panel,.storyboard-real>section{padding:20px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.chapter-plan h2,.content-panel h2,.production-scene-card h2,.render-panel h2{margin:0;font-size:1.125rem;font-weight:600}.content-panel>p,.panel-heading p,.prose-panel p{margin:8px 0 0;color:var(--text-muted)}.content-panel>span{display:inline-block;margin-top:10px;color:var(--text-subtle);font-size:.875rem}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.panel-heading>span{color:var(--text-subtle);font-size:.875rem}.two-column-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.plan-duration-summary{padding:16px 18px;display:grid;grid-template-columns:minmax(220px,.36fr) minmax(0,1fr);align-items:center;gap:22px;border:1px solid var(--accent-border);border-radius:var(--radius-lg);background:var(--accent-soft)}.plan-duration-summary>div span,.plan-duration-summary>div strong{display:block}.plan-duration-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.plan-duration-summary>div span{color:var(--accent);font-size:.7rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase}.plan-duration-summary>div strong{margin-top:4px;font-size:1.25rem;font-weight:600}.plan-duration-summary>p{margin:0;color:var(--text-muted);font-size:.84rem;line-height:1.5}.content-panel dl{margin:16px 0 0;display:grid;grid-template-columns:minmax(110px,.34fr) minmax(0,1fr);gap:12px 18px}.content-panel dt{color:var(--text-subtle);font-size:.875rem}.content-panel dd{margin:0;color:var(--text-muted)}.content-panel ul{margin:16px 0 0;padding-left:20px;color:var(--text-muted)}.content-panel li+li{margin-top:8px}.pattern-list-real,.production-scene-list,.reference-list-real,.script-chapter-list,.storyboard-real{margin-top:16px;display:flex;flex-direction:column;gap:12px}.pattern-list-real article{padding:16px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 20px;border-top:1px solid var(--border)}.pattern-list-real article:first-child{border-top:0}.pattern-list-real h3,.reference-list-real h3,.thumbnail-concepts-real h3{margin:0;font-size:1rem}.pattern-list-real p,.pattern-list-real small{margin:4px 0 0;color:var(--text-muted)}.pattern-list-real>article>span{color:var(--text-subtle);font-size:.875rem}.pattern-list-real small{grid-column:1/-1;font-size:.875rem}.idea-grid-real{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.idea-grid-real>button{min-height:230px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);text-align:left}.idea-grid-real>button.is-selected,.idea-grid-real>button:hover{border-color:var(--border-strong);background:var(--surface-raised)}.idea-grid-real>button.is-selected{box-shadow:inset 0 0 0 1px var(--text-muted)}.idea-grid-real small,.idea-grid-real span{color:var(--text-subtle);font-size:.875rem}.idea-grid-real h2{margin:14px 0 8px;font-size:1.125rem;font-weight:600}.idea-grid-real p{margin:0 0 18px;color:var(--text-muted)}.idea-grid-real small{margin-top:auto}.chapter-plan>article{min-height:96px;padding:16px 0;display:grid;grid-template-columns:40px minmax(0,1fr) 150px;align-items:center;gap:16px;border-top:1px solid var(--border)}.chapter-plan>article:nth-child(2){margin-top:12px}.chapter-plan>article>span{color:var(--text-subtle);font-variant-numeric:tabular-nums}.chapter-plan h3{margin:0}.chapter-plan p{margin:4px 0 12px;color:var(--text-muted)}.chapter-plan small{color:var(--text-subtle);text-align:right}.script-chapter-card{padding:20px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.script-chapter-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.script-chapter-card header>span:first-child{color:var(--text-subtle);font-size:.875rem}.script-chapter-card h2{margin:0;font-size:1.125rem}.script-chapter-card textarea{margin-top:16px;background:var(--canvas)}.script-chapter-card footer{margin-top:12px;display:flex;align-items:center;justify-content:flex-end;gap:10px}.script-chapter-card footer>span{margin-right:auto;color:var(--text-subtle);font-size:.875rem}.script-chapter-copy{margin-top:18px;color:var(--text-muted);line-height:1.7}.script-chapter-copy p{margin:0 0 12px}.inline-revision{margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.inline-revision label{display:block;margin-bottom:8px;font-weight:600}.inline-revision textarea{width:100%;min-height:92px;margin:0;resize:vertical}.inline-revision>p{margin:8px 0 12px;color:var(--text-subtle);font-size:.875rem}.inline-revision>div{display:flex;justify-content:flex-end;gap:8px}.progressive-generation-card{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.progressive-generation-card>header{padding:18px 20px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--border)}.progressive-generation-card>header small,.progressive-generation-card>header span{color:var(--text-subtle);font-size:.875rem}.progressive-generation-card>header h2{margin:0;font-size:1.1rem}.progressive-generation-body{padding:20px}.progressive-generation-body>p{margin:6px 0 18px;color:var(--text-muted)}.progressive-generation-bar{height:5px;overflow:hidden;border-radius:var(--radius-pill);background:var(--canvas)}.progressive-generation-bar i{display:block;width:54%;height:100%;border-radius:inherit;background:var(--focus);animation:generation-progress 1.8s ease-in-out infinite alternate}.progressive-generation-bar i[data-mode=determinate]{animation:none;transform:none;transition:width .6s cubic-bezier(.22,1,.36,1)}.progressive-generation-body ul{margin:18px 0 14px;padding:0;display:grid;gap:9px;list-style:none}.progressive-generation-body li{display:flex;gap:9px;color:var(--text-subtle)}.progressive-generation-body li[data-state=done]{color:var(--success)}.progressive-generation-body li[data-state=active]{color:var(--text)}.progressive-generation-body>small{color:var(--text-subtle)}@keyframes generation-progress{0%{transform:translateX(-18%)}to{transform:translateX(86%)}}.stage-regenerate{align-self:flex-start}.stage-approved-note{padding:14px 16px;border:1px solid var(--success-border);border-radius:var(--radius);background:var(--success-bg);color:var(--success)}.media-reference-grid{margin-top:16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.media-reference-grid .media-preview{min-height:0;aspect-ratio:16/9;border-radius:var(--radius)}.muted-copy{color:var(--text-muted)}.media-upload{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.media-upload input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.media-upload .inline-error{flex-basis:100%}.reference-list-real>article{min-height:150px;padding-top:14px;display:grid;grid-template-columns:190px minmax(0,1fr) auto;align-items:center;gap:18px;border-top:1px solid var(--border)}.reference-empty,.reference-list-real .media-preview{width:190px;min-height:110px;border-radius:var(--radius)}.reference-empty{display:grid;place-items:center;background:var(--canvas);color:var(--text-subtle);font-size:.875rem}.reference-list-real article>div:nth-child(2)>span{color:var(--text-subtle);font-size:.875rem;text-transform:capitalize}.reference-identity{margin:4px 0 8px;color:var(--text-muted)}.source-frames-disclosure>summary{min-height:44px;padding:0;display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--text);font-size:1rem;font-weight:600}.source-frames-disclosure>summary small{color:var(--text-subtle);font-size:.875rem;font-weight:500}.source-frames-disclosure>p{max-width:70ch;margin:12px 0 0;color:var(--text-muted)}details{color:var(--text-muted)}summary{min-height:36px;padding:7px 0;font-weight:500;cursor:pointer}details p,summary{color:var(--text-muted);font-size:.875rem}details p{margin:8px 0}.reference-actions{display:flex;flex-direction:column;gap:8px}.storyboard-image-summary,.universe-generation-status,.universe-image-connection{margin-top:16px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--canvas)}.storyboard-image-summary>div:first-child,.universe-image-connection{display:flex;align-items:center;justify-content:space-between;gap:16px}.storyboard-image-summary p,.universe-generation-status small,.universe-image-connection p{margin:0;color:var(--text-muted)}.universe-generation-status{display:grid;gap:10px}.universe-board-groups{margin-top:18px;display:grid;gap:24px}.universe-board-group>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.universe-board-group>header h3{margin:0;font-size:1rem}.storyboard-image-summary>div:first-child span,.universe-board-group>header span{color:var(--text-subtle);font-size:.875rem}.storyboard-image-summary{display:grid;gap:10px}.storyboard-image-summary p{font-size:.875rem}.storyboard-real{margin-top:0}.storyboard-real>section>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 16px}.storyboard-real>section>header>span,.storyboard-real>section>header>strong{color:var(--text-subtle);font-size:.875rem}.storyboard-real>section>header h2{margin:0;font-size:1.125rem}.storyboard-real>section>header p{grid-column:2;margin:0;color:var(--text-muted)}.storyboard-scene-list{margin-top:18px;display:flex;flex-direction:column;gap:10px}.storyboard-scene-list>article{padding:18px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.storyboard-scene-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}.storyboard-scene-card>header small,.storyboard-scene-card>header span{color:var(--text-subtle);font-size:.875rem}.storyboard-scene-card>header h3{margin:0}.storyboard-scene-content{margin-top:18px;display:grid;grid-template-columns:minmax(240px,38%) minmax(0,1fr);gap:20px;align-items:start}.storyboard-scene-visual .media-preview,.storyboard-scene-visual-empty{width:100%;aspect-ratio:16/9;border-radius:var(--radius)}.storyboard-scene-visual-empty{display:grid;place-content:center;gap:5px;text-align:center;background:var(--canvas);color:var(--text-muted)}.storyboard-scene-visual-empty>span{font-size:1.5rem}.storyboard-scene-visual-empty small{color:var(--text-subtle)}.storyboard-image-actions{margin-top:10px;display:grid;gap:8px}.storyboard-image-actions>a,.storyboard-image-actions>button{width:100%}.storyboard-scene-details{display:grid}.storyboard-scene-details>section{padding:12px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;border-bottom:1px solid var(--border)}.storyboard-scene-details>section:first-child{padding-top:0}.storyboard-scene-details>section:last-child{border-bottom:0}.storyboard-scene-details p{margin:5px 0 0;white-space:pre-line;color:var(--text-muted)}.storyboard-revision{margin-top:18px}.scene-sequence{padding-top:12px;color:var(--text-subtle);font-variant-numeric:tabular-nums}.scene-edit-fields{display:flex;flex-direction:column;gap:9px}.scene-edit-fields input{min-height:42px;font-weight:600}.scene-edit-meta{display:flex;flex-direction:column;align-items:flex-end;gap:10px;color:var(--text-subtle);font-size:.875rem}.production-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.production-actions>div{min-height:190px;padding:16px;display:flex;flex-direction:column;gap:7px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.production-actions strong{font-size:1rem}.production-actions span{color:var(--text-muted);font-size:1rem;line-height:1.5}.production-actions button{width:100%;margin-top:auto;white-space:normal;text-align:center}.production-actions a{color:var(--text-muted);font-size:.875rem;text-align:center;text-decoration:underline}.production-actions small,.production-audio-mode select{margin-top:auto;color:var(--text-subtle);font-size:.875rem;line-height:1.45}.production-audio-mode select{width:100%;min-height:44px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--canvas);color:var(--text)}.production-audio-mode .production-audio-advice{padding:10px 11px;border:1px solid var(--accent-border);border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--text-muted)}.production-audio-mode .production-audio-advice b{color:var(--text);font-weight:600}.production-scene-list{margin-top:0}.production-scene-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.production-scene-card>header>span,.production-scene-card>header>strong{color:var(--text-subtle);font-size:.875rem}.production-scene-card>header>strong{text-align:right}.production-scene-card>header>strong small{margin-top:3px;display:block;color:color-mix(in srgb,var(--text-subtle) 72%,transparent);font-size:.875rem;font-weight:500}.scene-narration{max-width:900px;margin:14px 0 0;color:var(--text-muted)}.scene-duration-warning{margin:12px 0 0;padding:10px 12px;border:1px solid var(--accent-border);border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--accent);font-size:1rem;line-height:1.45}.production-media-grid{margin-top:18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.production-media-grid>section{min-width:0;padding:12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--canvas)}.production-media-grid section>header{min-height:34px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.production-media-grid h3{margin:0;font-size:1rem}.audio-layer-note{min-height:180px}.audio-layer-note p{margin:18px 0 0;color:var(--text-muted);font-size:1rem;line-height:1.55}.audio-layer-note.is-warning{border-color:var(--accent-border);background:var(--accent-soft)}.media-missing,.production-media-grid .media-preview{min-height:210px;margin-top:10px;border-radius:var(--radius-sm)}.media-missing{display:grid;place-items:center;background:var(--surface);color:var(--text-subtle);font-size:.875rem}.media-cell-actions{margin-top:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.media-cell-actions button{padding:0 10px;white-space:normal}.production-media-grid .media-upload{margin-top:8px}.production-media-grid .media-upload label{width:100%}.scene-prompt-button{margin-top:14px}.scene-prompts{margin-top:12px}.scene-prompts,.scene-prompts>div{border-top:1px solid var(--border)}.scene-prompts>div{padding:10px 0}.scene-prompts strong{font-size:.875rem}.render-panel .media-preview{min-height:420px;margin-top:18px;border-radius:var(--radius)}.render-settings-panel .panel-heading{align-items:flex-start}.render-settings-grid{margin-top:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.render-music-upload,.render-settings-grid>label,.render-suno-prompt{min-height:96px;padding:13px;display:flex;flex-direction:column;justify-content:space-between;gap:9px;border:1px solid var(--border);border-radius:var(--radius);background:var(--canvas)}.render-music-upload>span,.render-settings-grid>label>span,.render-suno-prompt>span{color:var(--text-muted);font-size:.875rem}.render-suno-prompt p{margin:0;color:var(--text);font-size:1rem;line-height:1.5}.render-suno-prompt .secondary-button{align-self:flex-start}.render-soundtrack-empty,.render-suno-gate{min-height:150px;padding:18px;grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--canvas)}.render-suno-gate{border-color:var(--accent-border);background:var(--accent-soft)}.render-soundtrack-empty strong,.render-suno-gate strong{font-size:1rem}.render-soundtrack-empty p,.render-suno-gate p{max-width:720px;margin:0;color:var(--text-muted);font-size:1rem;line-height:1.5}.render-settings-grid select{width:100%}.render-settings-grid .render-toggle{flex-direction:row;align-items:flex-start;justify-content:flex-start}.render-toggle input{margin-top:3px}.render-toggle span{display:flex;flex-direction:column;gap:4px}.render-toggle strong{color:var(--text);font-size:.875rem;font-weight:600}.render-toggle small{color:var(--text-subtle);font-size:1rem;line-height:1.45}.render-music-upload .media-upload,.render-music-upload .media-upload label{width:100%}.render-progress{min-height:260px;margin-top:18px;display:grid;place-items:center;align-content:center;gap:14px;border-radius:var(--radius);background:var(--canvas)}.publication-titles{display:flex;flex-direction:column;gap:10px}.copy-row{min-height:62px;padding:10px 12px;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--canvas)}.copy-row>span{color:var(--text-subtle);font-size:.875rem}.copy-row p{margin:0}.publication-description{white-space:pre-wrap}.tag-list-real{margin:14px 0;display:flex;flex-wrap:wrap;gap:7px}.tag-list-real span{padding:6px 9px;border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--text-muted);font-size:.875rem}.thumbnail-concepts-real{margin-top:16px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.thumbnail-concepts-real article{min-height:210px;padding:14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--canvas)}.thumbnail-concepts-real article>span{color:var(--text-subtle);font-size:.875rem}.thumbnail-concepts-real h3{margin-top:10px}.thumbnail-concepts-real article>p{color:var(--text-muted);font-size:.875rem}.stage-approval{position:sticky;z-index:20;bottom:14px;min-height:74px;padding:12px;display:flex;align-items:center;gap:10px;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface-raised);backdrop-filter:blur(18px)}.stage-approval>div{margin-right:auto;display:flex;flex-direction:column}.stage-approval strong{font-size:.875rem}.stage-approval span{color:var(--text-muted);font-size:.875rem}.stage-approval.is-connection-blocked{border-color:var(--accent-border);background:linear-gradient(105deg,var(--accent-soft),var(--surface-raised) 44%);box-shadow:inset 3px 0 0 var(--accent-glow),0 12px 34px rgba(0,0,0,.24)}.stage-approval.is-connection-blocked strong{color:var(--focus)}.stage-connection-action{white-space:nowrap}.studio-loading{min-height:calc(100dvh - 70px);display:grid;place-items:center;align-content:center;gap:12px;color:var(--text-muted)}.studio-loading>span{width:34px;height:34px;border:2px solid var(--border);border-top-color:var(--text);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}@media (max-width:1180px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-grid,.asset-media-folder-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.idea-grid-real,.production-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.thumbnail-concepts-real{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:900px){.topbar{padding:0 18px;grid-template-columns:minmax(0,1fr) auto}.topnav{display:none}.app-content{padding-bottom:94px}.mobile-nav{position:fixed;z-index:45;right:12px;bottom:12px;left:12px;min-height:58px;padding:6px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface-raised);box-shadow:0 18px 44px rgba(0,0,0,.4);backdrop-filter:blur(18px)}.mobile-nav a{justify-content:center}.openai-method-grid,.provider-config-grid,.two-column-panels{grid-template-columns:1fr}.asset-folder-grid,.asset-grid,.asset-media-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-project-header{grid-template-columns:minmax(0,1fr) auto}.studio-provider-selects{grid-column:1/-1;overflow-x:auto}.studio-step-trigger{min-height:40px;padding:0 12px;display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);font-size:.875rem}.studio-body{display:block}.studio-rail{position:fixed;z-index:80;top:0;bottom:0;left:0;width:min(86vw,320px);overflow-y:auto;border-right-color:var(--border-strong);transform:translateX(-105%);transition:transform .18s ease}.studio-rail.is-open{transform:translateX(0);box-shadow:20px 0 70px rgba(0,0,0,.56)}.studio-rail-mobile-head{min-height:66px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.studio-rail-mobile-head button{min-height:40px;border:0;background:transparent;color:var(--text-muted)}.studio-rail nav{position:static}.production-media-grid{grid-template-columns:1fr}.render-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-reference-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-list-real>article{grid-template-columns:150px minmax(0,1fr)}.reference-empty,.reference-list-real .media-preview{width:150px}.reference-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-end}.thumbnail-concepts-real{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){.topbar{min-height:62px;padding:0 12px;gap:8px}.account-name,.wordmark>span{display:none}.wordmark{min-width:44px;min-height:44px}.topbar-actions{gap:6px}.topbar-create{padding:0 12px}.account-trigger{padding-right:4px}.app-content{padding:24px 14px 90px}.app-content:has(.studio-workspace){padding:0 0 86px}.page-heading,.projects-heading{min-height:0;flex-direction:column;align-items:stretch}.page-heading .primary-button{width:100%}.asset-folder-grid,.asset-grid,.asset-media-folder-grid,.idea-grid-real,.project-grid{grid-template-columns:1fr}.empty-projects,.error-panel,.simple-empty{min-height:360px}.project-meta .text-button{flex:0 0 auto}.auth-screen{align-items:center;padding:var(--auth-pad,14px)}.auth-card{border-radius:var(--radius-lg)}.new-project-screen{min-height:calc(100dvh - 176px)}.new-project-form{padding:var(--new-pad,16px);border-radius:var(--radius-lg)}.new-project-form>header{gap:10px}.source-url-list label>span{width:24px;flex-basis:24px}.source-url-list label small{display:none}.new-project-form>footer{display:grid;grid-template-columns:.8fr 1.2fr}.provider-summary{grid-template-columns:1fr}.provider-summary>.status-connected,.provider-summary>.status-disconnected{justify-self:start}.provider-summary .secondary-button,.provider-summary>.danger-button,.provider-summary>.primary-button{grid-column:1/-1;width:100%}.companion-pairing-box,.provider-form-actions{grid-template-columns:1fr}.provider-form-actions{display:grid}.suno-connection-panel{grid-template-columns:1fr}.asset-toolbar{align-items:stretch;flex-direction:column}.asset-toolbar>label{width:100%}.asset-toolbar>div{overflow-x:auto}.asset-toolbar button{flex:0 0 auto}.asset-project-section>header{align-items:flex-start}.asset-project-section>header>div:last-child{align-items:flex-end;text-align:right}.studio-workspace{min-height:calc(100dvh - 148px)}.studio-project-header{min-height:62px;padding:10px 14px}.studio-provider-selects label>span{display:none}.studio-provider-selects select{min-width:132px}.studio-main{padding:0 14px 34px}.stage-header{min-height:98px;padding:18px 0}.stage-header>.status-neutral,.stage-header>.status-success{display:none}.stage-stack{padding-top:18px}.source-add-form{grid-template-columns:1fr}.source-work-list article{grid-template-columns:100px minmax(0,1fr);gap:12px}.source-real-thumb{width:100px}.source-work-list article>.status-danger,.source-work-list article>.status-neutral,.source-work-list article>.status-success,.source-work-list article>.text-button{grid-column:2;justify-self:start}.chapter-plan,.content-panel,.production-scene-card,.render-panel,.storyboard-real>section{padding:16px}.content-panel dl{grid-template-columns:1fr;gap:4px}.plan-duration-summary{grid-template-columns:1fr;gap:10px}.plan-duration-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.content-panel dd+dt{margin-top:10px}.pattern-list-real article{grid-template-columns:1fr}.chapter-plan>article{grid-template-columns:32px minmax(0,1fr)}.chapter-plan small{grid-column:2;text-align:left}.script-chapter-card>header{grid-template-columns:1fr auto}.script-chapter-card header>span:first-child{grid-column:1/-1}.script-chapter-card footer{flex-wrap:wrap}.script-chapter-card footer .primary-button,.script-chapter-card footer .secondary-button{width:100%}.progressive-generation-card>header,.storyboard-scene-card>header{grid-template-columns:1fr auto}.progressive-generation-card>header>span,.storyboard-scene-card>header>span{grid-column:1/-1}.storyboard-scene-content,.storyboard-scene-details>section{grid-template-columns:1fr}.storyboard-scene-details .secondary-button{justify-self:start}.universe-image-connection{align-items:stretch;flex-direction:column}.universe-image-connection .secondary-button{width:100%}.media-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-list-real>article{grid-template-columns:1fr}.reference-empty,.reference-list-real .media-preview{width:100%;min-height:180px}.reference-actions{grid-column:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.storyboard-real>section>header{grid-template-columns:1fr auto}.storyboard-real>section>header>p,.storyboard-real>section>header>span{grid-column:1/-1}.storyboard-scene-list>article{grid-template-columns:1fr}.scene-sequence{padding:0}.scene-edit-meta{align-items:stretch}.production-actions,.render-settings-grid{grid-template-columns:1fr}.render-settings-panel .panel-heading{align-items:stretch;flex-direction:column}.render-settings-panel .panel-heading .primary-button{width:100%}.production-actions>div{min-height:160px}.production-scene-card>header{grid-template-columns:1fr auto}.production-scene-card>header>span{grid-column:1/-1}.thumbnail-concepts-real{grid-template-columns:1fr}.copy-row{grid-template-columns:1fr auto}.copy-row>span{grid-column:1/-1}.stage-approval{bottom:76px;flex-wrap:wrap}.stage-approval>div{width:100%}.stage-approval>.primary-button,.stage-approval>.secondary-button{flex:1}}@media (prefers-reduced-motion:reduce){.source-card-processing .source-real-thumb:after{animation:none;transform:none;opacity:.18}}@media (max-width:720px){.setup-screen{padding:18px 14px 28px;gap:22px}.setup-brand small{display:none}.setup-card{margin:0 auto}.setup-heading h1{font-size:clamp(2rem,11vw,2.8rem)}.setup-options{grid-template-columns:1fr}.setup-option{min-height:220px;padding:20px}.setup-option .primary-button,.setup-option .secondary-button{width:100%}.setup-pairing-ready{grid-template-columns:auto minmax(0,1fr);padding:20px}.setup-pairing-ready details,.setup-pairing-ready>.primary-button,.setup-pairing-ready>.secondary-button{grid-column:1/-1;width:100%}.provider-required-banner{align-items:flex-start;flex-direction:column}.source-field-remove{position:absolute;right:8px;bottom:-22px;min-height:22px}.source-url-list{gap:28px}.provider-gate{grid-template-columns:34px minmax(0,1fr)}.provider-gate .secondary-button{grid-column:1/-1;width:100%}}@media (max-width:390px){.topbar-create span{display:none}.topbar-create{min-width:44px}.account-popover{position:fixed;top:66px;right:12px;left:12px;width:auto}.media-reference-grid{grid-template-columns:1fr}.stage-approval>.primary-button,.stage-approval>.secondary-button{width:100%;flex-basis:100%}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.provider-reason{display:block;margin-top:6px;color:var(--text-secondary,var(--text-muted));line-height:1.5}.progress-step-spinner{flex:none;width:13px;height:13px;margin-top:3px;border-radius:50%;border:2px solid color-mix(in srgb,currentColor 25%,transparent);border-top-color:currentcolor;animation:progress-step-spin .7s linear infinite}@keyframes progress-step-spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.progress-step-spinner{animation-duration:2.4s}}.analysis-overview{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface,var(--surface))}.analysis-overview>header{padding:24px 28px 22px;border-bottom:1px solid var(--border)}.analysis-overview>header h2{margin:6px 0 0;color:var(--text);font-size:1.25rem;font-weight:600;letter-spacing:-.02em}.analysis-overview>header p{margin:8px 0 0;color:var(--text-muted);font-size:.9rem;line-height:1.5}.analysis-overview-groups{padding:0 28px}.analysis-overview-group{padding:24px 0 26px}.analysis-overview-group+.analysis-overview-group{border-top:1px solid var(--border)}.analysis-overview-group>header{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:12px}.analysis-overview-group>header>span{padding-top:2px;color:var(--text-subtle);font-size:.78rem;font-variant-numeric:tabular-nums}.analysis-overview-group>header h3{margin:0;color:var(--text);font-size:1.02rem;font-weight:600;line-height:1.35}.analysis-overview-group>header p{margin:4px 0 0;color:var(--text-subtle);font-size:.84rem;line-height:1.45}.analysis-stage>.analysis-recipe-ledger{display:none}.analysis-visible-sections{margin:18px 0 0 46px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--border)}.analysis-visible-sections article{min-width:0;padding:18px 0 16px;border-bottom:1px solid var(--border)}.analysis-visible-sections article:nth-child(odd){padding-right:24px;border-right:1px solid var(--border)}.analysis-visible-sections article:nth-child(2n){padding-left:24px}.analysis-visible-sections h3,.directive-evidence h2,.directive-field label,.directive-target-list>h2{color:var(--text);font-size:.95rem;font-weight:600;line-height:1.35}.analysis-visible-sections p{max-width:68ch;margin:7px 0 0;color:var(--text-muted);font-size:.9rem;line-height:1.58}.directive-field{padding:20px 0;border-top:1px solid var(--border)}.directive-field footer,.directive-field>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.directive-field footer span,.directive-field small{color:var(--text-subtle);font-size:.78rem;line-height:1.4}.directive-field textarea{width:100%;min-height:88px;margin:10px 0 12px;padding:12px 14px;resize:vertical;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:inherit;font-size:.875rem;line-height:1.55}.directive-field textarea:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.directive-field textarea:disabled{opacity:.72}.directive-target-list{padding-top:8px}.directive-target-list>h2{margin:0 0 4px}.directive-evidence{padding:20px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.directive-evidence ul{display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none}.directive-evidence li{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px;color:var(--text-muted);font-size:.84rem;line-height:1.5}.directive-evidence li strong{color:var(--text);font-weight:600}@media (max-width:760px){.analysis-overview>header{padding-right:18px;padding-left:18px}.analysis-overview-groups{padding:0 18px}.analysis-overview-group>header{grid-template-columns:28px minmax(0,1fr);gap:8px}.analysis-visible-sections{margin:16px 0 0 36px;grid-template-columns:1fr}.analysis-visible-sections article:nth-child(2n),.analysis-visible-sections article:nth-child(odd){padding:16px 0;border-right:0}.directive-evidence li{grid-template-columns:1fr;gap:2px}.directive-field footer{align-items:flex-start;flex-direction:column}.directive-field footer .secondary-button{width:100%}}