/* FOS4 — Mateusz "Azi" Majewski. Code permissions and statutory exceptions: LICENSE.txt. Outputs and preset data may be used commercially. */
:root{color-scheme:dark;--bg:#111513;--panel:#191e1b;--line:#303b33;--text:#e6eee5;--muted:#9ba99e;--green:#c1f279}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px system-ui,-apple-system,sans-serif}button,select,input{font:inherit}button,select{color:inherit;background:#232b25;border:1px solid var(--line);border-radius:6px;padding:10px 13px;cursor:pointer}button:hover{border-color:var(--green);color:var(--green)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:3px}.primary{background:var(--green);color:#18210f;border-color:var(--green);font-weight:650}.primary:hover{background:#d5ff9b;color:#18210f}header{min-height:88px;padding:20px 32px;display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:var(--text);font-size:22px;font-weight:800;letter-spacing:2px;display:flex;align-items:center;gap:12px}.brand-icon{color:var(--green);font-size:32px}.tag{font:12px monospace;letter-spacing:1px;border-left:1px solid var(--line);padding-left:14px;color:var(--muted)}.privacy{margin-left:auto;font-size:13px;color:var(--muted)}main{display:grid;grid-template-columns:minmax(0,1fr) 350px;max-width:1800px;margin:auto}.workspace{padding:34px 36px}.eyebrow{font:12px monospace;letter-spacing:1.7px;color:var(--muted)}h1{font-size:clamp(24px,2.4vw,37px);font-weight:600;letter-spacing:-1.2px;margin:10px 0 28px}h1 span{color:var(--green)}h2{font-size:17px;margin:8px 0}.workspace-heading,.viewtools,.sourcebar,.section-title,.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.live{font:12px monospace;color:var(--green)}.viewtools{margin-bottom:18px}.segmented{display:flex;background:#0c100d;border:1px solid var(--line);border-radius:7px;padding:4px;gap:3px}.segmented button{border:0;background:transparent;font-size:14px;padding:8px 12px;color:var(--muted)}.segmented .active{background:#344130;color:var(--green)}#pause{background:transparent;font-size:14px}.stage{position:relative;padding:30px 34px 16px;border:1px solid #41463f;border-radius:14px;background:linear-gradient(130deg,#30372f,#242923 70%);box-shadow:0 22px 60px #0005,inset 0 2px 0 #ffffff0d}.monitor{background:#030705;border-radius:20px;padding:9px;box-shadow:inset 0 3px 14px #000,0 1px 1px #727568;min-height:220px;display:flex;align-items:center;justify-content:center;overflow:hidden}canvas{display:block;max-width:100%;max-height:55vh;object-fit:contain;width:auto;height:auto;border-radius:12px;image-rendering:pixelated}.monitor-label{display:flex;justify-content:space-between;margin-top:16px;font:10px monospace;letter-spacing:2px;color:#abb1a4}.monitor-label i{display:inline-block;width:6px;height:6px;border-radius:100%;background:var(--green);box-shadow:0 0 9px #c1f279}.sourcebar{font:12px monospace;color:var(--muted);margin-top:18px;flex-wrap:wrap}.sourcebar button{padding:5px 8px;font-size:12px;background:transparent}.dropnote{text-align:center;color:#b6c1b7;font-size:14px;margin:24px 0 32px}.dropnote small{display:block;color:var(--muted);font-size:12px;margin-top:9px}kbd{font:11px monospace;border:1px solid var(--line);padding:3px 5px;border-radius:3px}.section-title>span{font:12px monospace;color:var(--muted)}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.preset{padding:16px;text-align:left;position:relative;min-height:86px;background:#1b221c}.preset.active{border-color:var(--green);background:#253121}.preset strong{display:block;font-size:15px;margin-bottom:7px}.preset small{color:var(--muted);font-size:12px}.preset .number{float:right;font:12px monospace;color:var(--muted)}aside{border-left:1px solid var(--line);background:var(--panel);padding:28px 24px}.panel-head{margin-bottom:24px}.panel-head button{font-size:12px;background:transparent}.panel-head h2{font-size:22px}details{border-top:1px solid var(--line);padding:15px 0}summary{cursor:pointer;font-size:14px;font-weight:600;list-style:none;display:flex;justify-content:space-between}summary:after{content:'＋';color:var(--muted)}details[open] summary:after{content:'−'}details[open] summary{margin-bottom:18px}.control{margin:17px 0}.control label{font-size:14px;display:flex;justify-content:space-between;gap:8px}.control output{color:var(--green);font:13px monospace}.control input[type=range]{display:block;width:100%;accent-color:var(--green);height:18px;margin:9px 0 0;cursor:pointer}.control select{width:100%;margin-top:9px;font-size:14px}.help{font-size:12px;line-height:1.5;color:var(--muted);margin:5px 0}.preset-actions{display:flex;gap:8px;margin:18px 0}.preset-actions button{font-size:12px;flex:1}.export{border-top:1px solid var(--line);padding-top:20px}.export label{display:block;font-size:14px;margin:16px 0 8px}.export select,.export button{width:100%}.export p{font:12px monospace;color:var(--muted)}.export small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:12px}footer{border-top:1px solid var(--line);padding:20px 32px;display:flex;justify-content:space-between;font:12px monospace;color:var(--muted)}footer b{color:var(--green);margin-left:7px}#message{margin-top:16px;font-size:14px;color:var(--green)}#splitControl{padding-top:12px;font-size:12px}#splitControl input{width:100%;accent-color:var(--green)}.dragover{outline:3px dashed var(--green);outline-offset:-10px}@media(min-width:1600px){canvas{max-height:65vh}}@media(max-width:1000px){main{grid-template-columns:minmax(0,1fr) 310px}.workspace{padding:25px 20px}.privacy{display:none}header>button{margin-left:auto}.stage{padding:20px 15px 14px}.presets{grid-template-columns:repeat(2,1fr)}aside{padding:25px 18px}}@media(max-width:720px){header{padding:14px 16px;gap:12px;min-height:72px}.brand{font-size:18px}.tag{display:none}header button{font-size:14px}main{display:block}.workspace{padding:25px 16px}aside{border-left:0;border-top:1px solid var(--line);padding:26px 20px}.stage{padding:16px 12px 14px}.monitor{min-height:160px}canvas{max-height:50vh}.live{display:none}.viewtools{gap:5px}.segmented button{font-size:12px;padding:8px}.viewtools>button{font-size:12px;padding:8px}.monitor-label{font-size:8px;letter-spacing:1px}.dropnote{line-height:1.7}footer{padding:20px 16px;gap:20px;font-size:10px}}

/* Language selection stays visible on every screen size. */
.language-picker{display:flex;align-items:center;gap:8px;flex-shrink:0;color:var(--green);font-size:14px}.language-picker select{min-width:110px;font-size:15px;padding:9px 28px 9px 10px;color:var(--text)}
html[lang=ja] body{font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}html[lang=ja] h1{letter-spacing:0;line-height:1.45}html[lang=ja] .eyebrow{letter-spacing:.5px}html[lang=ja] .preset strong{line-height:1.5}html[lang=ja] .preset small{line-height:1.6}
@media(max-width:1200px){header .privacy{display:none}header .language-picker{margin-left:auto}header{gap:16px}}@media(max-width:720px){header{flex-wrap:wrap;gap:12px}.language-picker{margin-left:auto}.language-picker>span{display:none}.language-picker select{min-width:106px}header>#upload{width:100%;margin:0}.brand{font-size:17px;gap:8px}.viewtools{flex-wrap:wrap}.control label{line-height:1.5}.preset-actions button{min-width:0;overflow-wrap:anywhere}html[lang=ja] .monitor-label{letter-spacing:0}}
h1>span[data-i18n]{color:inherit}

/* Mobile preview may span both the preset workspace and the settings column. */
.preview-anchor{width:100%}
html.has-docked-preview{scroll-padding-top:var(--preview-clearance,260px)}
@media(min-width:0px){
 .stage.preview-docked{position:fixed;z-index:50;top:0;left:0;right:0;width:100%;margin:0;border-radius:0 0 12px 12px;padding:calc(8px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px));box-shadow:0 8px 24px #0009;}
 .preview-docked .monitor{min-height:0;padding:4px;border-radius:10px;}
 .preview-docked canvas{max-height:var(--preview-image-height,180px);max-width:100%;width:auto;height:auto;border-radius:7px;}
 .preview-docked .monitor-label{display:none;}
 .preview-docked #splitControl{padding-top:6px;}
 .preview-docked #splitControl input{display:block;margin:4px 0 0;height:22px;}
 .has-docked-preview .control,.has-docked-preview .preset,.has-docked-preview summary{scroll-margin-top:12px;}
}

.user-presets{border-top:1px solid var(--line);padding:20px 0}.user-presets>label{display:block;font-size:14px;margin:16px 0 8px}.user-presets input,.user-presets textarea,.user-presets select{display:block;width:100%;min-width:0;background:#111813;color:var(--text);border:1px solid var(--line);border-radius:6px;padding:10px;font:16px system-ui}.user-presets textarea{font:12px/1.5 monospace;resize:vertical;overflow-wrap:anywhere}.user-presets>#saveLocal{width:100%;margin-top:10px}.code-actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}.code-actions button{flex:1;font-size:12px;padding:10px 8px}.user-presets .help{line-height:1.6}

.purpose{margin:-14px 0 24px;color:var(--muted);font-size:14px;line-height:1.6;max-width:650px}.workspace-heading{align-items:flex-start}.workspace-heading>.live{margin-top:12px}.support{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.support p{font-size:14px;line-height:1.6;color:var(--muted)}.support-link{display:inline-block;padding:11px 15px;border:1px solid var(--green);border-radius:6px;color:var(--green);text-decoration:none;font-size:14px;font-weight:600}.support-link:hover{background:#2b3825}.support-link:focus-visible{outline:2px solid var(--green);outline-offset:3px}.support small{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:12px}footer{flex-wrap:wrap}html[lang=ja] .brand{letter-spacing:.5px}

.license-link{color:var(--green);font-size:13px;line-height:1.6;text-underline-offset:3px}.license-link:focus-visible{outline:2px solid var(--green);outline-offset:4px}

/* Theme changes only the editor chrome, never the rendered image. */
:root[data-theme=light]{color-scheme:light;--bg:#f3f6f2;--panel:#ffffff;--line:#b9c6bc;--text:#18231b;--muted:#506357;--green:#375e14}
[data-theme=light] button,[data-theme=light] select{background:#e7ede5;color:var(--text)}
[data-theme=light] button:hover{border-color:var(--green);color:var(--green)}
[data-theme=light] .primary{background:#375e14;color:#fff;border-color:#375e14}
[data-theme=light] .primary:hover{background:#28470e;color:#fff}
[data-theme=light] .segmented{background:#e7ede5}
[data-theme=light] .segmented button{background:transparent;color:#506357}
[data-theme=light] .segmented .active{background:#d3e5bd;color:#23440c}
[data-theme=light] .preset{background:#fff}
[data-theme=light] .preset.active{background:#e0edce}
[data-theme=light] .dropnote{color:#405547}
[data-theme=light] .user-presets input,[data-theme=light] .user-presets textarea,[data-theme=light] .user-presets select{background:#f3f6f2;color:var(--text)}
[data-theme=light] .support-link:hover{background:#e0edce}
[data-theme=light] .stage #splitControl{color:#e6eee5}
.theme-picker{display:flex;align-items:center;gap:8px;font-size:14px;flex-shrink:0}.theme-picker>span:first-child{font-size:24px;color:var(--green)}.theme-picker select{font-size:15px;min-width:110px;padding:9px 24px 9px 10px}
.footer-links{flex-basis:100%;display:flex;gap:16px 24px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line)}.footer-links a{color:var(--green);font:14px/1.5 system-ui;text-underline-offset:4px}.footer-links a:focus-visible{outline:2px solid var(--green);outline-offset:4px}
body.dialog-open{overflow:hidden}.info-dialog{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:0;width:min(760px,calc(100% - 28px));max-height:86vh;max-height:86dvh;box-shadow:0 24px 80px #0008}.info-dialog::backdrop{background:#050b08b8}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1;background:var(--panel)}.dialog-header h2{font-size:21px}.dialog-header button{font-size:14px;white-space:nowrap}.dialog-content{padding:8px 24px 24px}.dialog-content p{font-size:16px;line-height:1.7;color:var(--muted)}.dialog-content h3{font-size:18px;margin:24px 0 10px}.dialog-content section+section{border-top:1px solid var(--line);margin-top:20px}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gallery-card{display:flex;flex-direction:column;padding:0;text-align:left;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--bg);min-width:0;color:var(--text)}.gallery-card img{display:block;width:100%;height:200px;object-fit:contain;background:#030705}.gallery-card strong{font-size:15px;margin:12px 12px 5px}.gallery-card>span{font-size:13px;line-height:1.5;color:var(--muted);margin:0 12px 14px}.info-dialog [hidden]{display:none!important}
@media(max-width:1450px){header .privacy{display:none}header{gap:14px}.theme-picker{margin-left:auto}header .language-picker{margin-left:0}}
@media(max-width:900px){header{flex-wrap:wrap}.brand .tag{display:none}.theme-label{display:none}}
@media(max-width:720px){header .brand{flex-basis:100%}.theme-picker{margin-left:0}.language-picker{margin-left:auto!important}.theme-picker select{min-width:110px}.dialog-header{padding:12px 14px}.dialog-header h2{font-size:18px}.dialog-content{padding:4px 16px 20px}.gallery-card img{height:150px}.gallery-card strong{font-size:14px}.footer-links{gap:14px 20px}}
@media(max-width:420px){.gallery-grid{grid-template-columns:1fr}.gallery-card img{height:200px}}

/* In a two-column layout the dock occupies only its original left column. */
.stage.preview-docked.preview-column{left:var(--preview-left);right:auto;width:var(--preview-width);top:var(--preview-column-top,12px);border-radius:14px;padding:20px 15px 14px;box-shadow:0 12px 28px #0005}
.preview-column .monitor{padding:9px;border-radius:20px}
.preview-column canvas{border-radius:12px}
.preview-column .monitor-label{display:flex;margin-top:16px}
.preview-column #splitControl{padding-top:12px}
.visual-guide{margin:18px 0 8px}.visual-guide>figcaption{font-size:11px;color:var(--muted);margin-top:9px}.guide-screen{position:relative;border:1px solid var(--line);border-radius:12px;padding:32px 16px 16px;background:var(--panel);font-size:12px;min-width:0;overflow-wrap:anywhere}.guide-step{position:absolute;left:10px;top:8px;border-radius:50%;background:#b9ed96;color:#182616;width:22px;height:22px;text-align:center;line-height:22px}.guide-toolbar,.guide-row,.guide-pills{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.guide-highlight{display:flex;gap:8px;align-items:center;border:2px solid #6cb043;border-radius:7px;padding:10px;color:var(--text);font-weight:600;background:var(--bg)}.guide-highlight svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;flex-shrink:0}.guide-preview{height:110px;display:grid;place-content:center;background:#182735;color:#b9ed96;border:6px solid #303b36;border-radius:8px;margin:12px 0;text-align:center;font:700 25px monospace}.guide-bars{width:140px;max-width:100%;height:20px;margin:8px auto;background:linear-gradient(90deg,#e5d845 0 20%,#59d7b0 20% 40%,#57a8cd 40% 60%,#ca6897 60% 80%,#d76c4c 80%)}.guide-slider{display:flex;align-items:center;gap:15px;margin:14px 0}.guide-slider i{display:block;position:relative;width:55%;height:4px;background:#68885d}.guide-slider i:after{content:'';position:absolute;left:55%;top:-5px;width:14px;height:14px;border-radius:50%;background:#b9ed96}.guide-compare{display:grid;grid-template-columns:1fr 1fr;gap:2px}.guide-compare .guide-preview:last-child{filter:saturate(1.7);background:repeating-linear-gradient(#182735 0 3px,#070e16 3px 4px)}.guide-sequence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.guide-sequence .guide-row{flex-wrap:wrap}.guide-sequence .guide-preview{height:90px;font-size:20px}.guide-sequence .guide-bars{width:90px}.guide-muted{color:var(--muted);padding:20px 0}.guide-icon{display:block;width:64px;height:64px;margin:20px auto;border-radius:14px}.guide-toggle{background:#54a356;color:#fff;padding:3px 12px;border-radius:15px}#gallery .gallery-card{margin:0;cursor:default}#gallery .gallery-card img{height:auto;aspect-ratio:4/3;object-fit:contain}#gallery .gallery-card figcaption{padding:12px}#gallery .gallery-card figcaption strong,#gallery .gallery-card figcaption span{display:block;padding:0}#gallery .gallery-card figcaption span{margin-top:8px}
@media(max-width:600px){.guide-sequence{grid-template-columns:1fr}.guide-sequence .guide-screen{min-height:160px}.guide-sequence .guide-preview{height:65px}.guide-pills{flex-wrap:wrap}.guide-compare .guide-bars{width:90px}}
.editing-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.editing-tools label{font-size:12px;color:var(--muted);margin-left:auto}.editing-tools button:disabled{opacity:.35;cursor:default}.zoom-help{margin:0 0 12px;font-size:11px;color:var(--muted)}.edit-history{padding:14px;border-bottom:1px solid var(--line)}.edit-history summary{cursor:pointer;font-weight:600}.edit-history ol{list-style:none;padding:0;max-height:240px;overflow:auto}.edit-history li{margin:5px 0}.edit-history button{width:100%;text-align:left;font-size:12px}.edit-history button[aria-current=true]{border-color:var(--green);color:var(--green)}.history-future{opacity:.5}.stage .monitor.preview-zoomed{display:block;overflow:auto;height:min(55vh,600px);min-height:120px;cursor:grab;overscroll-behavior:contain}.stage .monitor.preview-zoomed:active{cursor:grabbing}.stage .monitor.preview-zoomed canvas{max-width:none!important;max-height:none!important;object-fit:fill;flex-shrink:0;margin:0;border-radius:0}.stage.preview-docked .monitor.preview-zoomed{height:var(--preview-image-height,180px)}
#gallery .gallery-card figcaption a{display:inline-block;margin:10px 14px 0 0;color:var(--green);font-size:12px}#gallery .gallery-card figcaption p{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}#gallery .gallery-card figcaption button{margin-top:14px;width:100%}#gallery .gallery-card figcaption button:disabled{opacity:.45;cursor:default}
.submission-launch{margin-top:12px}.footer-links .submission-launch{font-size:12px;margin:0}#submissionPrepare label,#submissionDialog label[for=subData]{display:block;margin:14px 0 6px;font-size:13px}#submissionPrepare input:not([type=checkbox]),#submissionPrepare textarea,#subData{width:100%;padding:10px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:6px;font:inherit}#subData{font:11px monospace}#submissionPrepare .submission-consent{display:flex;gap:10px;align-items:flex-start;line-height:1.5}#subOpen{display:inline-block;margin:18px 0;color:var(--green)}#subOpen[hidden]{display:none}#subClosed{padding:12px;border:1px solid var(--line);border-radius:6px}

.preset-family{grid-column:1/-1;margin:12px 0 2px;font-size:14px;color:var(--muted);font-weight:600}.control input:disabled,.control select:disabled{opacity:.45;cursor:not-allowed}
/* Compact preset browsing and release history, FOS4 1.11. */
#presets [hidden],.preset-browser-controls[hidden]{display:none!important}
.preset-current{font-size:14px;line-height:1.5;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}
.preset-browser-controls{margin:12px 0}.preset-browser-controls label{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px}.preset-browser-controls select{max-width:100%;font-size:14px}
.preset-expand{display:block;width:100%;margin-top:12px;font-size:14px}
.preset-film-quick{display:block;width:100%;margin:10px 0 12px;border-color:var(--green);color:var(--green);font-size:14px}
.release-entry{padding-bottom:16px;border-bottom:1px solid var(--line)}.release-entry:last-child{border-bottom:0}.release-entry h3{line-height:1.6}.release-entry h3 b{display:inline-block;color:var(--green);margin-right:8px;font-family:monospace}.release-entry ul{padding-left:22px;margin:12px 0}.release-entry li{margin:10px 0;line-height:1.6;font-size:15px}

.overlay-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.overlay-actions button{font-size:14px;flex:1}.overlay-status{overflow-wrap:anywhere;margin:8px 0;color:var(--green)}
/* Project files and custom palettes, FOS4 1.3. */
.project-panel{border-top:1px solid var(--line);padding:18px 0}.project-actions,.palette-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.project-actions button,.palette-actions button{font-size:14px;flex:1;min-width:100px}.palette-editor>label,.palette-color-edit>label{display:block;font-size:14px;margin:14px 0 6px}.palette-editor input[type=text],.palette-editor input[type=number]{box-sizing:border-box;width:100%;padding:9px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:5px;font:16px system-ui}.palette-swatches{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;max-height:220px;overflow:auto;padding:5px}.palette-swatches button{padding:0;min-height:28px;aspect-ratio:1;border:1px solid var(--line);border-radius:3px;font-size:12px}.palette-swatches button[aria-pressed=true]{outline:2px solid var(--text);outline-offset:1px}.palette-lock{display:flex!important;align-items:center;gap:8px;font-size:14px}.palette-color-edit input[type=color]{display:block;width:100%;height:38px;padding:3px;margin-top:7px;background:var(--bg);border:1px solid var(--line)}.palette-sample{max-width:100%;max-height:160px;width:auto;height:auto;border-radius:4px;margin:10px auto;cursor:crosshair}.palette-sample[hidden]{display:none!important}
.media-panel[hidden]{display:none}.media-range{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.media-range label{flex:1;min-width:110px}.media-range input,.video-export input{width:100%;box-sizing:border-box;padding:9px;font-size:16px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:5px}.media-panel input[type=range]{width:100%}.media-panel output{display:block;margin:6px 0 12px;font-variant-numeric:tabular-nums}.video-export>button{margin-top:10px}.video-export select{width:100%}
/* FOS4 1.5: caption editing and compact, complete mobile controls. */
.caption-section{border-bottom:1px solid var(--line);padding:18px 22px}.caption-section>summary{font-weight:650;cursor:pointer}.caption-body>label{display:block;font-size:14px;margin:12px 0 6px}.caption-body textarea,.caption-body select{width:100%;box-sizing:border-box;font-size:16px}.caption-body textarea{resize:vertical;min-height:90px;padding:10px;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:6px;line-height:1.45}.caption-actions{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.caption-actions button{flex:1;min-width:90px;font-size:13px}.caption-check{display:flex!important;gap:8px;align-items:center;font-size:14px}.caption-control{position:relative;margin:16px 0}.caption-control label{display:block;font-size:13px;margin-bottom:7px;padding-right:42px}.caption-control output{position:absolute;right:0;top:0;color:var(--green);font-size:12px}.caption-control input[type=range]{width:100%}.caption-control input[type=color]{width:100%;height:36px;background:var(--bg);border:1px solid var(--line);padding:3px}.caption-control input[type=checkbox],.caption-check input{width:20px;height:20px;accent-color:var(--green)}.caption-body details{padding:12px 0;border-top:1px solid var(--line)}.caption-body details>summary{cursor:pointer;font-size:14px}.caption-body [hidden]{display:none!important}.mobile-fold{display:contents}.mobile-fold>summary,.mobile-tools{display:none}
@media(max-width:720px){.mobile-tools{display:block;padding:14px 0;border-bottom:1px solid var(--line)}.mobile-tool-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.mobile-tool-shortcuts button{padding:10px 3px;min-height:44px;font-size:12px;overflow-wrap:anywhere}.mobile-fold-actions{display:flex;gap:8px;margin-top:9px}.mobile-fold-actions button{flex:1;font-size:12px;padding:7px}.mobile-tools .help{font-size:12px;margin-bottom:0}.mobile-fold{display:block;border-bottom:1px solid var(--line)}.mobile-fold>summary{display:list-item;font-size:16px;font-weight:600;cursor:pointer;padding:17px 16px;min-height:52px}.mobile-fold[open]>summary{color:var(--green)}.mobile-fold>section{border:0;margin-top:0}.mobile-fold>.project-panel,.mobile-fold>.preset-section{padding:10px 12px 20px}.mobile-fold>section>h2,.mobile-fold>.preset-section>.section-title{display:none}.caption-section{padding:17px 22px}.caption-section>summary{min-height:20px}.caption-body input,.caption-body textarea,.caption-body select{font-size:16px}.mobile-fold,#settings,.caption-section{scroll-margin-top:12px}.user-presets input,.user-presets textarea,.user-presets select{font-size:16px}}
