
:root,[data-theme="light"]{color-scheme:light;--page:#F5F7FC;--surface:#FFFFFF;--text:#202A48;--muted:#64728E;--link:#3C59B6;--accent:#4F5FC7;--accent-text:var(--surface);--border:#DCE3F1;--input-border:#CBD6EA;--button-border:#BFCCE5;--button-text:#172B55;--drop:#FAFDFF;--drop-border:#B9C9E8;--drop-active:#EEF4FF;--focus-soft:#86A5E9;--surface-muted:#F4F6FB;--muted-accent:#465C9B;--canvas:#EEF2F9;--nav:#E9EEF9;--selected:#F2F5FF;--error:#A23535;--shadow:rgba(32,54,91,.06)}
[data-theme="dark"]{color-scheme:dark;--page:#151B29;--surface:#222C3D;--text:#F1F4FC;--muted:#B4C0D4;--link:#A9B8FF;--accent:#8295FF;--accent-text:#101829;--border:#45516A;--input-border:#5B6981;--button-border:#5B6981;--button-text:#F1F4FC;--drop:#1B2535;--drop-border:#667899;--drop-active:#303D55;--focus-soft:#8295FF;--surface-muted:#2C384C;--muted-accent:#B4C5FF;--canvas:#101722;--nav:#1D2738;--selected:#35446B;--error:#FFAAAA;--shadow:rgba(0,0,0,.25)}
[data-theme="natural"]{color-scheme:light;--page:#F5F6F2;--surface:#FFFFFF;--text:#243C37;--muted:#627A72;--link:#087F70;--accent:#087F70;--accent-text:var(--surface);--border:#DCE9E2;--input-border:#B8CFC4;--button-border:#B8CFC4;--button-text:#243C37;--drop:#F8FCF8;--drop-border:#A8CDBD;--drop-active:#E8F5ED;--focus-soft:#61B8A1;--surface-muted:#F0F5F0;--muted-accent:#286B60;--canvas:#E8F0EB;--nav:#E6EEE8;--selected:#E1F2EA;--error:#A23535;--shadow:rgba(25,75,55,.07)}
body{transition:background-color .15s,color .15s} .header-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.theme-control{display:flex;align-items:center;gap:10px;white-space:nowrap}.theme-control select{min-width:190px}.panel{box-shadow:0 12px 32px var(--shadow)}.primary{color:var(--accent-text)}.workspace-tab[aria-selected=true]{color:var(--accent)}.dropzone:focus-visible,.dropzone.dragging{outline-color:var(--focus-soft)}.file-input,.file-input::file-selector-button,.preset-import-label{color:var(--button-text)}input,select,button{accent-color:var(--accent)}.preview-item.active,.editor-thumb[aria-pressed=true]{outline-color:var(--accent)}a{color:var(--link)}[data-theme="dark"] .editor-frame,[data-theme="dark"] .compare-stack,[data-theme="dark"] .live-compare-stack{background:var(--canvas)}[data-theme="dark"] .live-compare-stack #live-compare-boundary{background:var(--text)}
@media(max-width:650px){.header-controls{width:100%;justify-content:space-between;gap:10px}.theme-control,.language-control{flex:1 1 180px;flex-wrap:wrap}.theme-control select,.language-control select{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){body{transition:none}}

*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.55}.container{max-width:940px;margin:0 auto;padding:64px 22px 30px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{letter-spacing:.2em;color:var(--link);font-weight:750;font-size:.85rem}h1{font-size:clamp(2rem,4vw,3rem);line-height:1.2;margin:14px 0}.subtitle{color:var(--muted);max-width:750px}.language-control{display:flex;align-items:center;gap:10px;white-space:nowrap}.panel{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:32px;margin-top:32px;box-shadow:var(--shadow-panel)}label,legend{font-weight:700}select,input[type=number],input[type=text]{width:100%;border:1px solid var(--input-border);border-radius:9px;padding:13px;font:inherit;background:var(--surface);color:inherit}.language-control select{min-width:135px}.dropzone{border:2px dashed var(--drop-border);border-radius:12px;padding:25px;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:10px;cursor:pointer;background:var(--drop)}.dropzone.dragging,.dropzone:focus-visible{outline:3px solid var(--focus-soft);background:var(--drop-active)}.dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.file-button,button{border:1px solid var(--button-border);border-radius:9px;padding:11px 17px;background:var(--surface);color:var(--button-text);font:inherit;font-weight:700;cursor:pointer}.file-button{display:inline-block}.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}button:disabled{opacity:.5;cursor:wait}.hint{color:var(--muted);font-size:.9rem}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px;margin:24px 0}.fields>div>label{display:block;margin-bottom:8px}.fields.four{grid-template-columns:repeat(4,minmax(0,1fr))}.check-group{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.check-group label{display:flex;gap:8px;align-items:center}.crop-fields{border:1px solid var(--border);border-radius:12px;padding:12px 18px}.crop-fields .fields{margin:12px 0}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.preview-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:16px}.preview-item{border:1px solid var(--border);border-radius:10px;padding:10px;min-width:0}.preview-item img{width:100%;height:120px;object-fit:contain;background:var(--surface-muted);border-radius:6px}.preview-item p{overflow-wrap:anywhere;font-size:.83rem;margin:5px 0}#comparison{margin-top:20px;border-top:1px solid var(--border);padding-top:16px}#result-preview{max-width:100%;max-height:340px;object-fit:contain;border-radius:9px;background:var(--page)}#status{font-weight:600;overflow-wrap:anywhere}#details{white-space:pre-wrap;overflow-wrap:anywhere}footer{margin-top:24px;color:var(--muted)}a{color:var(--link)}@media(max-width:650px){.container{padding:28px 14px}.panel{padding:20px}.topbar{align-items:flex-start;flex-wrap:wrap}.fields,.fields.four{grid-template-columns:1fr 1fr}.dropzone{padding:20px 10px}.actions button{flex:1 1 100%}}@media(max-width:400px){.fields,.fields.four{grid-template-columns:1fr}}

.preview-section{margin-top:20px}.preview-section h2{font-size:1.05rem;margin:0}.preview-section .hint{margin:6px 0}.preview-item{display:flex;flex-direction:column;gap:4px}.preview-item img{display:block}.preview-item p{margin:2px 0}.preview-item .preview-fallback{display:flex;align-items:center;justify-content:center;min-height:120px;background:var(--surface-muted);border-radius:6px;color:var(--muted);text-align:center;padding:10px}.crop-fields input[type=text]{width:100%}input:focus-visible,select:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:650px){.preview-list{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}

.editor-section{margin:24px 0;border:1px solid var(--border);border-radius:12px;padding:18px}.editor-section h2{margin:0;font-size:1.1rem}.editor-frame{margin:12px auto;max-width:100%;background:var(--canvas);border-radius:9px;overflow:hidden;text-align:center;touch-action:none}.editor-frame canvas{display:block;max-width:100%;height:auto;margin:auto;cursor:crosshair;touch-action:none}.compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:12px}.compare-grid figure{margin:0;min-width:0}.compare-grid figcaption{font-weight:700;margin-bottom:8px}.compare-grid img{width:100%;height:260px;object-fit:contain;background:var(--page);border-radius:9px}@media(max-width:650px){.compare-grid{grid-template-columns:1fr}}

.compare-slider{margin:20px 0}.compare-slider input{width:100%}.compare-stack{position:relative;max-width:680px;margin:12px auto;overflow:hidden;background:var(--canvas);aspect-ratio:4/3}.compare-stack img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.compare-stack #compare-result{clip-path:inset(0 0 0 50%)}input[type=range]{accent-color:var(--accent)}input[type=file]{max-width:100%}

.range-value{display:inline-block;margin:0 0 8px 8px;color:var(--accent);font-weight:700;font-variant-numeric:tabular-nums}.file-input{display:block;width:100%;border:1px solid var(--input-border);border-radius:9px;padding:9px;background:var(--surface);color:var(--text);font:inherit}.file-input::file-selector-button{border:1px solid var(--button-border);border-radius:7px;padding:8px 12px;margin-right:12px;background:var(--page);color:var(--button-text);font:inherit;font-weight:700;cursor:pointer}.file-name{display:block;margin-top:6px;color:var(--muted);font-size:.85rem;overflow-wrap:anywhere}button:disabled{opacity:.5;cursor:not-allowed}

.preset-import-label{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--input-border);border-radius:9px;padding:10px 14px;background:var(--surface);color:var(--button-text);font-weight:700;cursor:pointer}
.preset-import-label:focus-within{outline:2px solid var(--accent)}
#preset-message{color:var(--muted-accent);font-size:.9rem}

