:root{color:#24251f;font-synthesis:none;background:#f6f5f0;font-family:Inter,ui-sans-serif,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,select,input{font:inherit}button,select{min-height:40px;color:inherit;background:#fffefa;border:1px solid #e8e5dc;border-radius:9px;padding:0 12px}button:focus-visible,select:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #d46b4380}button:disabled,select:disabled{cursor:not-allowed;opacity:.62}.app-shell{grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.topbar{background:#fffefa;border-bottom:1px solid #e8e5dc;justify-content:space-between;align-items:center;gap:16px;min-height:64px;padding:12px 20px;display:flex}.brand{color:inherit;align-items:center;gap:10px;font-weight:700;text-decoration:none;display:inline-flex}.brand img{width:30px;height:30px}.header-actions{flex-wrap:wrap;justify-content:end;gap:8px;display:flex}.language select{min-width:68px}.primary{color:#fff;background:#d46b43;border-color:#d46b43;font-weight:650}.secondary{background:#fffefa}.editor{grid-template-columns:minmax(0,1fr) minmax(280px,326px);min-height:620px;display:grid}.viewer{flex-direction:column;min-width:0;padding:18px;display:flex}.label-compact{display:none}.viewer-tools{color:#77766d;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.zoom-controls{align-items:center;gap:0;display:inline-flex}.zoom-controls button{min-width:30px;min-height:30px;padding:0;font-size:.78rem}.zoom-value{text-align:center;min-width:3.2em}.empty-preview{text-align:center;background:#e9e7df;border-radius:12px;flex:1;place-content:center;gap:12px;min-height:440px;padding:32px;display:grid}.empty-preview>img{width:68px;height:68px;margin:auto}.photo-stage{width:100%;min-width:0;position:relative}.preview-processing{pointer-events:none;background:#0003;border-radius:8px;place-items:center;display:grid;position:absolute;inset:0}.preview-clock{fill:none;stroke:#fff;stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round;background:#20211dbd;border-radius:50%;width:56px;height:56px;padding:7px}.preview-clock-hands{transform-origin:24px 24px;animation:1.2s linear infinite preview-clock-spin}@keyframes preview-clock-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.preview-clock-hands{animation:none}}.photo-preview-wrapper{justify-content:flex-start;justify-self:stretch;align-items:flex-start;width:100%;min-width:0;height:min(58vh,560px);max-height:58vh;display:flex;overflow:auto}.photo-preview{object-fit:contain;border-radius:8px;flex:none;min-width:25%;max-width:none;height:auto;max-height:none;transition:width .12s}@media (width>=761px){.empty-preview:has(.photo-preview-wrapper){grid-template-columns:minmax(0,1fr)}.photo-preview{height:calc(100% * var(--preview-zoom));min-width:0;margin:auto;width:calc(100% * var(--preview-zoom))!important}}.empty-preview h1{margin:0;font-size:clamp(1.35rem,3vw,2rem)}.empty-preview p,.control-group p,footer,.status{color:#77766d}.file-button{border-radius:9px;justify-content:center;align-items:center;min-height:44px;padding:0 14px;display:inline-flex}.file-button input{clip-path:inset(50%);block-size:1px;inline-size:1px;position:absolute;overflow:hidden}.status{margin:12px 2px 0;font-size:.82rem}.controls{background:#fffefa;border-left:1px solid #e8e5dc;padding:18px}.control-heading{justify-content:space-between;align-items:baseline;gap:10px;display:flex}h2{margin:0;font-size:1rem}.control-heading span{color:#77766d;font-size:.75rem}.controls>select{width:100%;margin:12px 0}.effect{background:#fbf7ef;border:1px solid #efe4d3;border-radius:11px;padding:14px}.effect>div:first-child{justify-content:space-between;display:flex}output{color:#9d4b2e;font-variant-numeric:tabular-nums}.effect input{accent-color:#d46b43;width:100%;min-height:36px}.range-labels{color:#77766d;justify-content:space-between;font-size:.7rem;display:flex}.control-group{border-top:1px solid #e8e5dc;margin-top:16px;padding-top:12px}.control-group h3{margin:0;font-size:.88rem}.control-group p{font-size:.78rem;line-height:1.45}.adjustment{margin-top:12px;font-size:.8rem;display:block}.adjustment>span{justify-content:space-between;margin-bottom:2px;display:flex}.adjustment input{accent-color:#d46b43;width:100%;min-height:28px}.projects-button{width:100%}.projects-list{gap:8px;margin-top:10px;display:grid}.projects-list article{border:1px solid #e8e5dc;border-radius:8px;grid-template-columns:1fr auto;gap:3px 8px;padding:9px;font-size:.74rem;display:grid}.projects-list strong{overflow-wrap:anywhere}.projects-list span{color:#77766d}.projects-list button{grid-area:1/2/span 2;min-height:30px;padding:0 8px;font-size:.7rem}footer{background:#fffefa;border-top:1px solid #e8e5dc;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:10px 20px;font-size:.78rem;display:flex}.update-banner{background:#fffefa;border:1px solid #e8e5dc;border-radius:12px;align-items:center;gap:12px;padding:12px;display:flex;position:fixed;bottom:18px;right:18px;box-shadow:0 12px 36px #24251f26}.toast{color:#fff;z-index:99;background:#4a7f5b;border-radius:10px;padding:10px 18px;font-size:.82rem;position:fixed;bottom:18px;left:50%;transform:translate(-50%)}.fatal-error{max-width:38rem;margin:12vh auto;padding:24px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (width<=760px){.topbar{flex-wrap:wrap;align-items:flex-start;padding:10px 14px}.header-actions{justify-content:space-between;gap:5px;width:100%}.header-actions .secondary{justify-content:center;align-items:center;min-width:40px;padding:0 9px;display:inline-flex}.header-actions .primary{flex:1}.editor{grid-template-columns:1fr}.controls{border-top:1px solid #e8e5dc;border-left:0}.viewer{padding:12px}.empty-preview{min-height:300px}.controls{padding:14px}}@media (pointer:coarse){button,select{min-height:44px}}.mobile-header,.mobile-menu,.mobile-adjustments{display:none}@media (width<=760px){.app-shell{flex-direction:column;height:100dvh;min-height:0;display:flex;overflow:hidden}.topbar,.controls,.app-shell>footer{display:none}.mobile-header{padding:max(5px, env(safe-area-inset-top)) 6px 5px;background:#fffefa;flex:none;align-items:center;gap:4px;display:flex}.mobile-header button,.mobile-import{white-space:nowrap;min-width:0;min-height:40px;padding:0 7px;font-size:.75rem}.mobile-header button[aria-label]{font-size:1.2rem}.mobile-header .mobile-menu-toggle{flex:none;margin-left:auto}@media (width<=360px){.mobile-header{gap:2px}.mobile-header button,.mobile-import{padding-left:4px;padding-right:4px;font-size:.68rem}}.mobile-import{border:1px solid #e8e5dc;border-radius:9px;align-items:center;display:inline-flex}.mobile-import input{clip-path:inset(50%);width:1px;height:1px;position:absolute}.mobile-menu{z-index:10;background:#fffefa;border:1px solid #e8e5dc;border-radius:10px;width:min(320px,100vw - 12px);max-height:65dvh;padding:12px;display:block;position:absolute;top:52px;right:6px;overflow:auto;box-shadow:0 8px 24px #0002}.mobile-menu>div:first-child{justify-content:space-between;margin-bottom:8px;display:flex}.editor{flex-direction:column;flex:1;min-height:0;display:flex}.viewer{flex:1;min-height:0;padding:6px}.viewer-tools{flex:none;order:2;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:5px 4px 0;display:grid}.viewer-tools>span{display:none}.viewer-tools>button{white-space:nowrap;width:100%;min-width:0;min-height:38px;padding:0 2px;font-size:.875rem}.viewer-tools .zoom-controls{background:#fffefa;border:1px solid #e8e5dc;border-radius:9px;gap:0;width:100%;min-width:0;min-height:38px}.viewer-tools .zoom-controls button{background:0 0;border:0;flex:1 1 0;min-width:0;min-height:36px;padding:0;font-size:.875rem}.viewer-tools .zoom-value{text-align:center;flex:none;min-width:0;font-size:.72rem}@media (width<=420px){.viewer-tools>button{letter-spacing:-.12px;padding:0 1px}.viewer-tools .label-full{display:none}.viewer-tools .label-compact{display:inline}}.empty-preview{flex-direction:column;flex:1;order:1;justify-content:center;gap:6px;min-height:0;padding:8px;display:flex;overflow:hidden}.empty-preview:has(.photo-preview-wrapper){padding:0}.empty-preview:has(.photo-preview-wrapper)>h1{display:none}.empty-preview:has(.photo-preview-wrapper)>p:not([role=alert]){display:none}.empty-preview:has(.photo-preview-wrapper)>.file-button{display:none}.empty-preview>h1{font-size:1.1rem}.empty-preview>p{font-size:.8rem}.photo-stage{flex:1;min-height:0}.photo-preview-wrapper{height:100%;min-height:0;max-height:none;display:flex;overflow:auto}.photo-preview{height:calc(100% * var(--preview-zoom));object-fit:contain;min-width:0;margin:auto;width:calc(100% * var(--preview-zoom))!important}.status{display:none}.mobile-adjustments{padding:4px 10px max(6px, env(safe-area-inset-bottom));background:#fffefa;border-top:1px solid #e8e5dc;flex:none;display:block}.mobile-tabs{gap:4px;display:flex}.mobile-tabs button{flex:1;min-height:38px;padding:0 4px;font-size:.8rem}.mobile-tabs button[aria-pressed=true]{color:#fff;background:#d46b43;border-color:#d46b43}.mobile-slider{align-items:center;gap:8px;min-height:69px;display:flex}.mobile-slider .adjustment{flex:1;min-width:0;margin:0}.mobile-param select{width:110px;padding:0 5px;font-size:.75rem}}
