:root{color-scheme:dark;--bg:#080d10;--panel:#11191e;--panel2:#151f25;--line:#26343c;--muted:#8c9aa2;--orange:#ffd21f;--white:#f5f7f8;--green:#49d69b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white);font:14px/1.4 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.topbar{height:66px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#0b1115;gap:20px}.brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none;font-size:17px;font-weight:900;letter-spacing:.3px}.brandmark{display:grid;place-items:center;width:34px;height:34px;background:var(--orange);clip-path:polygon(50% 0,100% 100%,0 100%);padding-top:9px;color:#111;font-size:17px}.orange{color:var(--orange)}.brand small{display:block;color:#89969d;font-size:8px;letter-spacing:2px;margin-top:1px}.project{display:flex;align-items:center;gap:9px;color:#d6dde0;font-size:12px}.dot,.live-pill i{width:7px;height:7px;border-radius:50%;background:var(--green);display:inline-block}.muted{color:var(--muted)}.top-actions,.toolbar,.toolgroup,.button-row,.head-right,.program-controls{display:flex;align-items:center;gap:9px}.clock,.mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,monospace}.btn{border:1px solid #34434c;background:#1a252c;color:#eaf0f2;padding:9px 12px;border-radius:5px;font:600 12px inherit;cursor:pointer}.btn:hover,.tool:hover{border-color:#74838c;background:#26343c}.btn.small{padding:6px 9px;font-size:11px}.btn.ghost{background:transparent}.orange-btn{background:var(--orange);border-color:var(--orange);color:#111;font-weight:800}.orange-btn:hover{background:#ffe36a}.full{width:100%;justify-content:center}.toolbar{height:42px;border-bottom:1px solid var(--line);padding:0 20px;justify-content:space-between;background:#10171c}.tool{width:28px;height:27px;border:1px solid transparent;border-radius:4px;background:transparent;color:#9caab1;font-size:17px;cursor:pointer}.tool.active{background:#26343c;color:white;border-color:#3b4c56}.toolbar-center{display:flex;gap:15px;align-items:center;font-size:11px}.live-pill{font-size:9px;font-weight:800;letter-spacing:1px;color:#a9b9c0;display:flex;align-items:center;gap:7px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 286px;min-height:calc(100vh - 140px)}.mainstage{padding:20px 20px 14px;min-width:0}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:13px}.eyebrow{font-size:9px;letter-spacing:1.6px;color:var(--orange);font-weight:800}.section-head h1{font-size:20px;margin:3px 0 0;letter-spacing:-.4px}.head-right{font-size:11px}.camera-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.feed{background:#11191e;border:1px solid #2b3941;border-radius:5px;overflow:hidden;min-width:0;cursor:pointer}.feed.selected{border:2px solid var(--orange)}.feed.program:not(.selected){border-color:#a63b19}.feed-video{aspect-ratio:16/9;background:linear-gradient(145deg,#17242b,#0b1115);position:relative;overflow:hidden}.feed-video video{width:100%;height:100%;object-fit:contain;display:none;background:#050809}.feed.has-source .feed-video video{display:block}.feed.has-source .empty-feed{display:none}.empty-feed{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#82919a;font-size:10px;text-align:center}.empty-feed b{font-size:12px;color:#d8e0e3;letter-spacing:1px}.feed-tag,.feed-state{position:absolute;top:7px;left:8px;font-size:8px;letter-spacing:.7px;font-weight:800;background:#111a20d9;padding:4px 6px;border-radius:3px}.feed-state{left:auto;right:7px;color:#a2afb5}.feed.has-source .feed-state{color:var(--green)}.feed-foot{height:31px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;font-size:9px;letter-spacing:.8px}.take-btn{background:#26343c;color:white;border:0;border-radius:3px;font-size:9px;font-weight:900;padding:5px 9px;cursor:pointer}.feed.program .take-btn{background:var(--orange);color:#111}.program-bar{margin-top:13px;background:#11191e;border:1px solid var(--line);border-radius:5px;padding:10px;display:flex;align-items:center;gap:13px}.program-label{display:flex;align-items:center;gap:9px;min-width:150px}.on-air{background:#e44444;color:white;font-size:8px;font-weight:900;letter-spacing:1px;padding:5px 7px;border-radius:3px}.program-label b,.program-label small{display:block}.program-label b{font-size:11px}.program-label small{font-size:8px;color:var(--muted);letter-spacing:1px}.program-preview{height:50px;aspect-ratio:16/9;background:#080d10;border:1px solid #35444d;display:grid;place-items:center;color:#60717a;font-size:8px;letter-spacing:1px;overflow:hidden}.program-preview video{width:100%;height:100%;object-fit:contain}.program-controls{margin-left:auto}.sidepanel{background:#0d1418;border-left:1px solid var(--line);padding:0 15px}.panel-block{padding:17px 0;border-bottom:1px solid var(--line)}.panel-title{display:flex;justify-content:space-between;font-size:9px;font-weight:900;letter-spacing:1.4px;margin-bottom:13px;color:#e2e8ea}.sidepanel label,.tab-content label{display:block;font-size:10px;color:#9eabb2;margin:11px 0 6px}.sidepanel select,.tab-content input,.dialog-head+label,input[type=url],#sourceLabel{width:100%;background:#172229;color:#edf1f2;border:1px solid #35444d;border-radius:4px;padding:9px;font:12px inherit}.button-row{margin:10px 0}.button-row .btn{flex:1}.sidepanel input[type=range]{width:100%;accent-color:var(--orange)}.selected-camera{padding:9px;background:#172229;border:1px solid #2b3a43;border-radius:4px;font-size:11px}.ptz{display:grid;grid-template-columns:repeat(3,35px);justify-content:center;gap:5px;margin:12px 0}.ptz button{height:31px;background:#1d2a31;border:1px solid #3a4a53;border-radius:4px;color:#dce4e7;cursor:pointer}.ptz button:nth-child(1){grid-column:2}.ptz button:nth-child(2){grid-column:1;grid-row:2}.ptz button:nth-child(3){grid-column:2;grid-row:2}.ptz button:nth-child(4){grid-column:3;grid-row:2}.ptz button:nth-child(5){grid-column:2;grid-row:3}.tiny{font-size:9px;line-height:1.5}.preset-row{display:flex;gap:6px;margin-top:10px}.preset-row .btn{flex:1}.record-status{display:flex;align-items:center;gap:8px;font-size:11px;margin-bottom:11px}.record-dot{width:8px;height:8px;border-radius:50%;background:#65737a}.record-dot.recording{background:#f04444;box-shadow:0 0 0 4px #f0444422;animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.4}}.clip-list{max-height:150px;overflow:auto}.clip-item{padding:8px 0;border-bottom:1px solid #233039;display:flex;justify-content:space-between;font-size:10px}.io-row{display:flex;justify-content:space-between;font-size:10px;padding:6px 0;color:#aab6bc}.io-row b{color:#e6ecee}.bottomline{height:32px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 20px;color:#aab6bc;font-size:9px;letter-spacing:.5px}.bottomline span:last-child{color:#82919a}.camera-grid[data-layout=focus]{grid-template-columns:1fr 1fr}.camera-grid[data-layout=focus] .feed:not(.program){display:none}.camera-grid[data-layout=quad]{grid-template-columns:repeat(2,minmax(0,1fr))}.camera-grid[data-layout=quad] .feed:nth-child(n+5){display:none}dialog{background:#111a20;color:#eef2f3;border:1px solid #3a4b55;border-radius:8px;padding:22px;width:min(460px,calc(100% - 28px));box-shadow:0 24px 80px #000a}dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.dialog-head h2{margin:4px 0;font-size:20px}.x{background:none;border:0;color:#c7d0d4;font-size:25px;cursor:pointer}.source-tabs{display:flex;border-bottom:1px solid var(--line);gap:6px;margin-bottom:14px}.tab{border:0;background:none;color:#98a7ae;padding:9px 10px;cursor:pointer;font-size:11px}.tab.active{color:white;border-bottom:2px solid var(--orange)}.tab-content input{margin-top:5px}.hint{color:#98a7ae;font-size:11px;line-height:1.6}.dialog-actions{display:flex;justify-content:end;gap:8px;margin-top:18px}.error{color:#ff8a72;font-size:11px}.feed-video video{pointer-events:none}@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 260px}.camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project{display:none}}@media(max-width:700px){.topbar{padding:0 12px;height:58px}.top-actions{gap:5px}.top-actions .clock,.top-actions #settingsBtn{display:none}.top-actions .btn{font-size:10px;padding:8px}.toolbar{padding:0 12px}.toolbar-center .muted{display:none}.workspace{display:flex;flex-direction:column}.mainstage{padding:14px 10px}.sidepanel{border-left:0;border-top:1px solid var(--line);padding:0 14px}.camera-grid{gap:6px}.feed-foot{height:27px;padding:0 5px}.program-bar{flex-wrap:wrap}.program-label{min-width:125px}.program-preview{height:42px}.program-controls{width:100%;margin:0}.program-controls .btn{flex:1}.head-right #sourceCount{display:none}.bottomline{padding:0 10px;font-size:8px}.bottomline span:last-child{display:none}}
/* AFCBANKS Live Studio v0.4: focused two-camera production and replay gallery */
.camera-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1100px}
.gallery-list{display:grid;gap:8px;max-height:360px;overflow:auto}
.gallery-item{border:1px solid #293943;background:#121d23;border-radius:5px;padding:8px;display:grid;gap:7px}
.gallery-meta{display:grid;gap:3px;min-width:0}
.gallery-meta b{font-size:10px;overflow-wrap:anywhere}
.gallery-meta small{font-size:9px;color:var(--muted)}
.gallery-actions{display:flex;gap:6px;flex-wrap:wrap}
.gallery-actions .take-btn{flex:1}
#pipBtn{border-color:#ffd21f;color:#ffb49b}
@media(max-width:1050px){.camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* AFCBANKS Live Studio usability refresh */
:root{--orange:#ff642d;--green:#42d9a0;--panel:#121b21;--panel2:#18242b;--line:#2b3b44}
button,select,input{font:inherit}button{cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}button:hover{border-color:#ff8a61;transform:translateY(-1px)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.topbar{position:sticky;top:0;z-index:20;backdrop-filter:blur(16px);box-shadow:0 8px 24px #0003}.brandmark{box-shadow:0 5px 18px #ff642d44}.project{font-size:13px}.clock{font-variant-numeric:tabular-nums;letter-spacing:.08em}.toolbar{position:sticky;top:66px;z-index:15;background:#0d151aee;backdrop-filter:blur(14px)}
.workspace{gap:18px;padding:20px;max-width:1800px;margin:0 auto}.mainstage,.sidepanel{min-width:0}.section-head{margin-bottom:14px}.section-head h1{font-size:clamp(22px,2vw,30px);letter-spacing:-.04em;margin:2px 0}.eyebrow{color:var(--orange);font-weight:800;letter-spacing:.14em;font-size:10px}.head-right{gap:10px;flex-wrap:wrap}.camera-grid{gap:14px}.feed{border-radius:14px;overflow:hidden;border:1px solid #2c3b43;background:#0b1216;box-shadow:0 12px 30px #0003}.feed.selected{border-color:#ff642d;box-shadow:0 0 0 1px #ff642d55,0 14px 35px #0004}.feed-video{min-height:190px}.feed-tag,.feed-state{font-size:10px;letter-spacing:.08em}.feed-foot{padding:11px 13px}.program-bar{border:1px solid var(--line);border-radius:14px;background:linear-gradient(120deg,#17232a,#10171c);padding:12px 14px;gap:14px;margin-top:16px}.program-label{min-width:140px}.program-preview{border-radius:9px;overflow:hidden}.program-controls{gap:7px;flex-wrap:wrap}.sidepanel{gap:14px}.panel-block{border:1px solid var(--line);border-radius:14px;background:linear-gradient(155deg,#152027,#10171c);padding:16px;box-shadow:0 10px 26px #0002}.panel-title{font-size:11px;letter-spacing:.12em;margin-bottom:13px}.panel-block label{font-size:12px;color:#c5d0d5}.panel-block select,.panel-block input:not([type=checkbox]){border:1px solid #34454e;border-radius:8px;background:#0b1216;color:#f5f7f8;padding:10px;width:100%;margin:6px 0 12px}.btn{border-radius:9px;border:1px solid #34454e;background:#1b2930;color:#f4f7f8;padding:9px 12px;font-weight:700}.btn.orange-btn{background:linear-gradient(135deg,#ff6a32,#ed451b);border-color:#ff7b4b;color:white;box-shadow:0 5px 16px #ffd21f2b}.btn.ghost{background:transparent}.btn.small{padding:7px 10px}.btn.full{width:100%;justify-content:center}.take-btn{border:1px solid #3b4b53;border-radius:7px;background:#1c2a31;color:#fff;padding:7px 10px;font-size:11px;font-weight:800}.record-status{background:#0b1216;border:1px solid #2b3b44;border-radius:9px;padding:10px 11px;margin-bottom:10px}.record-dot{box-shadow:0 0 0 4px #ffd21f1b}.auto-cut-box{border:1px solid #3b4b53;background:#0c1419;border-radius:11px;padding:12px;margin:11px 0}.auto-cut-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.auto-cut-heading b,.auto-cut-heading small{display:block}.auto-cut-heading b{font-size:12px}.auto-cut-heading small{font-size:11px;color:var(--muted);margin-top:3px}.auto-cut-box>label{display:block;margin:8px 0 4px}.auto-cut-box select{margin:0!important}.switch{position:relative;display:inline-flex;align-items:center;cursor:pointer}.switch input{position:absolute;opacity:0;width:1px;height:1px}.switch span{width:40px;height:23px;border-radius:30px;background:#42515a;display:block;position:relative;transition:.2s}.switch span:after{content:'';position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:white;transition:.2s}.switch input:checked+span{background:#168b65}.switch input:checked+span:after{transform:translateX(17px)}.switch input:focus-visible+span{outline:2px solid var(--orange);outline-offset:3px}.gallery-intro{margin:-5px 0 12px}.gallery-item{border:1px solid #2c3d45;border-radius:9px;padding:10px;background:#0c1419;margin-top:8px;gap:10px}.gallery-item b{font-size:12px}.gallery-item small{color:#94a4ac}.gallery-actions{display:flex;gap:6px;flex-wrap:wrap}.clip-item{border:1px solid #30414a;border-radius:8px;padding:9px;margin-top:8px;background:#0d151a}.bottomline{padding:14px 20px;color:#d0d9dd;border-top:1px solid var(--line);font-size:11px}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 320px;padding:14px;gap:12px}.topbar{padding:0 14px}.project{display:none}}
@media(max-width:820px){.workspace{display:flex;flex-direction:column}.sidepanel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sidepanel .panel-block{min-width:0}.sidepanel .panel-block:first-child,.sidepanel .gallery-panel{grid-column:1/-1}.topbar{height:auto;min-height:62px;flex-wrap:wrap;padding:10px 12px}.toolbar{top:62px}.top-actions{gap:7px}.clock{display:none}.program-bar{flex-wrap:wrap}.program-preview{min-width:120px}}
@media(max-width:560px){.workspace{padding:10px}.sidepanel{display:flex;flex-direction:column}.camera-grid{grid-template-columns:1fr!important}.feed-video{min-height:210px}.head-right{justify-content:flex-start}.head-right #captureHealth{width:100%}.top-actions .btn{font-size:11px;padding:8px}.brand{font-size:14px}.brandmark{width:30px;height:30px}.toolbar-center .muted{display:none}.program-controls{width:100%}.program-controls .btn{flex:1}.panel-block{padding:13px}}


/* AFCBANKS Live Studio v0.8 — source playback transport */
.playback-transport{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:9px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(120deg,#121d23,#0c1318)}
.transport-actions{display:flex;align-items:center;gap:6px}.transport-time{font-size:11px;color:#dce5e9;min-width:42px;text-align:center}.playback-transport>#playbackSeek{flex:1;min-width:120px;accent-color:var(--orange);cursor:pointer}.playback-transport>#playbackSeek:disabled{opacity:.35;cursor:not-allowed}.volume-control{display:flex;align-items:center;gap:5px;color:#aebbc1;font-size:12px}.volume-control input{width:75px;accent-color:var(--orange)}.transport-hint{width:100%;font-size:10px;color:var(--muted);padding-left:2px}.playback-transport button:disabled{opacity:.45;cursor:not-allowed;transform:none}
@media(max-width:700px){.playback-transport{gap:7px;padding:10px}.transport-actions{width:100%}.transport-actions .btn{flex:1}.playback-transport>#playbackSeek{order:5;flex-basis:100%;width:100%}.transport-hint{order:6}.volume-control{margin-left:auto}}


/* v1.3 Matchday highlight desk */
.highlight-desk{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#142027,#0e161b);box-shadow:0 12px 30px #0002}
.highlight-desk-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.highlight-desk-head h2{font-size:18px;letter-spacing:-.03em;margin:3px 0 0}
.buffer-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #2e5146;background:#10251f;color:#8ce2bf;border-radius:30px;padding:7px 11px;font-size:10px;font-weight:800;white-space:nowrap}
.highlight-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.highlight-tool{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:13px;border:1px solid #30414a;border-radius:11px;background:#0c1419}
.highlight-tool-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#1e3038;color:#ff986e;font-size:19px;font-weight:900}
.highlight-tool b{font-size:12px}.highlight-tool p{font-size:10px;line-height:1.5;color:#98a7ae;margin:4px 0 0;min-height:30px}
.highlight-tool .btn{margin-top:auto;font-size:10px;min-height:36px}.highlight-tool button:disabled{opacity:.42;cursor:not-allowed;transform:none}
.highlight-clip-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px;align-items:start;border-top:1px solid #26363e;margin-top:13px;padding-top:12px}
.highlight-clip-row>div:first-child b,.highlight-clip-row>div:first-child small{display:block}.highlight-clip-row>div:first-child b{font-size:11px}.highlight-clip-row>div:first-child small{font-size:9px;margin-top:4px}
.highlight-clip-row .clip-list{display:flex;gap:8px;flex-wrap:wrap;max-height:110px;overflow:auto}.highlight-clip-row .clip-item{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:7px 9px;font-size:10px}
.highlight-clip-row .clip-item .take-btn{padding:5px 7px;font-size:9px}
.director-hint{margin:-4px 0 10px;line-height:1.5}
@media(max-width:900px){.highlight-tool-grid{grid-template-columns:1fr}.highlight-tool p{min-height:0}.highlight-clip-row{grid-template-columns:1fr}}
@media(max-width:700px){.highlight-desk{padding:12px}.highlight-desk-head{align-items:flex-start;flex-direction:column}.buffer-pill{white-space:normal}.highlight-tool-grid{grid-template-columns:1fr}}


/* v1.7 responsive touch-first layout for phones and tablets */
html{min-width:320px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden;padding-bottom:env(safe-area-inset-bottom)}
button,.btn,.take-btn,.tool,select,input{touch-action:manipulation}
button,.btn,.take-btn{min-height:40px}
.mobile-capture-note{display:none}
@media(max-width:820px){
 .workspace{padding:12px;gap:12px}
 .mainstage{padding:12px 2px}
 .sidepanel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .sidepanel .panel-block{min-width:0;margin:0}
 .sidepanel .panel-block:first-child,.sidepanel .gallery-panel{grid-column:1/-1}
 .camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .feed-video{min-height:0}
 .highlight-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .highlight-tool.goal-tool{grid-column:1/-1}
 .highlight-clip-row{grid-template-columns:1fr}
 .program-bar{align-items:flex-start}
 .program-controls{width:100%;margin:0}
 .program-controls .btn{flex:1}
}
@media(max-width:600px){
 .topbar{position:relative;display:flex;align-items:center;gap:8px;padding:9px 10px;min-height:58px}
 .brand{font-size:13px;gap:7px}
 .brandmark{width:28px;height:28px;font-size:14px}
 .brand small{font-size:7px}
 .top-actions{margin-left:auto;display:flex;gap:5px}
 .top-actions .btn{min-height:40px;padding:7px 9px;font-size:10px}
 .toolbar{position:relative;top:auto;height:44px;padding:0 10px}
 .toolbar-center{gap:7px;font-size:9px}
 .toolbar-center .muted{display:none}
 .workspace{display:flex;flex-direction:column;padding:8px;gap:8px}
 .mainstage{padding:8px 0}
 .section-head{align-items:flex-start;gap:8px;flex-direction:column}
 .section-head h1{font-size:22px}
 .head-right{width:100%;gap:7px;font-size:10px}
 .camera-grid,.camera-grid[data-layout=quad],.camera-grid[data-layout=focus]{grid-template-columns:1fr!important;gap:10px}
 .camera-grid[data-layout=focus] .feed{display:block}
 .feed-video{min-height:0;aspect-ratio:16/9}
 .feed-foot{min-height:42px}
 .take-btn,.btn{min-height:44px;padding:10px 12px;font-size:11px}
 .program-bar{padding:10px;gap:9px}
 .program-label{min-width:0;flex:1}
 .program-preview{height:auto;min-width:96px;max-width:120px;aspect-ratio:16/9}
 .program-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .playback-transport{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .transport-actions{grid-column:1/-1;width:100%}
 .playback-transport>#playbackSeek{grid-column:1/-1;order:0;width:100%;min-height:32px}
 .transport-time{min-width:0}
 .volume-control{grid-column:1/-1;margin:0;justify-content:flex-end}
 .transport-hint{grid-column:1/-1}
 .highlight-desk{padding:10px}
 .highlight-desk-head{gap:8px}
 .highlight-desk-head h2{font-size:17px}
 .highlight-tool-grid{grid-template-columns:1fr}
 .highlight-tool.goal-tool{grid-column:auto}
 .highlight-tool{padding:12px}
 .highlight-tool .btn{min-height:46px}
 .highlight-clip-row .clip-list{max-height:none;display:grid;grid-template-columns:1fr}
 .highlight-clip-row .clip-item{align-items:stretch}
 .sidepanel{display:flex;flex-direction:column;gap:9px;padding:0;border:0;background:transparent}
 .panel-block{padding:12px;border-radius:12px}
 .panel-title{font-size:10px}
 .gallery-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .gallery-actions .take-btn{min-height:44px}
 .gallery-item{padding:10px}
 .clip-list,.gallery-list{max-height:none}
 .bottomline{height:auto;min-height:40px;padding:10px;font-size:9px}
 .mobile-capture-note{display:block;padding:9px;border:1px solid #6a4c2b;background:#241b12;border-radius:8px;color:#f3c18a}
 dialog{width:calc(100% - 16px);max-width:none;max-height:90dvh;overflow:auto;padding:16px}
 .source-tabs{overflow-x:auto;white-space:nowrap}
 .tab{flex:0 0 auto;min-height:44px}
 .dialog-actions{position:sticky;bottom:0;background:#111a20;padding-top:8px}
}
@media(max-width:380px){
 .top-actions .btn{padding:7px;font-size:9px}
 .brand{font-size:12px}
 .brand small{letter-spacing:1.3px}
 .section-head h1{font-size:20px}
}
@media(orientation:landscape) and (max-height:520px) and (max-width:950px){
 .topbar{position:relative}
 .toolbar{position:relative;top:auto}
 .workspace{display:grid;grid-template-columns:minmax(0,1fr) 260px}
 .camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sidepanel{display:flex;flex-direction:column}
}

/* v2.0 per-source clips, trim editor, full-match MP4 */
.feed-foot{gap:8px}.feed-buffer{margin-left:auto;font-size:10px;color:#8ce2bf;letter-spacing:.02em}
.feed-clips{display:flex;flex-wrap:wrap;gap:6px;padding:0 13px 10px;align-items:center}
.feed-clips .take-btn{min-height:34px;padding:6px 10px;font-size:11px}.feed-clips .clip-save{min-width:46px}
.feed-clips .clip-trim{margin-left:auto;border-color:#ffd21f66;color:#ffe36a}
.feed-clips .take-btn:disabled,.feed-clips input:disabled{opacity:.4;cursor:not-allowed}
.feed-clips .clip-custom{width:58px;min-height:34px;background:#0b1216;color:#f5f7f8;border:1px solid #34454e;border-radius:7px;padding:4px 6px;font:12px inherit}
.feed-clip-status{display:block;padding:0 13px 10px;min-height:0;color:#9fb0b7}.feed-clip-status:empty{display:none}
.desk-intro{margin:0 0 12px;line-height:1.6}
.trim-dialog{width:min(760px,calc(100% - 24px))}
.trim-dialog video{width:100%;max-height:52vh;background:#000;border-radius:8px}
.trim-row{display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:10px}
.trim-row label{margin:0;font-size:12px;color:#c5d0d5}.trim-row input[type=range]{width:100%;accent-color:var(--orange)}
.trim-actions{flex-wrap:wrap}.trim-result textarea,#shareCaption{width:100%;background:#0b1216;color:#f5f7f8;border:1px solid #34454e;border-radius:8px;padding:9px;font:13px inherit;resize:vertical}
.trim-result{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}
#openTrimFileBtn{margin:0 0 10px}
@media(max-width:700px){.trim-row{grid-template-columns:1fr}.feed-clips{padding:0 8px 8px}.feed-clips .clip-trim{margin-left:0}}
.feed.program .feed-clips .take-btn{background:#1c2a31;color:#fff}.feed.program .feed-clips .clip-trim{color:#ffe36a}
