/* DBL Session Capture V1 – isolated presentation, no global DAW selectors. */
.dblcap-open{border:1px solid #b6a16a!important;color:#ecdbad!important;background:#1c1c18!important;white-space:nowrap;font-weight:800;letter-spacing:.04em}
.dblcap-open:hover,.dblcap-open:focus-visible{outline:2px solid #cfb76d;outline-offset:2px}
.dblcap-open.dblcap-active{border-color:#ff7b76!important;color:#ff9992!important;animation:dblcap-flash 2s infinite}
@keyframes dblcap-flash{50%{box-shadow:inset 0 0 0 1px rgba(255,108,101,.7)}}
.dblcap-dialog{width:min(720px,calc(100vw - 24px));max-height:min(92dvh,900px);margin:auto;padding:0;border:1px solid #555249;border-radius:15px;background:#0c0e0f;color:#f0eee5;box-shadow:0 24px 90px #000b;overflow:auto;font:12px/1.45 system-ui,-apple-system,sans-serif}
.dblcap-dialog::backdrop{background:rgba(0,0,0,.74);backdrop-filter:blur(4px)}
.dblcap-dialog button,.dblcap-dialog input,.dblcap-dialog select{font:inherit}
.dblcap-dialog button{cursor:pointer;color:inherit;min-height:38px;border:1px solid #43433e;border-radius:7px;background:#222420;padding:9px 12px;font-weight:700}
.dblcap-dialog button:disabled{cursor:not-allowed;opacity:.4}
.dblcap-dialog button:focus-visible,.dblcap-dialog input:focus-visible,.dblcap-dialog select:focus-visible{outline:2px solid #d9bd73;outline-offset:2px}
.dblcap-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 14px;border-bottom:1px solid #34342f;background:linear-gradient(130deg,#22231e,#11120f)}
.dblcap-head strong{display:block;font-size:14px;letter-spacing:.12em;color:#e7d9ab}
.dblcap-head small{display:block;font-size:10px;letter-spacing:.1em;color:#9a9b8f;margin-top:3px}
.dblcap-head button{border:0;background:none;font-size:24px;min-width:40px}
.dblcap-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 18px 0;gap:7px}
.dblcap-tabs button{letter-spacing:.06em;color:#a7a79e;background:#161817}
.dblcap-tabs button.active{border-color:#c4a744;color:#f4e2b7;background:#302c1b}
.dblcap-info{margin:12px 18px 0;padding:10px 12px;border:1px solid #363c3b;background:#15191a;border-radius:7px;color:#b8c5c1;min-height:42px}
.dblcap-info.error{color:#ffc4b6;border-color:#8c514f;background:#2b1718}
.dblcap-view{padding:12px 18px 22px}
.dblcap-hero{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 10px 18px;background:radial-gradient(ellipse at 50% 54%,#26221a 0,#111312 67%);border:1px solid #33342f;border-radius:13px}
.dblcap-preset{color:#d7c38c;font-size:11px;font-weight:800;letter-spacing:.18em}
.dblcap-clock{font:800 clamp(22px,5vw,36px)/1.2 ui-monospace,monospace;letter-spacing:.06em;color:#f4f1e8}
.dblcap-dialog .dblcap-bigrec{height:108px;width:108px;min-height:108px;border-radius:50%;font-size:56px;background:#c65a55;color:#fff;border:12px solid #d9d9d3;line-height:1;box-shadow:0 9px 27px #0008}
.dblcap-bigrec:hover{filter:brightness(1.1)}
.dblcap-record-alternatives{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.dblcap-record-alternatives button{min-height:40px;padding:8px 14px;border:1px solid #655c48;border-radius:7px;background:#24241f;color:#f0e9d5;font-weight:800;cursor:pointer}
.dblcap-record-alternatives button:hover{background:#343127}
.dblcap-record-alternatives button:disabled{opacity:.55;cursor:not-allowed}
#dblcap-recordlabel{font-size:11px;font-weight:900;letter-spacing:.15em;color:#dfd9c4}
.dblcap-controls{display:flex;gap:13px;align-items:center;flex-wrap:wrap;padding:15px 0}
.dblcap-controls label,.dblcap-editgrid label{font-size:10px;color:#b0b1a4;font-weight:800;letter-spacing:.07em}
.dblcap-controls select,.dblcap-editgrid input,.dblcap-editgrid select{display:block;max-width:100%;margin-top:5px;border:1px solid #494941;border-radius:6px;background:#141615;color:#f1eee0;padding:9px;min-height:39px}
.dblcap-editgrid .dblcap-check{display:flex;align-items:center;gap:9px;letter-spacing:0}.dblcap-editgrid .dblcap-check input{width:18px;height:18px;accent-color:#c9af64;min-height:18px}.dblcap-controls .dblcap-check{display:flex;align-items:center;gap:7px}
.dblcap-check input{width:18px;height:18px;accent-color:#d8b966}
.dblcap-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.dblcap-actions button{flex:1;white-space:nowrap}
.dblcap-actions #dblcap-stop,.dblcap-actions #dblcap-export{background:#796529;border-color:#c5a95c;color:#fff6cf}
.dblcap-hint{color:#9a9e99;font-size:11px;line-height:1.6;margin:12px 0 0}
.dblcap-line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:6px 0 14px}
.dblcap-line strong{letter-spacing:.15em;color:#ead6a1}
.dblcap-import{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;color:#f1e8ce;background:#2a291f;border:1px solid #73674b;border-radius:7px;font-weight:750;cursor:pointer}
.dblcap-recovery{padding:12px;border:1px solid #8d6546;background:#2b231b;border-radius:8px;margin:8px 0 13px}.dblcap-recover-item{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:6px;color:#ffdaad}.dblcap-recover-item span{flex:1;min-width:200px}.dblcap-recover-item button{font-size:10px;min-height:32px}.dblcap-list{display:grid;gap:10px;max-height:45vh;overflow:auto}
.dblcap-clip{display:flex;gap:12px;align-items:flex-start;padding:11px;background:#171a19;border:1px solid #373c36;border-radius:8px}
.dblcap-thumb{width:105px;min-width:105px;height:63px;border:1px solid #3c4140;border-radius:6px;background:linear-gradient(135deg,#383931,#111211);display:grid;place-items:center;overflow:hidden}
.dblcap-thumb img{width:100%;height:100%;object-fit:cover}
.dblcap-clipinfo{min-width:0;flex:1}
.dblcap-clipinfo strong{display:block;font-size:12px;overflow-wrap:anywhere}
.dblcap-clipinfo small{display:block;color:#999f9a;margin:4px 0}
.dblcap-clipactions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.dblcap-dialog .dblcap-clipactions button{padding:5px 8px;min-height:29px;font-size:10px}
.dblcap-player{width:100%;max-height:280px;margin-top:12px;border:1px solid #3a3c38;border-radius:8px;background:#000}
.dblcap-preview{position:relative;display:flex;align-items:center;justify-content:center;max-height:340px;overflow:hidden;background:#000;border-radius:8px;border:1px solid #353734}
.dblcap-preview video{display:block;max-width:100%;max-height:340px}
#dblcap-text-preview{position:absolute;bottom:11%;left:5%;right:5%;color:white;text-shadow:0 2px 4px #000,0 1px 10px #000;font-weight:800;font-size:clamp(13px,2.6vw,23px);text-align:center;pointer-events:none;overflow-wrap:anywhere}
.dblcap-editgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.dblcap-editgrid label{display:block;min-width:0}
.dblcap-editgrid input,.dblcap-editgrid select{width:100%}
.dblcap-editgrid .dblcap-full{grid-column:1/-1}
.dblcap-empty{background:#141715;border:1px dashed #585c50;border-radius:8px;padding:30px;text-align:center;color:#aaa}
.dblcap-dialog progress{width:100%;height:14px;accent-color:#cdb46d}
.dblcap-foot{padding:13px 18px;border-top:1px solid #30332f;color:#909b92;text-align:center;font-size:10px;font-weight:800;letter-spacing:.1em}
@media(max-width:760px){.dblcap-open{grid-column:span 2;min-height:42px}.dblcap-dialog{width:calc(100vw - 12px);max-height:96dvh;border-radius:10px}.dblcap-head,.dblcap-view{padding-left:12px;padding-right:12px}.dblcap-tabs{padding-left:12px;padding-right:12px}.dblcap-info{margin-left:12px;margin-right:12px}.dblcap-clip{flex-wrap:wrap}.dblcap-thumb{min-width:86px;width:86px;height:56px}.dblcap-clipactions button{flex:1}.dblcap-dialog .dblcap-bigrec{height:95px;width:95px;min-height:95px}}
@media(prefers-reduced-motion:reduce){.dblcap-open.dblcap-active{animation:none}}


/* Quick editor: a single obvious edit lane, playhead, and four familiar trim actions. */
.dblcap-quicktools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0 8px}
.dblcap-dialog .dblcap-quicktools button{font-size:10px;min-width:0;padding:8px 3px;letter-spacing:0;white-space:normal}
.dblcap-scrub-label{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:10px;font-weight:800;letter-spacing:.08em;color:#d7c38c}
#dblcap-scrub{display:block;width:100%;min-height:26px;margin:2px 0 3px;accent-color:#d2b568;cursor:pointer}
.dblcap-edit-length{font-size:10px;color:#9fa49e;line-height:1.4;margin:0 0 10px}
.dblcap-edit-length output{font-weight:800;color:#e7d9ab}
@media(max-width:540px){.dblcap-quicktools{grid-template-columns:repeat(2,minmax(0,1fr))}.dblcap-edit-length{letter-spacing:0}}

.dblcap-draft-status{display:block;margin:9px 0 0;color:#bdd1a5;font-weight:750;font-size:10px;letter-spacing:.08em}\n
/* Single-track editor — scrollable, touch-drag trimmers, readable on phones. */
.dblcap-timeline-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 6px}
.dblcap-timeline-head strong{font-size:11px;letter-spacing:.1em;color:#ebdba6}
.dblcap-timeline-head label{display:flex;align-items:center;gap:7px;font-size:10px;color:#b7baa8}
.dblcap-timeline-head input{width:100px;accent-color:#d3b66c}
.dblcap-timeline-head output{font-variant-numeric:tabular-nums;color:#d8c48e}
.dblcap-timeline-scroll{position:relative;overflow-x:auto;overflow-y:hidden;padding:12px 0 18px;scrollbar-gutter:stable;border:1px solid #434740;border-radius:8px;background:#121615;min-height:78px}
.dblcap-timeline{display:flex;gap:3px;min-height:46px;padding:0 9px;width:max-content;min-width:100%}
.dblcap-segment{position:relative;display:flex;align-items:center;justify-content:space-between;flex:none;height:48px;background:#3b4038;border:1px solid #7a7560;border-radius:5px;overflow:hidden;color:#fff;cursor:pointer;min-width:66px}
.dblcap-segment[aria-pressed="true"]{background:#69542c;border-color:#e4bc64;box-shadow:inset 0 0 0 1px #e4bc64}
.dblcap-segment:focus-visible,.dblcap-trim-handle:focus-visible{outline:2px solid #f7d789;outline-offset:1px}
.dblcap-segment-label{pointer-events:none;flex:1;overflow:hidden;white-space:nowrap;text-align:center;font-size:10px;font-weight:800;user-select:none}
.dblcap-dialog .dblcap-trim-handle{flex:none;width:15px;min-width:15px;height:100%;min-height:100%;margin:0;padding:0;background:#ccb071;border:0;border-radius:0;cursor:ew-resize;touch-action:none;user-select:none}
.dblcap-trim-handle::before{content:"";display:block;width:3px;height:16px;border-left:1px solid #423016;border-right:1px solid #423016;margin:auto}
.dblcap-segment.dblcap-trimming{border-color:#fff3c0}
.dblcap-filter-label{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-top:10px!important;font-size:11px!important}
.dblcap-filter-label input{width:18px;height:18px;accent-color:#d4b772}
.dblcap-audio-inspector{grid-column:1/-1;border:1px solid #44483f;border-radius:7px;background:#171a17;padding:10px}
.dblcap-audio-inspector summary{font-weight:800;font-size:11px;letter-spacing:.06em;cursor:pointer;color:#dfd0a7}
.dblcap-audio-inspector>input[type="range"]{width:100%;accent-color:#bda05f;touch-action:pan-y;margin:5px 0}
.dblcap-audio-inspector output{font-variant-numeric:tabular-nums;color:#dfcda0}
@media(max-width:540px){.dblcap-timeline-head{flex-wrap:wrap}.dblcap-timeline-head label{margin-left:auto}.dblcap-timeline-scroll{min-height:80px}.dblcap-segment-label{font-size:9px}}

/* Original guided film-night panel, subordinate to the simple editor timeline. */
.dblcap-night-guide{grid-column:1/-1;border:1px solid #4a514a;border-radius:8px;background:#181e20;padding:12px;color:#e8e7db}
.dblcap-night-guide summary{cursor:pointer;font-size:11px;font-weight:850;letter-spacing:.08em;color:#e6d4a9}
.dblcap-night-copy{font-size:12px;line-height:1.58;color:#c5c7be;margin-top:10px}
.dblcap-night-copy strong{color:#f0e6c6}
.dblcap-night-copy p{margin:9px 0}
.dblcap-night-guide [data-action="nightBase"]{margin:5px 0 10px;background:#4a4430;border-color:#b7a371}
.dblcap-night-sliders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dblcap-night-sliders label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#ddd6b9;font-size:10px;font-weight:800}
.dblcap-night-sliders output{color:#efe2b8;font-variant-numeric:tabular-nums}
.dblcap-night-sliders input{width:100%;min-height:28px;accent-color:#cbb47b;touch-action:pan-y}
@media(max-width:600px){.dblcap-night-sliders{grid-template-columns:1fr}.dblcap-night-sliders label{flex-direction:row;flex-wrap:wrap;align-items:center}.dblcap-night-sliders input{flex-basis:100%}}

/* Codec choices stay subordinate to the existing editor action row. */
.dblcap-audio-export{padding:12px;margin:13px 0 5px;border:1px solid #484b42;border-radius:8px;background:#151a18}
.dblcap-audio-export strong{display:block;margin-bottom:10px;color:#e5d1a1;font-size:11px;letter-spacing:.1em}
.dblcap-audio-export-controls{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}
.dblcap-audio-export-controls label{font-size:10px;letter-spacing:.06em;font-weight:700;color:#babdae}
.dblcap-audio-export-controls select{display:block;width:100%;min-height:38px;max-width:100%;padding:8px 5px;margin-top:5px;background:#191d1b;color:#f0eacb;border:1px solid #55594e;border-radius:6px}
.dblcap-audio-export-controls label[hidden]{display:none!important}
.dblcap-audio-export small{display:block;margin-top:10px;line-height:1.45;color:#aab1aa}
@media(max-width:580px){.dblcap-audio-export-controls{grid-template-columns:1fr 1fr}.dblcap-audio-export-controls label:first-child{grid-column:1/-1}}
