:root{--bg: #eef3f6;--panel: #ffffff;--text: #17202a;--muted: #667085;--line: #d7dee8;--accent: #0f766e;--accent-dark: #115e59;--ink: #111827;--danger: #b42318}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at top left,rgba(15,118,110,.08),transparent 22%),linear-gradient(180deg,#f4f7fa,#edf2f6);color:var(--text);font-family:Inter,Segoe UI,Microsoft YaHei,Arial,sans-serif;letter-spacing:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(360px,520px);background:radial-gradient(circle at top left,rgba(17,24,39,.16),transparent 22%),linear-gradient(135deg,#ffffff47,#fff0)}.brand-panel{position:relative;display:flex;align-items:center;padding:56px;background:linear-gradient(140deg,#061423e0,#0e3941b8),url(https://images.unsplash.com/photo-1518709268805-4e9042af2176?auto=format&fit=crop&w=1600&q=80) center/cover;color:#fff;overflow:hidden}.brand-panel:before,.brand-panel:after{content:"";position:absolute;border-radius:999px;background:#ffffff14;pointer-events:none}.brand-panel:before{top:-80px;right:-40px;width:240px;height:240px}.brand-panel:after{bottom:-120px;left:-40px;width:300px;height:300px}.brand-copy{position:relative;z-index:1;max-width:620px}.brand-copy p{max-width:560px;color:#ffffffd6;font-size:18px;line-height:1.8}.brand-lockup{display:flex;align-items:center;gap:18px;margin:10px 0 18px}.brand-mark{width:72px;height:72px;flex:0 0 72px;display:block;object-fit:contain;filter:drop-shadow(0 18px 30px rgba(0,0,0,.25))}.brand-lockup-copy{display:grid;gap:8px}.brand-lockup-copy h1{margin:0;font-size:54px;line-height:1.02}.brand-lockup-copy span{color:#ffffffbd;font-size:16px;font-weight:700;letter-spacing:.04em}.eyebrow{margin:0;color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.08em}.brand-panel .eyebrow{color:#5eead4}.auth-panel{display:flex;flex-direction:column;justify-content:center;gap:18px;min-height:100vh;padding:44px;background:linear-gradient(180deg,#fffffff5,#f8fbfdfa);border-left:1px solid rgba(255,255,255,.35)}.auth-panel-head{display:flex;align-items:center;justify-content:flex-start}.auth-panel-brand{display:inline-flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;margin:auto}.auth-panel-mark{width:32px;height:32px;display:block;object-fit:contain}.auth-panel-brand div{display:grid;gap:3px}.auth-panel-brand strong{color:var(--ink);font-size:18px;line-height:1.1}.auth-panel-brand span{color:var(--muted);font-size:12px;line-height:1.5}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:24px;padding:4px;background:#f2f5f8;border:1px solid var(--line);border-radius:8px}.tabs button,.segmented button{min-height:40px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-weight:700}.tabs button.active,.segmented button.active{background:#fff;color:var(--text);box-shadow:0 1px 4px #0f172a14}.form{display:grid;gap:15px}label{display:grid;gap:8px;color:#344054;font-size:14px;font-weight:700}input,select,textarea{width:100%;min-height:44px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--text);padding:10px 12px;outline:none}textarea{resize:vertical;line-height:1.7}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #0f766e24}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#f8fafc;border:1px solid var(--line);border-radius:8px}.primary,.secondary,.danger-button{min-height:44px;border:0;border-radius:7px;padding:0 18px;font-weight:800}.primary{background:var(--accent);color:#fff}.primary:hover{background:var(--accent-dark)}.primary:disabled{cursor:not-allowed;opacity:.7}.secondary{border:1px solid var(--line);background:#fff;color:var(--text)}.danger-button{background:linear-gradient(135deg,#d92d20,#b42318);color:#fff}.danger-button:hover:not(:disabled){background:linear-gradient(135deg,#c12014,#912018)}.secondary:disabled,.danger-button:disabled{cursor:not-allowed;opacity:.62}.code-row{display:grid;grid-template-columns:1fr 140px;gap:10px;align-items:end}.code-button{white-space:nowrap;padding:0 12px}.message{min-height:22px;margin:14px 0 0;color:var(--danger);font-size:14px}.home-page-message{margin:0 0 18px}.checkbox-row{grid-template-columns:18px 1fr;align-items:center;gap:10px;font-weight:600}.checkbox-row input{min-height:auto}.link-button{margin-left:4px;border:0;background:transparent;color:var(--accent);font-weight:800;padding:0}.auth-switch{display:flex;justify-content:flex-end}.subtle-link{border:0;background:transparent;color:var(--accent);font-weight:700;padding:0}.dialog-mask{position:fixed;inset:0;display:grid;place-items:center;background:#0f172a80;padding:24px;z-index:10}.dialog{width:min(760px,100%);max-height:min(720px,calc(100vh - 48px));display:flex;flex-direction:column;background:#fff;border-radius:8px;border:1px solid var(--line);box-shadow:0 30px 80px #0f172a47}.dialog header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line)}.dialog h2{margin:6px 0 0}.icon-button{width:36px;height:36px;border:none;border-radius:50%;background:#fff;font-size:28px}.agreement-content{overflow:auto;padding:22px 24px}.agreement-content pre{white-space:pre-wrap;word-break:break-word;margin:0;color:#344054;font-family:inherit;line-height:1.9}.muted{color:var(--muted)}.home-shell{height:100vh;display:flex;flex-direction:column;overflow:hidden}.home-topbar{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px 28px;border-bottom:1px solid var(--line);background:#ffffffeb;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 10px 30px #0f172a0d}.home-topbar-left,.home-topbar-right{display:flex;align-items:center;gap:18px;min-width:0}.home-topbar-left{flex:1 1 auto;justify-content:flex-start;gap:24px;flex-wrap:wrap}.home-brand-wrap{display:inline-flex;align-items:center;gap:14px;min-width:0}.home-brand-mark{width:46px;height:46px;flex:0 0 46px;display:block;object-fit:contain}.home-brand{display:grid;gap:3px;min-width:0}.home-brand strong{color:var(--ink);font-size:22px;line-height:1}.home-brand span{color:var(--muted);font-size:13px}.home-nav{display:inline-flex;flex-wrap:wrap;gap:8px;padding:6px;border:1px solid var(--line);border-radius:14px;background:#f6f8fb}.home-nav button{min-height:42px;border:0;border-radius:10px;background:transparent;color:#667085;font-weight:800;padding:0 16px}.home-nav button.active{background:#fff;color:var(--text);box-shadow:0 8px 18px #0f172a14}.home-nav button:disabled{cursor:not-allowed;opacity:.58}.sidebar-profile{position:relative}.sidebar-profile:after{content:"";position:absolute;top:100%;right:0;width:min(340px,calc(100vw - 28px));height:14px}.profile-trigger{min-width:148px;min-height:54px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);padding:8px 10px;text-align:left;box-shadow:0 10px 24px #0f172a0f}.profile-trigger span:last-child{display:grid;gap:3px}.profile-trigger strong{font-size:13px;line-height:1}.profile-trigger em{color:var(--accent);font-size:11px;font-style:normal}.profile-avatar{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:999px;background:linear-gradient(135deg,#2dd4bf,#f97316);color:#fff;font-weight:900;border:2px solid rgba(255,255,255,.36)}.profile-avatar.large{width:44px;height:44px;flex-basis:44px;font-size:18px}.profile-popover{position:absolute;top:calc(100% + 6px);right:0;width:min(340px,calc(100vw - 28px));padding:12px;border:1px solid var(--line);border-radius:16px;background:#2a2f34;color:#f8fafc;box-shadow:0 24px 70px #00000061}.profile-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.profile-head-copy{min-width:0;display:grid;gap:3px}.profile-head strong{display:block;padding:0;font-size:15px}.profile-head span,.profile-points span,.profile-vip span{color:#cbd5e1;font-size:12px}.profile-head small{color:#94a3b8;font-size:12px}.profile-editor{display:grid;gap:10px;margin-bottom:10px;padding:12px;border-radius:10px;background:#20252b}.profile-editor-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-editor-top span{color:#cbd5e1;font-size:12px;font-weight:800}.profile-inline-action{border:0;background:transparent;color:#5eead4;font-size:12px;font-weight:800;padding:0}.profile-inline-action:hover:not(:disabled){color:#99f6e4}.profile-inline-action:disabled{opacity:.56;cursor:not-allowed}.profile-editor-value,.profile-editor-message{margin:0}.profile-editor-value{color:#f8fafc;font-size:14px;font-weight:700}.profile-editor-form{display:grid;gap:8px}.profile-editor-form input{min-height:40px;border:1px solid #3c4752;border-radius:10px;background:#111315;color:#f8fafc;padding:0 12px}.profile-editor-form input::placeholder{color:#94a3b8}.profile-editor-actions{display:flex;justify-content:flex-end;gap:8px}.profile-editor-secondary,.profile-editor-primary{min-height:36px;border-radius:8px;padding:0 12px;font-size:12px;font-weight:800}.profile-editor-secondary{border:1px solid #3c4752;background:#1b2026;color:#e2e8f0}.profile-editor-primary{border:1px solid transparent;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff}.profile-editor-secondary:disabled,.profile-editor-primary:disabled{opacity:.56;cursor:not-allowed}.profile-editor-message{font-size:12px;line-height:1.5}.profile-editor-message.success{color:#86efac}.profile-editor-message.error{color:#fda4af}.profile-editor-message.info{color:#cbd5e1}.profile-points{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding:7px 9px;border-radius:8px;background:#20252b}.profile-points strong{padding:0;color:#fde68a}.profile-vip{display:grid;gap:4px;margin-bottom:10px;padding:12px 14px;border-radius:8px;background:linear-gradient(135deg,#fde0473d,#0f0f0f33),#111315}.profile-vip strong{padding:0;color:#fde68a;font-size:16px}.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.profile-actions button{min-height:40px;border:0;border-radius:8px;background:#22272d;color:#f8fafc;font-size:13px;text-align:left;padding:0 11px}.profile-actions button:hover{background:#30363d}.profile-actions button:disabled{opacity:.56;cursor:not-allowed}.home-main{flex:1 1 auto;min-height:0;padding:28px;min-width:0;overflow:auto}.home-main-workspace{padding:0;overflow:hidden}.home-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.home-header h1{margin:6px 0;font-size:30px}.home-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:18px}.home-metrics article,.project-section,.project-card,.empty{border:1px solid var(--line);border-radius:8px;background:#fff}.home-metrics article{min-height:110px;display:grid;align-content:center;gap:10px;padding:18px}.home-metrics span{color:var(--muted)}.home-metrics strong{font-size:24px;word-break:break-word}.project-section{margin-bottom:18px;padding:20px}.project-section h2,.billing-section h2{margin:0 0 8px}.billing-section{padding:20px;margin-bottom:18px;border:1px solid var(--line);border-radius:8px;background:#fff}.flow-section{padding:20px;border:1px solid var(--line);border-radius:8px;background:#fff}.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.panel-switch{display:inline-grid;grid-template-columns:1fr 1fr;gap:6px;min-width:180px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.panel-switch button{min-height:36px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-weight:800}.panel-switch button.active{background:#fff;color:var(--text);box-shadow:0 1px 4px #0f172a14}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.product-card{display:grid;gap:12px;min-height:260px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}.product-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.product-card-head span,.product-card-head em{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;background:#ecfdf3;color:#027a48;font-size:12px;font-style:normal;font-weight:800}.product-card-head em{background:#eff6ff;color:#175cd3}.product-card h3{margin:0;font-size:20px}.product-card>strong{font-size:28px;color:var(--ink)}.product-card ul{display:grid;gap:7px;min-height:72px;margin:0;padding-left:18px;color:#475467;line-height:1.55}.order-notice{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin-bottom:14px;padding:12px 14px;border:1px solid #bbf7d0;border-radius:8px;background:#f0fdf4;color:#166534}.flow-list{display:grid;gap:10px}.wallet-flow-pagination{display:flex;justify-content:flex-end;margin-top:18px}.wallet-flow-pagination .ant-pagination-total-text{margin-inline-end:auto;color:var(--muted)}.wallet-flow-pagination .ant-pagination-item-active{border-color:var(--accent)}.wallet-flow-pagination .ant-pagination-item-active a{color:var(--accent)}.flow-card{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.flow-card div{display:flex;justify-content:space-between;gap:12px;align-items:center}.flow-card span,.flow-card small{color:var(--muted)}.flow-status{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;background:#f2f4f7;color:#344054;font-size:12px;font-weight:800}.flow-status.locked{background:#fffaeb;color:#b54708}.flow-status.charged{background:#fef3f2;color:#b42318}.flow-status.unfrozen,.flow-status.completed{background:#ecfdf3;color:#027a48}.project-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin-top:18px}.project-card{display:grid;gap:14px;min-height:240px;padding:18px;border-radius:18px;background:linear-gradient(180deg,#fffffffa,#f7fafcfa);box-shadow:0 16px 36px #0f172a0f}.project-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.project-card-title{min-width:0;display:grid;gap:10px}.project-card-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:20px;line-height:1.1}.project-card-meta-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.project-card-id,.project-card-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:800}.project-card-id{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f4f7fb;color:#526174;border:1px solid #e2e8f0}.project-card-badge{background:#0f766e17;color:var(--accent)}.project-card-badge.accent{background:#fff4ed;color:#c4320a}.project-card-actions{display:grid;gap:10px;margin-top:auto}.project-card-primary-actions,.project-card-secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.project-card-actions .secondary{width:100%;min-width:0}.project-card-actions .secondary.primary-action{border-color:#0f766e2e;background:#0f766e14;color:#0f5f59}.project-card-actions .secondary.subtle-action{background:#f8fafc}.secondary.danger-action{border-color:#b4231838;background:#fff7f6;color:var(--danger)}.secondary.danger-action:hover:not(:disabled){border-color:#b423185c;background:#fff1f0}.project-card-summary{margin:0;color:#475467;line-height:1.75;min-height:58px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.empty{padding:28px;color:var(--muted)}.project-list-empty{grid-column:1 / -1;min-height:160px;display:grid;place-items:center;text-align:center;padding:24px;border-color:#d7e2ec;color:#667085;font-size:15px;font-weight:700}.project-dialog{width:min(920px,100%)}.delete-project-dialog{width:min(560px,100%)}.project-dialog-body{display:grid;gap:16px;overflow:auto;padding:20px 24px 22px}.delete-project-warning{display:grid;gap:8px;padding:16px;border:1px solid rgba(180,35,24,.16);border-radius:14px;background:linear-gradient(180deg,#fff5f4,snow)}.delete-project-warning strong{color:var(--danger);font-size:16px}.delete-project-warning p,.delete-project-hint{margin:0;color:#475467;line-height:1.7}.delete-project-name{display:inline-flex;margin:0 4px;color:var(--danger);font-weight:900}.delete-project-hint{color:var(--muted);font-size:13px;font-weight:700}.project-dialog-section{display:grid;gap:10px}.compact-choice-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:0 22px 22px}.workspace-view{position:relative;display:grid;gap:16px}.workspace-view>select{display:none}.project-context-panel{display:none}.project-context-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.project-context-summary{min-width:0;display:grid;gap:6px}.project-context-summary h1,.project-context-summary h2{margin:0;font-size:28px;line-height:1.15}.project-context-summary p{margin:0}.project-context-controls{display:flex;justify-content:flex-end;gap:10px;align-items:flex-start}.project-context-controls{display:none}.project-switcher{display:grid;gap:6px;min-width:240px;color:#344054;font-size:13px;font-weight:700}.project-switcher select{min-height:40px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:0 12px}.project-context-copy{display:grid;gap:8px;padding:14px 16px;border:1px solid #dbe4ee;border-radius:8px;background:#ffffffd6}.project-context-copy span{color:#175cd3;font-size:12px;font-weight:800;letter-spacing:.04em}.project-context-copy p{margin:0;color:#475467;line-height:1.75;white-space:pre-wrap;word-break:break-word}.project-context-chips{display:flex;flex-wrap:wrap;gap:10px}.project-context-chip{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:#eff6ff;color:#175cd3;font-size:13px;font-weight:700}.workspace-top{display:grid;grid-template-columns:120px 1fr 96px;gap:14px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}.workspace-top h2{margin:0 0 4px}.workspace-top p{margin:0}.workspace-wallet{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px;color:var(--muted);font-size:13px}.workspace-wallet strong{color:var(--text)}.workspace-grid{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:16px}.generator-panel,.result-panel{border:1px solid var(--line);border-radius:8px;background:#fff;padding:18px}.generator-panel{display:grid;gap:14px;align-self:start}.generator-panel h3,.result-panel h3{margin:0 0 8px}.option-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.asset-picker{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.asset-picker>span{color:#344054;font-size:14px;font-weight:800}.workspace-results{display:grid;gap:16px;min-width:0}.task-card,.content-preview article,.asset-list article{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.task-card+.task-card,.content-preview article+article,.asset-list article+article{margin-top:10px}.task-card div{display:flex;justify-content:space-between;gap:12px;align-items:center}.task-card span,.content-preview span,.asset-list span{color:var(--muted);font-size:13px}.task-card p,.content-preview p,.asset-list p{max-height:160px;overflow:auto;margin:0;color:#475467;line-height:1.7;white-space:pre-wrap;word-break:break-word}.asset-list{display:grid;gap:10px}.compact-empty{padding:18px}@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.brand-panel{min-height:280px;padding:32px}.brand-lockup{gap:14px}.brand-mark{width:56px;height:56px;flex-basis:56px}.brand-lockup-copy h1{font-size:40px}.auth-panel{min-height:auto;padding:28px}.auth-panel-brand{width:100%}.home-metrics{grid-template-columns:1fr}.home-topbar,.home-topbar-left,.home-topbar-right{align-items:stretch;flex-direction:column}.home-topbar{padding:16px 18px}.home-brand-wrap,.home-nav,.home-nav button,.profile-trigger{width:100%}.profile-popover{right:0;left:auto}.workspace-grid,.workspace-top,.option-row{grid-template-columns:1fr}.home-header{align-items:flex-start;flex-direction:column}.section-heading{flex-direction:column}.panel-switch{width:100%}.code-row{grid-template-columns:1fr}.home-main{padding:20px}.project-context-header,.project-context-controls,.asset-library-header-main,.asset-library-header-actions{flex-direction:column;align-items:stretch}.asset-library-switcher-row{align-items:stretch}.project-flyout,.asset-library-switcher-row .project-flyout{width:100%;flex-basis:100%}.project-context-summary h1,.project-context-summary h2{font-size:24px}.project-switcher{min-width:0}}.flow-step-rail{min-height:0;align-self:stretch;height:100%;overflow-y:auto;background:linear-gradient(180deg,#fffffffa,#f4f8fb);color:var(--text);border-right:1px solid #dce5ee}.step-rail-head{display:grid;gap:8px;padding:18px 18px 14px;border-bottom:1px solid rgba(215,222,232,.92);background:linear-gradient(180deg,#fffffff5,#f7fbfdfa)}.step-rail-eyebrow{margin:0;color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.step-rail-summary{display:grid;gap:2px}.step-rail-summary strong{color:var(--ink);font-size:18px;line-height:1.1}.step-rail-summary span{color:var(--muted);font-size:12px;font-weight:700}.step-list{position:relative;display:grid;gap:10px;padding:14px 14px 18px}.step-list:before{content:"";position:absolute;top:24px;bottom:24px;left:28px;width:1px;border-radius:999px;background:linear-gradient(180deg,#9caec16b,#dde5eeb8)}.step-button{position:relative;min-height:56px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #e3ebf3;border-radius:16px;background:#ffffffe6;color:var(--text);text-align:left;padding:10px 12px 10px 10px;box-shadow:0 6px 16px #0f172a08;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}.step-button:hover:not(:disabled){transform:translate(2px);border-color:#cfdae6;background:#fff;box-shadow:0 14px 24px #0f172a0f}.step-button.active{border-color:#0f766e6b;background:linear-gradient(135deg,#0f766e2e,#fffffffa 52%),#fffffffa;color:var(--text);box-shadow:0 18px 30px #0f766e24,inset 0 0 0 1px #0f766e14;transform:translate(4px)}.step-button.done:not(.active){background:linear-gradient(180deg,#fffffff5,#f9fcfafa);border-color:#dfe8e1}.step-button:disabled{opacity:1;cursor:not-allowed;box-shadow:none;transform:none;border-color:#e5ebf2;background:#f7f9fc}.step-button:disabled .step-title{color:#98a2b3}.step-button:disabled .step-index{border-color:#dbe3ec;background:#eef2f6;color:#98a2b3;box-shadow:none}.step-index{position:relative;z-index:1;width:28px;height:28px;display:grid;place-items:center;border:1px solid #ccd8e4;border-radius:50%;background:#fff;color:var(--ink);font-size:12px;font-weight:900;box-shadow:0 3px 10px #0f172a0a}.step-button.active .step-index{border-color:var(--accent);color:#fff;background:linear-gradient(135deg,#14958a,#0f766e);box-shadow:0 10px 18px #0f766e38}.step-button.done:not(.active) .step-index{border-color:#b7e3c4;color:#027a48;background:#ecfdf3}.step-title{min-width:0;color:var(--ink);font-size:15px;font-weight:800;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.step-button.active .step-title{color:#0b5f59}.step-state{flex:0 0 auto;min-width:38px;min-height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 7px;border-radius:999px;background:#f4f6f8;color:#667085;font-size:10px;font-weight:800}.step-state.done{background:#ecfdf3;color:#027a48}.step-state.current{background:#0f766e;color:#fff;box-shadow:0 8px 14px #0f766e33}.flow-topbar{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}.topbar-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.topbar-left-group{position:absolute;top:20px;display:flex;flex:1 1 320px;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.project-flyout{position:relative;min-width:0;width:min(360px,100%)}.project-flyout-current{min-height:50px;display:flex;align-items:center;gap:10px;padding:8px 10px 8px 12px;border:1px solid #dbe4ee;border-radius:16px;background:linear-gradient(180deg,#fffffffa,#f6fafcf5);box-shadow:0 10px 24px #0f172a0d;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.project-flyout.open .project-flyout-current{border-color:#0f766e4d;box-shadow:0 14px 34px #0f172a1a,0 0 0 4px #0f766e14}.project-flyout.disabled .project-flyout-current{opacity:.72}.project-flyout-symbol{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#0f766e1f,#14b8a638);color:var(--accent)}.project-flyout-name{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:14px;font-weight:800}.project-flyout-trigger{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border:1px solid #d7dee8;border-radius:11px;background:#f8fafc;color:#344054;transition:background .18s ease,border-color .18s ease,color .18s ease}.project-flyout-trigger:hover:not(:disabled),.project-flyout-trigger:focus-visible{border-color:#0f766e52;background:#0f766e14;color:var(--accent);outline:none}.project-flyout-trigger:disabled{cursor:not-allowed;opacity:.68}.project-flyout-panel{position:absolute;top:calc(100% + 10px);left:0;z-index:18;width:min(420px,calc(100vw - 40px));display:grid;gap:10px;padding:12px;border:1px solid #dce5ee;border-radius:18px;background:#fffffffa;box-shadow:0 24px 56px #0f172a24;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.project-flyout-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:0 2px;color:#475467;font-size:12px;font-weight:700}.project-flyout-panel-head strong{color:var(--ink);font-size:12px;font-weight:900}.project-flyout-list{display:grid;gap:8px;max-height:min(320px,52vh);overflow-y:auto;padding-right:2px}.project-flyout-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #e4ebf3;border-radius:14px;background:#fff;color:var(--text);text-align:left;transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease}.project-flyout-item:hover,.project-flyout-item:focus-visible{border-color:#0f766e42;background:#f8fcfbfa;box-shadow:0 10px 24px #0f172a14;transform:translateY(-1px);outline:none}.project-flyout-item.active{border-color:#0f766e57;background:linear-gradient(180deg,#f0fdfaf2,#ecfdf3fa)}.project-flyout-item-main{min-width:0;display:grid;gap:4px}.project-flyout-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:14px;font-weight:800}.project-flyout-item-copy{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.project-flyout-item-state{width:24px;height:24px;flex:0 0 24px;display:grid;place-items:center;border-radius:50%;color:var(--accent)}.topbar-left-group .project-flyout{flex:0 1 360px}.topbar-row-top{justify-content:space-between}.topbar-row-bottom{justify-content:flex-end;gap:10px}.topbar-selectors{display:flex;flex:1 1 320px;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end;min-width:0}.topbar-select-label{display:flex;align-items:center;gap:6px;font-size:13px;color:#333}.topbar-select-label span{white-space:nowrap}.topbar-select-label select{min-height:36px;padding:4px 10px;border-radius:6px;font-size:13px;cursor:pointer}.topbar-project-select{min-width:220px;max-width:min(320px,100%);flex:0 1 280px}.top-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;align-items:end}.ghost-button,.action-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;white-space:nowrap}.ghost-button{border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--text);padding:0 14px;font-weight:800}.flow-message{margin-bottom:14px;padding:10px 12px;border-radius:7px;font-size:14px}.msg-success{border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d}.msg-error{border:1px solid #fecaca;background:#fff1f2;color:#b42318}.msg-info{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8}.flow-step-body{display:grid;gap:18px}.view-loading-overlay{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:24px;background:#f5f7fac7;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.view-interaction-shield{position:absolute;inset:0;z-index:7;display:grid;place-items:center;background:#f5f7fa61;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);cursor:progress}.view-interaction-indicator{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #dbe4ee;border-radius:999px;background:#fffffff0;box-shadow:0 12px 32px #0f172a14;color:var(--ink);font-size:13px;font-weight:600}.view-loading-card{width:min(360px,100%);display:grid;justify-items:center;gap:10px;padding:24px 28px;border:1px solid #dbe4ee;border-radius:16px;background:#fffffff5;box-shadow:0 20px 48px #0f172a1f;text-align:center}.view-loading-card strong{color:var(--ink);font-size:18px}.view-loading-card span{color:var(--muted);font-size:13px;line-height:1.6}.view-loading-strip{margin-bottom:14px}.view-loading-strip .view-loading-card{width:100%;grid-template-columns:auto 1fr;justify-items:start;align-items:center;gap:10px 12px;padding:12px 14px;border-radius:10px;text-align:left}.view-loading-strip .view-loading-card strong{display:none}.view-loading-strip .view-loading-card span{font-size:13px}.content-loading-panel{min-height:420px;display:grid;place-items:center;padding:12px 0}.content-loading-card{width:min(420px,100%);display:grid;justify-items:center;gap:12px;padding:32px 28px;border:1px solid #dbe4ee;border-radius:16px;background:#fff;box-shadow:0 20px 48px #0f172a14;text-align:center}.content-loading-card strong{color:var(--ink);font-size:18px}.content-loading-card span{color:var(--muted);font-size:13px;line-height:1.6}.asset-library-content-loading{min-height:360px}.workflow-band{display:grid;gap:16px;padding:20px;border:1px solid var(--line);border-radius:8px;background:#fff}.compact-band{gap:12px}.band-heading,.inline-ai-row{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.band-heading h2,.workflow-band h2{margin:0}.asset-band-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.asset-count-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;background:#eff6ff;color:#175cd3;font-size:12px;font-weight:800}.band-actions{display:flex;justify-content:flex-end}.prompt-row{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:10px}.text-box{display:grid;gap:8px}.text-box-frame{position:relative;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.text-box-frame textarea{min-height:220px;border:0;border-radius:0;box-shadow:none;padding:14px}.text-box-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px;border-bottom:1px solid var(--line);background:#f8fafc}.toolbar-left{display:flex;gap:6px}.text-box-toolbar button,.story-editor-toolbar button,.icon-tool{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--text);padding:0 10px;font-weight:800}.textarea-loading{position:absolute;inset:44px 0 0;display:grid;place-items:center;pointer-events:none;background:#ffffffb8;color:var(--muted);font-size:20px;font-weight:900}.loading-dots:after{content:"";animation:dots 1.1s steps(4,end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%,to{content:"..."}}.ratio-grid,.style-grid,.asset-card-grid,.storyboard-card-grid,.video-card-grid,.storyboard-asset-ref-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.choice-button{min-height:92px;display:grid;align-content:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);text-align:left;padding:16px}.choice-button.selected,.style-card.selected,.modal-strip button.active{border-color:#22c55e;box-shadow:0 0 0 3px #22c55e24}.style-card,.asset-card,.storyboard-card,.video-card{position:relative;min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.style-cover{width:100%;aspect-ratio:16 / 10;border:0;background:#eef2f7;padding:0;overflow:hidden}.style-cover img{width:100%;height:100%;display:block;object-fit:cover}.style-name{width:100%;min-height:42px;border:0;border-top:1px solid var(--line);background:#fff;color:var(--text);font-weight:800}.custom-style-cover{display:grid;place-items:center;align-content:center;gap:8px;color:var(--accent);font-weight:900}.custom-style-cover span{font-size:15px}.custom-style-prompt{margin-top:14px}.custom-style-prompt textarea{min-height:112px}.asset-card header,.storyboard-card header,.video-card header{min-height:48px;display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 10px;border-bottom:1px solid var(--line)}.inline-title-input{min-width:0;min-height:34px;border:0;padding:0;font-weight:900;background:transparent}.inline-title-input:focus{box-shadow:none}.storyboard-card-tools{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}.storyboard-title-state,.story-editor-save-state{min-height:26px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.storyboard-title-state.saved,.story-editor-save-state.saved{background:#ecfdf3;color:#027a48}.storyboard-title-state.dirty,.story-editor-save-state.dirty{background:#fffaeb;color:#b54708}.storyboard-title-state.saving,.story-editor-save-state.saving{background:#1d4ed81a;color:#1d4ed8}.story-editor-save-state.warn{background:#fff4ed;color:#c4320a}.card-menu{position:absolute;top:44px;right:8px;z-index:4;display:grid;min-width:138px;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 16px 40px #0f172a29}.card-menu:before{content:"";position:absolute;right:0;left:0;bottom:100%;height:10px}.card-menu button{min-height:34px;display:flex;align-items:center;gap:7px;border:0;border-radius:6px;background:transparent;color:var(--text);text-align:left;padding:0 8px}.card-menu button:hover{background:#f2f4f7}.asset-card{display:grid;grid-template-rows:auto auto minmax(0,1fr)}.storyboard-asset-refs-band{gap:20px}.storyboard-asset-refs-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end}.storyboard-asset-refs-copy{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.8;max-width:720px}.storyboard-asset-refs-metrics{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.storyboard-asset-refs-metrics span{display:inline-flex;align-items:center;min-height:32px;padding:0 13px;border:1px solid #e3e8ef;border-radius:999px;background:#fff;color:#344054;font-size:12px;font-weight:800;box-shadow:0 6px 14px #0f172a0a}.storyboard-asset-ref-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}.storyboard-ref-card{display:grid;gap:0;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;min-width:0;transition:border-color .2s ease,box-shadow .2s ease}.storyboard-ref-card:hover{box-shadow:0 14px 28px #0f172a0f}.storyboard-ref-card.ready{border-color:#027a4838}.storyboard-ref-card.error{border-color:#b423183d}.storyboard-ref-card.running,.storyboard-ref-card.queued,.storyboard-ref-card.loading{border-color:#175cd33d}.storyboard-ref-card-header{min-height:48px;display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 10px;border-bottom:1px solid var(--line)}.storyboard-ref-card-title{min-width:0;display:grid;gap:6px}.storyboard-ref-card-title strong{color:var(--ink);font-size:15px;font-weight:800;line-height:1.35}.storyboard-ref-card-meta{display:flex;flex-wrap:wrap;gap:8px}.storyboard-ref-count-chip{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid #edf1f5;border-radius:999px;background:#f7f9fb;color:#475467;font-size:12px;font-weight:700}.storyboard-ref-count-chip.muted{color:#667085}.storyboard-ref-card-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.storyboard-ref-inline-action{min-height:32px;padding:0 12px;border-radius:8px;border-color:var(--line);background:#fff;color:#101828;font-size:12px;font-weight:800;gap:6px}.storyboard-ref-inline-action:hover:not(:disabled){border-color:#cad3de;background:#f8fafc}.storyboard-ref-status{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}.storyboard-ref-status.ready{background:#ecfdf3;color:#027a48}.storyboard-ref-status.error{background:#fff1f2;color:#b42318}.storyboard-ref-status.running,.storyboard-ref-status.loading{background:#eff6ff;color:#175cd3}.storyboard-ref-status.queued{background:#eef4ff;color:#3657c3}.storyboard-ref-status.idle{background:#f2f4f7;color:#475467}.storyboard-ref-card-body{display:grid;grid-template-columns:1fr}.storyboard-ref-scene-button{min-height:148px;max-height:148px;padding:14px 16px;border-bottom:1px solid var(--line);color:#344054;line-height:1.82;white-space:pre-wrap;word-break:break-word;overflow-y:auto}.storyboard-ref-scene-button:hover{background:#fafbfd}.storyboard-ref-assets-panel{display:grid;gap:10px;padding:12px}.storyboard-ref-section-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.storyboard-ref-section-label{color:#667085;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.storyboard-ref-section-value{color:#344054;font-size:12px;font-weight:800}.storyboard-ref-assets-scroll{max-height:128px;overflow-y:auto;padding-right:4px}.storyboard-ref-summary{display:grid;gap:12px;align-content:start}.storyboard-ref-summary.compact{margin:12px;padding:12px;border-top:1px solid var(--line)}.storyboard-ref-summary.inline{gap:10px}.storyboard-ref-group{display:grid;gap:8px;padding:12px;border:1px solid #edf1f5;border-radius:14px;background:#fff}.storyboard-ref-summary.inline .storyboard-ref-group{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:8px;padding:0;border:0;border-radius:0;background:transparent}.storyboard-ref-group-label{color:#344054;font-size:12px;font-weight:800}.storyboard-ref-summary.inline .storyboard-ref-group-label{color:#667085;font-size:11px;line-height:28px;white-space:nowrap}.storyboard-ref-group-list,.storyboard-ref-chips{display:flex;flex-wrap:wrap;gap:8px}.storyboard-ref-summary.inline .storyboard-ref-chips{min-width:0;align-items:center}.storyboard-ref-chip{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border:1px solid #edf1f5;border-radius:999px;background:#f7f9fb;color:#344054;font-size:12px;font-weight:700}.storyboard-ref-summary.inline .storyboard-ref-chip{min-height:28px;padding:0 10px}.storyboard-ref-empty{min-height:136px;display:grid;place-items:center;padding:16px;border:1px dashed #dbe3eb;border-radius:14px;background:#fff;color:var(--muted);text-align:center;font-size:13px;line-height:1.7}.storyboard-ref-empty.compact{min-height:72px;padding:12px}.storyboard-ref-empty.inline{min-height:88px;border-style:dashed;background:#f8fafc}.storyboard-ref-error{margin:0 12px 12px;padding:10px 12px;border:1px solid #fecaca;border-radius:8px;background:#fff1f2;color:#b42318;font-size:13px;line-height:1.6}.storyboard-ref-card-actions{display:flex;justify-content:flex-end}.asset-media-button,.video-media-button,.story-card-text{width:100%;border:0;background:transparent;padding:0;text-align:left}.asset-media,.video-media,.asset-large-preview img,.preview-video-row video{width:100%;height:100%;display:block;object-fit:cover}.asset-media-button,.video-media-button{aspect-ratio:16 / 10;background:#eef2f7}.media-placeholder,.compact-placeholder{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:8px;color:var(--muted);background:#eef2f7;font-weight:800}.compact-media,.compact-placeholder{width:34px;height:34px;border-radius:6px;object-fit:cover}.asset-card-body{display:grid;gap:10px;padding:12px}.asset-card-tags{display:flex;flex-wrap:wrap;gap:8px}.asset-tag{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:#f2f4f7;color:#344054;font-size:12px;font-weight:800}.asset-status-tag.prompt{background:#fffaeb;color:#b54708}.asset-status-tag.ready{background:#ecfdf3;color:#027a48}.asset-status-tag.review{background:#fff1f3;color:#c11574}.asset-status-tag.pending{background:#eff6ff;color:#175cd3}.asset-status-tag.neutral{background:#f2f4f7;color:#344054}.asset-card-hint{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.asset-card-meta{margin:0;color:var(--muted);font-size:12px}.asset-library-section{margin-bottom:0}.asset-library-project-copy{margin-bottom:16px}.asset-library-heading-main{display:grid;flex:1 1 320px;gap:8px;min-width:0}.asset-library-header-main{display:grid;flex:1 1 420px;gap:8px;min-width:0}.asset-library-switcher-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.asset-library-switcher-row h2,.asset-library-switcher-row .eyebrow{margin:0}.asset-library-switcher-row .project-flyout{flex:0 1 380px}.asset-library-header-actions,.asset-library-modal-buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.asset-library-header-actions{justify-content:flex-end}.asset-library-topbar{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.asset-library-toolbar .topbar-select-label,.asset-library-filter-row{display:grid;gap:12px}.asset-library-toolbar .topbar-select-label{color:#344054}.asset-library-toolbar .topbar-select-label select,.asset-library-modal-actions .topbar-select-label select{background:#fff;color:var(--text);border:1px solid var(--line)}.asset-library-filter-row{grid-template-columns:minmax(220px,1.2fr) repeat(2,minmax(140px,.8fr)) auto;align-items:end;margin-bottom:16px}.asset-library-filter-actions{display:flex;justify-content:flex-end}.asset-library-card-title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-library-card>.asset-card-body:first-of-type{display:none}.asset-library-meta{margin:0;color:var(--muted);font-size:12px}.asset-library-modal{width:min(1320px,100%)}.asset-library-modal-meta{display:flex;flex-wrap:wrap;gap:10px 16px;color:var(--muted);font-size:13px}.asset-library-modal-actions{align-items:center}.asset-library-modal-tip{color:var(--muted);font-size:13px;line-height:1.6}.asset-library-preview-pane .video-inline{width:100%;height:100%;object-fit:contain;background:#000}.asset-audio-preview{width:100%;min-height:100%;display:grid;place-items:center;gap:12px;padding:20px;color:var(--muted);text-align:center}.asset-audio-preview.compact{gap:8px;padding:12px}.asset-audio-controls{width:min(420px,100%)}.confirm-dialog{width:min(520px,100%)}.storyboard-manual-dialog{width:min(920px,100%)}.storyboard-manual-content{padding:20px 24px 24px}.video-inline{width:100%;height:100%;display:block;object-fit:cover;background:#000}.asset-task-error{margin:0;color:var(--danger);font-size:13px;line-height:1.6}.asset-role-empty{min-height:80px;display:flex;align-items:center;justify-content:center;gap:8px;padding:18px;border:1px dashed var(--line);border-radius:8px;background:#f8fafc;color:var(--muted);font-size:14px;line-height:1.7;text-align:center}.story-card-text{height:150px;overflow:hidden;color:#475467;line-height:1.65;padding:12px}.mention-preview{display:flex;flex-wrap:wrap;gap:6px;min-height:34px;padding:0 12px 12px}.mention-preview span{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:#eff6ff;color:#175cd3;font-size:12px;font-weight:800}.empty-state{min-height:220px;display:grid;place-items:center;align-content:center;gap:10px;color:var(--muted);text-align:center}.empty-state strong{color:var(--text);font-size:20px}.full-modal{position:fixed;inset:0;z-index:100;background:#0f172ab8;padding:24px}.asset-editor,.story-editor,.video-lightbox{width:min(1280px,100%);height:calc(100vh - 48px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:14px;margin:0 auto;padding:18px;border-radius:8px;background:#fff;box-shadow:0 28px 80px #0f172a47}.modal-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center}.asset-editor-name-input{min-height:44px;padding:0 14px;font-size:18px;font-weight:800}.modal-close{justify-self:end}.asset-editor-main{display:grid;grid-template-columns:minmax(360px,500px) minmax(0,1fr);gap:16px;min-height:0}.asset-prompt-pane{display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:12px;min-height:0}.asset-editor-fields{display:grid;grid-template-rows:minmax(180px,1fr) minmax(180px,1fr);gap:12px;min-height:0}.asset-editor-field{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;min-height:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 10px 28px #0f172a0a}.asset-editor-field>span{color:#344054;font-size:14px;font-weight:800}.asset-prompt-pane textarea{min-height:0;height:100%;padding:14px;border-radius:10px;background:#f8fafc;resize:none}.asset-editor-field-hint{color:var(--muted);font-size:12px;line-height:1.6}.asset-editor-textarea-disabled{background:#f2f4f7!important;color:#98a2b3;cursor:not-allowed}.asset-editor-status-row{display:flex;flex-wrap:wrap;gap:8px}.prompt-pane-actions{display:grid;gap:12px}.prompt-pane-model{display:flex;align-items:flex-end}.prompt-pane-model .topbar-select-label{color:#344054}.prompt-pane-model .topbar-select-label select{background:#fff;color:var(--text);border:1px solid var(--line)}.prompt-pane-buttons{display:flex;flex-wrap:wrap;gap:10px}.asset-large-preview{min-height:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:#f3f6fa;overflow:hidden;padding:12px}.asset-large-preview.previewable{position:relative;cursor:zoom-in;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.asset-large-preview.previewable:hover{border-color:#bfd7f0;box-shadow:0 16px 40px #0f172a14}.asset-large-preview.previewable:focus-visible{outline:none;border-color:#22c55e;box-shadow:0 0 0 3px #22c55e2e}.asset-large-preview .asset-media,.asset-large-preview .media-placeholder{border-radius:8px}.asset-preview-hint{position:absolute;right:16px;bottom:16px;display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#0f172aad;color:#fff;font-size:12px;font-weight:800;pointer-events:none}.modal-strip{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 8px}.modal-strip button{flex:0 0 188px;display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:stretch;min-height:88px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px;text-align:left;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease,background .2s ease}.modal-strip button:hover{background:#f8fafc;border-color:#cbd5e1;transform:translateY(-1px)}.modal-strip-media{width:64px;height:64px;border-radius:12px;overflow:hidden;background:#eef2f7}.modal-strip-meta{min-width:0;display:grid;align-content:center;gap:6px}.modal-strip-title{display:-webkit-box;overflow:hidden;color:#344054;font-weight:700;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}.modal-strip-status{display:inline-flex;width:fit-content;max-width:100%;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.modal-strip-status.ready{background:#ecfdf3;color:#027a48}.modal-strip-status.prompt{background:#fffaeb;color:#b54708}.modal-strip-status.neutral{background:#f2f4f7;color:#344054}.modal-strip .compact-media,.modal-strip .compact-placeholder{width:64px;height:64px;border-radius:12px}.modal-strip .compact-placeholder{gap:4px}.story-editor{grid-template-rows:auto auto minmax(0,1fr)}.story-editor-heading{min-width:0;display:flex;align-items:center;gap:10px}.story-editor-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-editor-toolbar{display:flex;flex-wrap:wrap;gap:8px}.story-editor-body{position:relative;min-height:0}.story-editor-body textarea{height:100%;min-height:0}.mention-popover{position:absolute;top:44px;left:18px;width:min(360px,calc(100% - 36px));max-height:260px;overflow:auto;display:grid;gap:4px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 16px 40px #0f172a2e}.mention-popover button{min-height:42px;display:grid;grid-template-columns:34px 1fr;align-items:center;gap:8px;border:0;border-radius:6px;background:transparent;text-align:left}.video-controls{display:flex;gap:10px}.preview-band{gap:18px}.preview-video-row{display:grid;grid-template-columns:minmax(340px,440px) minmax(0,1fr);gap:20px;align-items:start;padding-bottom:18px;border-bottom:1px solid var(--line)}.preview-video-row:last-child{border-bottom:0;padding-bottom:0}.preview-video-copy{display:grid;gap:10px;min-width:0;align-self:stretch}.preview-video-title{font-size:20px;line-height:1.35}.preview-video-description{margin:0;max-height:420px;overflow:auto;padding-right:6px;color:var(--muted);line-height:1.8;white-space:pre-wrap;word-break:break-word}.preview-video-row video{max-height:460px;border-radius:8px;background:#000}.video-lightbox{grid-template-rows:auto minmax(0,1fr)}.video-lightbox video{width:100%;height:100%;border-radius:8px;background:#000}.image-lightbox{position:fixed;inset:0;z-index:140;display:grid;place-items:center;border:0;background:#0f172ac2;padding:32px}.image-lightbox img{max-width:min(980px,92vw);max-height:88vh;border-radius:8px;box-shadow:0 30px 80px #00000059}.image-lightbox-close{position:absolute;top:24px;right:24px;width:40px;height:40px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:#0f172a85;color:#fff}@media(max-width:1180px){.ratio-grid,.style-grid,.asset-card-grid,.storyboard-card-grid,.video-card-grid,.storyboard-asset-ref-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.storyboard-ref-card-body{grid-template-columns:1fr}}@media(max-width:820px){.flow-workspace{grid-template-columns:1fr;height:auto;margin:0}.flow-step-rail{min-height:auto;position:static;height:auto;overflow:visible}.step-rail-head{padding:16px 16px 14px}.step-list{display:flex;overflow-x:auto;padding:14px 14px 18px}.step-list:before{display:none}.step-button{flex:0 0 240px;min-height:82px}.flow-topbar,.band-heading,.inline-ai-row,.preview-video-row,.asset-editor-main,.prompt-row{grid-template-columns:1fr;flex-direction:column;align-items:stretch}.storyboard-ref-card-body{grid-template-columns:1fr}.storyboard-asset-refs-head{flex-direction:column;align-items:stretch}.top-actions{justify-content:flex-start}.flow-content{height:auto;overflow:visible}.home-main-workspace{overflow:auto}.topbar-selectors{justify-content:flex-start}.topbar-project-select,.topbar-left-group .project-flyout{min-width:100%;width:100%;flex-basis:100%}.ratio-grid,.style-grid,.asset-card-grid,.storyboard-card-grid,.video-card-grid,.storyboard-asset-ref-grid,.asset-library-filter-row{grid-template-columns:1fr}.full-modal{padding:10px}.asset-editor,.story-editor,.video-lightbox{height:calc(100vh - 20px)}.storyboard-ref-card-header,.storyboard-ref-card-controls{flex-direction:column;align-items:stretch}.storyboard-ref-inline-action,.storyboard-ref-status{justify-content:center}}.flow-content{position:relative;min-width:0;height:100%;padding:22px 26px 40px;overflow-y:auto;max-width:100%}.flow-content.is-loading{overflow:hidden}.flow-workspace{position:relative;min-height:0;height:100%;display:grid;grid-template-columns:246px minmax(0,1fr);background:#f5f7fa;overflow:hidden}.home-main-workspace .flow-workspace{margin:0}.compact-select{min-height:36px;padding:4px 10px;border-radius:6px;border:1px solid var(--line, #444);background:#1a1a2e;color:#eee;font-size:13px;cursor:pointer}.video-card-body{aspect-ratio:16 / 10;overflow:hidden;background:#eef2f7;display:grid;place-items:center}.video-card-body video{width:100%;height:100%;object-fit:cover;display:block}.video-storyboard-trigger{width:calc(100% - 24px);min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:12px 12px 0;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:#101828;font-size:12px;font-weight:800}.video-storyboard-trigger:hover{background:#f2f4f7}.video-card-ref-panel .storyboard-ref-assets-scroll{max-height:128px}.compact-empty{min-height:80px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:14px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin{animation:spin 1s linear infinite}.video-card.batch-select-mode{cursor:pointer}.video-card.batch-select-mode.batch-disabled{opacity:.4;cursor:not-allowed;pointer-events:none}.video-card.batch-select-mode header{display:flex;align-items:center;gap:8px}.batch-checkbox{flex-shrink:0;display:flex;align-items:center;background:none;padding:0;margin:0}.batch-checkbox input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:#4f8cff;margin:0;outline:none;background:none}.batch-checkbox input[type=checkbox]:focus,.batch-checkbox input[type=checkbox]:active,.batch-select-all-label input[type=checkbox]:focus,.batch-select-all-label input[type=checkbox]:active{outline:none;box-shadow:none;border-color:transparent}.batch-checkbox input[type=checkbox]:disabled{cursor:not-allowed}.batch-select-all-row{padding:8px 12px;margin-bottom:4px}.batch-select-all-label{display:flex;align-items:center;gap:8px;font-size:14px;color:#ccc;cursor:pointer}.batch-select-all-label input[type=checkbox]{width:18px;height:18px;accent-color:#4f8cff;margin:0}.batch-info{font-size:14px;color:#ccc;padding:0 8px}