.preview-item{cursor:pointer}.preview-item.active{outline:2px solid var(--accent);outline-offset:2px}.preview-item:focus-visible{outline:3px solid var(--accent)}

.editor-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.editor-toolbar button{padding:7px 12px}.editor-toolbar output{min-width:60px;text-align:center;font-variant-numeric:tabular-nums;font-weight:700;color:var(--accent)}.editor-frame{height:480px;max-height:60vh;overflow:auto;display:flex;align-items:flex-start;justify-content:flex-start;position:relative}.editor-frame canvas{max-width:none;height:auto;margin:0;flex:none;touch-action:none}.editor-frame:focus-within{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:650px){.editor-frame{height:360px;max-height:55vh}}

.job-progress{display:flex;align-items:center;gap:12px;margin:12px 0}.job-progress[hidden]{display:none}.job-progress progress{flex:1;min-width:0;height:12px}.workflow-state{font-size:.8rem;color:var(--muted-accent)}

#job-phase{font-size:.85rem;min-width:9rem;color:var(--muted-accent)}#job-indicator{accent-color:var(--accent)}@media(max-width:600px){.job-progress{flex-wrap:wrap}#job-phase{flex:1}}

.job-history{margin-top:28px;border-top:1px solid var(--border);padding-top:20px}.job-history-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.job-history-header h2{font-size:1.1rem;margin:0}.history-entry{border:1px solid var(--border);border-radius:10px;padding:12px 16px;margin:12px 0;overflow-wrap:anywhere}.history-heading{font-weight:700;margin:0 0 8px}.history-items{padding-left:20px;margin:8px 0}.history-error{color:var(--error)}.history-download{display:inline-block;margin-top:8px;font-weight:700}

