:root{font-family:'DM Sans','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#202126;background:#f5f6f8;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:#9295a0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#9295a0}.icon{width:18px;height:18px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.login-page{min-height:100vh;background:#f7f7f5;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(440px,.95fr);padding:22px;gap:22px}.login-visual{position:relative;overflow:hidden;min-height:calc(100vh - 44px);border-radius:24px;background:#12191b;color:white;padding:44px 48px;display:flex;flex-direction:column;justify-content:space-between}.login-visual:before,.login-visual:after{content:'';position:absolute;border-radius:50%;pointer-events:none}.login-visual:before{width:640px;height:640px;left:17%;top:16%;background:radial-gradient(circle at 43% 38%,rgba(143,235,202,.84),rgba(59,149,147,.52) 28%,rgba(24,71,77,.48) 48%,rgba(20,29,32,0) 70%);filter:blur(3px)}.login-visual:after{width:800px;height:300px;left:13%;bottom:11%;background:linear-gradient(115deg,rgba(78,205,183,.32),rgba(92,147,232,.19),transparent 72%);transform:rotate(-22deg);filter:blur(40px)}.brand{display:flex;align-items:center;gap:12px;position:relative;z-index:1}.brand-mark{width:34px;height:34px;border-radius:11px;background:#c6f17f;color:#202b1e;display:grid;place-items:center;font-weight:800;font-size:19px;box-shadow:0 4px 15px #c6f17f33}.brand-name{font-size:15px;font-weight:700;letter-spacing:-.02em}.brand-sub{font-size:10px;color:#899295;margin-top:3px;letter-spacing:.09em;text-transform:uppercase}.visual-copy{position:relative;z-index:1;max-width:510px;margin:0 0 48px 10px}.visual-copy h1{font-size:clamp(40px,5vw,72px);line-height:1.05;letter-spacing:-.065em;font-weight:500;margin:0 0 23px}.visual-copy h1 span{color:#c9f18a}.visual-copy p{color:#bdc7c4;line-height:1.8;font-size:14px;max-width:390px}.visual-note{font-size:11px;color:#7f8b8a;position:relative;z-index:1}.visual-cards{position:absolute;right:9%;top:29%;width:36%;min-width:210px;max-width:330px;aspect-ratio:.79;z-index:1;transform:rotate(5deg)}.visual-card{position:absolute;border:1px solid #ffffff2c;border-radius:15px;background:#ffffff10;box-shadow:0 22px 55px #0005;backdrop-filter:blur(12px)}.visual-card-a{inset:0 0 17% 12%;background:linear-gradient(150deg,#d6f3d3,#6f9f89 40%,#253d3b 72%,#182123)}.visual-card-a:after{content:'A quiet world, waiting to be made.';position:absolute;left:16px;bottom:16px;color:#f0fff1;font-size:10px;letter-spacing:.04em}.visual-card-b{width:54%;height:35%;bottom:1%;left:-4%;background:#151d1f;padding:12px}.visual-card-b:before{content:'';display:block;height:5px;width:35%;border-radius:6px;background:#c6f17f;box-shadow:0 14px 0 #ffffff38,0 28px 0 #ffffff20}.visual-card-c{width:46%;height:18%;top:11%;right:-8%;background:#f3f5ef;padding:14px}.visual-card-c:before{content:'';display:block;height:100%;border-radius:7px;background:linear-gradient(110deg,#b9d4e9,#ecbca1 54%,#d4dc9b)}.login-panel{display:flex;align-items:center;justify-content:center;padding:32px}.login-box{width:min(390px,100%)}.login-box .brand{margin-bottom:52px;color:#25272c}.login-box h2{font-size:30px;letter-spacing:-.045em;margin:0 0 9px;font-weight:600}.login-box .intro{font-size:13px;color:#8b8e97;margin:0 0 32px}.field-label{display:block;font-size:12px;font-weight:600;margin:0 0 8px;color:#4d5058}.field{width:100%;height:46px;border:1px solid #e2e3e6;border-radius:10px;background:#fff;padding:0 13px;outline:0;color:#202126;transition:.2s}.field:focus,textarea:focus{border-color:#a7c47b!important;box-shadow:0 0 0 3px #b6d88926}.form-group{margin-bottom:19px}.login-submit{width:100%;height:47px;border:0;border-radius:10px;background:#202a25;color:white;font-weight:600;margin-top:8px;transition:.2s}.login-submit:hover{background:#344b3d;transform:translateY(-1px)}.demo-title{display:flex;align-items:center;gap:12px;margin:28px 0 13px;font-size:10px;color:#a1a3aa}.demo-title:before,.demo-title:after{content:'';height:1px;background:#e7e8ea;flex:1}.demo-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.demo-button{background:#fff;border:1px solid #e5e6e8;border-radius:10px;padding:12px;text-align:left;color:#333}.demo-button:hover{border-color:#c2d79d;background:#fcfff8}.demo-button strong{display:block;font-size:12px;margin-bottom:4px}.demo-button span{font-size:10px;color:#989ba2}.login-footnote{font-size:10px;color:#a2a4ab;line-height:1.7;margin-top:24px}.error-banner{font-size:12px;color:#b34444;background:#fff0ee;border-radius:8px;padding:10px 12px;margin:-12px 0 16px}.app-shell{min-height:100vh;display:grid;grid-template-columns:226px minmax(0,1fr)}.sidebar{background:#fbfbfa;border-right:1px solid #e9eaec;padding:21px 15px 16px;display:flex;flex-direction:column;min-height:100vh}.sidebar .brand{padding:0 8px;margin-bottom:27px}.sidebar .brand-mark{width:31px;height:31px}.workspace-switch{margin:0 2px 23px;padding:11px 11px;border:1px solid #ebeced;border-radius:10px;display:flex;align-items:center;gap:9px;background:#fff}.workspace-emoji{width:28px;height:28px;border-radius:8px;background:#f0f3e8;display:grid;place-items:center;font-size:14px}.workspace-switch b{display:block;font-size:11px}.workspace-switch small{display:block;color:#9a9ca4;font-size:9px;margin-top:3px}.workspace-switch .chevron{margin-left:auto;color:#9b9ea5}.nav-label{font-size:9px;color:#a2a4aa;letter-spacing:.1em;text-transform:uppercase;padding:0 10px;margin:13px 0 7px}.nav-link{height:38px;border-radius:8px;color:#777a83;display:flex;align-items:center;gap:10px;padding:0 10px;font-size:12px;margin-bottom:3px;text-decoration:none}.nav-link:hover{background:#f1f2ef;color:#31343a}.nav-link.active{background:#eef2e7;color:#303f2b;font-weight:600}.nav-link .icon{width:16px;height:16px}.nav-count{margin-left:auto;color:#a2a4aa;font-size:10px}.sidebar-bottom{margin-top:auto}.model-status{margin:15px 2px 14px;padding:12px;border:1px solid #e9ebe6;border-radius:10px;background:#fff}.status-row{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;color:#53575c}.status-dot{width:6px;height:6px;border-radius:100%;background:#9ec76b;box-shadow:0 0 0 3px #9ec76b22}.model-status p{font-size:9px;color:#a0a2a8;line-height:1.5;margin:8px 0 0}.user-mini{border-top:1px solid #ececee;padding:14px 4px 0;display:flex;align-items:center;gap:9px}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:700;background:#e1e8d4;color:#4b6040}.user-mini b{font-size:10px;display:block}.user-mini small{font-size:9px;color:#a1a3aa}.user-mini button{margin-left:auto;border:0;background:transparent;color:#999;padding:6px}.main-area{min-width:0;display:flex;flex-direction:column;min-height:100vh}.topbar{height:62px;border-bottom:1px solid #e9eaec;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 25px}.breadcrumbs{display:flex;align-items:center;gap:9px;font-size:11px;color:#a0a2aa}.breadcrumbs strong{color:#4a4c52;font-weight:600}.top-actions{display:flex;align-items:center;gap:15px}.credit-pill{border:1px solid #e8eadf;border-radius:20px;padding:7px 11px;color:#66734f;font-size:10px;background:#fbfcf8}.credit-pill b{color:#394a31;margin-left:4px}.icon-button{width:31px;height:31px;border:1px solid #ececef;border-radius:9px;background:white;color:#777b80;display:grid;place-items:center}.page-content{padding:25px 27px;flex:1;min-height:0}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px}.page-heading h1{font-size:21px;letter-spacing:-.04em;margin:0 0 6px;font-weight:600}.page-heading p{margin:0;font-size:11px;color:#999ca4}.heading-actions{display:flex;gap:8px}.btn{height:35px;border:1px solid #e3e5e6;border-radius:8px;padding:0 12px;background:#fff;color:#555961;font-size:10px;font-weight:600;display:inline-flex;align-items:center;gap:7px}.btn:hover{background:#f8f9f7;border-color:#d5d9d0}.btn.primary{background:#242e28;color:white;border-color:#242e28}.btn.primary:hover{background:#3a5142}.btn .icon{width:14px;height:14px}.canvas-panel{height:calc(100vh - 130px);min-height:560px;display:flex;flex-direction:column;border:1px solid #e8e9eb;border-radius:13px;background:white;overflow:hidden}.canvas-toolbar{height:49px;padding:0 14px;border-bottom:1px solid #edeef0;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.canvas-title{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:600}.canvas-title small{color:#a1a3a9;font-weight:400}.toolbar-actions{display:flex;align-items:center;gap:5px}.tool-button{height:29px;padding:0 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#777b82;font-size:10px;display:flex;align-items:center;gap:5px}.tool-button:hover{background:#f6f7f4;color:#34393a}.tool-button .icon{width:14px;height:14px}.toolbar-divider{height:18px;width:1px;background:#ededee;margin:0 5px}.canvas-stage{position:relative;flex:1;overflow:hidden;background-color:#f9faf9;background-image:radial-gradient(#d9dcda 1px,transparent 1px);background-size:18px 18px;touch-action:none}.canvas-board{position:absolute;left:0;top:0;width:1800px;height:1300px;transform-origin:0 0}.canvas-links{position:absolute;inset:0;width:1800px;height:1300px;overflow:visible;pointer-events:none}.canvas-links path{fill:none;stroke:#c6d0be;stroke-width:1.7;stroke-dasharray:5 5}.canvas-node{position:absolute;width:284px;border:1px solid #e5e7e5;border-radius:11px;background:#fff;box-shadow:0 8px 25px #1c25220c;overflow:hidden;user-select:none}.canvas-node:hover{box-shadow:0 10px 32px #1c252218;border-color:#d7dfd0}.node-header{height:38px;display:flex;align-items:center;padding:0 11px;border-bottom:1px solid #f0f1f0;cursor:grab;gap:8px}.node-header:active{cursor:grabbing}.node-icon{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#f2f5ec;color:#71875c}.node-icon .icon{width:13px;height:13px}.node-heading{font-size:10px;font-weight:600;color:#4a4d51}.node-kind{font-size:9px;color:#a3a5aa;margin-left:auto}.node-menu{border:0;background:none;color:#a4a6ab;padding:3px}.node-body{padding:12px}.prompt-label{font-size:9px;color:#a0a2a8;margin-bottom:7px}.node-textarea{width:100%;min-height:88px;resize:vertical;border:1px solid #ebedeb;border-radius:7px;padding:9px;font-size:10px;color:#55595b;line-height:1.65;outline:0;background:#fcfcfb;user-select:text}.node-foot{display:flex;align-items:center;justify-content:space-between;margin-top:9px}.node-foot small{font-size:9px;color:#a4a6aa}.small-run{border:0;border-radius:6px;background:#edf2e7;color:#5c7148;font-size:9px;padding:6px 8px;font-weight:600}.small-run:hover{background:#dfe9d4}.model-chip{height:25px;border:1px solid #e9eae6;border-radius:7px;padding:0 8px;display:inline-flex;align-items:center;gap:6px;font-size:9px;color:#6c735f;background:#fcfdf9}.model-chip i{width:5px;height:5px;background:#c2dd7c;border-radius:100%}.video-preview{height:135px;border-radius:8px;background-image:linear-gradient(145deg,#18343655,#15252899),url('./scene-art.webp');background-size:cover;background-position:center;position:relative;overflow:hidden}.video-preview:before{content:'';position:absolute;width:85%;height:38%;left:9%;bottom:-4%;border-radius:50% 50% 0 0;background:linear-gradient(160deg,#6c8882,#263d3e);filter:blur(1px)}.video-preview:after{content:'';position:absolute;inset:0;background:linear-gradient(130deg,transparent 30%,#ffffff26 48%,transparent 59%)}.play-dot{position:absolute;z-index:1;width:28px;height:28px;border-radius:50%;background:#ffffffd9;display:grid;place-items:center;left:calc(50% - 14px);top:calc(50% - 14px);color:#3f5048}.play-dot .icon{width:12px;height:12px;fill:#586d5c}.video-label{position:absolute;left:9px;bottom:8px;color:white;font-size:8px;z-index:2;text-shadow:0 1px 5px #000}.node-status{display:flex;align-items:center;gap:6px;font-size:9px;color:#8e9690}.node-status .status-dot{width:5px;height:5px;box-shadow:none}.image-preview{height:125px;border-radius:8px;overflow:hidden;background-image:linear-gradient(155deg,#f0cfb955,#34484644),url('./scene-art.webp');background-size:cover;background-position:center;position:relative}.image-preview:before{content:'';position:absolute;left:18%;top:18%;width:64%;height:87%;border-radius:49% 49% 0 0;background:linear-gradient(160deg,#c4d9d0,#627d76 64%,#344846);box-shadow:0 0 0 3px #ffffff30}.image-preview:after{content:'';position:absolute;inset:0;background:linear-gradient(115deg,#ffffff30,transparent 50%,#12262418)}.text-output{font-size:10px;line-height:1.7;color:#6e7174;background:#fafbf8;border:1px solid #eff0ed;border-radius:8px;padding:10px;min-height:80px}.canvas-hint{position:absolute;left:15px;bottom:13px;font-size:9px;color:#a2a5a7;background:#ffffffc9;border:1px solid #eceeed;border-radius:7px;padding:7px 9px;pointer-events:none}.zoom-controls{position:absolute;right:14px;bottom:13px;display:flex;gap:5px;background:#fff;border:1px solid #e6e8e7;border-radius:8px;padding:3px;box-shadow:0 3px 12px #00000008}.zoom-controls button{width:28px;height:25px;border:0;background:white;border-radius:5px;color:#666;display:grid;place-items:center}.zoom-controls button:hover{background:#f3f5f0}.zoom-level{font-size:9px;color:#868a8d;display:grid;place-items:center;min-width:39px}.empty-state{height:100%;display:grid;place-items:center;color:#9a9da2;font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:19px}.stat-card{padding:17px;border:1px solid #e9eaec;background:#fff;border-radius:11px}.stat-card span{font-size:10px;color:#999ca3}.stat-card strong{display:block;font-size:23px;letter-spacing:-.04em;margin-top:11px;font-weight:600}.stat-card small{display:block;font-size:9px;color:#a5a7ac;margin-top:4px}.table-card{border:1px solid #e9eaec;border-radius:11px;background:#fff;overflow:hidden}.table-head{height:47px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #eceef0}.table-head strong{font-size:11px}.table-head small{font-size:9px;color:#9da0a5}.data-table{width:100%;border-collapse:collapse}.data-table th{text-align:left;font-size:9px;color:#9da0a5;font-weight:500;padding:11px 16px;background:#fcfcfb;border-bottom:1px solid #f0f1f2;white-space:nowrap}.data-table td{font-size:10px;padding:12px 16px;border-bottom:1px solid #f2f3f3;color:#62666b;white-space:nowrap}.data-table tr:last-child td{border-bottom:0}.data-table td b{font-weight:600;color:#3e4245}.table-user{display:flex;align-items:center;gap:8px}.table-user .avatar{width:25px;height:25px;font-size:8px}.role-pill,.status-pill{display:inline-flex;align-items:center;border-radius:20px;padding:4px 8px;font-size:8px;background:#f0f2ec;color:#738061}.role-pill.admin{background:#f2edf8;color:#8972a4}.status-pill.done{background:#edf5e8;color:#718d58}.status-pill.placeholder{background:#f2f2f2;color:#888}.admin-layout{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);gap:14px;align-items:start}.form-card{border:1px solid #e9eaec;border-radius:11px;background:#fff;padding:18px}.form-card h3{font-size:12px;margin:0 0 5px}.form-card p{font-size:10px;color:#9b9ea4;line-height:1.6;margin:0 0 18px}.form-card .field{height:39px;font-size:10px}.form-card .field-label{font-size:10px}.form-card .form-group{margin-bottom:13px}.form-card .btn{width:100%;justify-content:center;margin-top:3px}.inline-note{padding:10px 11px;border-radius:8px;background:#f7f8f4;font-size:9px;color:#898e80;line-height:1.55;margin-top:13px}.row-actions{display:flex;gap:5px}.row-actions .btn{height:26px;padding:0 8px;font-size:8px}.notice{font-size:10px;color:#95989d;margin:12px 0}.mobile-menu{display:none}
@media(max-width:1000px){.login-page{grid-template-columns:.9fr 1.1fr}.visual-cards{right:3%;width:32%;min-width:170px}.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-left:11px;padding-right:11px}.admin-layout{grid-template-columns:1fr}.page-content{padding:20px}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.login-page{padding:0;display:block;background:#fff}.login-visual{display:none}.login-panel{min-height:100vh;padding:24px}.login-box .brand{margin-bottom:40px}.app-shell{display:block}.sidebar{position:fixed;z-index:5;bottom:0;left:0;right:0;min-height:0;height:62px;padding:5px 7px;background:#fff;border-right:0;border-top:1px solid #e6e7e8;display:flex;flex-direction:row;align-items:center;justify-content:space-around}.sidebar .brand,.workspace-switch,.nav-label,.sidebar-bottom{display:none!important}.sidebar nav{display:contents}.nav-link{flex:1;height:48px;min-width:0;width:auto;margin:0;justify-content:center;flex-direction:column;gap:3px;padding:3px;font-size:8px}.nav-link .icon{width:17px;height:17px}.nav-count{display:none}.main-area{min-height:100vh;padding-bottom:62px}.topbar{height:55px;padding:0 14px}.page-content{padding:15px 12px}.page-heading{align-items:center}.page-heading h1{font-size:18px}.page-heading p{font-size:9px}.canvas-panel{height:calc(100vh - 162px);min-height:480px}.canvas-toolbar{height:43px;padding:0 9px}.toolbar-actions .tool-button span{display:none}.toolbar-actions .tool-button{width:30px;justify-content:center;padding:0}.toolbar-actions .toolbar-divider{margin:0 2px}.canvas-title small{display:none}.canvas-node{width:260px}.stats-grid{gap:7px}.stat-card{padding:12px}.stat-card strong{font-size:19px}.data-table th,.data-table td{padding:10px 9px}.table-card{overflow:auto}.heading-actions .btn{padding:0 8px;font-size:9px}.credit-pill{padding:6px 8px}.top-actions{gap:7px}}

.credit-history{margin-top:14px}.table-scroll{overflow:auto}.table-empty{text-align:center;color:#a1a3aa!important;padding:24px!important}.credit-delta{font-weight:700}.credit-delta.add{color:#668c4b}.credit-delta.deduct{color:#bd6a5e}
.credit-dialog-backdrop{position:fixed;inset:0;z-index:20;background:#17211f66;display:grid;place-items:center;padding:18px;backdrop-filter:blur(3px)}.credit-dialog{width:min(430px,100%);background:#fff;border:1px solid #e7e9e6;border-radius:12px;box-shadow:0 24px 70px #17211f30;padding:21px}.credit-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:17px}.credit-dialog h2{font-size:19px;letter-spacing:-.03em;margin:5px 0 0}.dialog-close{width:30px;height:30px;border:1px solid #e9eaec;background:#fff;border-radius:8px;font-size:20px;line-height:1;color:#777}.credit-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#f6f8f2;border:1px solid #e9eee0;border-radius:8px;padding:12px 13px;margin-bottom:18px}.credit-summary>div{display:grid;gap:4px}.credit-summary span{font-size:10px;color:#7f8580}.credit-summary strong{font-size:17px;color:#394a31}.credit-summary small{font-size:9px;font-weight:500;color:#828b78}.credit-dialog .form-group{margin-bottom:15px}.credit-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:3px;border:1px solid #e5e7e4;border-radius:8px;background:#f7f8f6}.mode-button{height:33px;border:0;border-radius:6px;background:transparent;color:#777c79;font-size:11px}.mode-button.active[data-direction=add]{background:#eaf2e2;color:#587542;font-weight:600;box-shadow:0 1px 3px #1d27110d}.mode-button.active[data-direction=deduct]{background:#f8eae7;color:#a9594e;font-weight:600;box-shadow:0 1px 3px #2715110d}.credit-dialog .field{height:41px;font-size:11px}.credit-error{min-height:14px;margin-top:5px;color:#b34444;font-size:10px}.credit-dialog>form>footer{display:flex;justify-content:flex-end;gap:8px;margin-top:19px}.credit-dialog>form>footer .btn{min-width:86px;justify-content:center}.credit-dialog .btn.primary{background:#344b3d;border-color:#344b3d}.credit-dialog .btn.primary:hover{background:#48624f}
@media(max-width:700px){.credit-dialog{padding:18px}.admin-layout{gap:10px}.credit-history .data-table{min-width:680px}}

.page-content{width:100%}.video-composer{position:relative;width:min(100%,1120px);min-height:470px;margin:0 auto 16px;padding:22px 24px 15px;border:1px solid #dfe3e6;border-radius:14px;background:#fff;display:flex;flex-direction:column;box-shadow:0 8px 28px #26322b08}.composer-topline{height:30px;display:flex;align-items:center;justify-content:space-between;color:#9299a2}.prompt-limit,.char-count{font-size:12px;color:#9299a2}.composer-tools{display:flex;align-items:center;gap:6px}.composer-tools button{width:34px;height:34px;border:0;background:transparent;color:#8d96a0;border-radius:7px;font-size:20px}.composer-tools button:hover,.composer-tools button.active{background:#f3f6f0;color:#597047}.reference-strip{margin:11px 0 8px}.reference-cards{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.reference-tile{position:relative;width:112px;height:112px;padding:0;overflow:hidden;border:1px solid #e0e4e8;border-radius:10px;background:#fff;color:#34393b;display:flex;flex-direction:column;align-items:stretch;text-align:left}.reference-tile:hover,.reference-add:hover{border-color:#aab89c;background:#fcfdfb}.reference-thumb{height:78px;display:grid;place-items:center;background:#f2f3ef;color:#87927c}.reference-thumb .icon{width:26px;height:26px}.reference-thumb.product{background:linear-gradient(145deg,#eee9dc,#ded7c8 48%,#f9f8f3);color:#8c826c}.reference-thumb.person{background:linear-gradient(145deg,#e9ddd4,#bd9a86 52%,#e3d6cf);color:#6a625d}.reference-thumb.scene{background-image:linear-gradient(155deg,#6d827966,#253d3655),url('./scene-art.webp');background-size:cover;background-position:center;color:#fff}.reference-thumb.audio{background:linear-gradient(120deg,#e4e9eb,#fbfbfa);color:#748b7b}.reference-tile b{padding:6px 8px 0;font-size:11px;font-weight:600}.reference-tile small{position:absolute;right:7px;bottom:7px;font-size:9px;color:#9299a2}.reference-add{width:104px;height:104px;border:1px dashed #d8dde1;border-radius:10px;background:#fcfcfc;color:#737b83;display:grid;align-content:center;justify-items:center;gap:5px}.reference-add span{font-size:30px;font-weight:300;line-height:1}.reference-add small{font-size:10px}.reference-files{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 7px}.reference-file{height:34px;max-width:230px;display:flex;align-items:center;gap:7px;padding:3px 8px 3px 4px;border:1px solid #e8ebed;border-radius:7px;background:#fff;font-size:10px;color:#626a70}.reference-file img{width:25px;height:25px;object-fit:cover;border-radius:4px}.reference-file>.icon{width:18px;height:18px;margin:0 3px}.reference-file>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-file button{border:0;background:transparent;color:#8e969c;font-size:17px;padding:0 2px}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.video-prompt{width:100%;min-height:235px;flex:1;resize:vertical;border:0;outline:0;padding:12px 0;color:#32383a;font-size:17px;line-height:1.75;background:transparent}.video-prompt::placeholder,.image-prompt::placeholder,.chat-composer textarea::placeholder{color:#a0a7af}.video-prompt:focus{box-shadow:none!important}.composer-footer{display:flex;align-items:center;justify-content:space-between;min-height:38px}.write-prompt{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:#477b5f;font-size:15px;font-weight:600;padding:7px 5px}.write-prompt .icon{width:18px;height:18px}.generation-settings{width:min(100%,1120px);margin:0 auto 14px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.setting-select{height:86px;min-width:0;padding:12px 16px;border:1px solid #e0e4e7;border-radius:10px;background:#fff;display:flex;align-items:center;gap:14px}.setting-icon{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border:1px solid #e9edef;border-radius:9px;color:#435247;background:#fbfcfa;font-size:22px}.setting-icon .icon{width:22px;height:22px}.setting-copy{min-width:0;flex:1}.setting-copy small{display:block;margin-bottom:4px;color:#8a9299;font-size:11px}.setting-copy select{width:100%;min-width:0;border:0;outline:0;appearance:none;background:transparent;color:#303639;font-size:15px;font-weight:600}.setting-chevron{color:#929ba1}.generate-button{width:min(100%,1120px);min-height:58px;margin:0 auto;padding:12px 18px;border:0;border-radius:10px;background:#30483a;color:#fff;display:flex;align-items:center;justify-content:center;gap:17px;font-size:16px;font-weight:650}.generate-button span{font-size:12px;font-weight:500;color:#d2ddd4}.generate-button:hover:not(:disabled){background:#3d5948}.generate-button:disabled{background:#c7ccca;color:#f8f9f8;cursor:not-allowed}.generate-button:disabled span{color:#edf0ee}.prototype-note{width:min(100%,1120px);margin:8px auto;color:#959ca1;font-size:10px;line-height:1.5}.generation-results{width:min(100%,1120px);margin:17px auto 0}.generation-results h2,.output-heading h2{font-size:14px;font-weight:600;margin:0}.result-row{min-height:55px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #eceeef;color:#586168;font-size:11px}.result-row>div{min-width:0;flex:1}.result-row b,.result-row small{display:block}.result-row b{font-size:11px;color:#3e4446;font-weight:600}.result-row small{margin-top:4px;color:#969da2;font-size:9px}.result-row>span:last-child{color:#7f878c;font-size:10px}.result-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:7px;background:#f2f5ef;color:#617755}.result-icon .icon{width:16px;height:16px}.result-empty{padding:15px 0;color:#9aa0a5;font-size:11px}.composer-expanded{position:fixed;z-index:30;inset:12px;width:auto;max-width:none;min-height:0;margin:0;padding:25px 30px 18px;box-shadow:0 15px 65px #131b1d45}.composer-expanded .video-prompt{min-height:0}.image-workspace{width:min(100%,1120px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:16px;align-items:start}.image-composer,.image-output{min-width:0;padding:19px;border:1px solid #e4e7e8;border-radius:10px;background:#fff}.image-prompt{width:100%;min-height:170px;resize:vertical;margin:6px 0 12px;padding:12px;border:1px solid #e6e9e9;border-radius:8px;font-size:13px;line-height:1.7;color:#343a3c}.image-composer .reference-cards{gap:7px}.image-composer .reference-tile{width:72px;height:78px}.image-composer .reference-thumb{height:50px}.image-composer .reference-tile b{font-size:9px;padding:5px 5px 0}.image-composer .reference-tile small{font-size:8px;right:4px;bottom:5px}.image-composer .reference-add{width:68px;height:68px}.image-composer .reference-add span{font-size:23px}.image-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.image-options label{display:grid;gap:6px;color:#818a8f;font-size:10px}.image-options select{height:37px;padding:0 10px;border:1px solid #e2e6e6;border-radius:7px;background:#fff;color:#394143}.image-composer .generate-button{width:100%;min-height:48px;font-size:13px}.image-composer .prototype-note{width:100%}.image-output{min-height:290px}.output-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.output-heading span{font-size:10px;color:#959da1}.chat-workspace{width:min(100%,920px);min-height:min(68vh,740px);margin:0 auto;display:flex;flex-direction:column;border:1px solid #e3e7e7;border-radius:11px;background:#fff}.chat-transcript{flex:1;min-height:340px;max-height:62vh;overflow-y:auto;padding:25px}.chat-empty{height:100%;min-height:300px;display:grid;align-content:center;justify-items:center;text-align:center;color:#929b9e}.chat-empty>span{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#f1f4ed;color:#617657}.chat-empty h2{margin:12px 0 4px;font-size:16px;color:#434a4b}.chat-empty p{font-size:11px}.chat-message{display:flex;align-items:flex-start;gap:11px;margin:0 0 22px}.chat-avatar{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:50%;background:#edf1e7;color:#536948;font-size:11px}.chat-avatar .icon{width:16px;height:16px}.chat-message.user .chat-avatar{background:#e9eff0;color:#59686b}.chat-message>div{min-width:0}.chat-message b{font-size:11px;color:#404747}.chat-message p{margin:6px 0 0;color:#646c6d;font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.chat-composer{margin:0 16px;padding:12px;border:1px solid #e1e5e5;border-radius:9px}.chat-composer textarea{width:100%;resize:vertical;min-height:72px;border:0;outline:0;font-size:12px;line-height:1.7}.chat-composer footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-composer footer>span{font-size:10px;color:#90989a}.chat-composer .btn{height:34px;gap:6px}.chat-composer .btn .icon{width:14px;height:14px;transform:rotate(90deg)}.chat-workspace>.prototype-note{width:auto;margin:10px 17px 13px}
.image-result-placeholder{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:#edf0ec}.image-result-placeholder img{width:100%;height:100%;display:block;object-fit:cover}.image-result-placeholder>span{position:absolute;left:9px;right:9px;bottom:9px;padding:7px 9px;border-radius:6px;background:#17211f99;color:#fff;font-size:9px}.reference-file [data-insert-ref]{border-radius:4px;font-size:11px;font-weight:700;color:#688054}.reference-file [data-insert-ref]:hover{background:#edf3e7}
@media(max-width:760px){.page-content{padding:15px 12px}.page-heading{gap:8px}.page-heading .status-pill{flex:0 0 auto}.video-composer{min-height:440px;padding:14px}.reference-cards{gap:7px}.reference-tile{width:calc((100vw - 80px)/4);max-width:94px;height:96px}.reference-thumb{height:64px}.reference-add{width:68px;height:68px}.video-prompt{font-size:14px;min-height:200px}.write-prompt{font-size:13px}.generation-settings{gap:7px}.setting-select{height:72px;padding:8px;gap:8px}.setting-icon{width:34px;height:34px;flex-basis:34px}.setting-icon .icon{width:18px;height:18px}.setting-copy select{font-size:11px}.setting-copy small{font-size:9px}.generate-button{min-height:52px;font-size:13px;gap:9px}.generate-button span{font-size:10px}.image-workspace{grid-template-columns:1fr}.image-composer,.image-output{padding:13px}.chat-workspace{min-height:calc(100vh - 180px)}.chat-transcript{min-height:280px;padding:17px}.chat-composer{margin:0 10px}.composer-expanded{inset:6px;padding:15px}.composer-tools{gap:1px}}

.reference-dropzone{position:relative;padding:10px;border:1px solid transparent;border-radius:10px;transition:background .15s,border-color .15s}.reference-dropzone.is-dragging{border-color:#78996b;background:#f3f8ef}.reference-drop-hint{display:none;margin:-1px 0 9px;color:#58764f;font-size:11px;font-weight:600}.reference-dropzone.is-dragging .reference-drop-hint{display:block}.reference-strip{margin:0 0 8px}.reference-files{min-height:0}.reference-file{position:relative;height:40px;max-width:250px;overflow:visible}.reference-preview{position:relative;width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:5px;background:#f1f3ef;color:#64765e;transition:transform .16s ease,box-shadow .16s ease;transform-origin:left center}.reference-preview>img,.reference-preview>video{width:100%;height:100%;display:block;object-fit:cover;border-radius:5px}.reference-file--image:hover .reference-preview,.reference-file--video:hover .reference-preview{z-index:12;transform:scale(5.5);box-shadow:0 6px 24px #10191445;border:2px solid white}.reference-file--video:hover .reference-preview{transform:scale(5.5);transform-origin:left center}.reference-name{min-width:0;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-file button{position:relative;z-index:13}.audio-toggle{width:28px;height:28px;display:grid;place-items:center;border-radius:50%!important;background:#edf2e9!important;color:#4e6e43!important}.audio-toggle .icon{width:12px;height:12px;fill:currentColor}.audio-toggle.is-playing{background:#dcebd2!important}.audio-toggle audio{display:none}.reference-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 0;color:#959da1;font-size:10px}.clear-references{border:0;background:transparent;padding:5px 0;color:#9a625b;font-size:10px}.clear-references:disabled{color:#b7bcb9;cursor:not-allowed}.mention-field{position:relative}.mention-menu{position:absolute;z-index:25;left:0;bottom:calc(100% + 7px);width:min(360px,100%);max-height:250px;overflow:auto;padding:5px;border:1px solid #dfe5df;border-radius:9px;background:#fff;box-shadow:0 10px 32px #2030271d}.mention-menu[hidden]{display:none}.mention-option{width:100%;min-height:42px;padding:5px 8px;border:0;border-radius:6px;background:#fff;display:flex;align-items:center;gap:9px;text-align:left;color:#414947}.mention-option:hover,.mention-option:focus{background:#f3f6f0;outline:0}.mention-option-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:6px;background:#eff3eb;color:#65785b}.mention-option-icon .icon{width:15px;height:15px}.mention-option b,.mention-option small{display:block}.mention-option b{max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}.mention-option small{margin-top:2px;color:#969d99;font-size:9px}.mention-empty{padding:13px;color:#939b96;text-align:center;font-size:10px}.video-settings-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.video-settings-grid .setting-select{height:76px;padding:10px;gap:9px}.video-settings-grid .setting-icon{width:34px;height:34px;flex-basis:34px}.video-settings-grid .setting-copy select{font-size:13px}.image-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.image-settings-grid label{font-size:10px}.image-settings-grid select{height:37px;padding:0 10px;border:1px solid #e2e6e6;border-radius:7px;background:#fff;color:#394143}
@media(max-width:900px){.video-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.reference-dropzone{padding:6px}.reference-file--image:hover .reference-preview,.reference-file--video:hover .reference-preview{transform:scale(3.8)}.video-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.video-settings-grid .setting-select{height:68px}.mention-menu{width:min(300px,100%)}.image-settings-grid{gap:8px}}
.reference-file--audio:hover .audio-toggle{transform:scale(1.35);box-shadow:0 2px 8px #263b2730}.audio-toggle{transition:transform .15s,box-shadow .15s}
.mention-option-thumb{width:34px;height:34px;flex:0 0 34px;overflow:hidden;border-radius:6px;background:#eff3eb;color:#65785b;display:grid;place-items:center}.mention-option-thumb img,.mention-option-thumb video{width:100%;height:100%;display:block;object-fit:cover}.mention-option-thumb .icon{width:16px;height:16px}.mention-option-copy{min-width:0;flex:1}.mention-option-copy b,.mention-option-copy small{display:block}.mention-option-copy b{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}.mention-option-copy small{margin-top:2px;color:#969d99;font-size:9px}
.rich-prompt{white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}.rich-prompt:focus{outline:0}.rich-prompt:empty::before,.rich-prompt:has(> br:only-child)::before{content:attr(data-placeholder);color:#a0a7af;pointer-events:none}.image-prompt.rich-prompt{overflow:visible}.chat-prompt{width:100%;min-height:72px;max-height:32vh;overflow:auto;padding:2px 0;line-height:1.7;font-size:12px;color:#343a3c}.asset-mention{position:relative;display:inline-flex;align-items:center;margin:0 1px;padding:0 4px;border-radius:4px;background:#2f66b6;color:#fff;font-weight:600;white-space:nowrap;vertical-align:baseline;cursor:default}.asset-mention-label{display:block}.rich-prompt .asset-mention-preview{display:none}.asset-hover-preview{position:fixed;z-index:100;display:grid;place-items:center;padding:5px;overflow:hidden;border:1px solid #e1e5e3;border-radius:8px;background:#fff;box-shadow:0 12px 36px #111a1b45;pointer-events:none}.asset-hover-preview img,.asset-hover-preview video{width:100%;height:100%;display:block;object-fit:contain;border-radius:4px;background:#202624}.asset-hover-preview--audio{gap:8px;align-content:center;color:#627760}.asset-hover-preview--audio .icon{width:28px;height:28px}.asset-hover-preview--audio span{max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.mention-option .asset-mention{width:34px;height:34px;flex:0 0 34px;margin:0;padding:0;overflow:hidden;border-radius:6px;background:#eff3eb;color:#65785b}.mention-option .asset-mention-label{display:none}.mention-option .asset-mention-preview{position:static;width:100%;height:100%;aspect-ratio:auto;padding:0;overflow:hidden;border:0;border-radius:6px;background:transparent;box-shadow:none;opacity:1;visibility:visible;transform:none}.mention-option .asset-mention-preview img,.mention-option .asset-mention-preview video{background:#eff3eb}

.reference-dropzone{margin:6px 0;padding:9px;border:1px dashed #e0e6e2;background:#fcfdfb}.reference-drop-hint{color:#4e7154}.reference-dropzone.is-dragging{border-style:solid}.reference-add:focus-visible,.reference-tile:focus-visible{outline:2px solid #638c55;outline-offset:2px}.chat-composer .reference-dropzone{margin:0 0 10px;padding:7px}.chat-composer .reference-strip{margin:0 0 7px}.chat-composer .reference-tile{width:78px;height:78px}.chat-composer .reference-thumb{height:50px}.chat-composer .reference-tile b{font-size:9px;padding:5px 5px 0}.chat-composer .reference-add{width:70px;height:70px}.chat-composer .reference-actions{margin-top:3px}

/* Plain-text editors: the mirror decorates text without changing native editing. */
.prompt-editor{position:relative;isolation:isolate;min-width:0;overflow:hidden;border-radius:8px;background:#fff}
.prompt-editor>.prompt-highlights,.prompt-editor>.prompt-textarea{box-sizing:border-box;display:block;width:100%;height:100%;min-height:0;margin:0;padding:12px;border:0;border-radius:0;font-family:inherit;font-size:14px;font-weight:400;font-style:normal;line-height:1.8;letter-spacing:normal;text-align:left;text-indent:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;tab-size:4;resize:none;box-shadow:none;outline:0;scrollbar-gutter:stable}
.prompt-editor>.prompt-highlights{position:absolute;inset:0;z-index:0;overflow:auto;color:#32383a;pointer-events:none;user-select:none}
.prompt-editor>.prompt-textarea{position:relative;z-index:1;overflow:auto;background:transparent;color:transparent;caret-color:#32383a;overscroll-behavior:contain;cursor:text;-webkit-text-size-adjust:100%}
.prompt-editor>.prompt-textarea::placeholder{color:#a0a7af;opacity:1}
.prompt-editor>.prompt-textarea::selection{background:#91b8ef70;color:transparent}
.prompt-reference{display:inline;margin:0;padding:0;border:0;border-radius:3px;background:#dceafe;color:#245ba4;font:inherit;letter-spacing:inherit;white-space:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.mention-field:has(.video-prompt) .prompt-editor{height:clamp(230px,35dvh,360px)}
.mention-field:has(.image-prompt) .prompt-editor{height:210px;border:1px solid #e6e9e9;margin:6px 0 12px}
.mention-field:has(.chat-prompt) .prompt-editor{height:120px;margin-bottom:10px}
.prompt-editor:focus-within{box-shadow:0 0 0 2px #dfe8f4}
.mention-menu{position:fixed;top:auto;bottom:auto;z-index:65;max-height:300px;overscroll-behavior:contain;scrollbar-gutter:stable}
.mention-list-heading{position:sticky;top:-5px;z-index:1;margin:-5px -5px 4px;padding:10px 12px;background:#fff;border-bottom:1px solid #edf0f2;font-size:11px;color:#7f8993}
.mention-option.is-active{background:#edf3fc;outline:0}
.mention-option-thumb{width:42px;height:42px;flex-basis:42px}
.mention-option-thumb img,.mention-option-thumb video{object-fit:cover;pointer-events:none}
.mention-option-copy b{font-size:12px}
.mention-option-copy small{font-size:10px}

/* Scroll long scripts inside the editor, keeping navigation and assets visible. */
.app-shell{height:100dvh;min-height:0;overflow:hidden}
.sidebar{height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.main-area{height:100dvh;min-height:0;overflow:hidden}
.topbar{flex-shrink:0;position:relative;z-index:35}
.page-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.video-composer{min-height:0}
.video-composer .reference-dropzone{position:sticky;top:0;z-index:10;flex-shrink:0;background:#fcfdfb}
.video-composer .reference-files{max-height:110px;overflow-y:auto;overscroll-behavior:contain}
.video-composer .composer-topline,.video-composer .composer-footer{flex-shrink:0}
.composer-expanded{display:flex;overflow:hidden}
.composer-expanded .mention-field{flex:1;min-height:0}
.composer-expanded .mention-field .prompt-editor{height:100%;min-height:0}
@media(max-width:760px){.sidebar{height:62px;overflow:visible}.main-area{height:100dvh;min-height:0}.mention-field:has(.video-prompt) .prompt-editor{height:230px}.mention-field:has(.image-prompt) .prompt-editor{height:190px}.video-composer .reference-files{max-height:90px}}
@media(forced-colors:active){.prompt-editor>.prompt-textarea{color:CanvasText;caret-color:CanvasText}.prompt-highlights{visibility:hidden}}

.video-api-status{width:min(100%,1120px);margin:8px auto;color:#6e7d73;font-size:11px;line-height:1.5}
.video-api-status.is-error{color:#9b4f4b}
.status-pill.ready{background:#e6f2e7;border-color:#c1ddc5;color:#44734c}
.video-jobs{width:min(100%,1120px);margin:16px auto 0;display:grid;gap:10px}
.video-job{padding:14px 16px;border:1px solid #e2e7e3;border-radius:10px;background:#fbfcfb;color:#4a5550}
.video-job-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.video-job-heading b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#36433b}
.video-job-heading span{flex:0 0 auto;color:#74877a;font-size:10px}
.video-job>small{display:block;margin-top:6px;color:#929b96;font-size:10px}
.video-job-error{margin:9px 0 0;color:#a4514e;font-size:11px;line-height:1.55}
.generated-video{display:block;width:min(100%,560px);max-height:460px;margin-top:12px;border-radius:8px;background:#1c2420}
.generated-video-link{display:inline-block;margin-top:8px;color:#476d51;font-size:11px;text-decoration:none}
.generated-video-link:hover{text-decoration:underline}
.video-job-query{min-height:32px;margin-top:10px;padding:7px 12px;font-size:11px}

.page-content:has(.video-studio){padding:12px 14px;overflow:hidden}
.video-studio{height:100%;min-height:0;display:grid;grid-template-columns:minmax(300px,31%) minmax(0,1fr) 88px;gap:10px;overflow:hidden;color:#303638}
.video-create-pane{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e2e5e7;border-radius:9px}
.video-create-heading{height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #eceef0}
.video-create-heading h1{margin:0;font-size:18px;font-weight:650}
.video-create-heading button{height:32px;padding:0 7px;display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#32383a;font-size:12px;font-weight:600}
.video-create-heading button .icon{width:15px;height:15px}
.video-create-scroll{min-height:0;overflow:auto;padding:12px 14px;overscroll-behavior:contain}
.video-create-pane .video-composer{width:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
.video-create-pane .composer-topline{height:26px}
.video-create-pane .reference-dropzone{margin:5px 0;padding:5px 0;border:0;background:transparent}
.video-create-pane .reference-cards{gap:8px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
.video-create-pane .reference-tile{width:72px;height:74px;flex:0 0 72px;border-radius:7px}
.video-create-pane .reference-thumb{height:47px}
.video-create-pane .reference-thumb.video{background:#e7ecef;color:#647a85}
.video-create-pane .reference-tile b{width:100%;padding:5px 2px 0;font-size:10px;line-height:1.1;text-align:center;white-space:nowrap}
.video-create-pane .reference-files{max-height:70px;overflow:auto}
.video-create-pane .reference-actions{font-size:9px}
.video-create-pane .mention-field:has(.video-prompt) .prompt-editor{height:175px}
.video-create-pane .prompt-editor>.prompt-highlights,.video-create-pane .prompt-editor>.prompt-textarea{padding:9px;font-size:12px;line-height:1.7}
.video-create-pane .composer-footer{min-height:30px}
.video-create-pane .write-prompt{font-size:11px}
.video-create-pane .write-prompt .icon{width:14px;height:14px}
.video-create-pane .generation-settings{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:11px 0}
.video-create-pane .video-settings-grid .setting-select{height:62px;min-height:62px;padding:7px;gap:7px;border-radius:7px}
.video-create-pane .video-settings-grid .model-setting{grid-column:1/-1}
.video-create-pane .video-settings-grid .setting-icon{width:30px;height:30px;flex-basis:30px;border-radius:7px;font-size:16px}
.video-create-pane .video-settings-grid .setting-icon .icon{width:17px;height:17px}
.video-create-pane .video-settings-grid .setting-copy small{margin-bottom:2px;font-size:9px}
.video-create-pane .video-settings-grid .setting-copy select{font-size:11px}
.video-create-pane .generate-button{width:100%;min-height:46px;padding:9px;font-size:12px;gap:9px;border-radius:7px}
.video-create-pane .generate-button span{font-size:10px}
.video-create-pane .prototype-note,.video-create-pane .video-api-status{width:100%;margin:7px 0;font-size:9px}
.video-output-pane{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e2e5e7;border-radius:9px;background:#fff}
.video-output-tabs{height:52px;flex:0 0 52px;display:flex;align-items:stretch;gap:22px;padding:0 20px;border-bottom:1px solid #eceef0}
.video-output-tabs button{position:relative;display:flex;align-items:center;gap:7px;padding:0 2px;border:0;background:transparent;color:#9a9fa4;font-size:12px;font-weight:550}
.video-output-tabs button.is-active{color:#24282b}
.video-output-tabs button.is-active:after{position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#374c3f;content:""}
.video-output-tabs button span{min-width:17px;height:17px;display:grid;place-items:center;border-radius:9px;background:#f0f2ef;color:#68716b;font-size:9px}
.video-output-content{flex:1;min-height:0;overflow:auto;padding:14px}
.video-result-detail{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px}
.video-result-heading{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.video-result-heading h2{margin:0;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.video-result-heading p{margin:5px 0 0;color:#90989b;font-size:10px}
.video-result-status{flex:0 0 auto;padding:5px 8px;border-radius:12px;background:#f1f3ef;color:#69746b;font-size:9px}
.video-result-detail--complete .video-result-status{background:#edf5e8;color:#55764d}
.video-result-detail--failed .video-result-status,.video-result-detail--query-error .video-result-status{background:#fbefee;color:#a3544e}
.video-result-stage{position:relative;flex:1;min-height:240px;display:grid;place-items:center;overflow:hidden;border-radius:7px;background:#f8f9f8}
.video-result-player{position:absolute;inset:0;min-width:0;min-height:0;display:grid;place-items:center;overflow:hidden;background:#151a18}
.video-result-player video{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center}
.video-result-error{width:min(540px,calc(100% - 36px));display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #f0d3d0;border-radius:8px;background:#fffafa;color:#9a4c47}
.video-result-error-mark{width:24px;height:24px;flex:0 0 24px;display:grid;place-items:center;border-radius:50%;background:#f7e4e2;font-size:14px;font-weight:700}
.video-result-error h3,.video-result-empty h3,.video-result-processing h3{margin:0;color:#41484a;font-size:13px;font-weight:600}
.video-result-error p{margin:7px 0 0;color:#874843;font-size:11px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.video-result-error .btn{margin-top:11px}
.video-result-empty,.video-result-processing,.video-output-empty{max-width:420px;padding:24px;text-align:center;color:#929a9d}
.video-result-empty>.icon,.video-output-empty>.icon{width:32px;height:32px;margin-bottom:12px;color:#c5cbca}
.video-result-empty p,.video-result-processing p,.video-output-empty p{margin:7px 0 0;font-size:11px;line-height:1.6}
.video-result-empty .btn,.video-result-processing .btn{margin-top:13px}
.video-result-processing{display:grid;justify-items:center}
.video-spinner{width:27px;height:27px;margin-bottom:14px;border:2px solid #e1e7df;border-top-color:#66845d;border-radius:50%;animation:video-spin .85s linear infinite}
@keyframes video-spin{to{transform:rotate(360deg)}}
.video-result-footer{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.video-result-footer>p{min-width:0;margin:0;color:#697174;font-size:10px}
.video-result-footer>p b{display:block;margin-bottom:4px;color:#9ba2a4;font-weight:500}
.video-result-footer>p span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.5;overflow-wrap:anywhere}
.video-download{flex:0 0 auto;height:30px;font-size:10px}
.video-download .icon{width:13px;height:13px}
.video-output-empty{margin:auto}
.video-output-empty h2{margin:0;color:#596164;font-size:14px;font-weight:550}
.video-history-list{max-width:860px;margin:0 auto;display:grid}
.video-history-item{width:100%;min-height:72px;display:flex;align-items:center;gap:12px;padding:10px 6px;border:0;border-bottom:1px solid #eceef0;background:#fff;text-align:left;color:#4a5255}
.video-history-item:hover,.video-history-item.is-selected{background:#f8faf7}
.video-history-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:7px;background:#f0f3ee;color:#65765d;font-size:16px}
.video-history-icon .icon{width:16px;height:16px}
.video-history-copy{min-width:0;flex:1}
.video-history-copy b,.video-history-copy small{display:block}
.video-history-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}
.video-history-copy small{margin-top:4px;color:#929a9d;font-size:9px}
.video-history-error{display:block;margin-top:5px;color:#a3544e;font-size:10px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.video-history-ready{flex:0 0 auto;color:#648359;font-size:9px}
.video-queue-rail{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;overflow:hidden;border:1px solid #e2e5e7;border-radius:9px;background:#fff}
.video-queue-stats{width:100%;flex:0 0 auto;display:grid;padding:10px 4px 7px;border-bottom:1px solid #eceef0;text-align:center}
.video-queue-stats span{padding:5px 0}
.video-queue-stats small,.video-queue-stats b{display:block}
.video-queue-stats small{color:#929a9d;font-size:9px}
.video-queue-stats b{margin-top:3px;color:#262b2d;font-size:16px;font-weight:600}
.video-queue-list{width:100%;min-height:0;flex:1;overflow:auto;padding:6px;overscroll-behavior:contain}
.video-queue-item{width:100%;display:grid;justify-items:center;gap:4px;padding:5px 3px 7px;border:1px solid transparent;border-radius:7px;background:#fff;text-align:center;color:#5b6365}
.video-queue-item:hover,.video-queue-item.is-selected{border-color:#dce5d7;background:#f7faf5}
.video-queue-thumb{width:100%;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:#f0f2ef;color:#88928c}
.video-queue-thumb video{width:100%;height:100%;object-fit:cover}
.queue-placeholder .icon{width:19px;height:19px}
.queue-failed-mark{color:#a3544e;font-size:19px;font-weight:700}
.video-queue-item-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}
.video-queue-item small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9aa1a3;font-size:8px}
.video-queue-item--failed small,.video-queue-item--query-error small{color:#a3544e}
.video-queue-empty{margin:10px 0;color:#9ba2a3;text-align:center;font-size:9px}
@media(max-width:1160px){.page-content:has(.video-studio){overflow:auto}.video-studio{height:auto;min-height:calc(100dvh - 98px);grid-template-columns:minmax(270px,.8fr) minmax(0,1.2fr);grid-template-rows:minmax(480px,1fr) auto;overflow:visible}.video-create-pane{grid-column:1;grid-row:1}.video-output-pane{grid-column:2;grid-row:1;min-height:520px}.video-queue-rail{grid-column:1/-1;grid-row:2;min-height:94px;flex-direction:row;align-items:stretch}.video-queue-stats{width:120px;display:flex;align-items:center;justify-content:space-around;padding:4px;border-right:1px solid #eceef0;border-bottom:0}.video-queue-list{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;padding:6px}.video-queue-item{width:74px;flex:0 0 74px;padding:2px}.video-queue-thumb{width:50px}}
@media(max-width:700px){.page-content:has(.video-studio){overflow-y:auto;padding:10px 9px}.video-studio{height:auto;min-height:0;display:flex;flex-direction:column;overflow:visible}.video-create-pane{min-height:0;max-height:none}.video-create-scroll{overflow:visible}.video-create-pane .mention-field:has(.video-prompt) .prompt-editor{height:160px}.video-output-pane{min-height:500px;height:62vh;max-height:680px}.video-output-content{padding:10px}.video-result-stage,.video-result-player{min-height:200px}.video-result-footer{align-items:flex-end}.video-queue-rail{min-height:92px}.video-queue-stats{width:108px}.video-queue-item{width:68px;flex-basis:68px}.video-queue-thumb{width:46px}}

.company-password-page{min-height:100vh;display:grid;place-items:center;padding:32px;background:#f5f6f8}.company-password-page>.form-card{width:min(100%,480px)}.company-job-id{display:block;max-width:220px;overflow-wrap:anywhere;color:#7b8190;font-size:11px}.data-table td .btn{margin:3px;white-space:nowrap}.data-table td{vertical-align:top}.credit-delta.refund,.credit-delta.pool{color:#228567}.credit-delta.spend,.credit-delta.deduct{color:#bc4d52}
