@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f3f3eb;--paper:#fbfbf7;--ink:#25372f;--muted:#788077;--line:#e1e4d9;--accent:#d4e99c;--green:#405a47;--serif:Georgia,'Times New Roman',serif;--sans:'DM Sans',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px var(--sans);min-height:100vh}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #668849;outline-offset:3px}a{color:inherit}button{color:inherit}[hidden]{display:none!important}.topbar{height:85px;padding:0 34px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:6px;font-family:Manrope,var(--sans);font-size:29px;letter-spacing:-1.5px;font-weight:800;text-decoration:none}.brand>span:not(.brand-icon){font-weight:400}.brand-icon{font-size:36px;margin-right:8px;line-height:1}.brand small{font:9px var(--sans);letter-spacing:1.7px;border-left:1px solid #bfc6b8;padding-left:18px;margin-left:14px;width:104px;line-height:1.65}.top-actions{display:flex;align-items:center;gap:20px}.privacy{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#719255;display:inline-block}.button{border:0;border-radius:7px;padding:12px 18px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:42px}.button.dark{background:var(--ink);color:#f7f9ed}.button.dark:hover:not(:disabled){background:#405c46}.button.outline{background:transparent;border:1px solid #d9dfd1}.button.outline:hover{background:#e9eddf}.button.compact{padding:9px 12px;min-height:36px;font-size:11px}.button.full{width:100%;margin-top:12px}.icon-button{border:1px solid var(--line);background:transparent;border-radius:50%;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}.icon-button:hover{background:#e6eadc}.workspace{display:grid;grid-template-columns:270px minmax(380px,1fr) 296px;max-width:1720px;margin:0 auto;min-height:calc(100vh - 85px)}.panel{min-width:0}.library{padding:32px 22px 20px;border-right:1px solid var(--line)}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:600;color:var(--muted)}h1{font:34px/1.13 var(--serif);letter-spacing:-1.1px;margin:12px 0 0;font-weight:400}.small-star{font-size:31px;margin-top:22px;color:#607454}.muted{color:var(--muted)}.intro{font-size:11px;line-height:1.6;margin:14px 0 25px}.search{border:1px solid var(--line);border-radius:6px;background:#fbfbf6;display:flex;align-items:center;gap:8px;padding:10px 11px}.search>span{font-size:22px;line-height:1;color:#758169}.search input{border:0;outline:0;background:transparent;width:100%;min-width:0;color:var(--ink);font-size:11px}.search kbd{color:#929a89;font-size:10px}.filter-tabs{display:flex;margin:15px 0 24px;gap:3px;background:#e9eddf;border-radius:6px;padding:3px}.filter-tabs button{background:transparent;border:0;flex:1;padding:7px 2px;border-radius:4px;font-size:10px;color:#78816e}.filter-tabs button.active{background:#fbfcf7;color:var(--ink);box-shadow:0 1px 3px #25372f0c}.collection-heading{display:flex;justify-content:space-between;color:var(--muted);font-size:8px;letter-spacing:1.2px;margin-bottom:10px}.recipe-list{display:flex;flex-direction:column;gap:8px}.recipe-card{position:relative;border:1px solid transparent;border-radius:8px;padding:9px;display:flex;align-items:center;gap:10px;cursor:pointer;background:transparent;text-align:left;width:100%;min-height:68px}@media(min-width:851px) and (hover:hover) and (pointer:fine){.recipe-card:not([aria-disabled=true]):hover{background:#e9eddf}.recipe-card.selected:hover{background:#e7eddb}}.recipe-card.selected{background:#e7eddb;border-color:#b9c9a1}.recipe-thumb{width:46px;height:48px;border-radius:4px;flex-shrink:0;position:relative;overflow:hidden;background:linear-gradient(150deg,var(--sky) 48%,var(--earth) 49%)}.recipe-thumb:before{content:'';position:absolute;inset:20px -10px -10px;background:var(--earth);clip-path:polygon(0 60%,30% 0,62% 45%,90% 8%,100% 100%,0 100%);filter:brightness(.75)}.recipe-thumb:after{content:'';position:absolute;width:10px;height:10px;background:#fff5c9;opacity:.7;top:8px;left:29px;border-radius:50%}.recipe-card strong{font-size:11px;font-weight:600;display:block;padding-right:14px}.recipe-card small{font-size:8px;line-height:1.4;color:var(--muted);display:block;margin-top:4px}.recipe-card .tag{font-size:7px;letter-spacing:.5px;color:#657a51;display:block;margin-top:3px}.recipe-fav{position:absolute;right:5px;top:8px;padding:4px;border:0;background:transparent;color:#667859;font-size:16px}.sources-button{display:flex;text-align:left;gap:12px;align-items:center;width:100%;border:0;border-top:1px solid var(--line);background:none;padding:20px 0 5px;margin-top:25px;font-size:10px}.sources-button>span:first-child{font-size:22px}.sources-button small{display:block;font-size:8px;color:var(--muted);margin-top:4px}.library-foot{font-size:8px;letter-spacing:.7px;color:var(--muted);display:flex;gap:7px;align-items:center;margin-top:24px}.stage{padding:24px 30px 15px;display:flex;flex-direction:column}.stage-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:15px}.file-info{display:flex;align-items:center;gap:11px;min-width:0}.file-info>div{min-width:0}.file-icon{font-size:25px;color:#72816b}.file-info strong{font-size:11px;display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-info small{font-size:9px;display:block;margin-top:4px;color:var(--muted)}.photo-area{position:relative;min-height:420px;flex:1;background:#e7e9df;border-radius:8px;padding:25px;display:flex;align-items:center;justify-content:center;overflow:auto;max-height:70vh}.image-frame{position:relative;line-height:0;width:100%;max-width:850px;box-shadow:0 12px 35px #22342816;flex-shrink:0}.image-frame.zoomed{width:160%;max-width:none}.image-frame canvas{display:block;width:100%;height:auto}.image-frame #afterCanvas{position:absolute;inset:0;clip-path:inset(0 0 0 0)}.comparison-line{position:absolute;left:50%;top:0;bottom:0;width:1px;background:#fff;pointer-events:none;display:none;z-index:2}.comparison-line span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:32px;height:32px;border-radius:50%;background:#fff;color:#263c30;display:grid;place-items:center;font:16px var(--sans);box-shadow:0 2px 15px #0003}.image-label{position:absolute;bottom:5px;background:#25372f7a;backdrop-filter:blur(8px);border:1px solid #ffffff30;color:#fff;padding:9px 12px;border-radius:4px;font-size:8px;letter-spacing:1px;line-height:1;z-index:2;pointer-events:none}.image-label.before{left:5px;display:none}.image-label.after{right:5px}.image-frame #compareRange{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0;display:none;z-index:3}.image-frame.comparing #compareRange,.image-frame.comparing .comparison-line,.image-frame.comparing .before{display:block}.empty-state{text-align:center;padding:30px 15px}.upload-symbol{font-size:35px;display:inline-grid;place-items:center;border:1px solid #b6c2a8;border-radius:15px;width:65px;height:65px;margin-bottom:18px}.empty-state h2{font:44px/1.1 var(--serif);font-weight:400;margin:0 0 18px}.empty-state p{color:var(--muted);font-size:12px}.empty-state small{display:block;font-size:9px;letter-spacing:1px;margin-top:17px;color:var(--muted)}.stage-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:15px 0 19px;border-bottom:1px solid var(--line)}.tool-group{display:flex;align-items:center;gap:9px}.tool-group .icon-button{border:0;font-size:20px}.tool-button{border:0;background:none;font-size:10px;padding:7px 6px;border-radius:5px}.tool-button[aria-pressed=true]{background:#dce7cb}.divider{height:17px;width:1px;background:var(--line);margin:0 4px}.tiny{font-size:10px;line-height:1.6}.selected-summary{display:flex;align-items:center;justify-content:space-between;padding:25px 0 14px;gap:15px}.selected-summary h2{font:29px var(--serif);margin:7px 0;font-weight:400;letter-spacing:-.8px}.selected-summary p{font-size:10px;color:var(--muted);margin:0}.summary-actions{display:flex;align-items:center;gap:10px}.recipe-note{color:#75816a;font-size:10px;line-height:1.7;max-width:620px}.recipe-note a{text-underline-offset:3px}.stage-footer{display:flex;justify-content:space-between;gap:15px;color:#88917e;font-size:8px;letter-spacing:.2px;margin-top:27px;padding:12px 0}.stage-footer>span:last-child{font-size:7px;letter-spacing:1px}.adjustments{padding:32px 23px 20px;border-left:1px solid var(--line);max-height:calc(100vh - 85px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c3cdb6 transparent}.adjustments-heading{display:flex;justify-content:space-between;align-items:center}.adjustments h2{font-size:21px;letter-spacing:-.8px;margin:6px 0 18px}.text-button{border:0;background:transparent;padding:6px 0;font-size:9px;color:#748369}.histogram-wrap{background:#e9ecdf;border:1px solid #e0e5d6;border-radius:6px;padding:12px 12px 7px}.histogram-wrap canvas{width:100%;height:65px;display:block}.histogram-wrap>div{display:flex;justify-content:space-between;font-size:7px;color:#8c9780;margin-top:4px}.intensity{padding:23px 0;border-bottom:1px solid var(--line)}.control-label{display:flex;justify-content:space-between;align-items:center;font-size:10px;gap:10px;margin-bottom:10px}.control-label output{font-size:9px;color:#6e7a60;font-variant-numeric:tabular-nums}.range-caption{display:flex;justify-content:space-between;color:#929c87;font-size:7px;margin-top:7px}input[type=range]{width:100%;accent-color:var(--green);height:3px;margin:6px 0 8px;cursor:pointer;display:block}details{border-bottom:1px solid var(--line);padding:17px 0 7px}summary{list-style:none;display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600;cursor:pointer;padding-bottom:13px}summary:after{content:'＋';font-size:14px;color:#859477}details[open] summary:after{content:'−'}.slider-control{margin:8px 0 19px}.adjustment-foot{font-size:8px;color:#8a957f;line-height:1.7;margin-top:21px}.field{display:block;font-size:11px;margin:16px 0;color:#576650}.field input,.field select,.field textarea,.hsl-select{display:block;width:100%;margin-top:7px;padding:11px;border:1px solid var(--line);border-radius:5px;background:#f7f8f1;color:var(--ink);min-width:0}.field textarea{resize:vertical;font:11px/1.6 monospace}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.curve-grid{display:flex;gap:5px;margin-bottom:16px}.curve-grid label{font-size:7px;color:var(--muted);width:20%}.curve-grid input{width:100%;padding:5px 2px;border:1px solid var(--line);background:#f9faf3;border-radius:4px;font-size:9px;color:var(--ink);margin-top:6px}.curve-preview{width:100%;height:70px;border:1px solid var(--line);border-radius:5px;background:#ecefe3;margin-bottom:12px}.hsl-select{font-size:10px;margin:0 0 17px}.busy-overlay,.drop-overlay{position:absolute;inset:0;background:#eef1e7e8;backdrop-filter:blur(8px);z-index:5;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;color:var(--ink)}.busy-overlay small{font-size:10px}.busy-overlay strong{font-size:13px}.spinner{width:30px;height:30px;border:2px solid #bacaa7;border-top-color:#405a47;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.drop-overlay{border:2px dashed #738957;border-radius:8px;font:30px var(--serif)}dialog{border:1px solid #d8dfce;background:var(--paper);color:var(--ink);border-radius:13px;padding:35px;width:min(460px,calc(100vw - 28px));max-height:90vh;overflow:auto;box-shadow:0 30px 100px #18231b33}dialog::backdrop{background:#1e302873;backdrop-filter:blur(5px)}dialog h2{font:32px var(--serif);letter-spacing:-1px;margin:12px 0 16px}dialog p{font-size:11px;line-height:1.7}.dialog-close{position:absolute;top:14px;right:15px;border:0;background:transparent;font-size:25px;color:var(--muted)}.wide-dialog{width:min(590px,calc(100vw - 28px))}.export-dimensions{padding:14px;background:#e8efdc;border-radius:6px;font-size:12px;margin:18px 0}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);background:#25372f;color:#fff;padding:14px 20px;border-radius:7px;box-shadow:0 5px 30px #0002;z-index:20;font-size:12px;width:max-content;max-width:90vw}.dialog-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin:20px 0}.dialog-tabs button{padding:10px 12px;border:0;background:none;font-size:11px;color:var(--muted)}.dialog-tabs .active{border-bottom:2px solid var(--green);color:var(--ink)}.error{color:#a04637}.source-card{margin:12px 0;padding:17px;border:1px solid var(--line);border-radius:7px}.source-card h3{font-size:14px;margin:0 0 5px}.source-card p{margin:5px 0;font-size:10px}.source-card a{font-size:10px;text-underline-offset:3px}.help-steps{padding-left:20px}.help-steps li{padding:8px 0}.help-steps strong{font-size:13px}.help-steps p{margin:6px 0}.mobile-tabs{display:none}.recipe-empty{font-size:11px;color:var(--muted);padding:20px 5px;line-height:1.7}.badge-modified{font-size:9px;color:#788a5e;margin-left:8px}.selected-summary .icon-button{border:0;font-size:23px}
@media(min-width:1450px){.workspace{grid-template-columns:295px minmax(380px,1fr) 325px}.stage{padding:28px 40px}.photo-area{min-height:500px}.library{padding:36px 28px}.adjustments{padding:36px 29px}}
@media(max-width:1100px){.workspace{grid-template-columns:230px minmax(300px,1fr) 250px}.library{padding:25px 15px}.adjustments{padding:25px 16px}.stage{padding:22px 20px}.privacy{display:none}.photo-area{padding:16px;min-height:360px}.brand small{display:none}h1{font-size:30px}.stage-footer>span:last-child{display:none}.summary-actions{gap:2px}.selected-summary h2{font-size:25px}}
@media(max-width:850px){.topbar{height:68px;padding:0 18px;gap:10px}.brand{font-size:24px}.brand-icon{font-size:29px;margin-right:3px}.top-actions{gap:10px}.top-actions .button{font-size:11px;padding:10px 12px;gap:9px;min-height:36px}.top-actions .icon-button{width:28px;height:28px;font-size:16px}.mobile-tabs{display:flex;position:sticky;top:0;z-index:6;background:var(--bg);border-bottom:1px solid var(--line);padding:8px 15px;gap:5px}.mobile-tabs button{flex:1;background:none;border:0;padding:9px;border-radius:5px;font-size:11px}.mobile-tabs button.active{background:var(--ink);color:white}.workspace{display:block;min-height:calc(100vh - 120px)}.workspace .panel{display:none}.workspace .panel.mobile-active{display:flex}.workspace .library.mobile-active,.workspace .adjustments.mobile-active{display:block}.stage{padding:20px 16px}.photo-area{min-height:390px;max-height:62vh;padding:14px}.file-info strong{max-width:190px}.file-info small{font-size:8px}.stage-top{margin-bottom:15px}.stage-toolbar{padding:12px 0}.tool-group{gap:3px}.preview-label,#previewLabel{display:none}.selected-summary{padding-top:23px}.stage-footer{line-height:1.7;margin-top:15px}.library{border:0;padding:25px 22px}.recipe-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.recipe-card{border:1px solid var(--line);background:#f9faf4}.recipe-card strong{font-size:11px}.recipe-card small{font-size:8px}.recipe-thumb{width:40px}.adjustments{border:0;padding:25px 24px;max-height:none}.adjustment-foot{margin-bottom:30px}dialog{padding:30px 23px}.empty-state h2{font-size:37px}.source-card p{font-size:11px}.toast{bottom:18px} .intensity .control-label,.slider-control .control-label{font-size:12px}input[type=range]{height:5px;margin:15px 0}summary{font-size:13px}.histogram-wrap canvas{height:90px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
/* Independent-photo session */
.album{margin-bottom:18px;background:#eaeee1;border:1px solid #dce3d0;border-radius:8px;padding:13px 13px 9px}.album-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.album-heading>div{display:flex;align-items:center;gap:12px}.album-heading strong{font-size:11px}.photo-list{display:flex;gap:9px;overflow-x:auto;padding:2px 1px 8px;scrollbar-width:thin;scrollbar-color:#b8c6a7 transparent}.photo-card{position:relative;flex:0 0 112px;border:1px solid #ced9bd;border-radius:6px;background:#f8faf1;padding:5px;min-width:0}.photo-card.active{border:2px solid #5a7949;padding:4px;box-shadow:0 0 0 2px #d6e2c6}.photo-card.error{border-color:#b96854}.photo-open{display:block;border:0;background:none;padding:0;width:100%;text-align:left}.photo-thumb{display:flex;width:100%;height:64px;align-items:center;justify-content:center;background:#dce3d2;border-radius:3px;overflow:hidden;font-size:12px;color:#788668}.photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}.photo-open strong{display:block;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:6px 0 3px}.photo-open small{font-size:7px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7a876e}.photo-check{position:absolute;left:9px;top:9px;width:18px;height:18px;accent-color:#405a47;cursor:pointer}.photo-remove{position:absolute;right:7px;top:7px;border:0;border-radius:50%;background:#f5f7eee0;color:#4e6142;font-size:15px;width:20px;height:20px;line-height:1;display:grid;place-items:center}.photo-remove:hover{background:#ead5c8}.album-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}.album-actions .button{font-size:9px;min-height:30px;padding:7px 9px}.album-hint{font-size:8px;color:#81916d;line-height:1.5;margin:10px 0 0}.library{max-height:calc(100vh - 85px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c3cdb6 transparent}.catalog-heading{font-size:8px;letter-spacing:1px;color:#728460;margin:18px 0 9px;padding-top:12px;border-top:1px solid var(--line)}.catalog-badge{font-size:7px;color:#66834f;display:block;margin-top:3px}.export-dimensions{line-height:1.8;max-height:160px;overflow:auto}.batch-progress{font-variant-numeric:tabular-nums}.stage .photo-area{flex:auto;min-height:340px}.stage-top{margin-bottom:15px}.photo-list .photo-card:focus-within{outline:1px solid #5a7949}.button.ready-share{background:#dbeaa9;border-color:#aabf81;color:#354f30}
@media(max-width:850px){.library{max-height:none}.album{padding:12px;margin-bottom:15px}.photo-card{flex-basis:105px}.album-actions .button{font-size:10px;min-height:34px}.album-hint{font-size:9px}.photo-open strong{font-size:9px}.photo-open small{font-size:8px}.photo-area{min-height:300px!important}.album-heading .text-button{font-size:10px}}

.individual-export{display:flex;flex-wrap:wrap;gap:12px;padding:14px 0;border-top:1px solid #d9ddcf}.individual-export strong{width:100%;overflow-wrap:anywhere;font-size:12px}.individual-export a{font-size:13px;color:#35563e}.individual-export button{padding:0}

.interactive-curve{width:100%;height:auto!important;min-height:240px;background:#f8faf3;touch-action:none;overflow:visible}.curve-axis{font:10px system-ui;fill:#65745b}.curve-help{font-size:11px;line-height:1.7;color:#65745b}.curve-selected{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:10px 0 18px}.curve-selected label{flex:1;font-size:10px;min-width:75px}.curve-selected input{display:block;width:100%;padding:8px;margin-top:5px;border:1px solid #ccd6c1;border-radius:4px;background:#fafbf5}.curve-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.curve-preview circle{cursor:grab}.curve-preview circle:focus{stroke:#192b1f;stroke-width:3}.mobile-preview-dock{display:none}.video-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0}.video-controls input{flex:1;min-width:70px}.video-controls p{width:100%;margin:0}.video-controls output{font-size:10px;font-variant-numeric:tabular-nums}#videoExportOptions{border:1px solid #d5dfcb;padding:15px;margin:15px 0;border-radius:6px}#videoExportOptions legend{font-size:12px}.video-controls[hidden]{display:none}
@media(max-width:850px){.mobile-preview-dock:not([hidden]){display:block;position:sticky;top:53px;z-index:5;background:var(--bg);padding:8px 12px;border-bottom:1px solid var(--line);box-shadow:0 4px 14px #24341e15}.mobile-preview-dock .photo-area{min-height:0!important;height:clamp(145px,28vh,250px);padding:6px;margin:0;max-height:250px}.mobile-preview-dock .image-frame{max-height:100%;height:100%;width:100%;aspect-ratio:auto;position:relative}.mobile-preview-dock .image-frame canvas{width:100%;height:100%;object-fit:contain}.mobile-preview-dock .video-controls{padding:6px 0;gap:6px}.mobile-preview-dock .video-controls p{display:none}.mobile-preview-dock .video-controls .button{min-height:28px;font-size:10px;padding:5px 8px}.mobile-preview-dock .empty-state{display:none}.mobile-preview-dock .busy-overlay{font-size:10px}.interactive-curve{min-height:270px}.mobile-preview-dock .image-frame.zoomed{overflow:hidden}.mobile-preview-dock .image-label{font-size:7px}.mobile-tabs{z-index:7}}

.recipe-thumb:after{background:var(--sun,#fff5c9)}

.cloud-strip{padding:12px 30px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:#edf1e3}.cloud-strip>div{flex:1;min-width:0}.cloud-strip strong{font-size:11px;display:block}.cloud-strip span{font-size:10px;display:block;margin-top:4px;overflow-wrap:anywhere}.cloud-project-card,.cloud-history-card{padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:7px;background:#f7f9f1}.cloud-project-card{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.cloud-project-card strong,.cloud-project-card small{width:100%;overflow-wrap:anywhere}.cloud-history-card strong,.cloud-history-card small{display:block;overflow-wrap:anywhere}.cloud-history-card small,.cloud-project-card small{font-size:10px;color:var(--muted);margin-top:5px}.cloud-history-card p{font-size:12px}.cloud-history-card table{width:100%;font-size:11px;border-collapse:collapse;margin:10px 0}.cloud-history-card th,.cloud-history-card td{padding:6px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.cloud-history-card .button{margin-top:10px}.cloud-check{display:flex;align-items:center;gap:10px;font-size:12px;margin:12px 0}.cloud-check input{accent-color:var(--green)}#profileDialog h3{margin-top:26px}#profileDialog{max-height:85dvh}.curve-grid label{width:100%;min-width:0;font-size:10px}.curve-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.curve-grid input{display:block;width:100%;min-width:0;min-height:42px;padding:8px 2px;font-size:10px;text-align:center;color:var(--ink)}
@media(max-width:850px){.cloud-strip{padding:12px 16px;flex-wrap:wrap}.cloud-strip>div{width:100%;flex-basis:100%}.cloud-strip .button{font-size:10px}.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding:12px 16px}.top-actions{gap:6px;flex-wrap:wrap}.top-actions #accountButton{font-size:10px;padding:8px}#authDialog input[type=email],#authDialog input[type=password]{font-size:16px}#profileDialog{width:calc(100vw - 24px)}}

.cloud-strip>div{min-width:0;flex:1}.cloud-strip strong{font-size:13px;overflow-wrap:anywhere}.cloud-strip{flex-wrap:wrap;border-bottom:1px solid var(--line)}.session-dock{background:var(--bg)}
@media(max-width:850px){.session-dock{position:sticky;top:0;z-index:30}.session-dock .mobile-preview-dock{position:relative;top:auto;z-index:auto}.cloud-strip{gap:6px;padding:8px 12px}.cloud-strip>div{flex-basis:100%}.cloud-strip strong{font-size:12px}.cloud-strip .button,.cloud-strip .text-button{font-size:10px;min-height:30px;padding:6px 8px}.cloud-strip span{font-size:10px}}

.recipe-card.own-recipe strong{padding-right:42px}.recipe-delete{position:absolute;right:5px;bottom:7px;border:1px solid var(--line);border-radius:5px;background:var(--paper);width:25px;height:25px;line-height:1;font-size:19px;color:#965546}.recipe-delete:hover{background:#f4dfd8}.guest-import-items{max-height:42vh;overflow-y:auto;margin:14px 0;border:1px solid var(--line);border-radius:8px}.guest-import-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);cursor:pointer}.guest-import-item:last-child{border-bottom:0}.guest-import-item input{width:18px;height:18px;flex-shrink:0;accent-color:var(--green)}.guest-import-item strong,.guest-import-item small{display:block}.guest-import-item small{color:var(--muted);margin-top:4px;font-size:11px}.guest-selection-tools,.guest-import-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.guest-selection-tools output{margin-left:auto;font-size:11px}.guest-import-actions{justify-content:flex-end}#guestTransferNotice{margin-top:6px;padding:7px 9px;border-radius:5px;background:#dce7cb}#guestTransferStatus.error{color:#914633}#guestImportDialog>p{line-height:1.6}@media(max-width:600px){.guest-import-actions .button{flex:1}.guest-selection-tools{gap:7px}.guest-import-item{padding:11px}}

.confirm-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;flex-wrap:wrap}.button.danger{background:#914d3f;color:#fff}#confirmMessage{line-height:1.7;white-space:pre-line}#localSessionStatus.error{color:#914d3f}#localSessionStatus{color:#4b6750}#retryCloudDraft{color:#914d3f}.cloud-strip .draft-tag{font-size:9px;padding:3px 5px;border:1px solid var(--green);border-radius:4px}@media(max-width:600px){.confirm-actions .button{flex:1}}

/* Mobile workspace v6: same palette and type, task-focused layout. */
.save-indicator{background:transparent;border:1px solid var(--line);border-radius:50%;width:42px;height:42px;display:grid;place-items:center;color:var(--green);cursor:pointer}.save-indicator svg{width:28px;height:28px}.save-indicator[data-state=error]{color:#914d3f}.sync-details{white-space:pre-line;line-height:1.8}.top-actions>.privacy{display:none}.project-panel{display:none;padding:28px;max-width:650px;background:var(--bg)}.project-panel.desktop-open{display:block;position:fixed;right:20px;top:85px;max-height:80dvh;overflow:auto;z-index:45;border:1px solid var(--line);box-shadow:0 10px 30px #25372f18}.project-panel .cloud-strip{display:flex;flex-direction:column;align-items:stretch;background:transparent;padding:20px 0;gap:12px}.project-panel .cloud-strip>div{flex:initial;width:100%;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:7px}.project-panel .cloud-strip span{font-size:12px;line-height:1.6}.project-panel .cloud-strip strong{font-size:14px}.project-panel h1{margin-bottom:20px}.mobile-export-dock{display:none}.holding-original #afterCanvas{opacity:0!important}.holding-original #beforeLabel{display:block!important}.holding-original #afterLabel,.holding-original #comparisonLine{display:none!important}#imageFrame{-webkit-touch-callout:none;user-select:none}#holdHint{margin:0;width:100%;text-align:center}#fullscreenButton{min-height:40px}.stage-toolbar{flex-wrap:wrap}#fullscreenDialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--bg);color:var(--ink);overflow:hidden}#fullscreenDialog[open]{display:flex;flex-direction:column;gap:8px}.fullscreen-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.fullscreen-header strong{font-weight:500}#fullscreenMedia{flex:1;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none}#fullscreenMedia .photo-area{width:100%;height:100%;min-height:0!important;padding:0;max-height:none;margin:0;overflow:visible;display:flex;align-items:center;justify-content:center}#fullscreenMedia .image-frame{height:100%;width:100%;max-height:none;aspect-ratio:auto;overflow:visible;transform-origin:center;touch-action:none}#fullscreenMedia canvas{width:100%;height:100%;object-fit:contain}#fullscreenTools .stage-toolbar{margin:0;padding:4px 0}#fullscreenTools #zoomButton,#fullscreenTools #fullscreenButton,#fullscreenTools #previewLabel,#fullscreenTools #holdHint{display:none}#fullscreenDialog>p{margin:0;text-align:center}#fullscreenDialog>.button{margin-top:0;flex-shrink:0}.fullscreen-open{overflow:hidden}.recipe-thumb.has-photo:before,.recipe-thumb.has-photo:after{display:none}.recipe-thumb img{height:100%;width:100%;object-fit:cover;display:block}.recipe-card>span:nth-child(2){flex:1;min-width:0}.recipe-description{display:block;font-size:10px;color:var(--muted);line-height:1.45;margin-top:5px;padding-right:20px}
@keyframes filterNudge{0%,100%{box-shadow:0 0 0 0 transparent;background:transparent}50%{background:#d4e99c;box-shadow:0 0 0 4px #d4e99c66}}.filter-nudge{animation:filterNudge 1.6s ease-in-out 4}.filter-onboarding{font-size:11px;line-height:1.4;text-align:center;margin:0 0 5px;color:var(--green)}
@media(prefers-reduced-motion:reduce){.filter-nudge{animation:none;background:var(--accent);outline:2px solid var(--green)}}
@media(max-width:850px){
 body{padding-bottom:calc(126px + env(safe-area-inset-bottom))}.topbar{min-height:62px;height:62px;padding:8px 12px;flex-wrap:nowrap;gap:8px;position:relative;z-index:31}.brand{font-size:24px;gap:3px}.brand small{display:none}.brand-icon{font-size:27px;margin-right:4px}.top-actions{flex-wrap:nowrap;gap:6px}.top-actions #exportButton,.top-actions #desktopProject,.top-actions #helpButton{display:none}.top-actions #accountButton{font-size:10px;padding:8px;max-width:120px;min-height:40px}.save-indicator{width:40px;height:40px;flex-shrink:0}
 .mobile-tabs{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:50;height:calc(58px + env(safe-area-inset-bottom));padding:5px 10px calc(5px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);background:var(--bg);border-top:1px solid var(--line);gap:4px}.mobile-tabs button{font-size:12px;min-height:46px;border-radius:6px;background:transparent;border:0;padding:8px 2px;color:var(--muted)}.mobile-tabs button.active{background:#e7eddb;color:var(--ink);font-weight:700;border:0}
 .mobile-export-dock{display:block;position:fixed;bottom:calc(58px + env(safe-area-inset-bottom));left:0;right:0;z-index:49;padding:7px 14px;background:var(--bg);border-top:1px solid var(--line)}.mobile-export-dock .button{margin:0;width:100%;min-height:44px;font-size:13px}
 .session-dock{position:sticky;top:0;z-index:30;background:var(--bg)}.session-dock:has(.mobile-preview-dock[hidden]){display:none}.session-dock .mobile-preview-dock:not([hidden]){display:flex;flex-direction:column;position:relative;top:0;padding:6px 12px 0;background:var(--bg);border-bottom:1px solid var(--line);box-shadow:none}.mobile-preview-dock .photo-area{height:clamp(190px,34dvh,340px)!important;max-height:340px;min-height:0!important;padding:0;margin:0;background:var(--bg)}.portrait-preview .mobile-preview-dock .photo-area{height:clamp(230px,40dvh,390px)!important;max-height:390px}.mobile-preview-dock .image-frame{height:100%;max-height:100%;width:100%;aspect-ratio:auto}.mobile-preview-dock .image-frame canvas{object-fit:contain;width:100%;height:100%}.mobile-preview-dock .stage-toolbar{padding:5px 0 7px;gap:4px;flex-shrink:0;display:flex;justify-content:space-between}.mobile-preview-dock .stage-toolbar .tool-group{gap:4px}.stage-toolbar .icon-button{width:42px;height:42px;font-size:24px}.stage-toolbar .tool-button{min-height:42px;font-size:11px;padding:6px}.mobile-preview-dock #zoomButton,.mobile-preview-dock #previewLabel,.mobile-preview-dock .divider{display:none}.mobile-preview-dock #holdHint{font-size:10px;padding:0 0 4px}.mobile-preview-dock .video-controls{margin:0;padding:4px 0}.mobile-preview-dock .video-controls .button{min-height:36px}.workspace{display:block;min-height:0}.workspace>.panel{display:none!important}.workspace>.panel.mobile-active{display:block!important}.library,.adjustments{padding:18px 16px 28px;border:0}.library h1{font-size:27px;margin-top:5px}.library .intro{margin:8px 0 12px}.library .filter-tabs{margin:12px 0}.library .panel-heading .small-star{margin-top:5px}.recipe-card{min-height:80px;padding:9px}.recipe-thumb{width:58px;height:64px}.recipe-card .recipe-fav{width:40px;height:40px}.recipe-card small{font-size:10px}.adjustments-heading{margin-bottom:14px}.adjustments .histogram-wrap{display:none}.stage{padding:14px}.stage .photo-area{min-height:260px!important}.stage-top{flex-wrap:wrap}.stage .selected-summary,.stage .recipe-note,.stage-footer{display:none}.photo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:10px}.photo-card{width:100%;min-width:0;flex-basis:auto}.photo-thumb{height:120px}.photo-check{width:24px;height:24px}.photo-remove{min-width:32px;min-height:32px}.photo-open strong{font-size:11px}.photo-open small{font-size:10px}.album-actions{flex-wrap:wrap}.album-actions .button{min-height:42px;font-size:11px}.project-panel{position:static!important;max-width:none;max-height:none!important;border:0!important;box-shadow:none!important;padding:24px 18px}.project-panel .cloud-strip .button,.project-panel .cloud-strip .text-button{min-height:44px;font-size:13px}.project-panel .cloud-strip>div{flex-basis:auto}.project-panel .cloud-strip span{font-size:12px}.project-panel .cloud-strip strong{font-size:14px}.project-panel #saveCloudProject{background:var(--ink);color:var(--paper)}
 #fullscreenDialog .stage-toolbar{justify-content:center;gap:12px}#fullscreenMedia .photo-area{height:100%!important;max-height:none!important;min-height:0!important}#fullscreenDialog .video-controls p{display:none}#fullscreenDialog .image-frame{max-height:none!important}#fullscreenDialog #holdHint{display:none}
}
@media(max-height:650px) and (max-width:850px){.mobile-preview-dock .photo-area,.portrait-preview .mobile-preview-dock .photo-area{height:30dvh!important;max-height:30dvh}.mobile-preview-dock #holdHint{display:none}}
.stage-toolbar .icon-button{display:inline-flex;flex-direction:column;gap:2px;height:auto;min-height:44px;width:62px;border-radius:6px}.stage-toolbar .icon-button small{font-size:9px;line-height:1.2;font-weight:400}.stage-toolbar .icon-button>span{font-size:23px;line-height:1}.mobile-preview-dock .stage-toolbar .tool-group{flex-wrap:wrap}#fullscreenMedia .image-frame.zoomed{width:100%}

/* v6.1 · Reference proportions; reserve a usable scrolling editor at every aspect ratio. */
.photos-title{display:none}.export-selected-thumbs{display:flex;gap:10px;overflow-x:auto;padding:4px 0 10px}.export-selected-item{flex:0 0 104px;min-width:0}.export-selected-item img{display:block;width:104px;height:70px;object-fit:cover;border-radius:5px}.export-selected-item small{display:block;font-size:10px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.export-advanced{padding:10px 0;border-block:1px solid var(--line)}.export-advanced>summary{padding:10px 0}.mobile-look{display:none}.save-indicator svg{width:34px;height:34px;overflow:visible}.save-indicator{width:44px;height:44px}
#imageFrame,#imageFrame canvas,#imageFrame .image-label{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-user-drag:none;touch-action:none;-webkit-tap-highlight-color:transparent}#imageFrame::selection,#imageFrame canvas::selection{background:transparent}body.holding-photo{-webkit-user-select:none!important;user-select:none!important}#fullscreenButton{position:absolute;top:5px;right:5px;z-index:5;width:40px;height:40px;min-height:40px;padding:0;background:#25372fa6;color:var(--paper);border:1px solid #ffffff66;border-radius:6px;font-size:0}#fullscreenButton::after{content:'⛶';font-size:25px;line-height:1}#fullscreenDialog #fullscreenButton{display:none}
@media(max-width:850px){
 body{--mobile-footer:calc(114px + env(safe-area-inset-bottom));padding-bottom:var(--mobile-footer)}
 body[data-mobile-panel="recipes"],body[data-mobile-panel="adjustments"],body[data-mobile-panel="laboratory"]{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:58px auto minmax(0,1fr)}
 body[data-mobile-panel="recipes"]>.topbar,body[data-mobile-panel="adjustments"]>.topbar,body[data-mobile-panel="laboratory"]>.topbar{grid-row:1;min-height:58px;height:58px}
 body[data-mobile-panel="recipes"]>.session-dock,body[data-mobile-panel="adjustments"]>.session-dock,body[data-mobile-panel="laboratory"]>.session-dock{grid-row:2;position:relative;top:auto;min-height:0}
 body[data-mobile-panel="recipes"]>.workspace,body[data-mobile-panel="adjustments"]>.workspace,body[data-mobile-panel="laboratory"]>.workspace{grid-row:3;min-height:0;height:100%;overflow:hidden}
 body[data-mobile-panel="recipes"] .workspace>.panel.mobile-active,body[data-mobile-panel="adjustments"] .workspace>.panel.mobile-active,body[data-mobile-panel="laboratory"] .workspace>.panel.mobile-active{height:100%;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding-bottom:24px}
 .session-dock .mobile-preview-dock:not([hidden]){padding:0 12px;background:var(--bg);overflow:hidden}
 .mobile-preview-dock .photo-area,.portrait-preview .mobile-preview-dock .photo-area{height:clamp(120px,27dvh,230px)!important;min-height:0!important;max-height:230px!important;flex:none;overflow:hidden;padding:0!important}
 .mobile-preview-dock .image-frame,.mobile-preview-dock .image-frame.zoomed{width:100%;height:100%;min-height:0;max-width:100%;max-height:100%;overflow:hidden;flex-shrink:1;aspect-ratio:auto;box-shadow:none}
 .mobile-preview-dock .image-frame canvas{width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain}
 .mobile-preview-dock .stage-toolbar{display:grid;grid-template-columns:70px minmax(0,1fr) 70px;grid-template-rows:44px;align-items:center;gap:2px;padding:2px 0;margin:0;border-bottom:0;min-height:48px}
 .mobile-preview-dock .stage-toolbar .tool-group{display:contents}
 .mobile-preview-dock #undoButton{grid-column:1;grid-row:1;justify-self:start}
 .mobile-preview-dock #redoButton{grid-column:3;grid-row:1;justify-self:end}
 .mobile-preview-dock #undoButton,.mobile-preview-dock #redoButton{display:flex;flex-direction:row;align-items:center;gap:4px;min-height:44px;height:44px;width:70px;padding:0;border:0;background:transparent}
 .mobile-preview-dock .icon-button small{font-size:10px}.mobile-preview-dock .icon-button>span{font-size:22px}
 .mobile-preview-dock #holdHint{display:block;grid-column:2;grid-row:1;font-size:9px;line-height:1.35;padding:0;margin:0;width:auto;min-width:0}
 .mobile-preview-dock #compareButton,.mobile-preview-dock #zoomButton,.mobile-preview-dock #previewLabel,.mobile-preview-dock .divider{display:none}
 body[data-mobile-panel="recipes"] .mobile-look{display:block;flex:none;padding:10px 12px;margin:0 0 6px;background:#e7eddb;border:1px solid var(--line);border-radius:7px;font-size:11px;line-height:1.4;font-weight:600}
 .mobile-preview-dock .video-controls{gap:4px;padding:3px 0}.mobile-preview-dock .video-controls .button{min-height:30px;padding:4px 7px}.mobile-preview-dock .video-controls input{min-width:60px}.mobile-preview-dock .video-controls output{font-size:9px}
 .library,.adjustments{padding:14px 16px 24px}.library .eyebrow,.library .intro,.library .small-star{display:none}.library h1{font-size:27px;line-height:1.1;margin:0 0 12px}.library .panel-heading{display:block}.library .search{padding:8px 10px;min-height:40px}.library .search input{font-size:13px}.library .filter-tabs{margin:10px 0 12px}.filter-tabs button{min-height:34px;font-size:11px}.collection-heading{margin-bottom:7px}
 .recipe-list{display:flex!important;flex-direction:column;gap:8px}.recipe-card{display:flex;min-height:78px;padding:9px;border:1px solid var(--line);background:var(--paper);width:100%;gap:11px}.recipe-card.selected{background:#e7eddb;border-color:#b9c9a1}.recipe-thumb{width:55px;height:61px;flex-shrink:0}.recipe-card strong{font-size:13px}.recipe-card small{font-size:10px}.recipe-description{font-size:10px;line-height:1.4;margin-top:4px;padding-right:16px}.recipe-fav{min-width:40px;min-height:40px}
 .top-actions #accountButton{width:40px;height:40px;min-height:40px;max-width:40px;flex-shrink:0;border-radius:50%;font-size:0;padding:0;position:relative;gap:0}.top-actions #accountButton::after{content:'';display:block;position:absolute;inset:0;margin:auto;width:22px;height:22px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325372f' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 6 0 0 1 16 0v2Z'/%3E%3C/svg%3E")}.top-actions .save-indicator{width:42px;height:42px;border:0}.brand{font-size:24px}.topbar{padding:8px 14px}.top-actions{gap:8px}
 .mobile-tabs{height:calc(60px + env(safe-area-inset-bottom));padding:4px 10px calc(4px + env(safe-area-inset-bottom))}.mobile-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;padding:4px 2px;font-size:10px}.mobile-tabs svg{width:20px;height:20px}.mobile-export-dock{bottom:calc(60px + env(safe-area-inset-bottom));padding:5px 14px}.mobile-export-dock .button{min-height:44px;height:44px;font-size:12px}
 .photos-title{display:block;font:30px/1.2 var(--serif);margin:4px 0 12px}.stage-top .file-info{display:none}.stage-top{justify-content:flex-end}.stage .photo-area{min-height:260px!important;max-height:none}.stage .image-frame canvas{height:auto;object-fit:contain}.stage .album{background:transparent;border:0;padding:0}.photo-list{gap:12px}.photo-card{padding:5px}.photo-thumb{height:135px}.album-hint{font-size:10px}.stage-toolbar{padding:10px 0}
 #exportDialog{position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:88dvh;margin:0;border:0;border-radius:16px 16px 0 0;padding:26px 20px calc(20px + env(safe-area-inset-bottom))}#exportDialog>.eyebrow,#exportDialog>h2+.muted{display:none}#exportDialog h2{margin:0 0 14px;font-size:30px}#exportDialog .field{font-size:12px;margin:10px 0}#exportDialog .export-selected-thumbs{margin-top:10px}#exportDialog .export-dimensions{padding:10px;font-size:11px;margin:12px 0}#exportDialog .export-advanced summary{font-size:12px}#exportDialog::before{content:'';position:absolute;left:calc(50% - 20px);top:8px;width:40px;height:4px;border-radius:4px;background:#bec5ba}
}
@media(max-height:650px) and (max-width:850px){.mobile-preview-dock .photo-area,.portrait-preview .mobile-preview-dock .photo-area{height:clamp(90px,23dvh,150px)!important;max-height:150px!important}.mobile-preview-dock #holdHint{display:block;font-size:8px}.library h1{margin-bottom:8px}.library .filter-tabs{margin:7px 0}.mobile-look{padding:7px 10px!important}}
@media(max-height:470px) and (max-width:850px){.mobile-preview-dock .photo-area,.portrait-preview .mobile-preview-dock .photo-area{height:80px!important;max-height:80px!important}.mobile-look{display:none!important}.mobile-preview-dock .stage-toolbar{grid-template-rows:36px;min-height:36px}.mobile-preview-dock #undoButton,.mobile-preview-dock #redoButton{height:36px;min-height:36px}}
@media(max-width:850px){.recipe-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#exportSelectionSummary{font-size:14px;font-weight:600;margin:4px 0 10px;background:transparent;border:0;padding:0}#exportSelectedThumbs{margin:0 0 10px}}


.preview-photo-nav{display:none}
@media(max-width:850px){
 .mobile-preview-dock .preview-photo-nav:not([hidden]){display:flex;align-items:center;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:30px;height:30px;padding:0;border:1px solid #ffffff66;border-radius:50%;background:#25372fa6;color:var(--paper);font-size:21px;line-height:1;touch-action:manipulation}
 .mobile-preview-dock .preview-photo-nav.previous{left:6px}
 .mobile-preview-dock .preview-photo-nav.next{right:6px}
 .mobile-preview-dock .preview-photo-nav:disabled{opacity:.45}
}

/* Laboratory shares the editor column; only the active tool panel is shown. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.editor-tabs,.lab-component-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:22px}
.editor-tabs{position:sticky;top:0;z-index:3;background:var(--bg);padding-top:4px}
.editor-tabs button,.lab-component-tabs button{flex:1;background:transparent;border:0;border-bottom:2px solid transparent;padding:12px 3px;color:var(--muted);font:500 12px var(--sans);min-height:44px}
.editor-tabs [aria-selected=true],.lab-component-tabs [aria-selected=true]{border-bottom-color:var(--ink);color:var(--ink);font-weight:700}
.lab-intro,.lab-description,.lab-tone>small,.lab-message{font-size:11px;line-height:1.6;color:var(--muted)}
.lab-intro{margin:0 0 18px}.lab-message{padding:12px;border-radius:7px;background:#e9eddf}.lab-description{margin:12px 0}.lab-fieldset{border:0;margin:0;padding:0;min-width:0}.lab-fieldset:disabled{opacity:.55}
.lab-presets{display:grid;grid-template-columns:1fr 1fr;gap:7px}.lab-presets button{display:flex;align-items:center;gap:7px;text-align:left;padding:9px 7px;min-height:55px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font-size:10px;line-height:1.4}
.lab-presets button>span{display:block;flex-shrink:0;width:22px;height:32px;border-radius:4px}.lab-presets [aria-pressed=true]{border-color:#829c62;background:#edf2df}
.lab-enable{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;margin-bottom:12px;font-size:11px}.lab-enable span{display:flex;align-items:center;gap:5px}.lab-enable input{accent-color:var(--green);width:17px;height:17px}.lab-control{margin:0 0 16px}.lab-control output{font-variant-numeric:tabular-nums}.lab-tone{padding:12px;border:1px solid var(--line);border-radius:8px;margin-bottom:12px}.lab-tone-title{display:flex;align-items:center;justify-content:space-between;font-size:12px}.lab-tone-title label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.lab-tone-title input[type=color]{width:34px;height:32px;padding:2px;border:1px solid var(--line);border-radius:6px;background:transparent}.lab-tone .lab-control{margin:16px 0 0}.lab-colors{display:flex;gap:9px;margin-top:12px}.lab-colors button{width:25px;height:25px;min-height:25px;border:2px solid var(--paper);outline:1px solid var(--line);border-radius:50%;padding:0}.lab-position{margin:14px 0;font-size:11px}.lab-position label{display:block;padding:10px 0;color:var(--muted)}.lab-position input{display:block;width:100%}.lab-foot{border-top:1px solid var(--line);padding-top:14px;margin-top:20px}#labMoveLeak{font-size:11px;margin:8px 0}.lab-leak-handle{position:absolute;z-index:8;transform:translate(-50%,-50%);width:44px;height:44px;padding:0;min-height:44px;background:#25372fa6;color:white;border:1px solid white;border-radius:50%;box-shadow:0 0 0 8px #ffffff25;font-size:25px;line-height:1;touch-action:none}.image-frame.lab-moving{cursor:crosshair}.image-frame.holding-original .lab-leak-handle{display:none}
@media(max-width:850px){.editor-tabs{display:none}.mobile-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding-left:5px;padding-right:5px}.mobile-tabs button{font-size:9px;min-width:0}.mobile-tabs svg{width:19px;height:19px}.lab-presets button{min-height:60px;font-size:11px;padding:10px}.lab-enable{font-size:12px;min-height:44px}.lab-enable input{width:20px;height:20px}.lab-colors{gap:14px}.lab-colors button{width:30px;height:30px}.lab-tone-title{font-size:13px}.lab-component-tabs{margin-top:16px}#laboratoryPanel .adjustments-heading h2{font-size:29px}.lab-fieldset input[type=range]{min-height:24px;margin:8px 0}}

/* Preview refinements: compact file tray, full-frame fit and opaque tool tabs. */
.desktop-files{display:none}
@media(min-width:851px){
 .desktop-files{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
 .stage-top{gap:10px;margin-bottom:14px}.stage-top .file-info{flex:1;min-width:0}.stage-top .file-info strong{max-width:min(300px,22vw)}.stage-top #uploadButton{flex-shrink:0}
 .stage #album{margin:14px 0 0;flex:none}
 .stage:not([data-files-open=true]) #album{display:none}
 .stage .photo-list{max-height:145px;overflow-x:auto;overflow-y:hidden}
 .stage .album-heading{gap:12px;flex-wrap:wrap}.stage .album-heading>div{margin-right:auto}
 .stage .photo-area{height:clamp(220px,calc(100dvh - 250px),850px);min-height:0;max-height:none;flex:none;padding:12px;overflow:hidden}
 .stage .image-frame{max-width:100%;max-height:100%;flex-shrink:0;box-shadow:none}
 .stage .image-frame canvas{width:100%;height:100%;object-fit:contain}
 .stage .photo-area:has(.image-frame.zoomed){overflow:auto;align-items:flex-start;justify-content:flex-start}
 .stage .image-frame.zoomed{max-width:none;max-height:none;margin:auto}
 .adjustments{padding-top:0}
 .editor-tabs{top:0;margin:0 -23px 22px;padding:12px 23px 0;z-index:12;isolation:isolate;background:var(--bg);box-shadow:0 1px 0 var(--line)}
 .editor-tabs::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--bg)}
}
@media(max-width:850px){
 .mobile-preview-dock .photo-area,.portrait-preview .mobile-preview-dock .photo-area{height:clamp(145px,32dvh,285px)!important;max-height:285px!important}
 .mobile-preview-dock .stage-toolbar{grid-template-rows:38px;min-height:38px;padding:0;gap:2px}
 .mobile-preview-dock #undoButton,.mobile-preview-dock #redoButton{height:38px;min-height:38px}
 .mobile-preview-dock .icon-button>span{font-size:21px}.mobile-preview-dock .icon-button small{font-size:9px}
 .mobile-preview-dock #holdHint{font-size:8px}
}
@media(max-width:850px) and (max-height:650px){
 .mobile-preview-dock .photo-area,.portrait-preview .mobile-preview-dock .photo-area{height:clamp(105px,27dvh,175px)!important;max-height:175px!important}
}
@media(max-width:850px) and (max-height:470px){
 .mobile-preview-dock .photo-area,.portrait-preview .mobile-preview-dock .photo-area{height:clamp(80px,24dvh,112px)!important;max-height:112px!important}
 .mobile-preview-dock .stage-toolbar{grid-template-rows:34px;min-height:34px}.mobile-preview-dock #undoButton,.mobile-preview-dock #redoButton{height:34px;min-height:34px}
}

.lab-temp-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:5px}

/* Processing feedback follows the photo in desktop, mobile and fullscreen. */
.preview-status{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:14;display:flex;align-items:center;gap:8px;max-width:calc(100% - 24px);padding:8px 12px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);box-shadow:0 2px 10px #25372f18;font:500 11px var(--sans);line-height:1.3;white-space:nowrap;pointer-events:none;user-select:none}
.preview-status[hidden]{display:none}
.preview-status::before{content:'';width:12px;height:12px;flex-shrink:0;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:preview-processing .8s linear infinite}
.preview-status[data-state=error]{color:#914d3f}.preview-status[data-state=error]::before{content:'!';border:0;animation:none;text-align:center;font-weight:700}
@keyframes preview-processing{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.preview-status::before{animation:none}}

/* Empty tools share the Laboratory unavailable state without stale file previews. */
.editor-fieldset{border:0;padding:0;margin:0;min-width:0}
.editor-fieldset:disabled{opacity:.5}
.editor-fieldset[inert]{pointer-events:none}
.tool-unavailable{margin:10px 0 18px;padding:12px;border-radius:7px;background:#e9eddf;font-size:11px;line-height:1.6;color:var(--muted)}
.recipe-card[aria-disabled=true]{cursor:default}
.project-close{display:none}
@media(min-width:851px){.project-panel{position:relative}.project-panel.desktop-open{position:fixed}.project-panel h1{padding-right:30px}.project-close{display:grid;place-items:center;position:absolute;top:12px;right:12px;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:26px;line-height:1}}
@media(max-width:850px){
 body[data-mobile-panel="recipes"],body[data-mobile-panel="adjustments"],body[data-mobile-panel="laboratory"]{height:var(--mobile-editor-height,100dvh)}
 .library .search input,.adjustments input[type=number],.adjustments select{font-size:16px}
 .software-keyboard .session-dock .mobile-preview-dock{display:none!important}
}

/* Photos scrolls as a document; tools scroll only inside their own panel. */
@media(max-width:850px){
 html.mobile-editor-locked{height:100%;overflow:hidden;overscroll-behavior-y:none}
 html.mobile-editor-locked body{position:fixed;top:0;left:0;right:0;width:100%;overscroll-behavior-y:none}
 body[data-mobile-panel="photo"]:not(.fullscreen-open) #imageFrame:not(.zoomed):not(.comparing),
 body[data-mobile-panel="photo"]:not(.fullscreen-open) #imageFrame:not(.zoomed):not(.comparing) canvas,
 body[data-mobile-panel="photo"]:not(.fullscreen-open) #imageFrame:not(.zoomed):not(.comparing) .image-label{touch-action:pan-y}
}

/* Shared texture and an explicit single tint per tonal zone. */
.lab-shared-grain{padding:14px 0;margin-bottom:12px;border-bottom:1px solid var(--line)}
.lab-tint-name{display:block;font-size:11px;margin-top:7px;color:var(--muted)}
.lab-colors button[aria-pressed="true"]{outline:2px solid var(--ink);outline-offset:3px;box-shadow:0 0 0 2px var(--paper)}

.lab-component-tabs button{min-width:0;line-height:1.35}
/* Framing uses the existing Film Lab palette and typography. */
.framing-dialog{width:min(760px,calc(100vw - 24px))}.framing-stage{position:relative;width:max-content;max-width:100%;margin:18px auto;overflow:hidden;background:var(--ink);line-height:0}.framing-stage canvas{display:block;max-width:100%;max-height:48vh;width:auto;height:auto}.framing-stage #framingBox{position:absolute;border:2px solid var(--paper);box-shadow:0 0 0 1200px #15271a80;touch-action:none;cursor:move;background:linear-gradient(90deg,transparent 33%,#fff5 33%,#fff5 33.3%,transparent 33.3%,transparent 66%,#fff5 66%,#fff5 66.3%,transparent 66.3%)}#framingBox i{position:absolute;width:22px;height:22px;background:var(--paper);border:2px solid var(--green);border-radius:50%;touch-action:none}#framingBox [data-corner=nw]{top:-10px;left:-10px;cursor:nwse-resize}#framingBox [data-corner=ne]{top:-10px;right:-10px;cursor:nesw-resize}#framingBox [data-corner=sw]{bottom:-10px;left:-10px;cursor:nesw-resize}#framingBox [data-corner=se]{bottom:-10px;right:-10px;cursor:nwse-resize}.framing-tools,.framing-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.framing-tools .field{flex:1}.framing-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.framing-actions{margin-top:18px}#framingAngle{min-height:24px}#framingButton{margin:0 0 20px}@media(max-width:850px){.framing-dialog{padding:26px 18px}.framing-stage canvas{max-height:38vh}.framing-dialog input,.framing-dialog select{font-size:16px}.framing-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}}
.lab-region{margin:0 0 14px;padding-top:6px}.lab-region .field{font-size:11px}.lab-region-modes{display:flex;gap:6px}.lab-region-modes button{flex:1;padding:11px 6px;border:1px solid var(--line);border-radius:6px;background:transparent;font-size:11px}.lab-region-modes button[aria-pressed=true],#labRegionBrush[aria-pressed=true]{background:var(--accent);color:var(--ink)}#labRegionSurface{position:absolute;inset:0;z-index:7;touch-action:none;cursor:crosshair;overflow:hidden;background:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#labBrushCursor{position:absolute;border:1px solid #fff;box-shadow:0 0 0 1px #25372f88;background:#d4e99c14;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.region-painting #labLeakHandle{display:none!important}
#framingBox i{width:30px;height:30px}#framingBox [data-corner=nw]{top:0;left:0}#framingBox [data-corner=ne]{top:0;right:0}#framingBox [data-corner=sw]{bottom:0;left:0}#framingBox [data-corner=se]{bottom:0;right:0}
.recipe-discovery{margin:0 0 18px}.discovery-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.discovery-fields .field{font-size:10px;margin:0}.discovery-fields select{font-size:11px;padding:10px 7px}.recipe-discovery p{font-size:9px;line-height:1.5;margin:10px 0 0}.recipe-group-heading{font-size:11px;font-weight:600;color:var(--muted);margin:16px 0 4px;grid-column:1/-1;letter-spacing:.3px}.recipe-recommendation{display:block;font-size:9px;font-weight:600;color:var(--green);margin-top:5px}.recipe-card .recipe-description{margin-top:4px}@media(max-width:850px){.discovery-fields select{font-size:16px}.recipe-recommendation{font-size:9px}.recipe-discovery p{font-size:10px}.recipe-group-heading{font-size:12px}}
/* Mobile photo-first editor. Desktop retains its existing panel structure. */
.sheet-group-tabs,.sheet-crop-action,#sheetPeek,#sheetFileCount{display:none}
@media (max-width:850px){
 #editControlsPanel [data-sheet-group]:not(.sheet-group-visible){display:none}
 #editControlsPanel .sheet-group-visible:not([data-sheet-subgroup])>summary{display:none}
 .sheet-group-tabs{display:flex;gap:5px;position:sticky;top:44px;z-index:5;background:var(--paper);padding:8px 0 12px;margin:0 0 6px}
 .sheet-group-tabs button{flex:1;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:8px 2px;min-height:62px;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px}
 .sheet-group-tabs svg{width:23px;height:23px}.sheet-group-tabs button[aria-selected=true]{background:#edf2df;border-color:#d4e4b8}
 #editControlsPanel .sheet-group-visible:not([data-sheet-subgroup]){padding-top:0;border:0;margin:0}
 body.mobile-sheet-active{display:block!important;padding-bottom:0;min-height:0;height:var(--mobile-editor-height,100dvh);overflow:hidden}
 body.mobile-sheet-active>.topbar{height:58px;min-height:58px;position:relative;z-index:12;background:var(--paper);border:0}
 body.mobile-sheet-active>.session-dock{position:fixed!important;top:58px;left:0;right:0;bottom:auto;height:var(--mobile-photo-height,440px);padding:0;z-index:1;min-height:0;background:var(--bg);transition:height .18s ease}
 body.mobile-sheet-active .session-dock .mobile-preview-dock:not([hidden]){display:block;width:100%;height:100%;padding:0!important;background:var(--bg);border:0;position:relative}
 body.mobile-sheet-active .mobile-preview-dock .photo-area,body.mobile-sheet-active.portrait-preview .mobile-preview-dock .photo-area{width:100%;height:100%!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0;border-radius:0;overflow:hidden;background:var(--bg)}
 body.mobile-sheet-active .mobile-preview-dock .image-frame,body.mobile-sheet-active .mobile-preview-dock .image-frame.zoomed{width:100%!important;height:100%!important;max-width:100%;max-height:100%;flex-shrink:1;aspect-ratio:auto;background:transparent;box-shadow:none}
 body.mobile-sheet-active .mobile-preview-dock .image-frame canvas{width:100%!important;height:100%!important;object-fit:contain}
 body.mobile-sheet-active .workspace{display:flex;flex-direction:column;position:fixed;left:0;right:0;top:auto;bottom:var(--mobile-footer);width:100%;height:var(--mobile-sheet-height,320px);min-height:0;max-height:none;margin:0;padding:0;background:var(--paper);border-radius:20px 20px 0 0;box-shadow:0 -6px 24px #25372f18;border-top:1px solid #e1e4d9;overflow:hidden;z-index:10;transition:height .18s ease}
 body.mobile-sheet-active .workspace>.panel.mobile-active{height:calc(100% - 36px)!important;min-height:0;flex:1;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;background:var(--paper);padding:0 16px 18px;border:0}
 body.mobile-sheet-active[data-sheet-snap=collapsed] .workspace>.panel.mobile-active{display:none!important}
 #mobileSheetHandle{position:relative;display:flex;height:36px;min-height:36px;flex-shrink:0;background:var(--paper);z-index:8;border-radius:20px 20px 0 0}
 #sheetGrip{display:block;position:relative;flex:1;background:none;border:0;border-radius:18px;color:var(--ink);min-height:36px;padding:14px 45px 2px;touch-action:none;cursor:ns-resize}
 .sheet-handle-line{position:absolute;top:10px;left:calc(50% - 20px);height:4px;width:40px;border-radius:4px;background:#bfc7bc}
 #sheetSizeLabel{font-size:12px;line-height:1.4}
 body[data-sheet-snap=collapsed] .sheet-handle-line{top:5px}
 #sheetCollapse{position:absolute;right:8px;top:0;width:42px;min-height:36px;background:transparent;border:0;color:var(--ink);font-size:25px;line-height:1}
 #sheetFinishBrush{position:absolute;right:8px;top:2px;padding:7px 10px;min-height:34px;border:0;background:var(--green);color:var(--paper);border-radius:6px;font-size:11px;z-index:2}
 #mobileSheetHandle:has(#sheetFinishBrush:not([hidden])) #sheetCollapse{display:none}
 body.mobile-sheet-active .adjustments-heading{position:sticky;top:0;z-index:6;margin:0;min-height:44px;background:var(--paper);padding:2px 0 6px;gap:10px}
 body.mobile-sheet-active .adjustments-heading .eyebrow{display:none}
 body.mobile-sheet-active .adjustments-heading h2,body.mobile-sheet-active #laboratoryPanel .adjustments-heading h2{font:26px/1.15 var(--serif);margin:0;letter-spacing:-.7px}
 body.mobile-sheet-active .adjustments-heading .text-button{font-size:10px;min-height:36px;padding:4px 0;white-space:nowrap}
 body.mobile-sheet-active .sheet-crop-action{display:inline-flex;margin-left:auto;align-items:center;gap:4px}
 body.mobile-sheet-active #framingButton{display:none!important}
 body.mobile-sheet-active .adjustment-foot,body.mobile-sheet-active .lab-intro,body.mobile-sheet-active .lab-foot{display:none}
 body.mobile-sheet-active #editControlsPanel .slider-control{margin:0 0 15px}
 body.mobile-sheet-active #editControlsPanel input[type=range],body.mobile-sheet-active #laboratoryPanel input[type=range]{min-height:26px;margin:6px 0 8px;height:4px}
 body.mobile-sheet-active #editControlsPanel .control-label{font-size:12px;margin-bottom:3px;min-height:20px}
 body.mobile-sheet-active #editControlsPanel .control-label output{font-size:11px}
 body.mobile-sheet-active #editControlsPanel [data-sheet-subgroup]{border:1px solid var(--line);border-radius:7px;padding:0 12px;margin:12px 0}
 body.mobile-sheet-active #editControlsPanel [data-sheet-subgroup]>summary{font-size:12px;min-height:44px;padding:12px 0}
 body.mobile-sheet-active .curve-help{font-size:11px}
 body.mobile-sheet-active #labControls{display:flex;flex-direction:column}
 body.mobile-sheet-active .lab-component-tabs{order:0;position:sticky;top:44px;z-index:5;margin:0 0 12px;padding:8px 0 10px;background:var(--paper);border:0;gap:5px}
 body.mobile-sheet-active .lab-component-tabs button{border:1px solid var(--line);border-radius:7px;min-height:56px;font-size:11px;font-weight:500;padding:9px 6px;flex:1}
 body.mobile-sheet-active .lab-component-tabs button[aria-selected=true]{background:#edf2df;border-color:#d4e4b8;font-weight:600}
 body.mobile-sheet-active #labFilmPanel,body.mobile-sheet-active #labGradePanel,body.mobile-sheet-active #labDustPanel{order:1}
 body.mobile-sheet-active .lab-enable{margin:0 0 14px;padding:6px 10px;min-height:42px;border:1px solid var(--line);border-radius:6px;font-size:11px}
 body.mobile-sheet-active .lab-enable strong{font-size:11px;font-weight:500}
 body.mobile-sheet-active .lab-enable input{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;width:40px;height:24px;margin:0 4px;border-radius:20px;border:1px solid var(--line);background:#c3c9bd;flex-shrink:0}
 body.mobile-sheet-active .lab-enable input::before{content:'';display:block;position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:var(--paper);box-shadow:0 1px 4px #25372f25;transition:transform .15s}
 body.mobile-sheet-active .lab-enable input:checked{background:var(--green);border-color:var(--green)}
 body.mobile-sheet-active .lab-enable input:checked::before{transform:translateX(16px)}
 body.mobile-sheet-active #labDustPanel>.lab-description{display:none}
 body.mobile-sheet-active #labRegionPanel{order:2;margin:10px 0;padding:0;border:1px solid var(--line);border-radius:7px}
 body.mobile-sheet-active #labRegionPanel>summary{padding:12px;min-height:46px;font-size:12px}
 body.mobile-sheet-active #labRegionPanel>summary::before{content:'⌖';font-size:19px;margin-right:8px}
 body.mobile-sheet-active #labRegionPanel[open]{padding:0 12px 10px}
 body.mobile-sheet-active #labRegionPanel[open]>summary{padding-inline:0}
 body.mobile-sheet-active #sheetLabStyles{order:3;margin:10px 0 0;padding:0;border-top:1px solid var(--line)}
 body.mobile-sheet-active #sheetLabStyles>summary{padding:14px 0;min-height:44px;font-size:12px}
 body.mobile-sheet-active #labSharedGrain{padding:10px 0;margin-top:8px}
 body.mobile-sheet-active #recipesPanel .panel-heading h1{font:26px/1.15 var(--serif);margin:0 0 12px}
 body.mobile-sheet-active #recipesPanel .collection-heading,body.mobile-sheet-active .recipe-discovery>p{display:none}
 body.mobile-sheet-active #recipesPanel .filter-tabs{margin-block:8px}
 body.mobile-sheet-active .recipe-discovery{margin-bottom:8px}
 body.mobile-sheet-active .mobile-preview-dock .stage-toolbar{position:absolute;top:8px;left:10px;width:184px;height:38px;min-height:38px;grid-template-columns:88px 88px;grid-template-rows:38px;gap:6px;display:grid;padding:0;border:0;margin:0;z-index:6;pointer-events:none}
 body.mobile-sheet-active .mobile-preview-dock .stage-toolbar .tool-group{display:contents}
 body.mobile-sheet-active .mobile-preview-dock #undoButton,body.mobile-sheet-active .mobile-preview-dock #redoButton{pointer-events:auto;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:5px;min-height:36px;height:36px;width:88px;padding:5px 6px;background:#25372fa6;border:1px solid #ffffff55;border-radius:8px;color:var(--paper)}
 body.mobile-sheet-active .mobile-preview-dock #undoButton{grid-column:1;grid-row:1}body.mobile-sheet-active .mobile-preview-dock #redoButton{grid-column:2;grid-row:1}
 body.mobile-sheet-active .mobile-preview-dock #undoButton>span,body.mobile-sheet-active .mobile-preview-dock #redoButton>span{font-size:22px}
 body.mobile-sheet-active .mobile-preview-dock .icon-button small{font-size:10px}
 body.mobile-sheet-active .mobile-preview-dock #holdHint,body.mobile-sheet-active .mobile-preview-dock #mobileLook{display:none!important}
 body.mobile-sheet-active #fullscreenButton{top:8px;right:10px}
 body.mobile-sheet-active #sheetPeek{display:block;position:absolute;bottom:22px;left:10px;z-index:6;min-height:32px;padding:5px 9px;border:1px solid #ffffff55;border-radius:7px;background:#25372f99;color:var(--paper);font-size:10px}
 body.mobile-sheet-active #sheetFileCount{display:block;position:absolute;bottom:25px;left:50%;transform:translateX(-50%);z-index:5;padding:5px 9px;border:1px solid #ffffff55;border-radius:14px;background:#25372f99;color:var(--paper);font-size:10px;white-space:nowrap;pointer-events:none}
 body.mobile-sheet-active.sheet-has-video #sheetPeek,body.mobile-sheet-active.sheet-has-video #sheetFileCount{bottom:63px}
 body.mobile-sheet-active .mobile-preview-dock .video-controls{position:absolute;bottom:12px;left:0;right:0;z-index:6;background:#fbfbf7ee;padding:3px 10px}
 body.mobile-sheet-active .mobile-preview-dock .video-controls p{display:none}
 body.mobile-sheet-active .mobile-export-dock,body.mobile-sheet-active .mobile-tabs{background:var(--paper);border:0}
 body.mobile-sheet-active.software-keyboard .workspace{height:calc(var(--mobile-editor-height,100dvh) - 58px - var(--mobile-footer))!important}
 body.mobile-sheet-active.sheet-dragging .workspace,body.mobile-sheet-active.sheet-dragging>.session-dock{transition:none}
}
@media (prefers-reduced-motion:reduce){body.mobile-sheet-active .workspace,body.mobile-sheet-active>.session-dock{transition:none}}
.sheet-styles-action,.sheet-lab-icon{display:none}
@media (max-width:850px){body.mobile-sheet-active .sheet-styles-action{display:inline-flex;margin-left:auto}body.mobile-sheet-active .lab-component-tabs button{display:flex;align-items:center;justify-content:center;gap:5px}body.mobile-sheet-active .sheet-lab-icon{display:block;width:18px;height:18px;flex-shrink:0}#mobileSheetHandle{-webkit-user-select:none;user-select:none;touch-action:none}}
@media (max-width:850px){
 body.mobile-sheet-active #editControlsPanel .slider-control{margin-bottom:12px}
 body.mobile-sheet-active #editControlsPanel .control-label{min-height:18px;margin-bottom:0}
 body.mobile-sheet-active #editControlsPanel input[type=range],body.mobile-sheet-active #laboratoryPanel input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;min-height:24px;margin:2px 0 6px}
 body.mobile-sheet-active #editControlsPanel input[type=range]::-webkit-slider-runnable-track,body.mobile-sheet-active #laboratoryPanel input[type=range]::-webkit-slider-runnable-track{height:4px;background:#d5d8d1;border-radius:4px}
 body.mobile-sheet-active #editControlsPanel input[type=range]::-webkit-slider-thumb,body.mobile-sheet-active #laboratoryPanel input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin-top:-8px;background:var(--green);border:1px solid var(--paper);border-radius:50%}
 body.mobile-sheet-active #control-temperature::-webkit-slider-runnable-track{background:linear-gradient(90deg,#7ea8c9,#c5cab4,#e8c46c)!important}
 body.mobile-sheet-active #control-tint::-webkit-slider-runnable-track{background:linear-gradient(90deg,#8aad80,#c9c4bf,#c298c0)!important}
 body.mobile-sheet-active #editControlsPanel input[type=range]::-moz-range-track,body.mobile-sheet-active #laboratoryPanel input[type=range]::-moz-range-track{height:4px;background:#d5d8d1;border-radius:4px}
 body.mobile-sheet-active #editControlsPanel input[type=range]::-moz-range-thumb,body.mobile-sheet-active #laboratoryPanel input[type=range]::-moz-range-thumb{width:20px;height:20px;background:var(--green);border:1px solid var(--paper);border-radius:50%}
}
@media (max-width:850px){
 body.mobile-sheet-active .mobile-preview-dock .photo-area,body.mobile-sheet-active.portrait-preview .mobile-preview-dock .photo-area{height:calc(100% - 12px)!important}
 body.mobile-sheet-active .filter-onboarding{display:none}
 #fullscreenDialog #sheetPeek,#fullscreenDialog #sheetFileCount{display:none!important}
}

/* Compact mobile controls; panel movement overlays a stable photo stage. */
.top-actions #exportButton>svg{display:none}
@media (max-width:850px){
 body[data-mobile-panel=recipes],body[data-mobile-panel=adjustments],body[data-mobile-panel=laboratory]{--mobile-footer:calc(60px + env(safe-area-inset-bottom))}
 body[data-mobile-panel=recipes] .mobile-export-dock,body[data-mobile-panel=adjustments] .mobile-export-dock,body[data-mobile-panel=laboratory] .mobile-export-dock{display:none!important}
 .top-actions #exportButton{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:40px;min-height:40px;padding:8px;border-radius:8px}
 .top-actions #exportButton .desktop-export-label{display:none}
 .top-actions #exportButton>svg{display:block;width:22px;height:22px}
 #fullscreenButton{display:none!important}
 .preview-photo-nav svg{width:21px;height:21px;display:block}
 body.mobile-sheet-active .mobile-preview-dock .stage-toolbar{left:10px;right:10px;width:auto;grid-template-columns:88px 1fr 88px}
 body.mobile-sheet-active .mobile-preview-dock #redoButton{grid-column:3}
 body.mobile-sheet-active #sheetPeek,body.mobile-sheet-active .image-label{position:fixed;top:auto;bottom:calc(var(--mobile-footer) + var(--mobile-sheet-height,320px) + 12px);padding:9px 12px;min-height:0;border:1px solid #ffffff30;border-radius:4px;background:#25372f7a;backdrop-filter:blur(8px);color:#fff;font:400 8px/1 var(--sans, sans-serif);letter-spacing:1px;z-index:7;white-space:nowrap}
 body.mobile-sheet-active #sheetPeek{left:10px;text-transform:uppercase;pointer-events:auto}
 body.mobile-sheet-active #beforeLabel,body.mobile-sheet-active #afterLabel{left:auto;right:10px}
 body.mobile-sheet-active #sheetFileCount{bottom:calc(var(--mobile-footer) + var(--mobile-sheet-height,320px) + 15px);position:fixed}
 body.mobile-sheet-active.sheet-has-video .mobile-preview-dock .video-controls{position:fixed;bottom:calc(var(--mobile-footer) + var(--mobile-sheet-height,320px) + 8px)}
 body.mobile-sheet-active.sheet-has-video #sheetPeek,body.mobile-sheet-active.sheet-has-video .image-label{bottom:calc(var(--mobile-footer) + var(--mobile-sheet-height,320px) + 52px)}
 body.mobile-sheet-active.sheet-has-video #sheetFileCount{bottom:calc(var(--mobile-footer) + var(--mobile-sheet-height,320px) + 55px)}
 body.mobile-sheet-active .adjustments-heading{align-items:center;min-height:40px;padding:2px 0 4px}
 body.mobile-sheet-active .adjustments-heading h2,body.mobile-sheet-active #laboratoryPanel .adjustments-heading h2,body.mobile-sheet-active #recipesPanel .panel-heading h1{font-size:22px;line-height:1.15}
 body.mobile-sheet-active #labReset,body.mobile-sheet-active #sheetLabStylesButton{align-self:center;align-items:center;line-height:1.2;min-height:36px;margin-block:0;padding-block:4px}
 .sheet-group-tabs{top:40px;padding:4px 0 6px;margin-bottom:4px;gap:4px}
 .sheet-group-tabs button{min-height:46px;padding:5px 2px;gap:3px;font-size:10px}
 .sheet-group-tabs svg{width:19px;height:19px}
 body.mobile-sheet-active .lab-component-tabs{top:40px;padding:4px 0 6px;margin-bottom:8px;gap:4px}
 body.mobile-sheet-active .lab-component-tabs button{min-height:40px;padding:5px 4px;font-size:10px;gap:4px}
 body.mobile-sheet-active .sheet-lab-icon{width:16px;height:16px}
 #sheetGrip{padding:0 45px;display:flex;align-items:center;justify-content:center;gap:7px}
 .sheet-handle-line,body[data-sheet-snap=collapsed] .sheet-handle-line{position:static;width:20px;height:22px;border-radius:0;background:none;display:inline-flex;align-items:center}
 .sheet-handle-line svg,#sheetCollapse svg{display:block;width:20px;height:20px}
 #sheetCollapse{display:flex;align-items:center;justify-content:center}
}