.workspace-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:28px 0 0;padding:8px;background:var(--nav);border-radius:15px}.workspace-tab{border:0;background:transparent;padding:12px 8px;border-radius:10px}.workspace-tab[aria-selected=true]{background:var(--surface);color:var(--accent);box-shadow:0 2px 8px #1a32651a}.workspace-view[hidden]{display:none!important}.workspace-view{min-width:0}.workspace-view>h2{margin:0 0 16px;font-size:1.2rem}.workspace-view .editor-section{margin-top:14px}.workspace-view .job-history{margin-top:0;border-top:0;padding-top:0}.workspace-view .preview-section{margin-top:28px}.workspace-nav+.panel{margin-top:12px}.workspace-view .crop-fields{margin-top:12px}.workspace-tab:focus-visible{outline:3px solid var(--accent);outline-offset:2px}@media(max-width:650px){.workspace-nav{gap:4px;padding:5px}.workspace-tab{padding:10px 3px;font-size:.85rem}.workspace-nav+.panel{padding:18px}}

.editor-switcher{margin-top:20px}.editor-switcher h2{font-size:1.05rem}.editor-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:5px}.editor-thumb{flex:0 0 130px;min-width:0;padding:8px;text-align:left}.editor-thumb img{width:100%;height:82px;object-fit:contain;background:var(--surface-muted)}.editor-thumb span{display:block;font-size:.75rem;overflow-wrap:anywhere}.editor-thumb[aria-pressed=true]{outline:2px solid var(--accent)}.editor-thumb.modified::after{content:'*';color:var(--accent);font-weight:800}.live-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.live-tools fieldset{min-width:0;border:1px solid var(--border);border-radius:10px;padding:12px}.live-tool-row{display:flex;flex-wrap:wrap;gap:8px}.live-tool-row button{padding:7px 10px}.live-adjustments{display:grid;grid-template-columns:1fr 1fr;gap:10px}.live-adjustments label{display:block;font-size:.85rem}.live-adjustments input{width:100%}.live-compare{margin-top:18px;border-top:1px solid var(--border);padding-top:12px}.live-compare h3{font-size:1rem}.live-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.live-compare figure{min-width:0;margin:0}.live-compare figcaption{font-weight:700}.live-compare-grid img{display:block;width:100%;height:220px;object-fit:contain;background:var(--canvas)}.live-compare>input{width:100%}.live-compare-stack{position:relative;height:300px;background:var(--canvas);overflow:hidden}.live-compare-stack img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.live-compare-stack #live-compare-edited{clip-path:inset(0 0 0 50%)}@media(max-width:650px){.live-tools{grid-template-columns:1fr}.live-compare-grid img{height:160px}.live-compare-stack{height:220px}.editor-thumb{flex-basis:105px}}

