:root{color-scheme:dark;font-family:Segoe UI,sans-serif;background:#0f1117;color:#f3f5f7}:root[data-theme=light]{color-scheme:light;background:#f5f1e8;color:#2b2416}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#0f1117,#171b25)}:root[data-theme=light] body{background:radial-gradient(circle at top,rgba(241,213,110,.25),transparent 34%),linear-gradient(180deg,#fbf8f2,#f1ebdf)}a{color:#66d3ff;text-decoration:none}button,input,textarea,select{font:inherit}button,.primary-link,.ghost-button,.link-button{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:10px;background:#3fa8ff;color:#08111d;padding:.8rem 1rem;cursor:pointer;font-weight:700}button:disabled,.primary-link:disabled,.ghost-button:disabled,.link-button:disabled{opacity:.55;cursor:not-allowed}.ghost-button,.link-button{background:transparent;color:#9fc0d6;border:1px solid #314052}.danger-button{background:#a220302e;color:#ffb5bf;border:1px solid rgba(232,90,110,.45)}input,textarea,select{width:100%;background:#151c26;color:#f3f5f7;border:1px solid #293546;border-radius:10px;padding:.8rem .9rem}.auth-page,.screen-center{min-height:100vh;display:grid;place-items:center}.auth-card{width:min(420px,calc(100vw - 2rem));display:grid;gap:1rem;background:#121822f2;border:1px solid #2d3a4c;border-radius:18px;padding:2rem}.branded-auth-card{width:min(460px,calc(100vw - 2rem))}.auth-brand{display:grid;justify-items:center;gap:1rem;text-align:center}.auth-logo{width:112px;height:112px;border-radius:50%;object-fit:cover;border:2px solid rgba(225,231,238,.18);box-shadow:0 16px 36px #0000004d}.auth-company{font-size:.95rem;font-weight:700;color:#d7e1ea;line-height:1.5}.auth-brand-copy h1{margin:.35rem 0 .2rem}.app-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{padding:1.5rem;border-right:1px solid #273241;background:#0a0e15eb}.brand{font-size:1.25rem;font-weight:800;margin-bottom:1.25rem}.brand-block{display:flex;align-items:center;gap:.85rem}.brand-logo{width:54px;height:54px;border-radius:50%;object-fit:cover;flex-shrink:0;border:1px solid rgba(225,231,238,.2)}.brand-copy{min-width:0}.brand-title{font-size:1.12rem;font-weight:800;color:#f3f5f7}.brand-company{margin-top:.2rem;font-size:.72rem;line-height:1.45;color:#9fb0bf}.nav-links{display:grid;gap:.65rem}.nav-links a{padding:.75rem .9rem;border-radius:10px;color:#d9e2ea}.nav-links a.active{background:#1b2636;color:#fff}.page-shell{display:grid;grid-template-rows:auto 1fr}.topbar{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #273241}.page-content{padding:1.5rem}.stack{display:grid;gap:1rem}.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-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:#8f6a00}:root[data-theme=light] button,:root[data-theme=light] .primary-link,:root[data-theme=light] .ghost-button,:root[data-theme=light] .link-button{background:linear-gradient(180deg,#f5ce57,#dfb53a);color:#2e2203}:root[data-theme=light] .ghost-button,:root[data-theme=light] .link-button{background:transparent;color:#7b5e12;border:1px solid #d9c28a}: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:#fffdf8;color:#302711;border:1px solid #dacba8}: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:#fffbf3f5;border:1px solid #e1d2ad;box-shadow:0 18px 40px #84691a14}:root[data-theme=light] .auth-logo,:root[data-theme=light] .brand-logo{border-color:#b9952f47;background:#fff8e8}: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:#34290f}: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:#77674a}:root[data-theme=light] .sidebar{background:#fff8e9f2;border-right:1px solid #e1d2ad}:root[data-theme=light] .topbar{border-bottom:1px solid #e1d2ad}:root[data-theme=light] .nav-links a{color:#5f4a17}:root[data-theme=light] .nav-links a.active{background:#f3e0a5;color:#392d0d}:root[data-theme=light] .data-table th,:root[data-theme=light] .data-table td{border-bottom:1px solid #ebdec0}: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:#fffaf0;border-color:#e3d3ad;color:#3d3010}:root[data-theme=light] .badge{background:#f4e5bc;color:#624b0b}: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:#e3d3ad;background:#fffdf8}:root[data-theme=light] .storyboard-video-status-card.is-waiting{border-color:#ddc06b;background:linear-gradient(180deg,#fff5d6,#fffaf0)}:root[data-theme=light] .storyboard-video-status-card.is-failed{border-color:#efc0bb;background:linear-gradient(180deg,#fff1ef,#fffaf0)}: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}@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}}@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)}}
