@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{color-scheme:dark;--bg:#101113;--panel:#191b1e;--line:#2b2e32;--muted:#92989e;--text:#f0f2f3;--mint:#d2f89b;--accent:#d2f89b;font-synthesis:weight}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--text);font:13px 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button,a,label,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;border:0;background:none;cursor:pointer}button:disabled{opacity:.3;cursor:default}button:hover:not(:disabled){filter:brightness(1.15)}button,a{transition:background .16s,color .16s,box-shadow .16s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}header{height:76px;display:flex;align-items:center;padding:0 30px;gap:24px;border-bottom:1px solid var(--line);background:#151619}.brand{font:800 27px Manrope,sans-serif;letter-spacing:-1.5px;display:flex;align-items:center;gap:11px}.brand-icon{display:inline-grid;place-content:center;width:35px;height:35px;border-radius:11px;background:var(--accent);color:#16220c;font:700 25px Georgia;letter-spacing:-4px;padding-right:4px;position:relative}.brand-icon span{display:none}.brand-dot{font:9px sans-serif;align-self:start;letter-spacing:0;margin:7px 0 0 -6px}.header-middle{margin:auto;color:#a7acb3;display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:1.7px}.studio-badge{border:1px solid #34383d;border-radius:5px;font-size:8px;padding:5px 7px;letter-spacing:1px}.live-dot{display:inline-block;width:5px;height:5px;background:var(--accent);border-radius:50%}.button{display:inline-flex;align-items:center;justify-content:center;gap:17px;min-height:41px;padding:11px 18px;border-radius:10px;font-size:12px;font-weight:700;white-space:nowrap}.primary{background:var(--accent);color:#1b2612;box-shadow:0 2px 16px #c5e89c0a}.primary span{font-size:19px}.upload{background:#23262a;border:1px solid #3d4248;cursor:pointer;color:#e0e4e7}.upload>span{font-size:20px;font-weight:400}main{display:grid;grid-template-columns:76px minmax(0,1fr) 356px;max-width:1920px;margin:auto;min-height:calc(100dvh - 76px)}.rail{border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;gap:26px;padding-top:30px;position:relative;background:#141518}.rail-item{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:22px;color:#747d85;width:60px}.rail-item small{font-size:9px}.rail-item.active{color:var(--accent)}.rail-item.active>span{display:grid;place-content:center;width:42px;height:42px;background:#252f1e;border-radius:13px}.rail-bottom{position:absolute;bottom:26px;writing-mode:vertical-rl;font:9px monospace;letter-spacing:2px;color:#545e66}.workspace{padding:26px 30px 20px;min-width:0;position:sticky;top:0;align-self:start}.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2px;color:#9ba5ad;margin-bottom:10px}h1{font:500 clamp(24px,2.4vw,36px)/1.13 Manrope,sans-serif;letter-spacing:-1.5px;margin:0}h1 em{font-style:normal;color:#b6c6a2}.workspace-head p{color:var(--muted);font-size:11px;margin:10px 0 0}.editor-card{border:1px solid #31353a;border-radius:16px;background:#181a1d;overflow:hidden;box-shadow:0 12px 45px #0002}.image-toolbar{min-height:56px;display:flex;align-items:center;padding:10px 14px;gap:12px;border-bottom:1px solid #282b30}.history-actions{display:flex;border:1px solid #34383d;border-radius:8px;padding:2px;background:#202226;flex-shrink:0}.history-actions button{width:31px;height:29px;font-size:20px;color:#e5e9ed}.history-actions button+button{border-left:1px solid #34383d}.file-info{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;color:#aeb7be}.file-info span{font-size:8px;color:#707b83}.view-switch{display:flex;gap:2px;padding:3px;background:#101214;border:1px solid #2d3035;border-radius:8px;flex-shrink:0}.view-switch button{padding:6px 10px;border-radius:5px;font-size:10px;color:#939ba2}.view-switch .selected{background:#33373c;color:#f6f8f9;box-shadow:0 1px 4px #0003}.stage{height:clamp(340px,calc(100dvh - 342px),760px);padding:18px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#0d0e10;background-image:radial-gradient(ellipse at 50% 50%,#24292a60,transparent 80%)}.photo-wrap{position:relative;max-width:100%;overflow:hidden;box-shadow:0 12px 45px #0006;touch-action:none;border-radius:3px;outline-offset:4px}.photo-wrap canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.image-label{position:absolute;bottom:12px;padding:6px 8px;border:1px solid #ffffff1c;border-radius:5px;background:#101318a6;backdrop-filter:blur(8px);font-size:7px;letter-spacing:1.3px;pointer-events:none}.before-label{left:12px;display:none}.after-label{right:12px}.divider{position:absolute;left:50%;top:0;height:100%;width:1px;background:#fff;pointer-events:none;display:none}.divider span{position:absolute;top:50%;transform:translate(-50%,-50%);width:33px;height:33px;display:grid;place-items:center;background:#252b2acb;backdrop-filter:blur(8px);border:1px solid #e4ead4;border-radius:50%}#split{position:absolute;inset:0;opacity:0;cursor:ew-resize;margin:0;width:100%;height:100%;display:none}.image-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;gap:10px;font-size:9px;color:#8b969e;border-top:1px solid #24272c}.image-footer button{font-size:10px;color:#bec7cb}.image-footer .live-dot{width:4px;height:4px;margin-right:5px}.footer-hint{color:#66747e}.under-editor{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px;color:#b3bfc4;font-size:10px}.under-editor>div{display:flex;align-items:center;gap:10px}.under-editor small{display:block;color:#66747e;font-size:9px;margin-top:5px}.tiny-icon{display:grid;place-items:center;width:31px;height:31px;border:1px solid #343b3e;border-radius:10px;color:#b9c7ad;font-size:18px}.under-editor button{color:#8b969e;font-size:9px}.under-editor button span{margin-left:7px}.controls{border-left:1px solid var(--line);padding:22px;background:#17191c;min-width:0;max-height:calc(100dvh - 76px);position:sticky;top:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#414a43 transparent}.desktop-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:5px;background:#101214;border:1px solid #2b2e33;border-radius:12px;margin-bottom:24px}.desktop-tools button{min-height:34px;padding:8px 4px;font-size:11px;border-radius:8px;color:#8f9ba3}.desktop-tools button[aria-pressed=true]{background:#343e2c;color:#e1f5cb}.tool-spark{color:#c9ef9f;margin-left:2px}.tool-panel{display:none;min-width:0}.tool-panel.active{display:block}.controls-title{display:flex;align-items:center;justify-content:space-between;font:600 21px Manrope;letter-spacing:-.5px}.mini-tag{font:600 8px 'DM Sans',sans-serif;letter-spacing:.8px;padding:5px 7px;border:1px solid #3a4440;border-radius:5px;color:#a9c191;white-space:nowrap}.muted{color:var(--muted)}.small{font-size:11px;line-height:1.65}.tool-panel>.small{margin:10px 0 17px}.preset-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 13px}.preset-filters button{background:#23262b;border:1px solid #353b40;border-radius:7px;padding:8px 9px;font-size:10px;color:#9faab2;white-space:nowrap}.preset-filters button[aria-pressed=true]{background:#303e25;border-color:#6a8452;color:#e2f3d2}.preset-filters span{font-size:7px;background:#c9ee9e;color:#26341c;border-radius:3px;padding:2px 3px;margin-left:4px}.preset-note{font-size:9px;color:#687b84;margin:0 0 14px}.presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 12px;padding:2px;position:relative}.preset{padding:0;text-align:left;min-width:0;align-self:start}.preset-photo{height:98px;background-size:cover;background-position:center;border-radius:10px;border:2px solid transparent;position:relative;box-shadow:0 2px 8px #0003}.preset strong{display:block;font-size:11px;font-weight:500;line-height:1.35;margin:8px 0 4px;overflow:hidden;text-overflow:ellipsis}.preset small{display:block;font-size:7px;color:#6f8088;letter-spacing:.5px;line-height:1.5}.preset.selected .preset-photo{border-color:var(--accent);box-shadow:0 0 0 2px #a6d87022}.preset.selected strong{color:var(--accent)}.check{display:none;position:absolute;right:6px;top:6px;width:18px;height:18px;border-radius:50%;background:var(--accent);color:#25341b;text-align:center;padding-top:2px;font-size:10px}.selected .check{display:block}.section-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font:600 15px Manrope;margin:0 0 22px}.section-line button{font:10px 'DM Sans';color:#acc494;min-height:32px}.slider-row{margin:0 0 19px}.slider-label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#bcc6cc;margin-bottom:6px}.slider-label output{font:10px monospace;color:#a6b799;background:#252c22;padding:3px 6px;border-radius:5px;min-width:30px;text-align:center}input[type=range]{width:100%;height:24px;display:block;margin:0;accent-color:var(--accent);cursor:pointer;background:transparent;min-width:0}details{border-top:1px solid var(--line);padding-top:17px;margin:20px 0}summary{display:flex;justify-content:space-between;align-items:center;font-size:12px;min-height:28px;cursor:pointer;list-style:none;color:#d2d9dd}summary::-webkit-details-marker{display:none}details[open] summary{margin-bottom:18px}details[open] summary span{transform:rotate(45deg)}.face-section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.face-section .section-line{font-size:13px;margin-bottom:8px}.face-section>.small{margin:0 0 12px}.auto-toggle,.depth-toggle{display:flex;align-items:center;gap:10px;padding:13px;background:#252f21;border:1px solid #405137;border-radius:10px;cursor:pointer;color:#d8e9ca;font-size:12px}.auto-toggle input,.text-check input,.depth-toggle input{accent-color:var(--accent);width:16px;height:16px;flex-shrink:0}.auto-toggle small,.depth-toggle small{display:block;font-size:9px;color:#95a78d;line-height:1.6;margin-top:4px}.people-status,.face-status,.effect-status{font-size:10px;line-height:1.65;color:#9aac9f;margin:10px 0;overflow-wrap:anywhere}.face-actions,.compose-actions,.compose-smart,.text-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 16px}.face-actions button,.compose-actions button,.compose-smart button,.text-actions button,.text-add button{border:1px solid #3a4544;border-radius:8px;background:#252a2d;color:#bdcacc;padding:10px;font-size:10px;min-height:36px}.face-actions button[aria-pressed=true],.compose-actions button[aria-pressed=true]{background:var(--accent);color:#26331e}.face-help{font-size:9px}.skin-note{display:flex;gap:10px;background:#202820;border:1px solid #344130;border-radius:10px;padding:13px;margin:20px 0;color:#afc5a4}.skin-note p{font-size:11px;margin:0}.skin-note small{display:block;font-size:9px;line-height:1.65;margin-top:4px;color:#8d9f86}.skin-note>span{font-size:20px}.effect-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.effect-head h2{font:600 17px Manrope;margin:0 0 6px;letter-spacing:-.5px}.effect-head p{font-size:10px;line-height:1.6;color:#86969e;margin:0}.effect-head button{padding:10px 13px;font-size:11px;color:#d2e7bf;border:1px solid #566a45;background:#283322;border-radius:9px;white-space:nowrap;min-height:38px}.effect-head button[aria-pressed=true]{background:var(--accent);color:#1c2b14}.blur-head{border-top:1px solid var(--line);padding-top:20px}.effect-link{color:#b8d29f;font-size:10px;padding:6px 0;min-height:30px;text-decoration:underline;text-underline-offset:3px}select,textarea,.export-grid output{width:100%;min-width:0;padding:10px;border-radius:8px;border:1px solid #383e43;background:#111416;color:#cfd9dc;min-height:40px;font-size:12px}select{cursor:pointer}.effect-select,.export-grid label{display:flex;flex-direction:column;gap:8px;font-size:10px;color:#9cabb1;margin-bottom:15px;min-width:0}.effect-select textarea{resize:vertical;min-height:85px;line-height:1.6}.compose-actions button{flex:1;padding:10px 6px}.compose-smart button{flex:1}.framing-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0}.framing-choices button{min-width:0;padding:4px;border:1px solid #4d6240;border-radius:8px}.framing-choices canvas{width:100%;height:70px;object-fit:contain;background:#0a0c0e}.framing-choices span{display:block;color:#acc494;font-size:8px;line-height:1.5;margin-top:5px}.text-add{display:flex;gap:8px;margin:20px 0 14px}.text-add select{flex:1}.text-add button{white-space:nowrap}.text-options,.export-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.text-options input[type=color]{height:40px;width:100%;border:1px solid #39433b;background:#151a17;border-radius:8px;padding:4px}.text-checks{display:flex;gap:12px;flex-wrap:wrap}.text-check{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#abbcaf;min-height:32px}.depth-toggle{margin-bottom:17px}.depth-toggle strong{font-size:12px}.depth-toggle-icon{margin-left:auto;font-size:24px}.export-grid output{font:12px monospace;display:flex;align-items:center}.export-button{width:100%;justify-content:space-between;margin-top:8px}.privacy{font-size:10px;color:#7a9081;text-align:center;line-height:1.6;margin-top:16px}.privacy span{margin-right:6px}.majic-card{border:1px solid #4b5942;border-radius:14px;padding:15px;background:radial-gradient(ellipse at 100% 0,#3e49363b,transparent 70%),#1c231c}.majic-heading{display:flex;align-items:center;gap:10px}.majic-symbol{color:var(--accent);font-size:29px}.majic-heading h2{font:600 20px Manrope;letter-spacing:-.6px;margin:0 0 4px}.majic-heading p{font-size:10px;margin:0;color:#8f9e88}.majic-heading .mini-tag{margin-left:auto}.majic-card .small{margin:12px 0}.majic-button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:12px;border-radius:9px;background:var(--accent);color:#24321b;font-weight:700;font-size:12px}.majic-card .effect-status{font-size:10px;margin:12px 0 2px}.majic-card .effect-link{font-size:9px}.depth-diagram{height:110px;border:1px solid #424c3b;border-radius:9px;margin-top:14px;position:relative;overflow:hidden;background:linear-gradient(135deg,#586348,#2b3927 60%,#19241e)}.depth-diagram>span{position:absolute;top:8px;left:10px;color:#c7d5ba;font-size:7px;letter-spacing:2px}.depth-diagram strong{position:absolute;top:28px;left:0;right:0;text-align:center;color:#ebf4d9;font:700 35px Manrope;letter-spacing:1px}.depth-diagram i{position:absolute;width:49px;height:82px;border-radius:50% 50% 10px 10px;background:linear-gradient(110deg,#141b16,#647355);bottom:-21px;left:calc(50% - 24px);box-shadow:0 0 0 1px #4f6547}.depth-diagram i:before{content:'';position:absolute;width:28px;height:32px;border-radius:50%;top:-20px;left:10px;background:linear-gradient(110deg,#243024,#7c8f60)}.depth-diagram small{position:absolute;bottom:8px;left:8px;color:#a7bc96;letter-spacing:1px;font-size:6px}.face-overlays,.text-selection,.crop-guides{position:absolute;inset:0;pointer-events:none;overflow:hidden}.face-overlays,.crop-guides{z-index:3}.text-selection{z-index:4}.face-svg,.text-selection svg{width:100%;height:100%;position:absolute;inset:0}.selecting-faces{cursor:crosshair}.crop-guides{background:linear-gradient(90deg,transparent 33.1%,#eff3e260 33.1%,#eff3e260 33.4%,transparent 33.4%,transparent 66.4%,#eff3e260 66.4%,#eff3e260 66.7%,transparent 66.7%),linear-gradient(transparent 33.1%,#eff3e260 33.1%,#eff3e260 33.4%,transparent 33.4%,transparent 66.4%,#eff3e260 66.4%,#eff3e260 66.7%,transparent 66.7%)}.busy{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;background:#101514ad;backdrop-filter:blur(5px);font-size:12px;z-index:5}.spinner{height:28px;width:28px;border:2px solid #627150;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dragging{outline:2px dashed var(--accent);outline-offset:4px}.mobile-tools{display:none}body>footer{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#e3efda;color:#24331b;border:1px solid #f2ffe5;border-radius:12px;padding:13px 20px;font-size:12px;line-height:1.5;max-width:90vw;box-shadow:0 8px 40px #0005;opacity:0;pointer-events:none;transition:.2s;z-index:30}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{background:#1b201c;border:1px solid #526545;border-radius:18px;padding:25px;color:var(--text);max-width:740px;width:92%}dialog::backdrop{background:#050807d9;backdrop-filter:blur(8px)}.dialog-head{display:flex;justify-content:space-between;gap:10px}.dialog-head h2{font:500 25px Manrope;margin:0 0 20px}.dialog-head button{font-size:20px;align-self:start}.reference-pair{display:flex;gap:14px}.reference-pair figure{flex:1;min-width:0;margin:0}.reference-pair img{width:100%;max-height:52vh;object-fit:contain;background:#101411;border-radius:8px}.reference-pair figcaption{font-size:10px;color:#a9bd9e;margin:8px 0 15px}dialog p{font-size:12px;line-height:1.7;color:#afbdac}
@media(max-width:1150px){main{grid-template-columns:62px minmax(0,1fr) 320px}.workspace{padding:23px 20px}.controls{padding:20px 17px}.header-middle{font-size:9px;letter-spacing:1px}.studio-badge{display:none}.workspace-head{gap:12px}.upload{padding:10px 12px;font-size:11px}.file-info{display:none}.image-toolbar{justify-content:space-between}.footer-hint{display:none}.under-editor button{display:none}.preset-photo{height:92px}h1{font-size:28px}}
@media(max-width:850px){
 :root{--mobile-header:58px;--tools-height:60px;--dock-height:250px}
 html,body{height:100dvh;overflow:hidden;overscroll-behavior:none;width:100%}header{height:calc(var(--mobile-header) + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0;gap:12px;justify-content:space-between}.brand{font-size:25px}.brand-icon{width:31px;height:31px;font-size:23px}.header-middle,.rail{display:none}header .button{min-height:36px;padding:9px 13px;font-size:11px;gap:14px}main{display:block;height:calc(100dvh - var(--mobile-header) - env(safe-area-inset-top));min-height:0;overflow:hidden}.workspace{position:static;padding:8px 10px 0;min-width:0}.workspace-head{height:35px;margin:0 0 7px;align-items:center}.workspace-head h1,.workspace-head p{display:none}.workspace-head .eyebrow{font-size:8px;letter-spacing:1.6px;margin:0}.workspace-head .upload{min-height:32px;padding:6px 10px;font-size:10px;border-radius:8px}.upload>span{font-size:16px}.editor-card{border-radius:12px}.image-toolbar{height:46px;min-height:46px;padding:6px 8px;gap:5px}.history-actions{border-radius:7px}.history-actions button{width:28px;height:27px;font-size:19px}.view-switch{padding:2px}.view-switch button{font-size:9px;padding:6px 8px;min-height:29px}.stage{height:calc(100dvh - var(--mobile-header) - env(safe-area-inset-top) - 35px - 7px - 46px - var(--dock-height) - var(--tools-height) - env(safe-area-inset-bottom) - 22px);min-height:45px;padding:8px}.image-footer,.under-editor{display:none}.image-label{bottom:8px;font-size:6px;padding:5px 6px}.before-label{left:8px}.after-label{right:8px}.controls{position:fixed;left:0;right:0;bottom:calc(var(--tools-height) + env(safe-area-inset-bottom));width:100%;height:var(--dock-height);max-height:none;top:auto;padding:15px 16px 8px;border:0;border-top:1px solid #3a4144;border-radius:18px 18px 0 0;background:#1b1e21;z-index:9;overflow:hidden;box-shadow:0 -8px 40px #0004}.controls:before{content:'';display:block;position:absolute;top:5px;left:calc(50% - 14px);width:28px;height:3px;background:#424a4b;border-radius:3px}.desktop-tools{display:none}.controls .tool-panel{width:100%;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 1px 10px}.controls-title{font-size:16px;line-height:22px}.controls-title .mini-tag{font-size:7px;padding:4px 6px}.tool-panel>.small,.preset-note{display:none}.preset-filters{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:6px;margin:9px 0 10px;scrollbar-width:none;touch-action:pan-x}.preset-filters button{flex:0 0 auto;font-size:10px;padding:7px 9px;min-height:29px}.preset-filters span{font-size:6px}.controls .presets{display:flex;flex-direction:row;gap:11px;width:100%;height:131px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 9px;scroll-snap-type:x proximity;touch-action:pan-x;overscroll-behavior-x:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.presets .preset{flex:0 0 107px;width:107px;min-width:107px;max-width:107px;scroll-snap-align:center;height:111px}.presets .preset-photo{width:107px;height:82px;border-radius:9px}.presets .preset strong{font-size:10px;white-space:nowrap;margin:7px 0 0}.presets .preset small{display:none}.presets .check{width:16px;height:16px;top:4px;right:4px;font-size:9px}.mobile-tools{position:fixed;left:0;right:0;bottom:0;z-index:12;height:calc(var(--tools-height) + env(safe-area-inset-bottom));padding:4px 6px calc(4px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;background:#131619;border-top:1px solid #2c3337}.mobile-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;font-size:9px;color:#839299;border-radius:10px;min-height:44px}.mobile-tools button>span{font-size:19px;line-height:20px}.mobile-tools button[aria-pressed=true]{background:#2e3c24;color:#dcf2c7}.section-line{font-size:13px;margin:0 0 16px}.slider-row{margin-bottom:14px}.slider-label{font-size:11px}input[type=range]{height:26px}.effect-head h2{font-size:15px}.effect-head{margin-bottom:13px}.effect-select{margin-bottom:13px}select,textarea{font-size:16px;min-height:40px}.text-options select,.compose-actions button,.export-grid select{font-size:12px}.effect-select textarea{font-size:16px}.text-actions button{min-height:38px}.majic-card{padding:13px}.majic-heading h2{font-size:18px}.depth-diagram{height:88px}.depth-diagram strong{top:22px;font-size:32px}.depth-diagram i{bottom:-33px}.majic-card .small{display:block;font-size:10px}.majic-button{min-height:42px}.text-add{margin-top:16px}.face-help{font-size:10px}#toast{bottom:calc(var(--dock-height) + var(--tools-height) + env(safe-area-inset-bottom) + 12px);font-size:11px;padding:10px 15px;width:max-content;max-width:92vw}dialog{max-height:88dvh;overflow-y:auto;padding:18px}.reference-pair{gap:10px}
}
@media(max-width:850px) and (max-height:650px){:root{--dock-height:205px;--tools-height:52px;--mobile-header:50px}.workspace-head{display:none}.stage{height:calc(100dvh - var(--mobile-header) - env(safe-area-inset-top) - 46px - var(--dock-height) - var(--tools-height) - env(safe-area-inset-bottom) - 16px);min-height:38px}.controls{padding-top:12px}.controls-title{display:none}.preset-filters{margin:0 0 8px}.controls .presets{height:122px}}
@media(max-width:850px) and (max-height:450px){:root{--dock-height:145px;--tools-height:47px;--mobile-header:43px}.image-toolbar{height:39px;min-height:39px}.stage{height:calc(100dvh - var(--mobile-header) - env(safe-area-inset-top) - 39px - var(--dock-height) - var(--tools-height) - env(safe-area-inset-bottom) - 16px)}.controls .presets{height:83px}.presets .preset{height:75px;flex-basis:92px;width:92px;min-width:92px}.presets .preset-photo{width:92px;height:51px}.preset-filters button{padding:4px 8px;min-height:24px}.controls{padding-top:10px}.presets .preset strong{font-size:9px;margin-top:4px}.mobile-tools button{min-height:35px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.majic-card.has-layer .depth-diagram,.majic-card.has-layer>.small{display:none}.majic-card.has-layer .majic-heading{margin-bottom:12px}.majic-card.has-layer .majic-heading p{display:none}
/* Retoom studio refinement: clear hierarchy, quieter surfaces and visible tools. */
:root{--accent:#d1fa98;--mint:#d1fa98;--bg:#0d1113;--panel:#161c1f;--line:#30383b;--muted:#98a4a9}
body{background:radial-gradient(ellipse at 15% 0,#202b2729,transparent 55%),#0c1012}header{background:#0e1415ed;backdrop-filter:blur(20px)}.brand-icon{box-shadow:0 0 22px #cefa9820}.brand{letter-spacing:-1.3px}.workspace-head h1{font-size:clamp(24px,2.2vw,34px);font-weight:700;line-height:1.15}.workspace-head p{font-size:12px;line-height:1.65;color:#9eabad}.workspace-head .eyebrow{font-size:8px;letter-spacing:2px;color:#90a281}.upload{background:linear-gradient(130deg,#deffb4,#c7f78b);color:#1d2b12;border:0;box-shadow:0 5px 25px #c3fa9120;border-radius:13px;min-height:48px;padding:12px 20px}.editor-card{position:relative;background:#0b1011;border-radius:18px;border-color:#303a3c}.stage{padding:12px;background:#080d0e;background-image:radial-gradient(ellipse at 50% 50%,#33463435,transparent 85%)}.photo-wrap{border-radius:12px}.image-toolbar{background:#11191bbd;border:0;gap:12px}.history-actions,.view-switch{background:#101819b8;border-color:#63705a3d;backdrop-filter:blur(18px)}.history-actions button{width:34px;height:32px}.view-switch .selected{background:#384433;color:#ecf7e0}.image-label{font-size:8px;letter-spacing:1.2px;padding:8px 10px;background:#0b1212c9;border-radius:9px}.focus-preview{position:absolute;right:24px;bottom:49px;width:38px;height:38px;display:grid;place-items:center;background:#111a18bd;border:1px solid #80906d55;border-radius:10px;backdrop-filter:blur(14px);z-index:4}.focus-preview svg{width:20px;height:20px}.focus-preview[aria-pressed=true]{background:#cafa96;color:#20321a}.image-footer{background:#101719;font-size:10px;padding:12px 16px}.controls{background:linear-gradient(150deg,#171e20,#101719);padding:20px 22px}.desktop-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:#0c1214;border-color:#293337;padding:5px;border-radius:13px}.desktop-tools button{min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:9px}.desktop-tools svg{width:19px;height:19px}.desktop-tools button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #b4d77a;background:linear-gradient(135deg,#35462a,#25301f);color:#edffd9}.controls-title{font-size:20px}.presets{gap:15px 12px}.preset-photo{height:125px;border-radius:12px}.preset strong{font-size:12px;margin-top:9px}.preset small{color:#97a898;letter-spacing:.4px;font-size:7px}.preset.selected .preset-photo{box-shadow:0 0 0 1px #d1fa9833,0 5px 16px #c8f4920c}.preset-filters{margin:15px 0}.preset-filters button{min-height:34px;border-radius:12px;background:#131b1e;border-color:#343e42;color:#abb6b9;padding:8px 10px}.preset-filters button[aria-pressed=true]{background:#263320;border-color:#c1eb80;color:#e1f6c6;box-shadow:0 0 12px #b7dd7212}.intensity-card,.skin-card{background:linear-gradient(140deg,#1c2526,#141d1f);border:1px solid #303d40;border-radius:14px;padding:17px 14px 12px;margin:21px 0 0}.intensity-card .slider-row{margin-bottom:5px}.intensity-card p{font-size:9px;color:#94ad81;margin:8px 0 0}.panel-actions{display:flex;gap:10px;margin:20px 0 0;padding:12px 0 2px;border-top:1px solid var(--line)}.panel-actions button{border:1px solid #3b474b;border-radius:11px;background:#181f22;min-height:43px;padding:10px 12px;font-size:11px}.panel-actions button:first-child{flex:1;color:#b8c5c5}.panel-actions button:last-child{flex:1.2;border-color:#b8e583;background:linear-gradient(120deg,#dcffa7,#c3ef87);color:#203014;font-weight:700}.section-line{font-size:16px}.slider-label{font-size:12px;color:#d1dbdc;margin-bottom:8px}.slider-label output{font-size:11px;background:#283234;color:#d6dfdc;border-radius:8px;padding:6px 8px}input[type=range]:not(#split){appearance:none;-webkit-appearance:none;height:26px;background-color:transparent;background-size:100% 4px;background-repeat:no-repeat;background-position:center;border-radius:4px;touch-action:pan-y}input[type=range]:not(#split)::-webkit-slider-runnable-track{height:4px;background:transparent;border:0;border-radius:4px}input[type=range]:not(#split)::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:19px;height:19px;margin-top:-7.5px;border:1px solid #f2f7ee;background:#f5f8f1;border-radius:50%;box-shadow:0 1px 8px #0005}input[type=range]:not(#split)::-moz-range-track{height:4px;background:transparent;border:0}input[type=range]:not(#split)::-moz-range-thumb{width:18px;height:18px;border:1px solid #eef3eb;background:#f7faf4;border-radius:50%}.advanced-group{background:#121a1c;border:1px solid #303b3f;border-radius:13px;padding:14px 12px;margin:16px 0}.advanced-group summary{font-size:13px;min-height:31px;font-weight:600}.advanced-group[open] summary{padding-bottom:12px;border-bottom:1px solid #2c373a;margin-bottom:16px}.skin-card .section-line{font-size:13px;margin-bottom:15px}.skin-card .small{font-size:10px;margin:10px 0 0}.majic-card{border-color:#5a7048;background:radial-gradient(ellipse at 100% 0,#425b3038,transparent 80%),#182119}.majic-heading h2{font-size:22px}.text-style-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 8px}.text-style-heading h3{font:600 14px Manrope;margin:0;letter-spacing:-.3px}.text-style-heading>span{font-size:7px;letter-spacing:1px;color:#9ab38a}.style-hint{font-size:10px;color:#839c93;margin:0 0 12px;line-height:1.6}.text-style-gallery{display:grid;grid-template-columns:1fr 1fr;gap:8px}.text-style-card{background:linear-gradient(135deg,#263029,#151d20);border:1px solid #364641;border-radius:11px;padding:8px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:85px;overflow:hidden}.text-style-card[aria-pressed=true]{border-color:#d0f69b;background:linear-gradient(135deg,#384b2c,#1d291e);box-shadow:0 0 0 1px #d0f69b22}.style-preview{display:block;font:700 14px 'Montserrat',sans-serif;text-align:center;max-width:100%;line-height:1.25;color:#f2f3e5;overflow-wrap:anywhere}.text-style-card small{font-size:8px;color:#9bb399}.style-cinema .style-preview,.style-gold .style-preview{font-family:'Cinzel',serif;font-size:12px;letter-spacing:1px}.style-gold .style-preview{color:#efce85;background:linear-gradient(#fff7d4,#d4a955,#f9e5a5);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.style-blockbuster .style-preview{font-family:'Anton',sans-serif;font-size:18px}.style-editorial .style-preview{font-family:'Playfair Display',serif;font-weight:400;font-size:17px}.style-neon .style-preview{font-family:'Oswald',sans-serif;color:#a9faff;text-shadow:0 0 8px #5fe9ff9c;letter-spacing:1px}.style-hollow .style-preview{font-family:'Bebas Neue',sans-serif;font-size:26px;color:transparent;-webkit-text-stroke:.6px #fff}.style-credits .style-preview{font-family:'Space Mono',monospace;font-size:9px;letter-spacing:1.5px;border-block:1px solid #919e83;padding-block:5px}.style-postcard .style-preview{font-family:'Caveat',cursive;font-size:20px;font-weight:400}.style-romantic .style-preview{font-family:'Great Vibes',cursive;font-size:24px;font-weight:400;color:#ffeadd}.style-vintage .style-preview{font-family:'Lora',serif;font-size:12px;color:#f6dfb6;letter-spacing:1px}.style-travel .style-preview{font-family:'Bebas Neue',sans-serif;font-size:18px;letter-spacing:1px}.style-label .style-preview{background:#070e0ca1;padding:5px;font-size:11px}.style-outline .style-preview{-webkit-text-stroke:.3px #e1eadc;text-shadow:1px 1px #000;font-size:13px}.canvas-focused .workspace-head,.canvas-focused .under-editor,.canvas-focused .image-footer{display:none}.canvas-focused .stage{height:calc(100dvh - 160px);max-height:none}.canvas-focused .focus-preview{bottom:22px}
@media(max-width:850px){
 html,body{height:auto;min-height:100dvh;overflow-x:clip;overflow-y:auto;overscroll-behavior-y:auto}header{position:sticky;top:0;z-index:20;height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 18px 0;border-bottom-color:#30393c;gap:14px}.brand{font-size:28px;gap:10px}.brand-icon{width:37px;height:37px;border-radius:11px;font-size:27px}header .button{min-height:39px;border:1px solid #3c484c;background:#192124;color:#f0f5ef;padding:9px 14px;border-radius:11px;box-shadow:none}main{height:auto;min-height:calc(100dvh - 64px);overflow:visible;display:block;max-width:680px;margin:auto}.workspace{padding:20px 15px 0;position:static;z-index:10;max-width:680px;background:#0d1315}.workspace-head{height:auto;min-height:75px;margin:0 0 19px;gap:12px;align-items:center}.workspace-head h1{display:block;font-size:clamp(18px,5.1vw,26px);letter-spacing:-.9px}.workspace-head p{display:block;font-size:10px;line-height:1.7;margin:7px 0 0;max-width:240px}.workspace-head .eyebrow{display:none}.workspace-head .upload{min-height:43px;font-size:11px;padding:10px 12px;gap:6px;box-shadow:0 5px 20px #cafa9817;border-radius:11px}.editor-card{border:1px solid #323f3b;border-radius:17px;overflow:hidden}.image-toolbar{height:49px;min-height:49px;background:#10191bd9;padding:7px 10px;position:relative;z-index:4}.history-actions{border-radius:8px;padding:1px}.history-actions button{height:28px;width:31px}.view-switch{padding:2px;border-radius:8px}.view-switch button{font-size:9px;padding:6px 9px}.stage{height:clamp(290px,53dvh,530px);min-height:0;max-height:none;padding:0;background:#080e0f}.photo-wrap{border-radius:0;box-shadow:none}.image-label{bottom:11px;border-radius:8px;font-size:7px;padding:7px 9px;letter-spacing:1px}.before-label{left:10px}.after-label{right:10px;max-width:75%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.focus-preview{right:13px;bottom:13px;width:34px;height:34px;border-radius:9px}.after-label{right:54px}.mobile-tools{position:static;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));left:auto;right:auto;bottom:auto;width:100%;height:65px;min-height:65px;margin:16px 0 0;padding:4px;border:1px solid #303b3e;border-radius:14px;background:linear-gradient(120deg,#171e21,#10171a);gap:3px}.mobile-tools button{gap:6px;min-height:53px;font-size:9px;border-radius:10px;color:#adb9bb}.mobile-tools button>svg{width:21px;height:21px}.mobile-tools button>span{font-size:9px;line-height:1}.mobile-tools button[aria-pressed=true]{border:1px solid #d1f99a;box-shadow:0 0 0 1px #cfef9e22,0 0 12px #c3ed7c0c;background:linear-gradient(135deg,#354729,#26301f);color:#efffe0}.controls{position:static;inset:auto;width:auto;height:auto;max-height:none;padding:23px 16px 24px;border:0;border-radius:0;overflow:visible;box-shadow:none;background:#0d1315}.controls:before{display:none}.controls .tool-panel{height:auto;overflow:visible;overscroll-behavior:auto;padding:0;min-width:0}.controls-title{display:flex;font-size:19px;line-height:1.5}.controls-title .mini-tag{font-size:8px}.preset-filters{margin:14px 0;gap:7px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:2px 0 3px}.preset-filters button{font-size:10px;min-height:34px;padding:8px 10px;border-radius:12px}.preset-filters span{font-size:6px;margin-left:3px}.controls .presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 10px;width:100%;height:auto;overflow:visible;padding:0;scroll-snap-type:none;touch-action:auto}.presets .preset{width:auto;min-width:0;max-width:none;height:auto;flex:initial;align-self:start}.presets .preset-photo{height:auto;aspect-ratio:3/4;width:100%;border-radius:11px;background-position:60% center;border-width:2px}.presets .preset strong{font-size:10px;white-space:normal;line-height:1.45;overflow-wrap:anywhere;margin:7px 0 0;font-weight:500}.presets .preset small{display:none}.presets .check{top:4px;right:4px}.intensity-card{padding:15px;margin-top:21px;border-radius:15px}.intensity-card .slider-label{font-size:12px}.panel-actions{gap:12px;padding:17px 0 0;margin-top:20px}.panel-actions button{min-height:48px;border-radius:13px;padding:12px;font-size:12px}.section-line{font-size:17px;margin-bottom:19px}.slider-label{font-size:12px;margin-bottom:8px}.slider-row{margin-bottom:19px}.slider-label output{font-size:11px;padding:6px 8px}.advanced-group{padding:14px;margin:16px 0;border-radius:14px}.advanced-group summary{font-size:13px;min-height:30px}.effect-head h2{font-size:17px}.effect-head p{font-size:11px}.effect-select{font-size:11px}.effect-select select,.export-grid select{font-size:14px;min-height:44px}.text-style-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.text-style-card{min-height:92px;padding:8px 6px}.style-preview{font-size:12px}.style-blockbuster .style-preview{font-size:17px}.style-editorial .style-preview{font-size:16px}.style-postcard .style-preview{font-size:19px}.style-romantic .style-preview{font-size:22px}.style-cinema .style-preview,.style-gold .style-preview{font-size:10px}.style-travel .style-preview{font-size:17px}.text-style-card small{font-size:8px}.majic-heading h2{font-size:21px}.majic-card{padding:16px}.depth-diagram{height:110px}.depth-diagram strong{top:29px}.depth-diagram i{bottom:-20px}.majic-card .small{font-size:11px}.majic-card.has-layer .majic-heading{margin-bottom:10px}.text-style-heading{margin-top:23px}.style-hint{font-size:11px}.effect-status{font-size:11px}.text-add{margin-top:20px}.text-add select{font-size:14px}.text-add button{min-height:44px}.text-actions button{min-height:42px}.text-options input[type=color]{height:44px}.auto-toggle,.depth-toggle{padding:14px;border-radius:12px}.depth-toggle small,.auto-toggle small{font-size:10px}.effect-select textarea{font-size:16px;min-height:90px}.image-footer,.under-editor{display:none}#toast{bottom:20px;max-width:92vw;padding:12px 16px;font-size:12px;z-index:35}
 body:not([data-tool=looks]) .workspace{position:sticky;top:calc(64px + env(safe-area-inset-top));padding-top:10px;background:#0d1315f7;backdrop-filter:blur(14px);padding-bottom:10px;border-bottom:1px solid #293637}
 body:not([data-tool=looks]) .workspace-head{display:none}body:not([data-tool=looks]) .stage{height:clamp(170px,34dvh,350px)}body:not([data-tool=looks]) .mobile-tools{margin-top:10px;height:61px;min-height:61px}body:not([data-tool=looks]) .mobile-tools button{min-height:49px}body:not([data-tool=looks]) .controls{padding-top:20px}
 body.canvas-focused .workspace{position:relative!important;top:auto!important;padding-top:10px}.canvas-focused .workspace-head{display:none}.canvas-focused .controls{display:none}.canvas-focused .stage,body.canvas-focused:not([data-tool=looks]) .stage{height:calc(100dvh - 230px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:100px}.canvas-focused .focus-preview{bottom:13px}.canvas-focused .mobile-tools{margin-bottom:10px}
}
@media(max-width:359px){.workspace{padding-inline:11px}.controls{padding-inline:12px}.workspace-head h1{font-size:18px}.workspace-head p{font-size:9px}.workspace-head .upload{font-size:10px;padding:10px 9px}.controls .presets{gap:13px 7px}.preset-filters button{font-size:9px}.text-style-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px) and (max-height:550px){header{height:calc(50px + env(safe-area-inset-top))}.workspace-head{min-height:60px;margin-bottom:12px}.stage{height:300px}body:not([data-tool=looks]) .workspace{position:static;top:auto}body:not([data-tool=looks]) .stage{height:230px}.canvas-focused .stage,body.canvas-focused:not([data-tool=looks]) .stage{height:calc(100dvh - 196px - env(safe-area-inset-top))}.mobile-tools{height:57px;min-height:57px}.mobile-tools button{min-height:45px}}
/* More cinematic titles and an explicit review-before-download flow. */
.export-step>span{font-size:8px;color:#b9d99c;letter-spacing:2px}.export-step h2{font:600 24px/1.15 Manrope,sans-serif;letter-spacing:-.8px;margin:10px 0}.export-step p{font-size:11px;line-height:1.6;color:#94a7a8;margin-bottom:18px}.export-targets{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:15px 0 20px}.export-targets button{border:1px solid #3c4d49;border-radius:9px;min-height:37px;font-size:10px;background:#172120;color:#bdcdbd}.export-targets button[aria-pressed=true]{border-color:#c8ee93;background:#303f25;color:#e6f9d3}.export-quality{border-top:1px solid #34403b;padding-top:17px;margin-bottom:18px}.export-quality p{color:#8d9f96;font-size:10px;line-height:1.6}.export-quality input:disabled{opacity:.35}.effect-select input[type=text]{width:100%;min-height:42px;border:1px solid #3d4846;border-radius:9px;background:#101817;color:#dce7dc;padding:11px;font-size:13px}.export-text-toggle{font-size:11px;min-height:38px}.export-review{padding:14px;border:1px solid #4c6340;border-radius:12px;background:#222f1e;margin:15px 0}.export-review strong{font-size:11px;color:#d8efc5}.export-review p{font:12px/1.6 monospace;color:#e4f6d4;margin:7px 0}.export-review small{font-size:9px;line-height:1.6;color:#9fb38f;display:block}.style-epic .style-preview,.style-fantasy .style-preview{font-family:'Cinzel',serif;font-size:11px;letter-spacing:1px;color:#e5cc8f}.style-fantasy .style-preview{color:#d3e9ef}.style-thriller .style-preview{font-family:'Anton',sans-serif;font-size:15px;letter-spacing:1px;color:#ff6556}.style-scifi .style-preview{font-family:'Space Mono',monospace;font-size:10px;color:#9ff4fa;text-shadow:0 0 6px #93e1ff80}.style-noirtitle .style-preview{font-family:'Oswald',sans-serif;font-size:17px;border:1px solid #d1d8c2;padding:3px 7px;color:#ebe7d8}.style-romcom .style-preview{font-family:'Playfair Display',serif;font-size:17px;font-weight:400;color:#ffe2cf}.style-western .style-preview{font-family:'Lora',serif;font-size:13px;letter-spacing:1px;color:#dfb57a;border-block:1px solid #c5aa7a;padding-block:4px}.style-indie .style-preview{font-family:'Montserrat',sans-serif;font-size:12px;font-weight:400}.style-actiontitle .style-preview{font-family:'Anton',sans-serif;font-size:20px;color:#fff0cf;text-shadow:2px 2px #192b2b}.style-horror .style-preview{font-family:'Bebas Neue',sans-serif;font-size:21px;letter-spacing:2px;color:#ed4949}.style-dreamtitle .style-preview{font-family:'Caveat',cursive;font-size:21px;font-weight:400;color:#ece0ff}.style-vhs .style-preview{font-family:'Space Mono',monospace;font-size:11px;text-shadow:-1px 0 #ef5fbb,1px 0 #66f4ff}.style-festival .style-preview{font-family:'Montserrat',sans-serif;font-size:8px;letter-spacing:1px;border:1px solid #d9e7ca;padding:5px}.style-sunsettitle .style-preview{font-family:'Oswald',sans-serif;font-size:19px;color:#ffb387;background:linear-gradient(#fff2b2,#ffac7d,#ed728b,#9b79ce);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.style-monolith .style-preview{font-family:'Anton',sans-serif;font-size:18px;color:#eee9d9}
@media(max-width:850px){.export-step h2{font-size:23px}.export-targets{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.export-targets button{font-size:9px;padding:7px 4px;min-height:40px}.effect-select input[type=text]{font-size:16px}.export-review p{font-size:11px}.style-epic .style-preview,.style-fantasy .style-preview{font-size:10px}.style-thriller .style-preview{font-size:13px}.style-vhs .style-preview{font-size:10px}.style-festival .style-preview{font-size:7px}.style-dreamtitle .style-preview{font-size:19px}.style-monolith .style-preview{font-size:15px}}
.local-edit-card{border:1px solid #42533d;border-radius:13px;padding:15px;margin:18px 0;background:linear-gradient(140deg,#242f20,#141e1b)}.local-edit-card .section-line{font-size:14px;margin-bottom:10px}.local-edit-card .section-line button{font-size:9px;min-height:26px}.local-edit-card>.small{font-size:10px;line-height:1.65;margin:0 0 13px}.local-edit-actions{display:flex;gap:7px;margin:12px 0 14px}.local-edit-actions button{flex:1;min-height:38px;padding:9px 7px;border:1px solid #5b7449;background:#34452a;color:#def2cc;border-radius:8px;font-size:10px}.local-edit-actions button[aria-pressed=true]{background:#c9ef9f;color:#203317}.background-edit{background:linear-gradient(140deg,#1e2c30,#131e20);border-color:#3d5759}.background-edit .local-edit-actions button{border-color:#496c70;background:#203e42;color:#c5e6e5}.background-edit .local-edit-actions button[aria-pressed=true]{background:#aadbe3;color:#15373e}.photo-wrap .background-selection{z-index:2;pointer-events:none}
@media(max-width:850px){.local-edit-card{padding:14px}.local-edit-card .section-line{font-size:14px}.local-edit-actions button{min-height:42px;font-size:11px}}
.about-menu-button{margin-left:auto;display:grid;place-items:center;width:37px;height:37px;flex-shrink:0;background:#1b2425;border:1px solid #42504a;border-radius:10px;color:#d7e9c8;font-size:23px}.under-eye-card{border:1px solid #655b47;background:#26241d;padding:13px;border-radius:11px;margin:20px 0 0}.under-eye-card summary{font-size:12px;color:#f0dab5}.under-eye-card .small{font-size:10px;line-height:1.65}.under-eye-card .local-edit-actions{flex-wrap:wrap}.under-eye-card .local-edit-actions button{font-size:9px;background:#3b3525;border-color:#75613e;color:#f5dfb4}.eye-overlays{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}.selecting-eyes{cursor:crosshair}.about-tabs{display:flex;gap:7px;padding:4px;background:#101816;border:1px solid #384b3b;border-radius:11px;margin:5px 0 20px}.about-tabs button{flex:1;min-height:39px;border-radius:8px;font-size:12px;color:#a4b69b}.about-tabs button[aria-pressed=true]{background:#354829;color:#e5f8d6}.about-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0}.about-stats span{border:1px solid #40543c;background:#222d20;border-radius:12px;padding:15px 8px;text-align:center;color:#9eb493;font-size:10px}.about-stats strong{display:block;font:700 28px Manrope,sans-serif;color:#d5f3ae;margin-bottom:6px}.free-plan{border:1px solid #93b96b;border-radius:16px;background:radial-gradient(ellipse at 100% 0,#4e6f3540,transparent 70%),#202b1d;padding:22px}.plan-tag{font-size:8px;letter-spacing:1.8px;color:#bbd99e}.free-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}.free-plan h3{font:700 30px Manrope,sans-serif;letter-spacing:-1px;margin:0;color:#e7f6d7}.free-plan-heading>span{font-size:8px;border:1px solid #67824f;color:#cde7b6;border-radius:5px;padding:5px}.free-price{font:700 56px Manrope,sans-serif!important;color:#e9f8d8!important;margin:10px 0!important}.free-price small{font:11px 'DM Sans',sans-serif;color:#aec69c}.free-plan ul{padding-left:19px;margin:18px 0 24px;display:grid;gap:11px;font-size:12px;line-height:1.6;color:#c2d1b8}.free-plan .button{width:100%}#aboutDialog{max-width:620px;max-height:88dvh;overflow-y:auto}#aboutOverviewPanel>.button{margin-top:12px}
@media(max-width:850px){header{gap:8px}.about-menu-button{width:33px;height:33px;font-size:21px;border-radius:9px}.about-stats{gap:7px}.about-stats span{font-size:9px;padding:12px 5px}.about-stats strong{font-size:24px}.free-plan{padding:17px}.free-plan ul{font-size:11px}.under-eye-card .local-edit-actions button{font-size:10px;min-height:39px}}
@media(max-width:359px){header{padding-inline:12px;gap:6px}.brand{font-size:23px;gap:8px}.brand-icon{width:29px;height:29px;font-size:22px}.about-menu-button{width:29px;height:31px}header .button{font-size:10px;padding:8px 10px;gap:8px}}
/* Personal previews and the local batch studio. */
.preview-status{font-size:11px;color:var(--muted,#99a4a3);margin:8px 0;min-height:14px}.batch-open{white-space:nowrap;background:#202827;border:1px solid #3b4542;color:#e5eade;padding:12px 15px}.workspace-head{gap:12px}.batch-entry{width:100%;padding:12px;text-align:left;border:1px solid #3c4936;border-radius:12px;background:#bff7790b;color:#c9ff94;margin-bottom:20px}
#batchDialog{width:min(820px,calc(100vw - 24px));max-height:90dvh;overflow-y:auto;box-sizing:border-box;padding:28px;background:#11191a;color:#eaf0ea;border:1px solid #3b4643;border-radius:24px}#batchDialog::backdrop{background:#020606c9;backdrop-filter:blur(8px)}.batch-intro{font-size:14px;line-height:1.65;color:#b3bfbb}.batch-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;margin:16px 0}.batch-settings>*{min-width:0}.batch-settings select{width:100%;box-sizing:border-box}.batch-note{font-size:11px;color:#9ba9a4;line-height:1.6}.batch-add-row{display:flex;align-items:center;gap:12px;margin:22px 0 12px}.batch-add-row .button{font-size:12px;padding:12px 14px}.batch-add-row span{font-size:12px;color:#bdc9c2}.batch-add-row>button{margin-left:auto;background:none;color:#b8c6be;border:0}.batch-list{display:grid;gap:8px;max-height:330px;overflow:auto}.batch-item{display:flex;align-items:center;gap:12px;padding:10px;background:#1b2323;border:1px solid #303b37;border-radius:12px;min-width:0}.batch-item img{width:58px;height:65px;object-fit:cover;border-radius:7px}.batch-item>div{min-width:0;flex:1}.batch-item strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch-item small{display:block;margin-top:6px;font-size:11px;line-height:1.5;color:#a3b0aa}.batch-item>button{background:none;border:0;color:#adb9b2;font-size:24px;padding:8px}.batch-item[data-status=ready]{border-color:#82ae4c}.batch-item[data-status=ready] small{color:#c7f291}.batch-item[data-status=error]{border-color:#9c655d}.batch-item[data-status=error] small{color:#e6aaa2}.batch-status{font-size:12px;color:#d5e9c1;min-height:18px}.batch-actions{display:flex;flex-wrap:wrap;gap:10px}.batch-actions .button{padding:14px 16px;font-size:12px}.batch-actions .button:disabled{opacity:.4;cursor:default}#batchDialog [hidden]{display:none!important}
@media(max-width:850px){.workspace-head{flex-wrap:nowrap}.workspace-head>div{min-width:0;flex:1}.workspace-head .batch-open{padding:8px 10px;font-size:10px}.workspace-head .upload{padding:8px 10px;font-size:10px}.workspace-head .eyebrow{display:none}#batchDialog{padding:20px 15px;border-radius:18px;max-height:94dvh}.batch-settings{gap:12px}.batch-actions .button{flex:1;min-width:145px}.batch-add-row{gap:8px}}
@media(max-width:370px){.workspace-head h1{font-size:14px}.workspace-head .upload span{display:none}.workspace-head{gap:6px}}
@media(max-width:420px){body .workspace-head>div{display:none}body .workspace-head .upload,body .workspace-head .batch-open{flex:1;justify-content:center;text-align:center}}
/* Collage studio keeps the composition visible while its tools scroll. */
#collageDialog{box-sizing:border-box;width:min(1160px,calc(100vw - 28px));height:min(850px,94dvh);max-height:94dvh;padding:24px;background:#111819;color:#eef4e9;border:1px solid #3a4741;border-radius:24px;overflow:hidden}#collageDialog::backdrop{background:#020706db;backdrop-filter:blur(9px)}#collageDialog[open]{display:flex;flex-direction:column}#collageDialog .dialog-head{flex-shrink:0;margin-bottom:18px}.collage-body{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px}.collage-preview{min-width:0;min-height:0;display:flex;flex-direction:column;background:#0b1112;border:1px solid #303c37;border-radius:16px;padding:16px}.collage-preview-bar{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#aebbb2;margin-bottom:12px}.collage-canvas-area{min-height:0;flex:1;position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden}.collage-canvas-area canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;touch-action:none;cursor:grab;box-shadow:0 10px 35px #0007}.collage-canvas-area canvas:active{cursor:grabbing}#collageEmpty{position:absolute;left:12%;right:12%;text-align:center;color:#374834;font-size:17px;pointer-events:none}.collage-preview-hint{font-size:10px;text-align:center;color:#9aa79d;margin:12px 0}.collage-photos{display:flex;gap:7px;overflow-x:auto;flex-shrink:0;min-height:58px;padding:3px}.collage-photo{position:relative;flex:0 0 52px;width:52px;height:52px;padding:2px;border:1px solid #425043;background:#1d281e;border-radius:8px}.collage-photo img{width:100%;height:100%;object-fit:cover;border-radius:5px}.collage-photo span{position:absolute;bottom:3px;left:3px;border-radius:3px;background:#101910d9;color:#fff;font-size:9px;min-width:14px}.collage-photo[aria-pressed=true]{border:2px solid #c4fb85}.collage-controls{min-width:0;overflow-y:auto;overscroll-behavior:contain;padding-right:8px;scrollbar-width:thin}.collage-controls h3{font-size:14px;margin:18px 0 12px}.collage-add{display:flex;gap:8px}.collage-add .button{flex:1;font-size:11px;padding:13px 8px;justify-content:center}.collage-templates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.collage-template{background:#1b2522;border:1px solid #38463c;border-radius:9px;min-width:0;padding:6px 4px;color:#b5c2b5}.collage-template svg{width:100%;max-height:55px;display:block;fill:#7a8e76}.collage-template span{display:block;font-size:8px;line-height:1.3;margin-top:4px;min-height:21px}.collage-template[aria-pressed=true]{border-color:#c4fb85;background:#2b3e28;color:#d6ffb0}.collage-template[aria-pressed=true] svg{fill:#c4fb85}.collage-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.collage-settings-grid>*{min-width:0}.collage-settings-grid select{width:100%}.collage-settings-grid input[type=color]{width:100%;height:37px;padding:3px;background:#212e24;border:1px solid #3b4a3b;border-radius:8px}.collage-framing{padding:0 12px 14px;background:#1a241e;border:1px solid #344333;border-radius:12px;margin-top:20px}.collage-framing h3{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collage-photo-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.collage-photo-actions button,.collage-organize button{font-size:10px;padding:9px;border:1px solid #45523e;border-radius:7px;background:#243024;color:#d5dfce}.collage-organize{display:flex;gap:8px;margin:12px 0 24px}.collage-export{width:100%;justify-content:center;padding:16px!important}.collage-controls button:disabled{opacity:.4;cursor:default}#collageDialog [hidden]{display:none!important}
@media(max-width:850px){body .workspace-head>div{display:none}body .workspace-head .upload,body .workspace-head .batch-open{flex:1;justify-content:center;text-align:center}#collageDialog{width:calc(100vw - 12px);height:96dvh;max-height:96dvh;padding:14px 12px;border-radius:18px}#collageDialog .dialog-head{margin-bottom:10px}#collageDialog .dialog-head h2{font-size:20px}.collage-body{display:flex;flex-direction:column;gap:10px}.collage-preview{flex:0 0 33%;min-height:150px;padding:8px;border-radius:12px}.collage-preview-bar{font-size:9px;margin:0 0 5px}.collage-preview-hint{font-size:9px;margin:5px 0}.collage-photos{min-height:36px;gap:6px;padding:1px}.collage-photo{flex-basis:33px;width:33px;height:33px;border-radius:5px}.collage-controls{flex:1;min-height:0;padding-right:3px}.collage-templates{display:flex;overflow-x:auto;padding-bottom:9px;scroll-snap-type:x proximity}.collage-template{flex:0 0 74px;scroll-snap-align:start;padding:7px}.collage-template span{font-size:9px}.collage-controls .section-line{margin-top:10px}.collage-controls .small{font-size:10px;margin:8px 0}#collageEmpty{font-size:13px}.collage-settings-grid{margin:14px 0}}
@media(max-width:850px) and (max-height:500px){.collage-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.collage-preview{height:auto;min-height:0}.collage-controls{min-height:0}}
#collageDialog{max-width:1160px}.collage-add label{cursor:pointer}
@media(min-width:851px) and (max-width:1150px){.workspace-head{flex-wrap:wrap}.workspace-head>div{flex:0 0 100%}.workspace-head .upload,.workspace-head .batch-open{flex:1}}
.subject-color-card{padding:16px;margin:22px 0;background:#1b2722;border:1px solid #384e3b;border-radius:14px}.subject-color-card h3{font-size:13px;margin:0}.subject-color-card .section-line>button{font-size:11px;color:#cafa98}.subject-color-actions{display:flex;gap:8px;flex-wrap:wrap}.subject-color-actions button{border:1px solid #44543d;border-radius:8px;padding:10px;font-size:10px;color:#d7e7c6;background:#263123}#collageCanvas{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#collageCanvas.reordering{cursor:grabbing}#collageReorder[aria-pressed=true]{background:#c5fa8b;color:#182610;border-color:#dcffbc}.collage-organize{flex-wrap:wrap}
.collage-creative-filter{display:block;width:100%;margin:0 0 10px;padding:10px;border:1px solid #5d7946;border-radius:8px;background:#283d23;color:#d4fda8;font-size:11px;text-align:left}.collage-creative-filter[aria-pressed=true]{background:#c8f997;color:#1f2e17}