.editor-thumb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-thumb.modified{border-color:var(--accent);background:var(--selected)}.editor-thumb.modified::after{content:"●";position:absolute;top:5px;right:7px;font-size:.8rem}.editor-thumb{position:relative}.live-compare-stack{height:auto;max-height:430px;aspect-ratio:4/3}.live-compare-stack img{object-fit:contain}.live-compare-stack #live-compare-edited{clip-path:inset(0 50% 0 0)}#live-compare-boundary{position:absolute;z-index:3;top:0;bottom:0;left:50%;width:2px;background:var(--surface);box-shadow:0 0 0 1px var(--button-text);pointer-events:none}#live-compare-value{display:inline-block;margin-left:10px;color:var(--accent);font-weight:700;font-variant-numeric:tabular-nums}.live-compare-stack{isolation:isolate}@media(max-width:650px){.live-compare-stack{height:auto;max-height:300px}}

#workspace-editor>.crop-fields{margin-top:16px}#workspace-editor>.editor-geometry{margin-top:20px}#workspace-editor .fields{margin-top:12px}#workspace-output>.fields{margin-top:12px}#workspace-editor .editor-section{margin-bottom:18px}

.batch-target{display:flex;align-items:center;gap:.4rem;font-size:.8rem;cursor:pointer;margin-top:.35rem}.batch-target input{width:auto}.edit-modified{font-weight:700;color:var(--accent)}

.history-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.history-entry{position:relative}.history-entry-select{display:inline-flex;gap:.4rem;align-items:center;margin-bottom:.5rem}.history-actions button{white-space:nowrap}

[data-theme="dark"] .workspace-tab[aria-selected=true]{background:var(--surface);color:var(--accent)}[data-theme="dark"] .preview-item img,[data-theme="dark"] .editor-thumb img,[data-theme="dark"] .compare-grid img,[data-theme="dark"] .live-compare-grid img{background:var(--canvas)}

#theme,#language{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234F5FC7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;padding:0 32px 0 12px;height:36px;min-height:36px;line-height:normal;cursor:pointer}
[data-theme="dark"] #theme,[data-theme="dark"] #language{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A9B8FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
[data-theme="natural"] #theme,[data-theme="natural"] #language{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23087F70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}

