@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--dark:#09151b;--ink:#f7fbff;--green:#69efc2;--line:#2c4049;--muted:#b5cbd1;--surface:#111d25;--surface-raised:#172731;font-family:'Be Vietnam Pro',Candara,sans-serif}
body{background:#0b1015;color:var(--ink);font-family:'Be Vietnam Pro',Candara,sans-serif;font-size:13px}
button,input,select,textarea{font:inherit;caret-color:var(--green)}
::selection{background:#25795f;color:#fff}
*{scrollbar-color:#45616a #0b1015;scrollbar-width:thin}
.sidebar{background:var(--dark);border-right:1px solid var(--line);padding:30px 20px}
.brand{color:var(--ink);gap:12px;margin:0 8px 54px;font-size:27px;font-weight:800;line-height:1.1}
.brand img{width:40px;height:40px;object-fit:contain;flex:none}
.brand small{font-size:12px;letter-spacing:.09em;color:#b5cbd1;margin-top:8px;font-weight:500}
.nav-label{color:#9fbfc3;font-size:12px;letter-spacing:.12em}
.nav-item{color:#c8dce0;border:1px solid transparent;min-height:46px;font-weight:500}
.nav-item:hover{color:#f7fbff;background:#152931}
.nav-item.selected{background:#12372e;color:#9cffe0;border-color:#285b4d}
.nav-item>span{background:#1d4e40;color:#b9ffe6}
main{padding:30px 32px;max-width:1900px;margin-inline:auto}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:none}
.panel-heading{border-color:var(--line);padding:22px 24px;min-height:76px}
.panel-heading h2{color:var(--ink);font-weight:600;font-size:14px}
.projects-toolbar p,.project-sub,.project-description>span,.project-number span,.project-table-head,.times-heading,.editor-top,.filename-help,.field-help,.field-counter,.mode-help,.optional,.composer-footer,.quiet-button,.filter,.queue-footer,.detail-description,.channel-card p,.worker-stat>span,.detail-body>p,.event-list time,.subtle-badge{color:var(--muted)}
.projects-toolbar{gap:20px;margin-bottom:22px}.projects-toolbar p{max-width:70ch}
.project-table-head{background:#14232c;border-color:var(--line);font-weight:500}
.project-row,.channel-card,.catalog-tabs,.video-toolbar,.video-row,.queue-footer,.composer-footer,.time-row,.dialog-head{border-color:var(--line)}
.project-row:hover,.project-open:hover{background:#152731}
.project-open{color:var(--ink)}.project-description strong{color:var(--ink);font-weight:600}
.project-number strong{color:#d7f9ec}.project-mark{background:#183b33;color:#8af3cd}
.error-number strong{color:#ffbb9c}
.primary{background:#07836b;color:#fff;border:1px solid #199b7c;border-radius:8px;font-weight:600;min-height:44px}
.primary:hover{background:#08745f;border-color:#69efc2}.primary:disabled{background:#1c4d43;color:#a7c6bc;border-color:#315f54;opacity:.65}
.quiet-button{background:#15252e;border:1px solid #405d65;border-radius:7px;min-height:36px}
.quiet-button:hover{background:#1d343c;color:var(--ink);border-color:#6eafa0}
.quiet-button.selected,.filter.selected{background:#1c4337;border-color:#487a63;color:#bcffe1}
.text-button{color:#88e6c6}.text-button:hover{color:#c1ffec}
label,legend,.channel-choice .channel-title,.job-title{color:#e2eff1}
input,textarea,select{background:#0b161d;border:1px solid #46616a;border-radius:7px;color:#f7fbff;min-height:42px}
textarea{line-height:1.75;resize:vertical}input::placeholder,textarea::placeholder{color:#9bb0b9;opacity:1}
input:focus,textarea:focus,select:focus{border-color:#69efc2;box-shadow:none;outline:2px solid #69efc2;outline-offset:2px}
input[type=checkbox]{accent-color:#69efc2;min-height:0;width:16px;height:16px}
form .required{color:#a1f7d5}.optional{font-weight:400}
.channel-choice{background:#13222a;border-color:#405d65;border-radius:8px;min-height:46px}
.channel-choice:has(input:checked){background:#173b30;border-color:#539d7e}
.platform-icon.youtube{background:#3c2829;color:#ffb7ad}.platform-icon.facebook{background:#23334c;color:#b6d0ff}
.mode-choice{background:transparent;padding:0}.mode{border:1px solid #487a63;background:#1c4337;color:#bcffe1;border-radius:7px;min-height:40px}
.mode.selected{background:#1c4337;color:#bcffe1}.mode:disabled{opacity:.55}
.filename-help{background:#142a27;border:1px solid #2f5146;padding:12px 14px;border-radius:7px;line-height:1.75}
.activation-switch{color:#d5eee6;gap:9px;font-size:12px}.switch-track{background:#455d65}.activation-switch input:checked+.switch-track{background:#07836b}
.status{background:#20313a;color:#c1d7db}.status.cancelled{background:#263139;color:#c0cbd1}
.status.waiting{background:#393223;color:#f6dba0}.status.published,.status.simulated{background:#1c4032;color:#b7f2cd}
.status.failed,.status.needs_review{background:#442e28;color:#ffc5a7}
.status.preparing,.status.downloading,.status.transferring,.status.verifying{background:#213c4b;color:#b8e5ff}
.notice.error{background:#3e2727;color:#ffcebd;border:1px solid #75483d}.notice.success{background:#183b2f;color:#b8f5d4;border:1px solid #376c54}.notice.warning{background:#3a3222;color:#ffe0a3}
.field-help.invalid,.video-warning,.job-error{color:#ffc49c}
.video-content,.empty{background:var(--surface)}.video-row:hover,.video-card:hover{background:#152731}
.video-title,.video-name{color:#e9f7f5;font-weight:500;line-height:1.75}.video-meta,.video-index{color:var(--muted)}
.video-content a,.result-link{color:#9aeccd;text-underline-offset:3px}.video-content a:hover,.result-link:hover{color:#d5fff0}
.video-thumb{background:#20363a;border:1px solid #3d525d}.video-thumb svg{color:#9bc9b7}
.video-card{background:#111d25;border-color:var(--line)}
.catalog-tabs,.video-toolbar{border-color:var(--line)}.catalog-tabs{gap:8px}
.catalog-tabs .filter.selected{background:#1c4337;border-color:#487a63;color:#bcffe1}
.video-info .video-name{color:#e9f7f5}.video-info .video-meta,.video-toolbar{color:var(--muted)}.video-info .video-warning{color:#ffc49c}
.video-actions a,.video-actions button,.editor-top>.text-button,.times-heading button{color:#9aeccd}
.folder-input button,.time-row button{color:#c5dfd8;border-color:#405d65}
.video-thumbnail{background:#20363a}.thumbnail-fallback{color:#bcdbcf}
#dirty-label{color:#ffe0a3}
.filter{min-height:36px;border:1px solid transparent}.filter:hover{color:#e5f7ee;background:#1b3035}
.empty,.empty p{color:var(--muted)}.empty h3{color:#e7f6ef;font-weight:500}.empty-art{color:#79bfa4}
.composer-footer{background:#0e1920;font-size:12px;line-height:1.8}.queue-footer{gap:16px;line-height:1.7}
.worker-stat strong,.event-list li{color:#d6f6e9}.worker-explainer{background:#13272b;border:1px solid var(--line)}.worker-explainer h3{color:#deeee7}
.subtle-badge{background:#192e35;border-color:#405d65}.detail-description{line-height:1.9}
dialog{background:#111d25;border:1px solid #46616a;color:var(--ink);border-radius:14px;box-shadow:0 18px 70px #0008}
dialog::backdrop{background:#02090dbd;backdrop-filter:none}.dialog-head button{color:#cfdfdf;min-width:36px;min-height:36px}
.event-list{border-color:#416057}.event-list li:before{background:#69efc2}
.job-mode{background:#24372c;color:#bfe5ba;border-color:#3a6048}.job-mode.live{background:#393223;color:#f6dba0;border-color:#665739}
.access-panel{width:min(500px,calc(100% - 36px));margin:12vh auto;padding:32px;background:#111d25;border:1px solid var(--line);border-radius:14px}
.random-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.random-range input{width:100%;min-width:0}
.video-actions .youtube-result{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;background:#1c4337;border:1px solid #487a63;border-radius:7px;color:#bcffe1;text-decoration:none;font-weight:500}
.video-actions .youtube-result:hover{background:#255444;color:#e5fff3}
.access-panel h1{font-size:25px;color:var(--ink);margin:0 0 16px;font-weight:700}.access-panel p{color:var(--muted);line-height:1.9;margin-bottom:24px}.access-panel a{display:inline-flex;text-decoration:none;align-items:center;justify-content:center}
button:focus-visible,a:focus-visible{outline:2px solid #88f7cc;outline-offset:3px}
@media(min-width:1600px){main{padding:38px 42px}.schedule-grid{grid-template-columns:390px minmax(0,1fr)}}
@media(max-width:1180px){main{padding:26px 24px}.sidebar{padding-inline:16px}.brand{font-size:25px;gap:9px}}
@media(max-width:640px){main{padding:22px 16px}.sidebar{padding:16px 18px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 20px;font-size:25px}.brand img{width:34px;height:34px}.brand small{font-size:12px;margin-top:6px}.nav-item{font-size:12px;min-height:42px}.panel-heading{padding:18px 20px;min-height:68px}.queue-footer{flex-wrap:wrap}.projects-toolbar{align-items:flex-start}.projects-toolbar p{font-size:12px}.primary.compact{padding:11px 14px}.project-row{padding:20px}.project-open{min-width:0}.activation-switch{font-size:12px}.access-panel{padding:26px}}

/* Compact project management and a bounded, virtual video viewport. */
.workspace{min-width:0}.schedule-grid>*,.project-description{min-width:0}
.projects-panel{overflow:visible}.project-table-head{border-radius:13px 13px 0 0}
.project-table-head,.project-row{grid-template-columns:minmax(210px,1fr) 68px 68px 72px 112px;gap:14px;padding:14px 20px}
.project-row{position:relative;min-height:94px}.project-row:last-child{border-radius:0 0 13px 13px}
.project-mark{width:34px;height:34px;min-width:34px;border-radius:8px}.project-mark svg{width:19px;height:19px}
.project-open{gap:12px;padding:0;align-items:center;min-height:44px}
.project-description strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.project-sub{font-size:12px;line-height:1.6}.project-number strong{font-size:19px;font-variant-numeric:tabular-nums}
.project-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.home-switch{padding:0;min-width:44px;min-height:40px;justify-content:center}.home-switch .switch-track{border-color:#60828a}
.home-switch>input:checked+.switch-track{background:#07836b;border-color:#25b98d}
.project-menu{position:relative}.menu-trigger{display:flex;align-items:center;justify-content:center;list-style:none;width:36px;height:40px;cursor:pointer;border-radius:7px;color:#c2d9dc}
.menu-trigger::-webkit-details-marker{display:none}.menu-trigger svg{width:22px;height:22px;fill:currentColor}.menu-trigger:hover{background:#25404a;color:#eafff7}
.project-menu[open]{z-index:10}.project-menu-items{position:absolute;right:0;top:44px;min-width:174px;padding:5px;background:#1a2c36;border:1px solid #45636c;border-radius:9px;box-shadow:0 9px 24px #0006}
.menu-action{display:block;width:100%;border:0;background:transparent;color:#e0eff0;text-align:left;padding:11px 12px;border-radius:6px;font-size:12px;min-height:40px}
.menu-action:hover{background:#28434a}.menu-action.danger{color:#ffc4b3}
.action-dialog-body{padding:26px}.action-dialog-body h2{font-size:19px;line-height:1.6;overflow-wrap:anywhere}.action-dialog-body>p{font-size:13px;color:var(--muted);line-height:1.8}
.action-dialog-buttons{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.danger-button{background:#984b42;border-color:#bb7062}.danger-button:hover{background:#823e37}
#toggle-settings{display:flex;align-items:center;gap:9px;border:0;padding:0;background:transparent;color:inherit;font:inherit;font-weight:600;min-height:36px}
#toggle-settings:disabled{opacity:1;cursor:default}#toggle-settings svg{display:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.queue .panel-heading{flex-direction:row;align-items:center;min-height:66px;padding:15px 20px}
.queue .panel-heading h2{white-space:nowrap}.catalog-tabs{padding:12px 18px;gap:4px}.video-toolbar{padding:12px 18px;gap:6px}
#video-content{display:block;padding:0;min-height:0;height:clamp(300px,calc(100dvh - 230px),690px);overflow:auto;overscroll-behavior:contain;overflow-anchor:none;position:relative;scrollbar-gutter:stable;contain:layout paint}
.virtual-rows{display:grid;grid-template-columns:repeat(var(--video-columns),minmax(0,1fr));gap:var(--video-gap);padding-inline:12px}
.virtual-spacer{pointer-events:none;width:1px}
#video-content .virtual-rows .video-item{height:var(--video-height);min-width:0;overflow:hidden;margin:0;padding:14px 4px;border-bottom:1px solid var(--line);grid-template-columns:100px minmax(0,1fr);gap:14px}
#video-content.grid .virtual-rows .video-item{padding:12px 0;display:flex;flex-direction:column;gap:8px;border-bottom:0}
#video-content .video-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.6;margin:0}
#video-content .video-meta{font-size:12px;margin-top:5px;line-height:1.5}
#video-content .field-help,#video-content .video-warning{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.5;margin:5px 0 0}
#video-content .job-error{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.5;margin:5px 0 0}
#video-content .video-info>.status{font-size:12px;margin-top:5px;padding:3px 6px}
#video-content .video-actions{gap:7px 12px;margin-top:7px;font-size:12px;min-height:30px}
#video-content .video-actions>a,#video-content .video-actions>button{min-height:30px;display:inline-flex;align-items:center;font-size:12px}
#video-content .video-actions .youtube-result{min-height:32px;padding:5px 9px}
#video-content .empty{min-height:100%;padding:24px}.queue-footer{font-size:12px;padding:12px 18px}
@media(max-width:1180px){.project-table-head,.project-row{grid-template-columns:minmax(170px,1fr) 56px 56px 60px 100px;gap:10px}.schedule-grid{gap:18px}}
@media(max-width:950px){
 .project-table-head{display:none}.project-row{grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 18px;gap:10px;min-height:130px}
 .project-open{grid-column:1/-1;padding-right:94px;align-items:flex-start}.project-controls{position:absolute;top:13px;right:12px}
 .project-number{display:flex;align-items:center;gap:7px;text-align:left}.project-number>span{display:block;margin:0;font-size:12px}.project-number strong{font-size:17px}
 .project-mark{width:30px;height:30px;min-width:30px}.project-description strong{font-size:13px}.project-sub{font-size:12px}
 #toggle-settings{cursor:pointer;min-height:40px}#toggle-settings svg{display:block;transition:transform .15s}.settings-collapsed #toggle-settings svg{transform:rotate(-90deg)}
 .composer.settings-collapsed #project-form{display:none}.composer .panel-heading{min-height:64px;padding:10px 18px}.schedule-grid{grid-template-columns:1fr}
 .queue .panel-heading{min-height:60px}.queue .panel-heading .display-picker{align-self:auto}
}
@media(max-width:640px){
 .sidebar{padding:12px 16px}.brand{font-size:23px;margin:0 0 13px;gap:9px}.brand img{width:32px;height:32px}.brand small{font-size:12px;margin-top:4px}.nav-item{min-height:40px;font-size:12px;gap:5px}
 main{padding:18px 12px}.projects-toolbar{gap:13px;margin-bottom:16px}.projects-toolbar p{font-size:12px;line-height:1.6}.projects-toolbar .primary{width:auto;min-height:40px}
 .project-row{padding:14px;min-height:108px;gap:9px}.project-open{gap:9px;padding-right:86px}.project-controls{top:10px;right:8px;gap:4px}
 .project-number{gap:5px;flex-wrap:wrap}.project-number>span{font-size:12px}.project-number strong{font-size:16px}.project-description strong{-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
 .editor-top{gap:10px;margin-bottom:12px}.schedule-grid{gap:14px}.panel-heading h2{font-size:13px}.activation-switch{font-size:12px}
 .queue .panel-heading{padding:12px 14px;flex-direction:row;gap:7px}.display-picker .quiet-button{font-size:12px;padding:7px 9px;min-height:34px}
 .catalog-tabs{padding:10px 12px;gap:2px}.catalog-tabs .filter{font-size:12px;padding:8px 7px;min-height:34px}.video-toolbar{padding:10px 14px;font-size:12px;line-height:1.6;flex-direction:column;align-items:flex-start}
 #video-content{height:clamp(300px,calc(100dvh - 220px),540px)}#video-content .virtual-rows .video-item{grid-template-columns:78px minmax(0,1fr);gap:10px;padding:12px 0}
 #video-content .video-name{font-size:12px;line-height:1.6}#video-content .video-meta,#video-content .video-actions>a,#video-content .video-actions>button{font-size:12px}
 #project-form input,#project-form select,#project-form textarea{font-size:16px}.queue-footer{font-size:12px;padding:11px 14px;line-height:1.7}
 .action-dialog-body{padding:22px}.action-dialog-body h2{font-size:17px}.action-dialog-buttons .primary{width:auto;min-width:110px}.action-dialog-buttons .quiet-button{min-width:68px}
}
@media(prefers-reduced-motion:reduce){#toggle-settings svg{transition:none}}
#project-state{display:none}
