:root{--ink:#17202a;--muted:#5c6773;--accent:#17665e;--accent-dark:#0d4e48;--line:#d8e1e6;--soft:#e9f4f1;--panel:#fff;--danger:#a12b2b;--status-success:#18794e;--status-success-bg:#e5f6ee;--status-warning:#a45c00;--status-warning-bg:#fff3db;--status-error:#a12b2b;--status-error-bg:#ffe8eb;--status-unknown:#52635f;--status-unknown-bg:#eaf1ef;--status-info:#0d4e48;--status-info-bg:#e9f4f1;--control-height:48px;--control-radius:12px;--card-radius:16px;--card-padding:20px;--rail:84px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;color:var(--ink);background:#f3f7f8}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px}
a,button,input{font:inherit}
button,a{touch-action:manipulation}
.editor-topbar{height:64px;position:sticky;top:0;z-index:20;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:0 24px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.brand{display:inline-flex;align-items:baseline;justify-self:start;width:max-content;max-width:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:20px;font-weight:850;letter-spacing:-.05em;white-space:nowrap;color:var(--ink);text-decoration:none}
.brand .wordmark-accent{color:var(--accent)}
.project-title{display:flex;align-items:center;gap:9px;font-weight:800}
.project-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}
.preview-chip{font-size:.72rem;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:4px 8px;font-weight:700}
.editor-top-actions{justify-self:end;display:flex;align-items:center;gap:8px;min-width:0}
.editor-language-control{position:relative;flex:0 0 auto}
.editor-language-control summary{display:flex;align-items:center;justify-content:center;gap:6px;width:76px;min-width:76px;min-height:44px;padding:0 8px;border:1px solid #8ebbb5;border-radius:10px;background:var(--panel);color:var(--accent-dark);font-weight:850;cursor:pointer;list-style:none;white-space:nowrap}
.editor-language-control summary::-webkit-details-marker{display:none}
.editor-language-control summary:hover{background:var(--soft)}
.editor-language-control summary:focus-visible{outline:3px solid rgba(23,102,94,.28);outline-offset:3px}
.editor-language-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.editor-language-chevron{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}
.editor-language-control[open] .editor-language-chevron{transform:rotate(180deg)}
.editor-language-menu{position:absolute;top:calc(100% + 7px);right:0;z-index:40;width:190px;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 14px 34px rgba(16,31,28,.18)}
.editor-language-menu button{display:flex;align-items:center;width:100%;min-height:44px;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left;font-weight:750}
.editor-language-menu button:hover,.editor-language-menu button:focus-visible{background:var(--soft);color:var(--accent-dark)}
.editor-language-menu button[aria-checked="true"]{background:var(--soft);color:var(--accent-dark)}
.editor-language-menu button[aria-checked="true"]:after{content:"✓";margin-left:auto;font-weight:900}
.top-export{justify-self:end;display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 20px;border-radius:10px;background:var(--accent);color:#fff;text-decoration:none;font-weight:850}
.editor-shell{min-height:calc(100vh - 64px);display:grid;grid-template-columns:var(--rail) minmax(0,1fr)}
.tool-rail{position:sticky;top:64px;align-self:start;height:calc(100vh - 64px);padding:18px 10px;background:#fff;border-right:1px solid var(--line)}
.tool-button{width:100%;min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:.76rem;font-weight:800}
.tool-button.active{background:var(--soft);color:var(--accent)}
.tool-icon{font-size:1.35rem}
.editor-workspace{min-width:0;width:min(1240px,100%);margin:0 auto;padding:28px clamp(20px,4vw,52px) 48px}
.workspace-intro{display:flex;align-items:end;justify-content:space-between;gap:36px;margin-bottom:20px}
.workspace-intro h1{margin:4px 0 0;font-size:clamp(1.9rem,4vw,2.8rem);line-height:1}
.workspace-intro>p{max-width:520px;margin:0;color:var(--muted);line-height:1.55;text-align:right}
.eyebrow,.panel-kicker{margin:0;color:var(--accent);font-size:.7rem;font-weight:900;letter-spacing:.12em}
.editor-card{display:grid;gap:18px}
.preview-stage{position:relative;min-height:clamp(280px,48vw,600px);display:grid;place-items:center;overflow:hidden;border-radius:18px;background:radial-gradient(circle at 50% 25%,#303b38,#101514 68%);box-shadow:0 16px 40px rgba(16,31,28,.16)}
.preview-stage video{display:block;width:100%;height:100%;max-height:600px;object-fit:contain;background:#0b0f0e}
.empty-preview{width:min(100%,680px);max-width:680px;padding:28px 34px;text-align:center;color:#fff}
.empty-preview h3{margin:10px 0;font-size:1.5rem}
.empty-preview p{color:#b9c7c4;line-height:1.55}
.direct-import{width:100%;min-width:0}.direct-import h3{max-width:100%;margin:0 0 12px;font-size:clamp(1.12rem,2.5vw,1.45rem);overflow-wrap:anywhere}
.direct-import-form{display:grid;min-width:0;gap:9px}.direct-import-row{display:grid;min-width:0;grid-template-columns:minmax(160px,1fr) minmax(88px,auto) minmax(120px,auto);gap:8px;align-items:stretch}
.direct-import-row input{min-width:0;min-height:50px;padding:10px 13px;border:1px solid rgba(255,255,255,.3);border-radius:11px;background:#fff;color:#17201f;font:inherit}
.direct-import-row input:focus-visible{outline:3px solid rgba(99,224,207,.5);outline-offset:2px}.direct-import-row button{min-width:0;max-width:100%;min-height:50px;padding-inline:15px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.direct-import-form #direct-import-help{max-width:100%;margin:0;font-size:.78rem;overflow-wrap:anywhere}.direct-import-feedback{max-width:100%;margin:0!important;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.1);font-size:.82rem;font-weight:750;overflow-wrap:anywhere}
.direct-import-feedback[data-kind="error"]{background:rgba(145,35,35,.45);color:#fff}.import-divider{display:flex;align-items:center;gap:10px;margin:18px 0 10px;color:#c7d3d1;font-size:.78rem;font-weight:800}.import-divider:before,.import-divider:after{content:"";height:1px;flex:1;background:rgba(255,255,255,.2)}
.upload-mark{width:64px;height:64px;margin:auto;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:18px;background:rgba(255,255,255,.12);color:#fff;font-size:2rem;cursor:pointer}
.upload-mark:hover{background:rgba(255,255,255,.2)}
.mobile-upload-copy{display:none}
.preview-badge{position:absolute;top:14px;left:14px;padding:6px 10px;border-radius:999px;background:rgba(5,12,11,.66);color:#e6f4f1;font-size:.74rem;font-weight:750;backdrop-filter:blur(8px)}
.handoff-state{position:absolute;inset:clamp(12px,4vw,28px);z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;max-width:520px;margin:auto;padding:clamp(18px,4vw,30px);border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(8,18,16,.94);color:#f6fffd;text-align:center;box-shadow:0 16px 36px rgba(0,0,0,.3);backdrop-filter:blur(10px)}
.handoff-state[hidden]{display:none}.handoff-state strong{font-size:clamp(1.05rem,3vw,1.35rem);line-height:1.25}.handoff-state p{max-width:440px;margin:0;color:#d7e7e3;line-height:1.45}.handoff-spinner{width:34px;height:34px;border:3px solid rgba(255,255,255,.24);border-top-color:#63e0cf;border-radius:50%;animation:handoff-spin .85s linear infinite}.handoff-progress{position:relative;width:min(280px,80%);height:6px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.16)}.handoff-progress>span{position:absolute;top:0;bottom:0;width:42%;border-radius:inherit;background:#63e0cf;animation:handoff-progress 1.25s ease-in-out infinite}.handoff-fallback{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border-radius:10px;background:#63e0cf;color:#10201d;font-weight:850;cursor:pointer}.handoff-state[data-state="failed"] .handoff-spinner,.handoff-state[data-state="failed"] .handoff-progress{display:none}.handoff-state[data-state="failed"] strong{color:#fff}.handoff-state[data-state="failed"] p{color:#f5d8d8}
@keyframes handoff-spin{to{transform:rotate(360deg)}}@keyframes handoff-progress{0%{left:-45%}50%{left:58%}100%{left:105%}}@media(prefers-reduced-motion:reduce){.handoff-spinner,.handoff-progress>span{animation-duration:2.5s}}
.remove-video{position:absolute;top:12px;right:12px;z-index:3;width:44px;min-height:44px;padding:0;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(14,22,21,.78);color:#fff;font-size:1.55rem;font-weight:500;line-height:1;box-shadow:0 4px 14px rgba(0,0,0,.22);backdrop-filter:blur(8px)}
.remove-video:hover{background:rgba(6,12,11,.94);color:#fff}
.import-status{margin:0;padding:10px 12px;border-radius:10px;font-size:.86rem;font-weight:750;line-height:1.4}
#video-file{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.file-button,.button,button{display:flex;align-items:center;justify-content:center;min-height:50px;border:0;border-radius:11px;padding:11px 18px;background:var(--accent);color:#fff;text-decoration:none;font-weight:850;cursor:pointer}
.file-button{width:min(100%,280px);margin:20px auto 0}
.file-button:hover,.button:hover,button:hover,.top-export:hover{background:#0b554d}
button:disabled{opacity:.45;cursor:not-allowed}
.secondary{background:#fff;color:var(--accent);border:1px solid #83afa8}
.timeline-panel,.export-panel,.result-panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px rgba(27,52,48,.05)}
.timeline-panel{padding:20px}
.panel-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}
.panel-heading h3,.result-panel h3{margin:4px 0 0}
.current-time{margin:0;color:var(--muted);font-variant-numeric:tabular-nums;font-weight:750}
.timeline-visual{position:relative;height:116px;margin:18px 0 14px;padding:18px 12px;border-radius:12px;background:#1c2523;overflow:hidden}
.timeline-ruler{position:absolute;inset:12px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.08) 0,rgba(255,255,255,.08) calc(10% - 2px),rgba(255,255,255,.17) calc(10% - 2px),rgba(255,255,255,.17) 10%);border-radius:8px}
.track{position:absolute;left:24px;right:24px;top:50%;height:54px;transform:translateY(-50%);border:2px solid rgba(255,255,255,.32);border-radius:8px;background:rgba(4,9,8,.38);overflow:hidden}
.track #selected-bar{position:absolute;inset:0;background:rgba(29,139,126,.58);border-left:4px solid #63e0cf;border-right:4px solid #63e0cf}
.playhead{position:absolute;left:0;top:-8px;width:2px;height:70px;background:#fff;box-shadow:0 0 0 2px rgba(0,0,0,.25)}
.timeline-range{position:absolute;left:20px;right:20px;top:50%;width:calc(100% - 40px);height:56px;transform:translateY(-50%);margin:0;background:transparent;appearance:none;pointer-events:none}
.timeline-range::-webkit-slider-runnable-track{height:2px;background:transparent}
.timeline-range::-webkit-slider-thumb{appearance:none;width:24px;height:64px;margin-top:-31px;border:3px solid #fff;border-radius:7px;background:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.35);pointer-events:auto;cursor:ew-resize}
.timeline-range::-moz-range-track{height:2px;background:transparent}
.timeline-range::-moz-range-thumb{width:22px;height:58px;border:3px solid #fff;border-radius:7px;background:var(--accent);pointer-events:auto;cursor:ew-resize}
.timeline-range:disabled{opacity:.4}
.time-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.time-controls label,.duration-card{min-width:0;display:grid;grid-template-columns:auto minmax(70px,1fr) auto;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:.86rem;font-weight:800}
.time-controls input{width:100%;min-height:38px;border:0;border-radius:7px;background:var(--soft);padding:6px 8px;font-variant-numeric:tabular-nums}
.duration-card{grid-template-columns:1fr auto}
.duration-card span{color:var(--muted)}
.range-review{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.range-review p{margin:0;padding:11px 12px;border-radius:9px;background:var(--soft);font-size:.9rem;font-weight:720;overflow-wrap:anywhere}
.notice{margin:12px 0 0;padding:11px 12px;border-left:4px solid #b28313;background:#fff6d9;line-height:1.5}
.explain{margin:12px 0 0;color:var(--muted);line-height:1.55;font-size:.88rem}
.export-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 20px}
.export-title{margin:0;font-weight:900}
.status{margin:4px 0 0;color:var(--muted);line-height:1.4}
.actions{display:flex;gap:10px}
.actions button{min-width:210px}
.actions .secondary{min-width:100px}
.error{grid-column:1/-1;margin:0;padding:12px;border-radius:10px;background:#ffedeb;color:var(--danger);font-weight:750}
.result-panel{padding:20px}
.result-panel video{width:100%;max-height:480px;margin:16px 0;border-radius:12px;background:#0c1614}
.result-actions{display:flex;gap:10px}
.result-actions>*{flex:1}
.support-content{width:min(980px,calc(100% - 32px));margin:36px auto;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.support-content article{padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff}
.support-content h2{margin-top:0;font-size:1.15rem}
.support-content p,.support-content li{color:var(--muted);line-height:1.65}
.support-content details{border-top:1px solid var(--line);padding:10px 0}
.support-content summary{min-height:44px;display:flex;align-items:center;font-weight:750;cursor:pointer}
footer{padding:28px 16px calc(34px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:#fff;text-align:center;color:var(--muted)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
[hidden]{display:none!important}
:focus-visible{outline:3px solid rgba(29,139,126,.42);outline-offset:3px}

@media(max-width:760px){.editor-topbar{height:58px;grid-template-columns:minmax(0,1fr) auto;padding:0 12px;gap:8px}
.project-title{display:none}
.editor-top-actions{gap:5px}
.editor-language-control summary{width:76px;min-width:76px;padding:0 7px}
.editor-language-menu{right:0;width:min(190px,calc(100vw - 24px))}
.top-export{min-height:40px;padding:0 16px}
.editor-shell{display:flex;flex-direction:column;min-height:calc(100vh - 58px)}
.tool-rail{position:sticky;top:58px;z-index:15;order:0;width:100%;height:auto;padding:8px 12px;border-right:0;border-bottom:1px solid var(--line);display:flex;overflow-x:auto}
.tool-button{width:auto;min-width:84px;min-height:48px;flex-direction:row;padding:6px 14px}
.tool-icon{font-size:1.05rem}
.editor-workspace{padding:18px 12px 32px}
.workspace-intro{display:block;margin-bottom:16px}
.workspace-intro>p{margin-top:10px;text-align:left;font-size:.9rem}
.preview-stage{min-height:240px;border-radius:14px}
.empty-preview{padding:24px 18px}
.empty-preview h3{font-size:1.25rem}
.timeline-panel{padding:14px}
.panel-heading{align-items:start}
.current-time{font-size:.78rem}
.timeline-visual{height:104px;margin-top:14px}
.timeline-range::-webkit-slider-thumb{width:28px;height:66px}
.time-controls{grid-template-columns:1fr 1fr}
.duration-card{grid-column:1/-1}
.range-review{grid-template-columns:1fr}
.export-panel{grid-template-columns:1fr;padding:16px}
.actions{display:grid;grid-template-columns:1fr}
.actions button{width:100%;min-width:0;min-height:54px}
.result-actions{display:grid}
.support-content{width:calc(100% - 24px);grid-template-columns:1fr;margin-top:24px}
.support-content article{padding:18px}
}
@media(max-width:760px){.direct-import-row{grid-template-columns:minmax(0,1fr) 88px}.direct-import-row #direct-import-submit{grid-column:1/-1;width:100%}.direct-import-row #direct-import-paste{width:88px;min-width:88px;padding-inline:8px}.editor-v2-phase2 .empty-preview .direct-import-form #direct-import-help{display:block!important}.import-divider{margin:12px 0 6px}.upload-mark{width:54px!important;height:54px!important;min-height:54px!important}.empty-preview>h3{margin:6px 0 0!important;font-size:1rem!important}}

@media(max-width:420px){.timeline-panel{margin-left:-4px;margin-right:-4px}
.time-controls{grid-template-columns:1fr}
.duration-card{grid-column:auto}
.timeline-visual{height:96px}
.track{left:18px;right:18px}
.timeline-range{left:14px;right:14px;width:calc(100% - 28px)}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

.timeline-visual{height:142px}
.time-scale{position:absolute;left:24px;right:24px;top:8px;display:flex;justify-content:space-between;color:#aeb9b6;font-size:.7rem;font-variant-numeric:tabular-nums}
.timeline-ruler{inset:auto;left:24px;right:24px;top:32px;height:76px;overflow:hidden}
.thumbnail-strip{position:absolute;inset:0;display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
.thumbnail-strip canvas{width:100%;height:100%;display:block;object-fit:cover;opacity:.86;border-right:1px solid rgba(255,255,255,.16)}
.track{top:70px;height:76px}
.track #selected-bar{background:rgba(29,139,126,.42)}
.playhead{height:92px}
.timeline-range{top:70px;height:76px}
.timeline-range::-webkit-slider-thumb{height:86px;margin-top:-42px}
.timeline-range::-moz-range-thumb{height:80px}
@media(max-width:760px){.timeline-visual{height:128px}
.timeline-ruler,.track{left:18px;right:18px}
.timeline-range{left:14px;right:14px;width:calc(100% - 28px)}
.time-scale{left:18px;right:18px}
.timeline-range::-webkit-slider-thumb{height:86px}
}
@media(max-width:420px){.timeline-visual{height:124px}
}

.timeline-ruler{background:repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0,rgba(255,255,255,.06) calc(5% - 1px),rgba(255,255,255,.24) calc(5% - 1px),rgba(255,255,255,.24) 5%)}
.playhead{width:24px;margin-left:-12px;background:transparent;box-shadow:none;cursor:col-resize;touch-action:none;pointer-events:auto}
.playhead:after{content:"";position:absolute;left:50%;top:0;width:3px;height:100%;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.55),0 0 10px rgba(255,255,255,.5);transform:translateX(-50%)}
.playhead:before{content:"";position:absolute;top:-7px;left:50%;width:12px;height:12px;border-radius:3px 3px 7px 7px;background:#fff;transform:translateX(-50%)}
.preview-selection{width:100%;margin-top:12px;min-height:46px}

.preview-stage{min-height:clamp(220px,34vh,330px)}
.preview-stage video{max-height:330px}
.workspace-intro{margin-bottom:12px}
.editor-card{gap:12px}
.timeline-heading-tools{display:flex;align-items:center;gap:14px}
.zoom-controls{display:flex;align-items:center;gap:5px}
.zoom-button{width:34px;min-height:34px;padding:0;border-radius:8px;background:#26312f;color:#fff;font-size:1.15rem}
.zoom-controls span{min-width:28px;text-align:center;color:var(--muted);font-size:.76rem;font-weight:800}
.timeline-visual{padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#71827e #1c2523}
.timeline-canvas{position:relative;width:100%;min-width:100%;height:140px}
.timeline-range::-webkit-slider-thumb{width:12px;border:2px solid #fff;border-radius:4px;background:#fff;box-shadow:0 0 0 2px rgba(0,0,0,.32);cursor:col-resize}
.timeline-range::-moz-range-thumb{width:10px;border:2px solid #fff;border-radius:4px;background:#fff;box-shadow:0 0 0 2px rgba(0,0,0,.32);cursor:col-resize}
@media(max-width:760px){.preview-stage{min-height:210px;max-height:260px}
.preview-stage video{max-height:260px}
.panel-heading{display:grid;grid-template-columns:1fr}
.timeline-heading-tools{justify-content:space-between}
.timeline-canvas{height:126px}
}

.timeline-panel{padding:12px 14px}
.panel-heading{align-items:center}
.compact-title{display:flex;align-items:center;gap:10px}
.compact-title h3{font-size:1rem}
.timeline-heading-tools{margin-left:auto}
.play-selection{width:36px;min-height:34px;padding:0;border-radius:50%;font-size:.82rem}
.current-time{font-size:.85rem}
.timeline-visual{height:118px;margin:8px 0}
.timeline-canvas{height:116px}
.time-scale{top:5px}
.timeline-ruler{top:27px;height:66px}
.track{top:60px;height:66px}
.playhead{height:80px}
.timeline-range{top:60px;height:66px}
.timeline-range::-webkit-slider-thumb{height:74px;margin-top:-36px}
.timeline-range::-moz-range-thumb{height:70px}
.time-controls{gap:8px}
.time-controls label,.duration-card{padding:6px 9px}
.time-controls input{min-height:32px;padding:4px 7px}
.range-review{gap:8px;margin-top:8px}
.range-review p{padding:7px 9px;font-size:.8rem}
.notice{margin-top:8px;padding:8px 10px;font-size:.82rem}
.fast-trim-help{margin-top:6px;color:var(--muted);font-size:.78rem}
.fast-trim-help summary{cursor:pointer;min-height:28px;display:flex;align-items:center}
.fast-trim-help p{margin:2px 0 0;line-height:1.45}
.preview-selection{display:none}
@media(max-width:760px){.timeline-panel{padding:10px}
.panel-heading{display:flex;gap:8px}
.compact-title h3{font-size:.9rem}
.compact-title .panel-kicker{display:none}
.timeline-heading-tools{gap:6px}
.current-time{font-size:.72rem}
.zoom-button,.play-selection{width:32px;min-height:32px}
.timeline-visual{height:112px}
.timeline-canvas{height:110px}
.time-controls{grid-template-columns:1fr 1fr 1fr}
.duration-card{grid-column:auto}
.time-controls label,.duration-card{font-size:.76rem}
.time-controls label{grid-template-columns:auto minmax(50px,1fr)}
.time-controls label span{display:none}
.range-review{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){.panel-heading{display:grid}
.timeline-heading-tools{margin-left:0;justify-content:space-between}
.time-controls{grid-template-columns:1fr 1fr}
.duration-card{grid-column:1/-1}
.range-review{grid-template-columns:1fr}
}

.editor-topbar{height:56px}
.editor-shell{min-height:calc(100vh - 56px)}
.tool-rail{top:56px;height:calc(100vh - 56px)}
.editor-workspace{padding-top:16px}
.workspace-intro{align-items:center;margin-bottom:8px}
.workspace-intro h1{font-size:clamp(1.55rem,3vw,2.15rem)}
.workspace-intro>p{display:none}
.preview-stage{min-height:clamp(190px,28vh,280px)}
.preview-stage video{max-height:280px}
.timeline-visual{height:100px}
.timeline-canvas{height:98px}
.time-scale{top:0;display:grid;grid-template-columns:repeat(var(--scale-segments),minmax(0,1fr));justify-content:initial;height:24px;overflow:visible}
.time-scale span{position:relative;min-width:0;padding-left:2px;color:#9aa6a3;font-size:.52rem;letter-spacing:-.02em;white-space:nowrap}
.time-scale span:before{content:"";position:absolute;left:0;top:0;width:1px;height:7px;background:rgba(255,255,255,.45)}
.time-scale span:last-child{position:absolute;right:0;text-align:right;padding-left:0}
.time-scale span:last-child:before{left:auto;right:0}
.time-scale span:empty{overflow:hidden}
.timeline-ruler{top:22px;height:58px}
.track{top:51px;height:58px}
.playhead{height:72px}
.timeline-range{top:51px;height:58px}
.timeline-range::-webkit-slider-thumb{width:6px;height:66px;margin-top:-32px;border:1px solid #fff;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.42)}
.timeline-range::-moz-range-thumb{width:5px;height:64px;border:1px solid #fff;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.42)}
@media(max-width:760px){.editor-topbar{height:54px}
.tool-rail{top:54px}
.editor-workspace{padding-top:10px}
.preview-stage{min-height:190px;max-height:220px}
.preview-stage video{max-height:220px}
.timeline-visual{height:98px}
.timeline-canvas{height:96px}
.time-scale span{font-size:.68rem;letter-spacing:0}
.timeline-range::-webkit-slider-thumb{width:10px}
.timeline-range::-moz-range-thumb{width:9px}
}

.preview-stage.is-dragging{outline:3px solid #63e0cf;outline-offset:-6px}
.preview-stage.is-dragging:after{content:"Drop video to open";position:absolute;inset:14px;display:grid;place-items:center;border:2px dashed rgba(255,255,255,.85);border-radius:14px;background:rgba(10,25,22,.76);color:#fff;font-weight:900;z-index:4}
.preview-stage[data-aspect="portrait"] video{width:auto;max-width:100%;height:100%;margin:auto}
.preview-stage[data-aspect="square"] video{width:auto;max-width:100%;height:100%;margin:auto}
.thumbnail-strip canvas{object-fit:contain;background:#101514}

.pan-button{background:#45524f}
.timeline-visual{cursor:grab}
.timeline-visual.is-panning{cursor:grabbing;user-select:none}
.timeline-visual.is-panning .timeline-canvas{pointer-events:none}
.thumbnail-strip{right:auto;width:100%;grid-template-columns:repeat(var(--thumbnail-slots,1),minmax(0,1fr));grid-auto-flow:initial;grid-auto-columns:initial}

/* Local Video Trimmer adoption of the shared DESIGN.md UI foundation. */
body{overflow-x:hidden}
:root{--editor-bg:#f4f5f4;--editor-surface:#fff;--editor-surface-elevated:#fff;--editor-border:#d6dad8;--editor-text-primary:#17201e;--editor-text-secondary:#61706c;--editor-accent:#f4c542;--editor-accent-hover:#e5b52a;--editor-accent-active:#d9a91f;--editor-selection:#ffd84d;--editor-guide:#ffd84d;--editor-success:#17665e;--editor-warning:#9a6700;--editor-error:#a83232}
.editor-shell{background:var(--editor-bg);color:var(--editor-text-primary)}.editor-card,.edit-panel,.timeline-panel,.export-panel,.result-panel{background:var(--editor-surface);border-color:var(--editor-border)}.tool-button.active{background:color-mix(in srgb,var(--editor-accent) 28%,white);color:var(--editor-text-primary);box-shadow:inset 3px 0 var(--editor-accent-active)}
.top-export{min-height:44px;border:1px solid #8ebbb5;border-radius:var(--control-radius);background:var(--panel);color:var(--accent-dark);font-weight:800}
.top-export:hover{background:var(--soft);color:var(--accent-dark)}
.file-button,.button,button{min-height:var(--control-height);border-radius:var(--control-radius);font-weight:800}
.file-button:hover,.button:hover,button:hover{background:var(--accent-dark)}
.secondary{background:var(--panel);color:var(--accent-dark);border:1px solid #8ebbb5}
.secondary:hover{background:var(--soft);color:var(--accent-dark)}
button:disabled,.button[aria-disabled="true"]{cursor:not-allowed;opacity:.62}
button[aria-busy="true"]{cursor:wait}
.timeline-panel,.export-panel,.result-panel{border-radius:var(--card-radius)}
.timeline-panel,.result-panel{padding:var(--card-padding)}
.status{display:inline-flex;align-items:center;max-width:100%;min-height:28px;margin-top:6px;padding:5px 9px;border-radius:999px;font-size:.82rem;font-weight:750;overflow-wrap:anywhere}
.status-pass{background:var(--status-success-bg);color:var(--status-success)}
.status-warn{background:var(--status-warning-bg);color:var(--status-warning)}
.status-fail{background:var(--status-error-bg);color:var(--status-error)}
.status-unknown{background:var(--status-unknown-bg);color:var(--status-unknown)}
.status-info{background:var(--status-info-bg);color:var(--status-info)}
.notice{border-left-color:var(--status-warning);background:var(--status-warning-bg);color:#594817}
.error{background:var(--status-error-bg);color:var(--status-error)}
:focus-visible{outline:3px solid rgba(23,102,94,.28);outline-offset:3px}
@media(max-width:760px){.file-button,.actions button,.result-actions>*{min-height:54px}.timeline-panel,.result-panel{padding:16px}.top-export{min-height:44px;padding-inline:14px}}
@media(max-width:760px){.remove-video{top:8px;right:8px;width:44px;min-height:44px}.preview-badge{top:10px;left:10px}}

/* Basic Editor V1 vertical slice: state-driven tools, preview and property panel. */
.preview-surface{position:relative;display:grid;place-items:center;width:auto;max-width:100%;height:min(360px,42vh);max-height:360px;margin:auto;overflow:hidden;background:#0b0f0e}
.text-overlay{position:absolute;inset:0;z-index:4;pointer-events:none}.text-selection{position:absolute;min-width:44px;min-height:44px;border:1.5px solid var(--editor-selection);border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.42);pointer-events:auto;touch-action:none;cursor:move;transform:translateZ(0)}.text-selection::after{content:"";position:absolute;inset:-9px}.text-resize-handle{position:absolute;width:44px;min-height:44px;padding:0;border:0;background:transparent;touch-action:none;z-index:3}.text-resize-handle::after{content:"";position:absolute;width:9px;height:9px;border:1px solid #7d6500;border-radius:2px;background:var(--editor-selection);box-shadow:0 0 0 1px rgba(0,0,0,.3)}.text-resize-handle.nw{left:-22px;top:-22px;cursor:nwse-resize}.text-resize-handle.ne{right:-22px;top:-22px;cursor:nesw-resize}.text-resize-handle.se{right:-22px;bottom:-22px;cursor:nwse-resize}.text-resize-handle.sw{left:-22px;bottom:-22px;cursor:nesw-resize}.text-resize-handle.n{left:22px;right:22px;top:-22px;width:auto;cursor:ns-resize}.text-resize-handle.s{left:22px;right:22px;bottom:-22px;width:auto;cursor:ns-resize}.text-resize-handle.e{right:-22px;top:22px;bottom:22px;min-height:0;cursor:ew-resize}.text-resize-handle.w{left:-22px;top:22px;bottom:22px;min-height:0;cursor:ew-resize}.text-resize-handle.n::after,.text-resize-handle.s::after,.text-resize-handle.e::after,.text-resize-handle.w::after{display:none}.text-resize-handle.nw::after,.text-resize-handle.sw::after{right:8px}.text-resize-handle.ne::after,.text-resize-handle.se::after{left:8px}.text-resize-handle.nw::after,.text-resize-handle.ne::after{bottom:8px}.text-resize-handle.sw::after,.text-resize-handle.se::after{top:8px}.text-delete-context{position:absolute;right:-17px;top:-17px;z-index:5;width:34px;min-height:34px;padding:0;border:1px solid #7d6500;border-radius:50%;background:var(--editor-selection);color:#211b00;font-size:22px;line-height:1;box-shadow:0 2px 8px rgba(0,0,0,.28)}
.text-inline-editor{position:absolute;inset:0;z-index:2;width:100%;height:100%;min-height:0;padding:0;border:0;outline:0;resize:none;overflow:hidden;background:transparent;color:transparent;caret-color:#fff;text-shadow:none;white-space:pre-wrap;touch-action:manipulation}.text-inline-editor::selection{background:rgba(255,216,77,.35);color:transparent}.text-center-guide{position:absolute;z-index:1;pointer-events:none;border-color:var(--editor-guide);border-style:dashed;filter:drop-shadow(0 0 1px #000)}.text-center-guide.vertical{top:0;bottom:0;left:50%;border-width:0 0 0 1px}.text-center-guide.horizontal{left:0;right:0;top:50%;border-width:1px 0 0}.text-center-guide[hidden]{display:none}.text-icon-button{display:inline-grid;place-items:center;width:44px;min-height:44px;padding:0!important;font-weight:800}.text-icon-button.selected,.text-icon-button[aria-pressed="true"]{background:var(--editor-accent)!important;color:#211b00!important}.text-icon-button#text-italic{font-style:italic}.text-icon-button.align-right{transform:scaleX(-1)}
.text-selection:hover{background:transparent}.text-resize-handle:hover,.text-resize-handle:active{background:transparent!important}.text-delete-context:hover{background:var(--editor-accent-hover)!important;color:#211b00}.text-icon-button.align-right{transform:none}.align-glyph{display:grid;width:18px;gap:3px}.align-glyph i{display:block;height:2px;border-radius:2px;background:currentColor}.align-left .align-glyph i:nth-child(2){width:12px}.align-center .align-glyph i:nth-child(2){width:12px;justify-self:center}.align-right .align-glyph i:nth-child(2){width:12px;justify-self:end}
.text-editing .text-selection{border-color:transparent;box-shadow:none;cursor:text}.text-editing .text-resize-handle,.text-editing .text-delete-context{visibility:hidden;pointer-events:none}.text-editing .text-inline-editor{border:1.5px solid var(--editor-selection);border-radius:4px;outline:0;background:rgba(0,0,0,.08);color:inherit;caret-color:#fff;overflow:hidden;resize:none}
.text-tool-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%}.text-tool-group{display:flex;align-items:center;gap:6px;padding-right:10px;border-right:1px solid var(--editor-border)}.text-tool-group:last-child{padding-right:0;border-right:0}.text-tool-group label{display:flex;align-items:center;gap:6px}.text-add-group label{min-width:112px}.text-value-group label>span{font-size:.78rem;color:var(--editor-text-secondary)}.text-value-group input[type="range"]{width:112px}.text-align-group .choice-row{display:flex;gap:4px}.text-align-group .choice-row button{width:44px;padding:0}.text-controls>.text-tool-row~*{display:none}.mobile-text-recovery{display:none}
.editor-feedback{display:inline-flex;width:max-content;max-width:100%;min-height:28px;margin:6px 0 0;padding:5px 9px;border:1px solid transparent;border-radius:8px;background:transparent;font-size:.8rem;font-weight:650;color:var(--editor-text-secondary)}.editor-feedback.status-pass{background:transparent;border-color:transparent;color:var(--editor-success)}.editor-feedback.status-info{background:#f1f4f3;border-color:var(--editor-border);color:var(--editor-text-secondary)}.editor-feedback.status-warn{background:#fff7df;border-color:#eed18a;color:var(--editor-warning)}.editor-feedback.status-fail{background:#fff0f0;border-color:#efb9b9;color:var(--editor-error)}
.media-source{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.media-canvas{display:block;width:100%;height:100%;object-fit:contain;background:#111817}
.playback-controls{position:absolute;left:10px;right:10px;bottom:10px;z-index:4;display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:10px;background:rgba(8,16,14,.72);color:#fff;pointer-events:auto}
.playback-controls button{width:38px;min-height:34px;padding:0;border-radius:50%;background:#fff;color:var(--accent-dark)}
.playback-controls span{font-size:.78rem;font-variant-numeric:tabular-nums}
.crop-overlay{position:absolute;z-index:3;background:transparent;touch-action:none;pointer-events:auto}
.crop-box{position:absolute;border:2px solid #fff;box-shadow:0 0 0 999px rgba(0,0,0,.32);cursor:move;touch-action:none}
.crop-box:before,.crop-box:after{content:"";position:absolute;background:rgba(255,255,255,.55)}
.crop-box:before{left:33.333%;right:33.333%;top:0;bottom:0;border-left:1px solid;border-right:1px solid;background:transparent}
.crop-box:after{top:33.333%;bottom:33.333%;left:0;right:0;border-top:1px solid;border-bottom:1px solid;background:transparent}
.crop-handle{position:absolute;width:22px;min-height:22px;padding:0;border:2px solid #fff;border-radius:50%;background:var(--accent);touch-action:none}.crop-handle.nw{left:-11px;top:-11px;cursor:nwse-resize}.crop-handle.n{left:50%;top:-11px;transform:translateX(-50%);cursor:ns-resize}.crop-handle.ne{right:-11px;top:-11px;cursor:nesw-resize}.crop-handle.e{right:-11px;top:50%;transform:translateY(-50%);cursor:ew-resize}.crop-handle.se{right:-11px;bottom:-11px;cursor:nwse-resize}.crop-handle.s{left:50%;bottom:-11px;transform:translateX(-50%);cursor:ns-resize}.crop-handle.sw{left:-11px;bottom:-11px;cursor:nesw-resize}.crop-handle.w{left:-11px;top:50%;transform:translateY(-50%);cursor:ew-resize}
.edit-panel{padding:16px 18px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--panel);box-shadow:0 8px 24px rgba(27,52,48,.05)}
.edit-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.edit-panel h3{margin:3px 0 0}.edit-panel-help{margin:8px 0 12px;color:var(--muted)}
.edit-recovery,.choice-row,.tool-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tool-controls p{width:100%;margin:0;color:var(--muted)}
.compact{min-height:40px;padding:7px 12px}.choice-row button,.tool-controls button{min-height:44px;background:var(--panel);color:var(--accent-dark);border:1px solid #8ebbb5}.choice-row button.selected{background:var(--accent);color:#fff;border-color:var(--accent)}
#audio-controls label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;font-weight:750}#audio-controls input{width:20px;height:20px}
.text-controls label{display:grid;gap:6px;font-weight:750}.text-controls textarea,.text-controls select{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit}.text-controls textarea{min-height:76px;resize:vertical}.text-controls input[type="range"]{width:100%}.text-controls input[type="color"]{width:52px;height:44px;padding:3px;border:1px solid var(--line);border-radius:10px;background:#fff}.text-align-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.export-mode{margin:5px 0;color:var(--muted);font-size:.86rem}.export-panel progress{width:100%;margin-top:10px;accent-color:var(--accent)}
.tool-rail{overflow-y:auto}.tool-rail .tool-button{min-height:62px}.tool-icon{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px}.tool-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tool-label{min-width:0}
.preview-surface[hidden],.edit-panel[hidden],.tool-controls[hidden],.crop-overlay[hidden],.text-overlay[hidden]{display:none!important}
@media(max-width:760px){.preview-surface{height:min(300px,38vh);max-height:300px}.edit-panel{padding:14px}.edit-panel>header{align-items:flex-start}.edit-recovery{justify-content:flex-end}.choice-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.choice-row button,.tool-controls>button{width:100%}.tool-controls{display:grid;grid-template-columns:1fr 1fr}.tool-controls p{grid-column:1/-1}.mobile-tool-rail{position:sticky;bottom:max(6px,env(safe-area-inset-bottom));z-index:10;box-shadow:0 8px 28px rgba(18,44,39,.16)}.mobile-tool-rail .tool-button{min-width:82px}}
@media(max-width:760px){.handoff-state{inset:10px;gap:8px;padding:16px 14px}.handoff-state p{font-size:.83rem}.handoff-progress{width:min(240px,82%)}}
@media(max-width:760px){.text-controls{display:block}.text-tool-row{gap:8px}.text-tool-group{padding:0 8px 0 0}.text-add-group{width:100%;border-right:0}.text-add-group #add-text{width:auto;min-width:112px}.text-add-group label{flex:1}.text-style-group,.text-align-group{flex:0 0 auto}.text-value-group{flex:1 1 100%;border-right:0}.text-value-group label{flex:1}.text-value-group input[type="range"]{width:100%}.text-align-group .choice-row{display:flex;width:auto}.edit-panel-help{margin-bottom:8px}.editor-feedback{font-size:.76rem}}

@media(max-width:760px){
body[data-active-tool="text"] .edit-panel{padding:7px 9px}
body[data-active-tool="text"] .edit-panel>header{display:none}
body[data-active-tool="text"] .edit-panel h3{margin:0}
body[data-active-tool="text"] .edit-panel-help{display:none}
body[data-active-tool="text"] .edit-recovery{display:flex;flex-wrap:nowrap;gap:4px;margin-left:auto}
body[data-active-tool="text"] .edit-recovery button{width:auto;min-width:58px;min-height:44px;padding:4px 8px}
body[data-active-tool="text"] .text-tool-row{display:grid;grid-template-columns:repeat(3,44px) minmax(0,1fr) 44px;gap:5px;width:100%;min-width:0}
body[data-active-tool="text"] .text-tool-group{min-width:0;padding:0;border:0}
body[data-active-tool="text"] .text-add-group{display:grid;grid-column:1/-1;grid-template-columns:auto minmax(76px,1fr) 44px 44px;gap:5px;width:100%}
body[data-active-tool="text"] .text-add-group #add-text{width:auto;min-width:92px;min-height:44px;padding:5px 8px}
body[data-active-tool="text"] .text-add-group label{display:block;min-width:0}
body[data-active-tool="text"] .text-add-group label>span{display:none}
body[data-active-tool="text"] .text-add-group select{width:100%;min-width:0;min-height:44px;padding:5px 8px}
body[data-active-tool="text"] .mobile-text-recovery{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;padding:0;font-size:.75rem}
body[data-active-tool="text"] .text-style-group,body[data-active-tool="text"] .text-value-group{display:contents}
body[data-active-tool="text"] #edit-text-inline{grid-column:1;grid-row:2}
body[data-active-tool="text"] #text-bold{grid-column:2;grid-row:2}
body[data-active-tool="text"] #text-italic{grid-column:3;grid-row:2}
body[data-active-tool="text"] .text-color-control{grid-column:4/-1;grid-row:2;display:flex;align-items:center;justify-content:flex-end;min-width:0}
body[data-active-tool="text"] .text-color-control>span{margin-right:6px}
body[data-active-tool="text"] .text-color-control input{width:44px;height:44px}
body[data-active-tool="text"] .text-size-control{grid-column:1/4;grid-row:3;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;min-width:0}
body[data-active-tool="text"] .text-size-control input{width:100%;min-width:0}
body[data-active-tool="text"] .text-align-group{grid-column:4/-1;grid-row:3;display:block;min-width:0}
body[data-active-tool="text"] .text-align-group .choice-row{display:grid;grid-template-columns:repeat(3,44px);gap:3px;justify-content:end;width:100%}
body[data-active-tool="text"] .text-align-group .choice-row button{width:44px;min-height:44px}
}

/* Mobile editor shell: the desktop rail must never reserve viewport height or width. */
.mobile-tool-rail{display:none}
@media(max-width:760px){
.editor-shell{display:flex;flex-direction:column;min-height:calc(100vh - 54px)}
.editor-shell>.tool-rail{display:none;height:0;min-height:0;padding:0;border:0;overflow:hidden}
.editor-workspace{order:1;width:100%;min-width:0}
.mobile-tool-rail{display:flex;align-items:center;width:100%;min-height:56px;max-height:64px;padding:6px 8px;margin:0;overflow-x:auto;overflow-y:hidden;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--panel);scrollbar-width:thin;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.mobile-tool-rail .tool-button{flex:0 0 auto;width:auto;min-width:68px;min-height:44px;max-height:48px;flex-direction:row;gap:5px;padding:6px 9px;border-radius:9px;scroll-snap-align:start}
.mobile-tool-rail .tool-icon{width:22px;height:22px;flex-basis:22px}.mobile-tool-rail .tool-icon svg{width:21px;height:21px}.mobile-tool-rail .tool-label{font-size:.72rem;line-height:1;white-space:nowrap}
.mobile-tool-rail .tool-button.active{box-shadow:inset 0 -3px var(--editor-accent-active)}
.empty-preview{padding:18px 16px}
.empty-preview .desktop-upload-copy{display:none}
.empty-preview .mobile-upload-copy{display:inline}
.empty-preview p{margin:8px 0 0}
.empty-preview .file-button{display:none}
.upload-mark{width:72px;height:72px;min-height:72px;border-radius:20px;font-size:2.25rem}
.import-status{font-size:.82rem}
}
.text-inline-editor{min-height:44px;padding:4px 6px;overflow:auto;background:rgba(7,14,13,.5);color:#fff;caret-color:#fff;text-shadow:0 1px 2px #000;line-height:1.2;outline:2px solid rgba(255,216,77,.78);outline-offset:-2px}
.text-inline-editor::placeholder{color:rgba(255,255,255,.72)}
.text-inline-editor::selection{background:rgba(255,216,77,.4);color:#fff}
.mobile-editor-ad-slot{display:none}
@media(max-width:760px){.mobile-editor-ad-slot{display:flex;align-items:center;justify-content:center;width:calc(100% - 24px);min-height:28px;max-height:28px;margin:12px auto 0;border:1px dashed var(--line);border-radius:12px;background:#f7f9f8;color:var(--muted);font-size:.75rem;opacity:.65}}

.analytics-consent-panel{position:fixed;z-index:1000;right:16px;bottom:max(16px,env(safe-area-inset-bottom));width:min(420px,calc(100vw - 32px));padding:16px;border:1px solid #d8e1e6;border-radius:14px;background:#fff;color:#17202a;box-shadow:0 10px 30px rgba(20,63,55,.16)}
.analytics-consent-panel[hidden]{display:none}.analytics-consent-panel h2{margin:0 0 8px;font-size:20px;line-height:1.25}.analytics-consent-panel p{margin:0 0 10px;font-size:14px;line-height:1.5;color:#5c6773}.analytics-consent-learn{display:inline-block;margin-bottom:12px;color:#17665e;text-underline-offset:3px}.analytics-consent-actions{display:flex;flex-wrap:wrap;gap:8px}.analytics-consent-actions button{min-height:44px;padding:9px 14px;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}.analytics-consent-allow,.analytics-consent-toggle{border:1px solid #17665e;background:#17665e;color:#fff}.analytics-consent-actions .secondary{border:1px solid #b8c7cc;background:#fff;color:#17202a}.analytics-consent-status{margin-top:8px!important;margin-bottom:0!important}.analytics-settings-trigger{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:4px 8px;padding:8px 10px;border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.analytics-consent-panel button:focus-visible,.analytics-consent-panel a:focus-visible,.analytics-settings-trigger:focus-visible{outline:3px solid rgba(23,102,94,.28);outline-offset:2px}
@media(max-width:767px){.analytics-consent-panel{right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:calc(100vw - 24px);padding:14px}.analytics-consent-actions{display:grid;grid-template-columns:1fr 1fr}.analytics-consent-actions button{width:100%}}