:root,[data-theme="light"]{--page:#F1F4FA;--surface:#FFFFFF;--text:#202B45;--muted:#53637C;--link:#344CB5;--accent:#4859C8;--accent-text:#FFFFFF;--border:#D3DDEC;--input-border:#B8C8E1;--button-border:#B9C9E1;--button-text:#263650;--surface-muted:#F1F5FC;--nav:#E5EBF6;--selected:#E9EEFF;--shadow-panel:0 3px 8px rgba(30,49,88,.045),0 18px 42px rgba(30,49,88,.11);--shadow-card:0 2px 5px rgba(30,49,88,.04),0 8px 20px rgba(30,49,88,.085);--shadow-control:0 1px 3px rgba(30,49,88,.07);--shadow-active:0 3px 8px rgba(30,49,88,.09),0 8px 18px rgba(30,49,88,.11)}
[data-theme="dark"]{--page:#111827;--surface:#1F2937;--text:#F3F6FF;--muted:#C0CCDF;--link:#B8C5FF;--accent:#A5B4FC;--accent-text:#101827;--border:#48566D;--input-border:#6A7A95;--button-border:#6A7A95;--button-text:#F3F6FF;--surface-muted:#2C394C;--nav:#1B2535;--selected:#354465;--shadow-panel:0 4px 12px rgba(0,0,0,.23),0 22px 48px rgba(0,0,0,.34);--shadow-card:0 2px 8px rgba(0,0,0,.18),0 12px 25px rgba(0,0,0,.24);--shadow-control:0 2px 5px rgba(0,0,0,.18);--shadow-active:0 4px 12px rgba(0,0,0,.28),0 12px 22px rgba(0,0,0,.22)}
[data-theme="natural"]{--page:#F1F5F0;--surface:#FFFFFF;--text:#233B36;--muted:#4E685F;--link:#176B60;--accent:#287C70;--accent-text:#FFFFFF;--border:#CCDCD3;--input-border:#A9C5B8;--button-border:#A9C5B8;--button-text:#24463D;--surface-muted:#EDF4EF;--nav:#E1EBE4;--selected:#DFF0E7;--shadow-panel:0 3px 8px rgba(26,72,55,.045),0 18px 42px rgba(26,72,55,.12);--shadow-card:0 2px 6px rgba(26,72,55,.04),0 8px 22px rgba(26,72,55,.09);--shadow-control:0 1px 4px rgba(26,72,55,.08);--shadow-active:0 4px 10px rgba(26,72,55,.1),0 10px 20px rgba(26,72,55,.12)}
.panel{box-shadow:var(--shadow-panel);background:var(--surface)}
.workspace-nav{border:1px solid var(--border);box-shadow:inset 0 1px 2px rgba(25,40,75,.035)}
.workspace-tab[aria-selected=true]{box-shadow:var(--shadow-active);background:var(--surface);color:var(--accent)}
.editor-section,.crop-fields,.live-tools fieldset,.history-entry,.preview-item,.editor-thumb,.live-compare,.compare-stack{box-shadow:var(--shadow-card)}
.editor-section,.crop-fields,.live-tools fieldset,.history-entry{background:var(--surface);border-color:var(--border)}
.preview-item,.editor-thumb{background:var(--surface)}
.preview-item.active,.editor-thumb[aria-pressed=true]{background:var(--selected);box-shadow:var(--shadow-active)}
select,input[type=number],input[type=text],.file-input{background:var(--surface);border-color:var(--input-border);box-shadow:var(--shadow-control)}
button,.file-button,.preset-import-label{box-shadow:var(--shadow-control)}
button:not(:disabled):hover,.file-button:hover,.preset-import-label:hover{border-color:var(--accent);box-shadow:var(--shadow-card)}
button.primary,.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);box-shadow:var(--shadow-active)}
button.primary:not(:disabled):hover{filter:brightness(.94);box-shadow:var(--shadow-panel)}
button:disabled{box-shadow:none}
#theme,#language{border-color:var(--input-border);box-shadow:var(--shadow-control)}
:focus-visible{outline-color:var(--accent)}
@media(prefers-reduced-motion:no-preference){button,.file-button,.preset-import-label,.workspace-tab,.preview-item,.editor-thumb{transition:box-shadow .16s ease,border-color .16s ease,background-color .16s ease}}

#scroll-top{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:100;display:flex;align-items:center;justify-content:center;gap:7px;min-width:54px;min-height:48px;padding:9px 12px;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--text);box-shadow:none;cursor:pointer;backdrop-filter:none;-webkit-backdrop-filter:none}
#scroll-top[hidden]{display:none}
#scroll-top svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#scroll-top:hover{background:var(--surface-muted);border-color:var(--accent);box-shadow:var(--shadow-control)}
#scroll-top:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:650px){#scroll-top{right:14px;bottom:max(14px,env(safe-area-inset-bottom));min-width:48px;min-height:48px}}

.container{padding-top:12.8px}
.topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;min-height:52px;gap:14px}
.topbar .eyebrow{margin:0;flex:0 0 auto}
.header-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:14px;min-width:0}
.theme-control,.language-control{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:0}
.theme-control select{min-width:0;width:220px}.language-control select{min-width:0;width:135px}
header h1{margin-top:12px}
@media(max-width:650px){.container{padding-top:6px}.topbar{flex-wrap:nowrap;min-height:44px;gap:8px}.topbar .eyebrow{font-size:.67rem;letter-spacing:.1em}.header-controls{width:auto;flex:1 1 auto;justify-content:flex-end;gap:6px}.theme-control,.language-control{flex:0 1 auto;min-width:0;gap:0}.theme-control label,.language-control label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.theme-control select{width:clamp(108px,30vw,175px);font-size:.8rem}.language-control select{width:clamp(78px,22vw,112px);font-size:.8rem}header h1{margin-top:10px}}
@media(max-width:370px){.topbar .eyebrow{font-size:.58rem;letter-spacing:0}.header-controls{gap:4px}.theme-control select{width:100px}.language-control select{width:75px}}

