:root{color-scheme:dark;font-family:Inter,PingFang SC,Segoe UI,sans-serif;background:#121212;color:#f3f4f6;--primary: #04BA81;--primary-gradient: linear-gradient(135deg, #04BA81 0%, #10b981 100%);--sidebar-bg: #1A1A1A;--card-bg: #1E1E1E;--bg: #121212;--border-color: rgba(255, 255, 255, .08);--text-muted: #9CA3AF;--text-main: #F3F4F6;--shadow-sm: 0 1px 3px rgba(0,0,0,.2);--shadow-md: 0 4px 6px -1px rgba(0,0,0,.3);--shadow-lg: 0 10px 15px -3px rgba(0,0,0,.4)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text-main);background-size:cover;background-attachment:fixed;font-size:14px}#root{min-height:100vh}a{color:var(--primary);text-decoration:none}button,input,textarea,select{font:inherit}button,.primary-link,.primary-button{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:var(--primary);color:#fff;padding:.4rem 1rem;font-size:.9rem;cursor:pointer;font-weight:500;transition:all .2s ease;box-shadow:var(--shadow-sm)}button:hover,.primary-link:hover,.primary-button:hover{filter:brightness(1.1);box-shadow:0 4px 12px #04ba8133}button:disabled,.primary-link:disabled,.primary-button:disabled,.ghost-button:disabled,.link-button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.ghost-button,.link-button{background:#ffffff0d;color:var(--text-main);border:1px solid var(--border-color);border-radius:6px;display:inline-flex;align-items:center;justify-content:center;padding:.4rem 1rem;font-size:.9rem;cursor:pointer;font-weight:500;transition:all .2s ease}.ghost-button:hover,.link-button:hover{background:#ffffff1a}.danger-button{background:#ef44441a;color:#ef4444;border:1px solid rgba(239,68,68,.2);border-radius:8px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.danger-button:hover{background:#ef444426}input,textarea,select{width:100%;background:#1a1a1a;color:var(--text-main);border:1px solid var(--border-color);border-radius:6px;padding:.5rem .8rem;font-size:.9rem;transition:border-color .2s}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 2px #04ba811a}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:100}.modal-content{background:var(--card-bg);border-radius:12px;width:min(400px,90vw);padding:1.5rem;box-shadow:var(--shadow-lg);border:1px solid var(--border-color)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.modal-title{margin:0;font-size:1.1rem;font-weight:600}.modal-close{background:transparent;color:var(--text-muted);border:none;font-size:1.5rem;cursor:pointer;padding:0;box-shadow:none}.welcome-page{position:relative;min-height:100vh;overflow:hidden;background:url(/login-hero.png) center center / cover no-repeat}.welcome-header,.welcome-hero{position:relative;z-index:1}.welcome-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.5rem 2rem}.welcome-brand{display:inline-flex;align-items:center;gap:.85rem;min-width:0}.welcome-brand-logo{width:42px;height:42px;border-radius:10px;object-fit:cover;background:#fffffff5;border:1px solid rgba(255,255,255,.14)}.welcome-brand-copy{min-width:0}.welcome-brand-copy strong{display:block;color:#f5f8f7;font-size:.98rem;font-weight:700;line-height:1.3}.welcome-header-action,.welcome-cta{min-height:36px;padding:.55rem 1rem;border-radius:999px;background:#071714b3;border:1px solid rgba(120,227,177,.3);color:#f5f8f7;box-shadow:0 8px 22px #0000002e}.welcome-header-action:hover,.welcome-cta:hover{background:#0c221cd6}.welcome-hero{position:relative;min-height:calc(100vh - 86px);display:block;padding:2rem}.welcome-hero-copy{position:absolute;left:clamp(13rem,25vw,17.5rem);top:clamp(12rem,20vw,16.5rem);width:fit-content;display:grid;justify-items:start;gap:.9rem}.welcome-cta{width:fit-content;min-height:34px;padding:.45rem 1.05rem;font-size:.88rem;background:linear-gradient(135deg,#16a56f,#26c987);color:#fff;border:none}.welcome-auth-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;place-items:center;padding:1.25rem;background:#03090894;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.welcome-auth-card{width:min(420px,calc(100vw - 2rem));display:grid;gap:1rem;padding:1.25rem;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:#0f1413f5;box-shadow:0 22px 60px #00000057}.welcome-auth-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.welcome-auth-kicker{color:#9eb7ae;font-size:.82rem;line-height:1.4}.welcome-auth-head h2{margin:.25rem 0 0;font-size:1.4rem;line-height:1.2}.welcome-auth-close{width:32px;height:32px;padding:0;border-radius:999px;background:#ffffff0f;border:1px solid rgba(255,255,255,.08);color:#d9e1de;box-shadow:none}.welcome-auth-form{display:grid;gap:.8rem}.welcome-auth-links{display:flex;flex-wrap:wrap;gap:.65rem}.welcome-auth-links .link-button{background:#ffffff0d}.app-shell{display:grid;grid-template-columns:64px 1fr;min-height:100vh}.sidebar{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:1rem 0;border-right:1px solid var(--border-color);background:var(--sidebar-bg);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);z-index:10}.brand{font-size:1rem;font-weight:800;margin-bottom:0}.brand-block{display:flex;flex-direction:column;align-items:center;gap:.5rem;text-align:center}.brand-logo{width:40px;height:40px;border-radius:12px;object-fit:cover;flex-shrink:0;border:1px solid rgba(255,255,255,.1)}.brand-copy{display:none}.nav-links{display:flex;flex-direction:column;gap:1rem;width:100%}.nav-links a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;padding:.8rem 0;border-radius:12px;color:var(--text-muted);font-size:.75rem;font-weight:500;transition:all .2s ease}.nav-link-copy{display:grid;justify-items:center;gap:.1rem;line-height:1.15}.nav-link-subtext{font-size:.66rem;color:var(--text-muted);font-weight:500}.nav-links a:hover{color:#fff;background:#ffffff0d}.nav-links a.active{background:#04ba811a;color:var(--primary);font-weight:600;border-left:3px solid var(--primary);border-radius:0 8px 8px 0}.nav-links a.active .nav-link-subtext{color:var(--primary)}.page-shell{display:flex;flex-direction:column;background:var(--bg);min-height:100vh}.topbar{display:flex;justify-content:space-between;align-items:center;min-height:60px;padding:0 2rem;background:#121212cc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border-color);position:sticky;top:0;z-index:5}.topbar .ghost-button{min-height:34px;padding:.45rem 1rem;border-radius:999px}.sidebar-user-wrap{margin-top:auto;position:relative;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%}.sidebar-user,.sidebar-logout{width:40px;height:40px;padding:0;border-radius:50%;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden}.sidebar-user strong,.sidebar-user span{display:none}.sidebar-logout{background:#ff3c3c1a;color:#f55;border-color:#ff3c3c4d;font-size:.7rem}.page-content{padding:2rem;flex:1}.stack{display:grid;gap:1rem}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;margin-top:2rem}.project-card{background:var(--card-bg);border-radius:16px;border:1px solid var(--border-color);padding:1.5rem;display:flex;flex-direction:column;gap:1rem;transition:all .2s ease;box-shadow:var(--shadow-sm);position:relative;overflow:hidden}.project-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:#04ba814d}.project-card-create{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;border:2px dashed var(--border-color);background:transparent;cursor:pointer;color:var(--text-muted)}.project-card-create:hover{border-color:var(--primary);color:var(--primary);background:#04ba810d}.project-card-create svg{width:48px;height:48px;margin-bottom:1rem}.project-launch-card{position:relative;width:300px;height:148px;overflow:hidden;border:1px solid var(--primary);border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#141414;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;box-shadow:0 4px 12px #04ba810d}.project-launch-wave{position:absolute;top:-30%;right:-30%;bottom:-30%;left:-30%;background:radial-gradient(circle at 22% 28%,#04ba8133,#04ba8100 28%),radial-gradient(circle at 78% 72%,#0b6d4b38,#0b6d4b00 30%);opacity:.95;animation:projectWaveDrift 6s ease-in-out infinite;pointer-events:none;mix-blend-mode:screen}.project-launch-card:hover{transform:translateY(-1px);box-shadow:0 10px 24px #04ba8129;border-color:#04ba81e6}.project-launch-glow{position:absolute;inset:auto;width:150px;height:150px;border-radius:999px;background:radial-gradient(circle,#04ba812e,#04ba810a 45%,#04ba8100 72%);filter:blur(10px);pointer-events:none}.project-launch-glow-a{top:-22px;left:-10px;animation:projectGlowFloatA 3.6s ease-in-out infinite}.project-launch-glow-b{right:-24px;bottom:-34px;animation:projectGlowFloatB 4.2s ease-in-out infinite}.project-create-modal{position:relative;width:min(700px,86vw);padding:1.2rem;border-radius:14px;background:linear-gradient(180deg,#1f1f1ffa,#161616fa);border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 60px #00000059;overflow:hidden}.project-create-wave{position:absolute;top:-24%;right:-24%;bottom:-24%;left:-24%;background:radial-gradient(circle at 20% 24%,#04ba812e,#04ba8100 28%),radial-gradient(circle at 82% 18%,#04ba811f,#04ba8100 24%),radial-gradient(circle at 72% 80%,#10714e2e,#10714e00 26%);opacity:1;animation:projectWaveDrift 7s ease-in-out infinite;pointer-events:none;mix-blend-mode:screen}.project-create-ambient{position:absolute;border-radius:999px;pointer-events:none;filter:blur(18px);opacity:.9}.project-create-ambient-a{width:240px;height:240px;top:-60px;right:-40px;background:radial-gradient(circle,#04ba8138,#04ba810f 46%,#04ba8100 72%);animation:projectGlowFloatA 4.4s ease-in-out infinite}.project-create-ambient-b{width:200px;height:200px;left:-54px;bottom:-46px;background:radial-gradient(circle,#1f7a4729,#1f7a470d 42%,#1f7a4700 72%);animation:projectGlowFloatB 5s ease-in-out infinite}@keyframes projectGlowFloatA{0%,to{transform:translateZ(0) scale(1);opacity:.5}50%{transform:translate3d(24px,18px,0) scale(1.18);opacity:1}}@keyframes projectGlowFloatB{0%,to{transform:translateZ(0) scale(1);opacity:.45}50%{transform:translate3d(-26px,-18px,0) scale(1.16);opacity:.95}}@keyframes projectWaveDrift{0%{transform:translate3d(-8%,0,0) rotate(0) scale(1);opacity:.6}50%{transform:translate3d(8%,-6%,0) rotate(16deg) scale(1.12);opacity:1}to{transform:translate3d(-8%,0,0) rotate(0) scale(1);opacity:.6}}.project-card-header{display:flex;justify-content:space-between;align-items:flex-start}.project-card-title{font-size:1.25rem;font-weight:700;margin:0;color:var(--text-main)}.project-card-badge{background:#04ba811a;color:var(--primary);padding:.2rem .6rem;border-radius:999px;font-size:.75rem;font-weight:600}.project-card-thumbnail{width:100%;height:140px;background:#f3f4f6;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--text-muted)}.project-card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:1rem;border-top:1px solid var(--border-color);color:var(--text-muted);font-size:.85rem}.grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.detail-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:1rem;align-items:start}.panel,.hero-card{background:#121822f2;border:1px solid #2d3a4c;border-radius:16px;padding:1.25rem}.hero-card{display:flex;align-items:center;justify-content:space-between;gap:1rem}.metric{font-size:2.5rem;font-weight:800}.muted{color:#98a9b8}.inline-meta{display:flex;gap:1rem;flex-wrap:wrap;color:#98a9b8}.plain-list{margin:0;padding-left:1.25rem}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:.8rem;border-bottom:1px solid #273241;text-align:left;vertical-align:top}.action-row{display:flex;gap:.75rem;flex-wrap:wrap}.pre-block{white-space:pre-wrap;background:#10151d;border:1px solid #263242;border-radius:12px;padding:1rem;overflow:auto}.segment-header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.segment-actions{display:grid;gap:.5rem;justify-items:end}.asset-style-row{width:100%;display:flex;align-items:center;justify-content:flex-end;gap:.75rem;flex-wrap:wrap}.asset-style-label{color:#d8e8f5;font-weight:700}.asset-style-select{width:auto;min-width:140px}.asset-style-hint{font-size:.92rem}.badge{display:inline-block;padding:.3rem .6rem;border-radius:999px;background:#243143;color:#d8e8f5;font-size:.85rem}.error-text{color:#ff8f8f}.success-text{color:#8fffb9}.asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.asset-card{align-content:start}.asset-ark-status{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.asset-ark-badge.is-active{background:#2a7c4c47;color:#bdf3cc}.asset-ark-badge.is-processing{background:#596fa24d;color:#c7dbff}.asset-ark-badge.is-failed{background:#a220302e;color:#ffb5bf}.asset-ark-error{line-height:1.5}.asset-select{display:inline-flex;align-items:center;gap:.65rem}.asset-preview{width:100%;object-fit:contain;border-radius:14px;border:1px solid #2b3749;background:#111923}.asset-preview-button{padding:0;border:none;background:transparent;cursor:zoom-in}.asset-empty{padding:1rem;border-radius:12px;border:1px dashed #314052;color:#98a9b8;background:#0d121bb8}.asset-edit-hint{padding:.85rem 1rem;border-radius:12px;border:1px solid #314052;color:#c2d2de;background:#141c27e6;line-height:1.5}.asset-history-strip,.asset-reference-strip{display:flex;gap:.75rem;flex-wrap:wrap}.asset-reference-thumb{display:grid;gap:.45rem;width:112px;padding:.45rem;border-radius:12px;border:1px solid #3d5269;background:#121c29f2;color:#d5e7f6;cursor:pointer}.asset-reference-thumb img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid #2b3749;background:#111923}.asset-reference-thumb span{font-size:.8rem;line-height:1}.upload-trigger{position:relative;overflow:hidden}.upload-trigger input[type=file]{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.asset-history-thumb{display:grid;gap:.45rem;width:92px;padding:.4rem;border-radius:12px;border:1px solid #314052;background:#0f161ff2;color:#9fc0d6;cursor:pointer}.asset-history-thumb.active{border-color:#4ea9ff;box-shadow:inset 0 0 0 1px #4ea9ff47}.asset-history-thumb img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid #2b3749;background:#111923}.asset-history-thumb span{font-size:.82rem;line-height:1}.image-preview-dialog{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:1.5rem;background:#060a1173}.image-preview-card{width:fit-content;max-width:min(92vw,1400px);max-height:calc(100vh - 3rem);background:#121822fa;border:1px solid #2d3a4c;border-radius:18px;padding:1rem;box-shadow:0 18px 48px #0000005c}.image-preview-frame{width:min(88vw,1200px);max-width:1200px;max-height:calc(100vh - 9rem);display:grid;place-items:center}.image-preview-full{max-width:100%;max-height:calc(100vh - 9rem);width:auto;height:auto;object-fit:contain;border-radius:14px;border:1px solid #2b3749;background:#111923}.floating-back-button{position:fixed;right:1.5rem;bottom:1.5rem;z-index:30;min-width:132px;box-shadow:0 14px 28px #00000047}.storyboard-video-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:1rem;align-items:start}.storyboard-video-prompt{display:grid;gap:.5rem}.storyboard-prompt-editor{min-height:180px;resize:vertical;line-height:1.6}.storyboard-inline-mention{display:inline;padding:0;margin:0;border-radius:0;background:transparent;border:none;color:#66b3ff;font-weight:600}.storyboard-mention-panel{display:grid;gap:.6rem;padding:.8rem;border-radius:12px;border:1px solid #314052;background:#101721f2}.storyboard-mention-panel-title{font-size:.92rem;color:#cfe0ee}.storyboard-mention-list{display:grid;gap:.45rem}.storyboard-mention-item{display:flex;justify-content:space-between;gap:1rem;width:100%;padding:.7rem .85rem;border-radius:10px;border:1px solid #314052;background:#161f2bfa;color:#e5f0f8;text-align:left}.storyboard-mention-item:hover{border-color:#4ea9ff}.storyboard-mention-toolbar{display:flex;gap:.75rem;align-items:center;justify-content:space-between;flex-wrap:wrap}.storyboard-mention-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .75rem;border-radius:999px;border:1px solid #35506a;background:#15212ef2;color:#d7ebfb}.asset-create-grid{display:grid;grid-template-columns:160px minmax(0,1fr) 140px;gap:.75rem}.storyboard-segment-characters{display:grid;gap:.75rem}.storyboard-chip-row{display:flex;gap:.75rem;flex-wrap:wrap}.storyboard-character-chip{display:inline-flex;align-items:center;gap:.55rem;padding:.5rem .8rem;border-radius:999px;border:1px solid #314052;background:#101721f2;color:#e0edf7}.storyboard-character-dot{width:10px;height:10px;border-radius:999px;background:#b95b68;box-shadow:0 0 0 3px #b95b6826}.storyboard-character-dot.is-active{background:#53c27c;box-shadow:0 0 0 3px #53c27c2e}.storyboard-scene-card{display:grid;gap:.85rem;padding:1rem;border-radius:14px;border:1px solid #314052;background:#0f161feb}.storyboard-scene-title{font-weight:700;color:#eaf4fb}.storyboard-scene-preview{max-height:240px}.storyboard-video-preview{width:100%;border-radius:14px;border:1px solid #2b3749;background:#0d141d}.storyboard-video-status-card{display:grid;gap:.75rem;padding:1.2rem;border-radius:14px;border:1px solid #314052;background:#0f161feb}.storyboard-video-status-card.is-waiting{border-color:#4a9cff73;background:linear-gradient(180deg,#1d3652c7,#0f161ff5)}.storyboard-video-status-card.is-failed{border-color:#e85a6e6b;background:linear-gradient(180deg,#49171fb3,#0f161ff5)}.storyboard-video-status-title{font-size:1.1rem;font-weight:800;color:#eef7ff}.storyboard-video-status-copy{color:#c7d7e6;line-height:1.7}:root[data-theme=light] a{color:#1f7a47}:root[data-theme=light] button,:root[data-theme=light] .primary-link,:root[data-theme=light] .ghost-button,:root[data-theme=light] .link-button{background:#1f7a47;color:#fff}:root[data-theme=light] .ghost-button,:root[data-theme=light] .link-button{background:#f7fcf2;color:#27613c;border:1px solid #cfe5c6}:root[data-theme=light] .danger-button{background:#fff0f0;color:#b42318;border:1px solid #f0b3ae}:root[data-theme=light] input,:root[data-theme=light] textarea,:root[data-theme=light] select{background:#fff;color:#173d25;border:1px solid #bdd9b7}:root[data-theme=light] .auth-card,:root[data-theme=light] .panel,:root[data-theme=light] .hero-card,:root[data-theme=light] .image-preview-card{background:#fffffff0;border:1px solid rgba(32,119,69,.24);box-shadow:0 18px 40px #1c603714}:root[data-theme=light] .auth-logo,:root[data-theme=light] .brand-logo{border-color:#2579452e;background:#fff}:root[data-theme=light] .auth-company,:root[data-theme=light] .brand-title,:root[data-theme=light] .storyboard-scene-title,:root[data-theme=light] .storyboard-video-status-title{color:#173d25}:root[data-theme=light] .brand-company,:root[data-theme=light] .muted,:root[data-theme=light] .inline-meta,:root[data-theme=light] .storyboard-video-status-copy{color:#667468}:root[data-theme=light] .page-shell{background:linear-gradient(155deg,#e7f8ddad,#fffffff5 44%,#fff6b861),#fff}:root[data-theme=light] .asset-style-label,:root[data-theme=light] .storyboard-mention-panel-title,:root[data-theme=light] .storyboard-scene-title{color:#173d25}:root[data-theme=light] .sidebar{background:linear-gradient(180deg,#f6fceffa,#e7f7ddeb 58%,#fff5a394),#fbfff8;border-right:1px solid rgba(195,224,180,.85)}:root[data-theme=light] .topbar{border-bottom:none}:root[data-theme=light] .nav-links a{color:#38513b}:root[data-theme=light] .nav-links a.active{background:#1f7a47;color:#fff}:root[data-theme=light] .data-table th,:root[data-theme=light] .data-table td{border-bottom:1px solid #dce8d6}:root[data-theme=light] .pre-block,:root[data-theme=light] .asset-empty,:root[data-theme=light] .asset-edit-hint,:root[data-theme=light] .storyboard-mention-panel,:root[data-theme=light] .storyboard-mention-item,:root[data-theme=light] .storyboard-mention-chip,:root[data-theme=light] .storyboard-character-chip,:root[data-theme=light] .storyboard-scene-card,:root[data-theme=light] .storyboard-video-status-card,:root[data-theme=light] .asset-history-thumb,:root[data-theme=light] .asset-reference-thumb{background:#fbfdf8;border-color:#d6e8cf;color:#173d25}:root[data-theme=light] .badge{background:#fff08a;color:#5e4b00}:root[data-theme=light] .asset-preview,:root[data-theme=light] .asset-reference-thumb img,:root[data-theme=light] .asset-history-thumb img,:root[data-theme=light] .storyboard-video-preview,:root[data-theme=light] .image-preview-full{border-color:#d6e8cf;background:#fff}:root[data-theme=light] .storyboard-video-status-card.is-waiting{border-color:#f4d82d;background:linear-gradient(180deg,#fff7bd,#fbfdf8)}:root[data-theme=light] .storyboard-video-status-card.is-failed{border-color:#efc0bb;background:linear-gradient(180deg,#fff1ef,#fbfdf8)}:root[data-theme=light] .asset-ark-badge.is-active{background:#e9f8ea;color:#1f7a31}:root[data-theme=light] .asset-ark-badge.is-processing{background:#eef4ff;color:#3257a8}:root[data-theme=light] .asset-ark-badge.is-failed,:root[data-theme=light] .error-text{color:#c43229}:root[data-theme=light] .success-text{color:#198754}.video-home{min-height:100vh;margin:-1.5rem;padding:clamp(1rem,3vw,2.25rem);display:grid;align-content:center;gap:1rem;background:linear-gradient(155deg,#e7f8ddf2,#fffffff5 38%,#fff6b8b3),#fff;color:#172015}.video-home a{color:#1d6b43}.video-home-hero{width:min(920px,100%);margin:0 auto;display:grid;gap:.95rem}.video-home-heading{display:grid;justify-items:center;gap:.2rem;padding:0 0 .2rem;text-align:center}.video-home-heading h1{margin:0;display:flex;justify-content:center;gap:.4em;flex-wrap:wrap;font-size:clamp(1.8rem,4vw,3.35rem);line-height:1.04;letter-spacing:0;font-weight:900}.video-home-heading h1 span:first-child{color:#123b24}.video-home-heading h1 span:last-child{color:#ffd21f;text-shadow:0 2px 0 rgba(255,255,255,.4)}.video-composer{display:grid;grid-template-columns:74px minmax(0,1fr);gap:.72rem;min-height:168px;padding:.72rem;border:1px solid rgba(32,119,69,.42);border-radius:8px;background:#fffffff0;box-shadow:0 18px 38px #1c60371f}.reference-upload-tile{position:relative;width:74px;height:96px;display:grid;place-items:center;align-self:start;gap:.35rem;padding:.75rem;border:1px dashed #bfd1bf;border-radius:8px;background:#fbfdf8;color:#506150;cursor:pointer;text-align:center;overflow:hidden}.reference-source-column{display:grid;gap:.45rem;align-self:start}.reference-upload-tile input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.reference-upload-plus{width:30px;height:30px;display:grid;place-items:center;border-radius:999px;background:#e7f4e9;color:#1e7a43;font-size:1.45rem;font-weight:800}.asset-import-button{width:74px;min-height:32px;padding:.35rem .2rem;border:1px solid #cfe0c9;border-radius:8px;background:#fff;color:#1f7a47;font-size:.72rem;font-weight:800;line-height:1.25}.video-composer-input{min-height:100px;resize:vertical;border:none;background:#fff;color:#172015;font-size:.95rem;line-height:1.65;padding:.2rem .15rem}.video-composer-input:focus{outline:none}.video-composer-controls{grid-column:1 / -1;display:flex;align-items:center;gap:.48rem;flex-wrap:wrap;padding-top:.54rem;border-top:1px solid #edf2e8}.video-composer-controls select{width:auto;min-width:132px;height:32px;padding:0 .8rem;border-radius:8px;border:1px solid #d8e3d2;background:#f7faf3;color:#172015}.segmented-control{display:inline-flex;align-items:center;min-height:32px;padding:.2rem;gap:.2rem;border-radius:8px;background:#eef4e9}.segmented-control button{min-width:44px;height:24px;padding:0 .5rem;border-radius:6px;background:transparent;color:#536353;font-weight:700}.segmented-control button.is-selected{background:#fff;color:#145c35;box-shadow:0 1px 6px #1a59341f}.video-price{min-height:32px;display:inline-flex;align-items:center;padding:0 .75rem;color:#5e4b00;background:#fff08a;border:1px solid #f4d82d;border-radius:8px;font-weight:800}.video-action-group{margin-left:auto;display:inline-flex;align-items:center;gap:.8rem}.video-submit{min-width:82px;height:34px;border-radius:8px;background:#1f7a47;color:#fff;box-shadow:0 10px 22px #1f7a472e}.reference-review-note{max-width:920px;color:#5f6e60;line-height:1.6;font-size:.92rem}.saved-reference-panel{display:grid;gap:.7rem;padding:.9rem;border:1px solid #dce8d6;border-radius:8px;background:#fff}.saved-reference-title{font-weight:800;color:#153d26}.saved-reference-list{display:flex;gap:.75rem;overflow-x:auto;padding-bottom:.2rem}.saved-reference-thumb{width:112px;flex:0 0 auto;display:grid;gap:.45rem;padding:.4rem;border:1px solid #dce8d6;border-radius:8px;background:#fbfdf8;color:#435143}.saved-reference-thumb .reference-thumb{width:100%}.saved-reference-thumb span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem}.reference-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:.85rem}.reference-card{display:grid;gap:.55rem;padding:.7rem;border:1px solid #dce8d6;border-radius:8px;background:#fff}.reference-thumb{position:relative;width:100%;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#f4f7ef;border:1px solid #e2ebdd}.reference-thumb img{width:100%;height:100%;object-fit:cover;display:block}.safe-dot{position:absolute;top:8px;right:8px;width:16px;height:16px;border-radius:999px;background:#18a058;border:2px solid #ffffff;box-shadow:0 0 0 2px #18a0582e}.reference-card-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172015;font-weight:800}.reference-card-status{color:#627164;font-size:.9rem}.reference-card-error{color:#b42318;font-size:.88rem;line-height:1.45}.reference-card-actions{display:flex;gap:.4rem;flex-wrap:wrap}.reference-card-actions .ghost-button,.reference-card-actions .link-button{min-height:34px;padding:.45rem .6rem;border-radius:6px;color:#1d6b43;border-color:#cfe0c9}.home-video-result{display:grid;gap:.8rem;padding:1rem;border:1px solid #dce8d6;border-radius:8px;background:#fff}.home-video-result.is-failed{border-color:#f0c5bf;background:#fff7f4}.user-assets-page{display:grid;gap:1rem}.user-assets-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid #dce8d6;border-radius:8px;background:#fff}.user-assets-header h1{margin:0 0 .35rem;color:#123d25}.user-asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.9rem}.user-asset-card{display:grid;gap:.6rem;padding:.65rem;border:1px solid #dce8d6;border-radius:8px;background:#fff;box-shadow:0 10px 24px #1c603714}.user-asset-thumb{position:relative;aspect-ratio:1;overflow:hidden;border-radius:8px;background:#f4f7ef;border:1px solid #e2ebdd}.user-asset-thumb img{width:100%;height:100%;object-fit:cover;display:block}.user-asset-meta{display:grid;gap:.25rem;min-width:0}.user-asset-meta strong,.user-asset-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-asset-meta strong{color:#172015}.user-asset-meta span{color:#627164;font-size:.86rem}.home-module-grid{width:min(640px,100%);margin:.86rem auto 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.52rem}.home-module-button{display:grid;align-content:center;justify-items:center;min-height:46px;padding:.52rem .62rem;border-radius:8px;border:1px solid transparent;color:#172015;box-shadow:0 12px 26px #1f5d3517}.home-module-button strong{font-size:.86rem;text-align:center}.home-module-button.is-green{background:#daf4d7;border-color:#a8dda3}.home-module-button.is-yellow{background:#ffd91f;border-color:#efc700}.home-module-button.is-dark{background:#fff;border-color:#c8eab9;color:#1f7a47}.home-module-button.is-mint{background:#effbea;border-color:#c8eab9}.home-secondary-grid{width:min(1180px,100%);margin:1rem auto 0}.video-home .panel{border-radius:8px;border-color:#dce8d6;background:#fff;color:#172015;box-shadow:none}.video-home .muted{color:#667468}.video-home .success-text{color:#1f7a47}.video-home .error-text{color:#b42318}@media (max-width: 960px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:none;border-bottom:1px solid #273241}.brand-block{align-items:flex-start}.grid.two,.detail-layout,.storyboard-video-layout,.hero-card{grid-template-columns:1fr;display:grid}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-create-grid{grid-template-columns:1fr}.asset-style-row{justify-content:flex-start}.floating-back-button{right:1rem;bottom:1rem;min-width:120px}.video-home{margin:-1.5rem}.video-composer{grid-template-columns:1fr}.reference-upload-tile{width:100%;height:96px}.home-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 720px){.asset-grid{grid-template-columns:1fr}.storyboard-mention-toolbar,.asset-style-row{align-items:stretch}.asset-style-select{width:100%}.image-preview-dialog{padding:1rem}.image-preview-card{max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem)}.image-preview-frame{width:min(90vw,560px);max-height:calc(100vh - 8rem)}.image-preview-full{max-height:calc(100vh - 8rem)}.video-home{padding:1rem}.video-submit{width:100%;margin-left:0}.video-composer-controls,.video-composer-controls select,.segmented-control,.video-price{width:100%}.segmented-control{justify-content:space-between}.segmented-control button{flex:1}.home-module-grid{grid-template-columns:1fr}}
