@font-face{font-family:Inter;src:url('/assets/inter.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--bg:#1d1e1d;--surface:#242524;--raised:#303230;--line:#383a37;--text:#e6e8e2;--muted:#a0a49b;--dim:#858a80;--accent:#d7dfc4;--ease:cubic-bezier(.2,.7,.2,1)}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font:12px Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}body{overflow:hidden}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;background:none;border:0;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.28;cursor:default}button:not(:disabled),a,select{transition:background .16s,color .16s,border-color .16s,transform .16s var(--ease),opacity .16s}button:not(:disabled):active{transform:scale(.96)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{display:none}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.app-shell{height:100dvh;display:flex;flex-direction:column;min-height:0;padding-top:env(safe-area-inset-top)}
.app-header{height:54px;flex-shrink:0;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid var(--line);gap:20px}.brand{font-size:23px;font-weight:540;letter-spacing:-1.1px;line-height:1}.brand-dot{color:var(--accent)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.save-status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;margin-right:12px}.status-dot{width:4px;height:4px;border-radius:50%;background:var(--accent)}.save-status.warning .status-dot{background:#e4ac82}.button{min-height:30px;border:1px solid #454842;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;font-size:11px;font-weight:480}.button:hover:not(:disabled){background:var(--raised)}.button svg{width:14px;height:14px}.import-button{background:#292b28}.export-control{display:flex;align-items:stretch;border-radius:4px;background:#dce0d3;overflow:hidden;color:#292d25}.export-button{border:0;border-radius:4px 0 0 4px;background:transparent;padding:0 11px;min-height:31px}.export-button:hover:not(:disabled),.export-options-button:hover:not(:disabled){background:#e9ece3;color:#20251b}.export-options-button{width:28px;display:grid;place-items:center;position:relative;color:#343a2d}.export-options-button:before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:1px;background:#b9c0ad}.export-options-button svg{width:14px;height:14px}.export-button.busy svg{animation:spin 1s linear infinite}
.studio{display:flex;flex:1;min-height:0}.workspace{flex:1;min-width:0;display:flex;flex-direction:column;padding:0 12px;background:#191a19}.canvas-topbar{height:38px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.file-info{display:flex;align-items:center;gap:8px;min-width:0;font-size:10px}.photo-indicator{width:4px;height:4px;background:var(--accent);border-radius:50%}#fileName{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:360px;color:#bdc1b6}.demo-label{font-size:9px;color:var(--dim);border-left:1px solid var(--line);padding-left:8px;white-space:nowrap}.history-controls{display:flex;align-items:center;gap:3px}.icon-button{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;border-radius:4px;color:var(--muted)}.icon-button:hover:not(:disabled){background:#2c2f28;color:#f1f3eb}.icon-button svg{width:15px;height:15px}.history-controls .icon-button:has(span){width:auto;padding:0 7px;font-size:10px}.control-divider{width:1px;height:13px;background:var(--line);margin:0 5px;flex-shrink:0}.viewport{flex:1;min-height:70px;position:relative;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;isolation:isolate;cursor:grab}.viewport.panning{cursor:grabbing}.photo-stage{position:absolute;top:50%;left:50%;transform-origin:center;will-change:transform;line-height:0;box-shadow:0 2px 16px #0003}.photo-stage.fitting{transition:transform .25s var(--ease),width .25s var(--ease),height .25s var(--ease)}#photoCanvas{width:100%;height:100%;display:block;background:repeating-conic-gradient(#30322e 0% 25%,#393b35 0% 50%) 50% / 16px 16px}.before-badge{position:absolute;left:50%;top:12px;transform:translateX(-50%);background:#1b1e18d9;border:1px solid #ffffff28;padding:6px 10px;border-radius:4px;font-size:9px;letter-spacing:1px;pointer-events:none;backdrop-filter:blur(8px)}.canvas-bottom{height:38px;flex-shrink:0;display:flex;align-items:center;position:relative;justify-content:space-between;gap:12px}.image-meta{font-size:9px;color:var(--dim);white-space:nowrap;font-variant-numeric:tabular-nums}.view-controls{display:flex;align-items:center;justify-content:center;position:absolute;left:50%;transform:translateX(-50%);height:28px}.view-controls .icon-button{width:26px;height:28px}.view-controls #fitButton{width:auto;gap:5px;padding:0 7px;font-size:10px}.view-controls .control-divider{margin:0 4px}.view-controls svg{width:14px;height:14px}.zoom-value{font-size:10px;min-width:38px;height:28px;color:#bdc3b2;font-variant-numeric:tabular-nums}.compare-button{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;min-height:28px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;border-radius:4px;padding:0 7px}.compare-button:hover{background:#2a2d26}.compare-button svg{width:14px;height:14px}.compare-button.comparing{color:var(--accent)}
.editor-panel{width:248px;flex-shrink:0;border-left:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;min-height:0}.panel-intro{height:40px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.panel-intro h1{font-size:11px;font-weight:530;margin:0;color:#bdc2b5}.text-button{font-size:10px;color:var(--muted);padding:6px 0 6px 8px;min-height:28px}.text-button:hover{color:var(--text)}.tool-nav{display:flex;border-bottom:1px solid var(--line);padding:0 8px;gap:4px;flex-shrink:0}.tool-button{flex:1;min-width:0;min-height:38px;display:flex;align-items:center;justify-content:center;gap:5px;color:var(--muted);position:relative;border-bottom:2px solid transparent;padding:0 2px;font-size:10px}.tool-button svg{width:14px;height:14px}.tool-button.active{color:var(--text);border-color:var(--accent)}.tool-button:hover{background:#2e312a}.tool-button i{display:none;position:absolute;top:6px;right:2px;width:3px;height:3px;border-radius:50%;background:var(--accent)}.tool-button.edited:not(.active) i{display:block}.panel-content{padding:18px 16px;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4c5144 transparent}.tool-panel.active{animation:panel-in .18s var(--ease)}@keyframes panel-in{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.section-heading{display:flex;align-items:center;justify-content:space-between;min-height:24px}.section-heading h2{font-size:11px;font-weight:550;margin:0}.tool-description{font-size:10px;line-height:1.6;color:var(--muted);margin:3px 0 15px}.adjustment{margin:0 0 20px}.adjustment-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.adjustment-label label{display:flex;align-items:center;gap:7px;font-size:11px}.adjustment-label label svg{width:13px;height:13px;color:var(--muted)}.value-pill{min-width:30px;height:23px;border-radius:3px;font-size:10px;font-variant-numeric:tabular-nums;color:#bbc5aa;border:1px solid #3e4437;background:#2a2e25}.value-pill:hover{background:#373e2c}.range-labels{display:flex;justify-content:space-between;color:var(--dim);font-size:8px;margin-top:1px}.range-labels span:last-child{text-align:right}input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:26px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y;--pct:50%}input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,#abb69a 0%,#abb69a var(--pct),#4b5142 var(--pct),#4b5142 100%);border-radius:4px}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;margin-top:-5px;width:12px;height:12px;border:2px solid var(--surface);background:#d6dfc4;outline:1px solid #b8c3a7;border-radius:50%;transition:box-shadow .16s}input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 0 0 4px #444c35}input[type=range]::-moz-range-track{height:2px;background:#4b5142}input[type=range]::-moz-range-progress{height:2px;background:#abb69a}input[type=range]::-moz-range-thumb{width:12px;height:12px;border:2px solid var(--surface);border-radius:50%;background:#d6dfc4}.mono-row{display:flex;align-items:center;justify-content:space-between;min-height:30px;gap:10px;font-size:10px}.toggle{width:29px;height:17px;padding:2px;background:#474d3d;border:1px solid #555d48;border-radius:20px;position:relative;flex-shrink:0}.toggle:before{content:'';position:absolute;inset:-9px -5px}.toggle span{display:block;width:11px;height:11px;border-radius:100%;background:#bcc3b0;transition:transform .16s var(--ease),background .16s}.toggle[aria-checked=true]{background:#cdd9b9;border-color:#cdd9b9}.toggle[aria-checked=true] span{transform:translateX(12px);background:#343f26}.panel-footer{margin:0 16px;border-top:1px solid var(--line);padding:12px 0;display:flex;align-items:center;gap:6px;color:var(--dim);font-size:9px;flex-shrink:0}.panel-footer svg{width:11px;height:11px}
.simple-tones{display:flex;flex-direction:column;gap:8px;margin:12px 0}.tone-control{display:grid;grid-template-columns:1fr 28px;align-items:center;column-gap:9px}.tone-control label{font-size:10px;grid-column:1;grid-row:1}.tone-control output{grid-column:2;grid-row:1;text-align:right;font-size:10px;color:#bcc5ad;font-variant-numeric:tabular-nums}.tone-control input{grid-column:1/-1;grid-row:2;height:25px}.mono-row.compact{padding:8px 0;margin:5px 0 0;border-top:1px solid var(--line)}.curve-details{border-top:1px solid var(--line);margin-top:6px}.curve-details summary{display:flex;align-items:center;justify-content:space-between;min-height:36px;color:var(--muted);font-size:10px;cursor:pointer;list-style:none;user-select:none}.curve-details summary::-webkit-details-marker{display:none}.curve-details summary svg{width:14px;height:14px;transition:transform .16s}.curve-details[open] summary{color:var(--text)}.curve-details[open] summary svg{transform:rotate(180deg)}.curve-channels{display:flex;border:1px solid #454b3b;border-radius:4px;background:#20231c;padding:3px;margin:4px 0 14px;gap:2px}.curve-channels button{flex:1;display:flex;align-items:center;justify-content:center;min-height:27px;font-size:9px;color:var(--muted);border-radius:2px}.curve-channels button.active{background:#3b442d;color:#e1e8d6}.curve-channels button[data-channel=r].active{background:#483731;color:#edb19d}.curve-channels button[data-channel=g].active{background:#35432b;color:#bedba3}.curve-channels button[data-channel=b].active{background:#2e3f4d;color:#b0cde5}.curve-editor{padding:8px 8px 0;border:1px solid #424b36;border-radius:3px;background:#1f241a;touch-action:none}.curve-editor svg{width:100%;height:auto;display:block;overflow:visible;touch-action:none}.curve-editor circle{cursor:grab;stroke:#22271a;stroke-width:2}.curve-editor circle.selected{stroke:#e4edd4;stroke-width:1.5}.curve-axis{height:3px;margin:8px -8px 0;background:linear-gradient(to right,#2a3020,#dce4c9);border-radius:0 0 2px 2px}.curve-labels{margin-top:7px}.curve-tone-controls{display:grid;grid-template-columns:1fr 28px;margin-top:8px;align-items:center;gap:4px}.curve-tone-controls select{max-width:130px;font-size:10px;border:1px solid #3b4431;border-radius:3px;padding:5px 4px;background:#252d1e;color:var(--text)}.curve-tone-controls output{font-size:10px;color:var(--accent);text-align:right;font-variant-numeric:tabular-nums}.curve-tone-controls input{grid-column:1/-1}.curve-instruction{color:var(--dim);font-size:9px;line-height:1.6;margin:8px 0 0}
.crop-ratios{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:15px 0}.crop-ratios button{min-height:32px;display:flex;align-items:center;justify-content:center;border:1px solid #454c3a;border-radius:3px;color:#aab39d;font-size:10px}.crop-ratios button.active{border-color:#95a879;background:#37452a;color:var(--accent)}.ratio-icon{display:none}.crop-info{display:flex;align-items:center;gap:7px;color:#b7c7a0;font-size:10px;margin:16px 0}.crop-info svg{width:14px;height:14px}.primary-wide{width:100%;background:#dce0d3;border-color:#dce0d3;color:#2c3223;min-height:34px}.primary-wide:hover:not(:disabled){background:#e8edde;color:#202617}.subtle-button{display:block;margin:6px auto 0;min-height:30px;font-size:10px;color:var(--muted)}.crop-overlay{position:absolute;inset:0;overflow:hidden;touch-action:none}.crop-selection{position:absolute;border:1px solid #fff;box-shadow:0 0 0 4000px #0008;cursor:move;touch-action:none}.grid-v,.grid-h{position:absolute;display:block;background:#ffffff55;pointer-events:none}.grid-v{height:100%;width:1px;top:0}.grid-v.one{left:33.333%}.grid-v.two{left:66.667%}.grid-h{width:100%;height:1px;left:0}.grid-h.one{top:33.333%}.grid-h.two{top:66.667%}.crop-handle{position:absolute;width:36px;height:36px;padding:0;touch-action:none;z-index:1}.crop-handle:after{content:'';display:block;position:absolute;width:13px;height:13px;border-color:#fff;border-style:solid}.crop-handle.nw{left:-18px;top:-18px;cursor:nwse-resize}.crop-handle.nw:after{right:0;bottom:0;border-width:2px 0 0 2px}.crop-handle.ne{right:-18px;top:-18px;cursor:nesw-resize}.crop-handle.ne:after{left:0;bottom:0;border-width:2px 2px 0 0}.crop-handle.sw{left:-18px;bottom:-18px;cursor:nesw-resize}.crop-handle.sw:after{right:0;top:0;border-width:0 0 2px 2px}.crop-handle.se{right:-18px;bottom:-18px;cursor:nwse-resize}.crop-handle.se:after{left:0;top:0;border-width:0 2px 2px 0}#panel-border .adjustment{margin:16px 0 20px}.field-label{font-size:10px;display:block;margin:14px 0}.border-colours{display:flex;justify-content:space-between;align-items:center;gap:9px}.swatch{border-radius:50%;width:22px;height:22px;background:var(--swatch);border:3px solid var(--surface);outline:1px solid #596349;position:relative;cursor:pointer;flex-shrink:0}.swatch:after{content:'';position:absolute;inset:-6px}.swatch.active{outline:2px solid #c1d2a5}.custom-colour{display:grid;place-items:center;background:#36422b}.custom-colour svg{width:12px;height:12px;pointer-events:none;color:#dce5b3}.custom-colour input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:1}.border-note{font-size:9px;line-height:1.6;color:var(--dim);margin:16px 0}
.loading-overlay,.drop-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9;background:#20241deb;backdrop-filter:blur(8px);color:var(--accent)}.loading-overlay p{font-size:11px;margin-top:14px}.spinner{display:block;width:22px;height:22px;border:2px solid #727d5b;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.drop-overlay{border:1px dashed var(--accent);border-radius:4px;pointer-events:none}.drop-overlay svg{width:32px;height:32px}.drop-overlay h2{font-size:18px;font-weight:450;letter-spacing:-.4px}.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:100;background:#dce3ce;color:#2b3421;box-shadow:0 4px 20px #0004;border:1px solid #ffffff30;border-radius:5px;padding:10px 14px;display:flex;align-items:center;gap:8px;max-width:min(90vw,480px);font-size:11px;line-height:1.5;animation:toast-in .16s var(--ease)}.toast svg{width:15px;height:15px}.toast.error{background:#dec6b8;color:#422d23}@keyframes toast-in{from{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%,0)}}
.modal{color:var(--text);background:#272c23;border:1px solid #4b5740;border-radius:8px;width:min(420px,calc(100% - 28px));padding:25px;box-shadow:0 25px 100px #0008;max-height:90dvh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#59664a transparent}.modal[open]{animation:modal-in .2s var(--ease)}.modal::backdrop{background:#10150ccc;backdrop-filter:blur(7px)}@keyframes modal-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-close{position:absolute;right:11px;top:11px}.modal h2{font-size:19px;letter-spacing:-.5px;font-weight:500;margin:0 0 12px}.export-preview{height:135px;display:flex;justify-content:center;margin:20px 0}.export-preview img{height:100%;max-width:100%;object-fit:contain;box-shadow:0 4px 16px #0003}.export-options{padding:0;border:0;margin:0;display:flex;flex-direction:column;gap:6px}.export-options legend{font-size:10px;color:var(--muted);padding:0;margin-bottom:9px}.export-options label{position:relative;display:flex;align-items:center;gap:9px;padding:12px 10px;border:1px solid #46533b;border-radius:4px;cursor:pointer}.export-options label:has(input:checked){background:#34442a;border-color:#94a97c}.export-options input{accent-color:#dce5b3;width:13px;height:13px;margin:0;flex-shrink:0}.export-options strong{font-size:11px;font-weight:500;display:block}.export-options small{font-size:9px;color:var(--muted);display:block;margin-top:5px}.export-options i{font-style:normal;font-size:6px;letter-spacing:.3px;color:var(--accent);background:#415632;padding:3px 4px;border-radius:2px;vertical-align:2px;margin-left:4px}.export-options svg{width:13px;height:13px;color:var(--accent);margin-left:auto;opacity:0}.export-options input:checked~svg{opacity:1}.export-details{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin:15px 0}.export-footnote{text-align:center;font-size:10px;color:var(--muted);line-height:1.6;margin:12px 0 0}.export-limit{font-size:10px;color:#d2c89f;line-height:1.6}.help-modal{width:min(450px,calc(100% - 28px))}.help-rows{display:flex;flex-direction:column;margin-top:22px;gap:20px}.help-rows>div{display:flex;align-items:flex-start;gap:12px;font-size:11px;line-height:1.7;color:var(--muted)}.help-rows svg{color:var(--accent);width:17px;height:17px}.help-rows strong{display:block;font-weight:500;color:var(--text);margin-bottom:3px}.photo-credit{margin:22px 0 0;padding-top:13px;border-top:1px solid var(--line);font-size:9px;color:var(--dim)}
@media(min-width:1600px){.editor-panel{width:260px}.workspace{padding:0 16px}}
@media(max-width:1000px){.editor-panel{width:232px}.panel-content{padding:16px 13px}.panel-intro{padding:0 13px}.tool-nav{gap:2px;padding:0 5px}.tool-button{font-size:9px;gap:4px}.save-status{font-size:9px;margin-right:6px}#fileName{max-width:230px}.history-controls .icon-button:has(span){padding:0 4px;font-size:9px}.panel-footer{margin:0 13px;font-size:8px}}
@media(max-width:760px){
 .app-header{height:48px;padding:0 12px;gap:12px}.brand{font-size:21px;letter-spacing:-.9px}.header-actions{gap:9px}.save-status{display:none}.button{font-size:10px;min-height:30px;padding:0 10px;gap:6px}.button svg{width:13px;height:13px}.export-control{min-height:31px}.export-options-button{width:29px}.studio{flex-direction:column}.workspace{padding:0 8px;flex:1;min-height:180px}.canvas-topbar{height:34px;gap:5px}.file-info{font-size:9px;gap:6px}#fileName{max-width:145px}.demo-label{font-size:8px;padding-left:6px}.history-controls{gap:2px}.history-controls .icon-button:has(span){font-size:9px;padding:0 4px;gap:4px}.history-controls .icon-button{height:30px;width:26px}.history-controls svg{width:13px;height:13px}.history-controls .control-divider{margin:0 3px;height:12px}.viewport{min-height:70px}.canvas-bottom{height:34px;gap:4px}.image-meta{font-size:8px;max-width:125px;overflow:hidden;text-overflow:ellipsis}.view-controls{left:54%;height:30px}.view-controls .icon-button{height:30px}.view-controls #fitButton{font-size:9px;padding:0 5px;gap:4px}.desktop-zoom{display:none}.zoom-value{font-size:9px;min-width:34px}.compare-button{font-size:9px;min-height:30px;padding:0 3px;gap:4px}.compare-button svg{width:12px;height:12px}.editor-panel{width:100%;border-left:0;border-top:1px solid #444c3c;max-height:48dvh;padding-bottom:env(safe-area-inset-bottom);flex-shrink:0}.panel-intro{display:none}.tool-nav{min-height:38px;gap:8px;padding:0 15px;justify-content:space-between}.tool-button{font-size:10px;min-height:38px;max-width:88px;gap:6px}.tool-button svg{width:14px;height:14px}.tool-button i{top:6px;right:2px}.panel-content{padding:10px 18px;max-height:calc(48dvh - 38px - env(safe-area-inset-bottom));min-height:82px;overflow-y:auto;flex:none}.panel-footer{display:none}.section-heading{min-height:22px}.section-heading h2{font-size:10px}.tool-description{font-size:9px;margin:0 0 10px}.text-button{min-height:24px;font-size:9px}.adjustment{margin:0}.adjustment-label{margin:0}.adjustment-label label{font-size:10px;gap:6px}.adjustment-label label svg{width:12px;height:12px}.value-pill{height:20px;min-width:28px;font-size:9px}.range-labels{display:none}input[type=range]{height:28px}input[type=range]::-webkit-slider-thumb{width:12px;height:12px;margin-top:-5px}#panel-light{display:grid;grid-template-columns:1fr 1fr;gap:3px 22px}#panel-light .mono-row{grid-column:1/-1;justify-content:flex-start;gap:12px;min-height:25px;font-size:9px}.toggle{width:29px;height:17px}.simple-tones{gap:2px;margin:3px 0 7px}.tone-control{display:grid;grid-template-columns:66px 1fr 26px;column-gap:13px;min-height:28px}.tone-control label{grid-column:1;grid-row:1;font-size:10px}.tone-control input{grid-column:2;grid-row:1;height:28px}.tone-control output{grid-column:3;grid-row:1;font-size:9px}.mono-row.compact{min-height:27px;margin:0;padding:4px 0;border-top:0;font-size:9px;justify-content:flex-start;gap:12px}.curve-details{margin-top:1px}.curve-details summary{min-height:29px;font-size:9px}.curve-details summary svg{width:12px;height:12px}#panel-curves>.tool-description{display:none}.curve-details[open]{padding-bottom:6px}.curve-channels{margin:6px 0 12px;max-width:240px}.curve-channels button{min-height:29px;font-size:9px}.curve-editor{width:45%;max-width:185px;float:left;margin-right:18px}.curve-editor svg{height:135px}.curve-labels{display:none}.curve-tone-controls{margin-top:14px;gap:5px}.curve-tone-controls select{padding:7px 4px}.curve-tone-controls input{height:32px}.curve-instruction{font-size:9px;line-height:1.6;padding-top:8px}.curve-details:after{content:'';display:block;clear:both}.crop-ratios{grid-template-columns:repeat(8,1fr);gap:4px;margin:8px 0}.crop-ratios button{min-height:29px;font-size:9px}.crop-info{font-size:9px;margin:10px 0}.crop-info svg{width:12px;height:12px}#panel-crop .section-heading,#panel-border .section-heading{display:none}#panel-crop .tool-description{font-size:9px;margin:0 0 6px}#panel-crop .primary-wide{width:55%;float:left;min-height:30px;margin-bottom:2px;font-size:10px}#panel-crop .subtle-button{margin:0 0 0 auto;width:43%;min-height:30px;font-size:9px}#panel-border .adjustment{margin:0 0 6px}#panel-border .field-label{display:inline-block;font-size:9px;margin:8px 16px 8px 0}#panel-border .border-colours{display:inline-flex;gap:17px;vertical-align:middle}.swatch{width:21px;height:21px}#panel-border .border-note{display:none}.toast{bottom:calc(12px + env(safe-area-inset-bottom));font-size:10px;padding:9px 12px;width:max-content;max-width:90vw}.modal{padding:24px 20px;max-height:90dvh}.modal h2{font-size:19px}.modal .primary-wide{min-height:40px}.modal-close{width:30px;height:30px}.export-preview{height:115px;margin:18px 0}.export-options label{padding:11px 9px}.export-options i{font-size:6px}
}
@media(max-width:375px){.history-controls .icon-button span{display:none}.history-controls .icon-button:has(span){width:28px}.file-info{gap:5px}#fileName{max-width:120px}.panel-content{padding:10px 15px}.tool-nav{padding:0 12px}.tone-control{grid-template-columns:63px 1fr 23px;gap:10px}.view-controls{left:55%}.export-options i{display:none}#panel-border .border-colours{gap:14px}}
@media(max-height:540px) and (orientation:landscape){.app-header{height:43px}.studio{flex-direction:row}.editor-panel{width:232px;border-top:0;border-left:1px solid var(--line);max-height:none;padding-bottom:0}.panel-intro,.panel-footer{display:none}.workspace{min-height:0}.panel-content{max-height:none;flex:1;padding:12px}.tool-nav{padding:0 5px;gap:2px;min-height:37px}.tool-button{min-height:37px;font-size:9px;gap:4px}.canvas-topbar,.canvas-bottom{height:31px}.history-controls span{display:none}.curve-editor{float:none;max-width:none;width:100%;margin:0}.curve-editor svg{max-height:140px}.curve-instruction{clear:both}.crop-ratios{grid-template-columns:repeat(4,1fr)}.save-status{display:none}}
@media(pointer:coarse){.app-header button,.history-controls button,.view-controls button,.compare-button,.value-pill,.text-button{position:relative}.app-header button:after,.history-controls button:after,.view-controls button:after,.compare-button:after,.value-pill:after,.text-button:after{content:'';position:absolute;inset:-6px -2px}.export-control{overflow:visible}.export-options-button{border-radius:0 4px 4px 0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