header .topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;flex-wrap:nowrap}
header .topbar h1{margin:0;min-width:0;flex:1 1 auto;font-size:clamp(1.25rem,2.1vw,1.8rem);line-height:1.3;letter-spacing:-.025em}
header .header-controls{flex:0 0 auto;gap:12px}
header .theme-control select{width:190px}
header .language-control select{width:110px}
.workspace-nav{margin-top:14px}
@media(max-width:760px){header .topbar{gap:10px}header .topbar h1{font-size:clamp(1.05rem,3vw,1.4rem)}header .header-controls{gap:8px}header .theme-control,header .language-control{gap:4px}header .theme-control label,header .language-control label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}header .theme-control select{width:clamp(105px,24vw,155px)}header .language-control select{width:clamp(76px,16vw,105px)}}
@media(max-width:480px){header .topbar{min-height:52px;gap:6px}header .topbar h1{font-size:1rem}header .header-controls{gap:4px}header .theme-control select{width:94px;padding-left:8px;padding-right:26px;font-size:.75rem}header .language-control select{width:74px;padding-left:8px;padding-right:26px;font-size:.75rem}.workspace-nav{margin-top:10px}}

.site-footer{max-width:940px;margin:40px auto 0;padding:20px 0 8px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--border)}.site-footer-brand,.site-footer-links{display:flex;align-items:center;gap:12px;min-width:0}.site-footer-brand{font-weight:700;color:var(--text)}.site-footer-version{font-size:.85rem;font-weight:500;color:var(--muted)}.site-footer-links{flex-wrap:wrap;justify-content:flex-end}.site-footer-links a{white-space:nowrap}@media(max-width:650px){.site-footer{margin-top:32px;padding-top:16px;align-items:flex-start;flex-wrap:wrap}.site-footer-links{justify-content:flex-start}}
