.leoImageStudioPage{height:100%;min-height:0;overflow:hidden}
.leoImageStudioPage .panelHead{align-items:flex-start;gap:14px}
.leoStudioHeaderBadges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:0}
.leoStudioBadge{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid rgba(0,229,255,.26);border-radius:999px;background:rgba(0,110,170,.12);color:#bfefff;font-size:11px;font-weight:800;line-height:1.2}
.leoStudioBadge[data-kind="dry"]{border-color:rgba(255,190,70,.34);background:rgba(125,77,0,.16);color:#ffe1a3}
.leoImageStudio{height:calc(100% - 84px);min-height:0;padding:0 18px 18px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.leoStudioLoading,.leoStudioError{display:grid;place-items:center;min-height:240px;color:#9fc7df;text-align:center}
.leoStudioShell{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(390px,1.35fr) minmax(280px,.83fr);gap:14px;min-width:0}
.leoStudioColumn{display:flex;flex-direction:column;gap:14px;min-width:0}
.leoStudioCard{min-width:0;padding:15px;border:1px solid rgba(0,173,255,.24);border-radius:18px;background:linear-gradient(160deg,rgba(5,25,50,.88),rgba(3,13,29,.84));box-shadow:inset 0 0 24px rgba(0,119,255,.045)}
.leoImageStudio .leoStudioCard h3{margin:0;background:none!important;color:#f4faff!important;-webkit-text-fill-color:#f4faff!important;text-shadow:0 1px 8px rgba(0,0,0,.38);font-size:15px}
.leoStudioCard p{margin:6px 0 0;color:#90a9c9;font-size:12px;line-height:1.45}
.leoStudioAttribution a{color:#7dd3fc;text-decoration-thickness:1px;text-underline-offset:2px}.leoStudioAttribution a:focus-visible{outline:2px solid #00e5ff;outline-offset:3px;border-radius:3px}
.leoStudioModes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.leoStudioMode,.leoStudioTool,.leoStudioAction{min-width:0;min-height:44px;padding:9px 10px;border:1px solid rgba(0,196,255,.2);border-radius:12px;background:rgba(3,29,57,.82);color:#ddecff;font-size:12px;font-weight:850;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.leoStudioMode:hover,.leoStudioTool:hover,.leoStudioAction:hover{transform:translateY(-1px);border-color:rgba(0,229,255,.55)}
.leoStudioMode[aria-pressed="true"],.leoStudioTool[aria-pressed="true"]{border-color:#00e5ff;background:rgba(0,135,190,.3);box-shadow:0 0 16px rgba(0,229,255,.16);color:#fff}
.leoStudioUpload{position:relative;display:grid;place-items:center;min-height:116px;margin-top:12px;padding:14px;border:1px dashed rgba(0,229,255,.45);border-radius:14px;background:rgba(0,84,130,.1);text-align:center;cursor:pointer}
.leoStudioUpload:focus-within{outline:2px solid rgba(0,229,255,.55);outline-offset:2px}
.leoStudioUpload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.leoStudioUpload strong{font-size:13px}.leoStudioUpload span{display:block;margin-top:5px;color:#86a8c6;font-size:11px}
.leoStudioAssetMeta{margin-top:9px;color:#8edaff;font-size:11px;overflow-wrap:anywhere}
.leoStudioCanvasFrame{position:relative;display:grid;place-items:center;min-height:360px;overflow:hidden;border:1px solid rgba(0,229,255,.2);border-radius:18px;background:linear-gradient(45deg,#061323 25%,#081a2e 25%,#081a2e 50%,#061323 50%,#061323 75%,#081a2e 75%);background-size:24px 24px;contain:layout paint}
.leoStudioCanvasEmpty{max-width:250px;color:#87a3c0;text-align:center;font-size:13px;line-height:1.5}
.leoStudioCanvasStack{position:relative;display:none;max-width:100%;max-height:540px;touch-action:none;user-select:none}
.leoStudioCanvasStack[data-ready="true"]{display:block}
.leoStudioCanvasStack img{display:block;max-width:100%;max-height:540px;object-fit:contain;border-radius:12px}
.leoStudioCanvasStack canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:12px;touch-action:none}
.leoStudioCanvasToolbar{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.leoStudioTool{flex:1 1 82px;padding-inline:8px}
.leoStudioSlider{display:grid;grid-template-columns:auto minmax(70px,1fr) auto;align-items:center;gap:8px;margin-top:10px;color:#9eb6d0;font-size:11px}
.leoStudioSlider input{width:100%;accent-color:#00d9ff}
.leoStudioLegend{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;color:#8ea8c4;font-size:11px}
.leoStudioLegend i{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:50%;background:#ff546f;box-shadow:0 0 8px rgba(255,84,111,.6)}
.leoStudioLegend span:last-child i{background:#42f5b0;box-shadow:0 0 8px rgba(66,245,176,.6)}
.leoStudioField{display:block;margin-top:12px;color:#acc4dd;font-size:11px;font-weight:750}
.leoStudioField textarea,.leoStudioField select,.leoStudioField input[type="text"],.leoStudioField input[type="number"]{display:block;width:100%;min-width:0;margin-top:6px;border:1px solid rgba(0,174,255,.25);border-radius:12px;background:rgba(1,11,25,.82);color:#f5faff;outline:none}
.leoStudioField textarea{min-height:92px;padding:11px;resize:vertical;line-height:1.45}
.leoStudioField input[type="text"],.leoStudioField input[type="number"],.leoStudioField select{min-height:44px;padding:8px 10px}
.leoStudioField textarea:focus,.leoStudioField select:focus,.leoStudioField input:focus{border-color:rgba(0,229,255,.72);box-shadow:0 0 0 3px rgba(0,229,255,.08)}
.leoStudioPresetDetails{margin-top:8px;padding:9px 10px;border:1px solid rgba(0,229,255,.2);border-radius:10px;background:rgba(0,126,175,.1);color:#b8ddeb;font-size:10px;line-height:1.5}
.leoStudioPresetDetails[hidden]{display:none}
.leoStudioFormGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.leoStudioAdultControls{margin-top:12px;padding:12px;border:1px solid rgba(211,152,255,.32);border-radius:14px;background:linear-gradient(145deg,rgba(72,23,100,.2),rgba(6,24,46,.72))}
.leoStudioAdultControls[hidden]{display:none}.leoStudioAdultControls>strong{color:#f3dcff;font-size:12px}.leoStudioAdultControls>p{color:#c1acd1}
.leoStudioLaneLock{margin-top:10px;padding:9px;border-radius:10px;background:rgba(0,206,255,.08);color:#9fdff0;font-size:10px;line-height:1.45}
.leoStudioCheck{display:flex;align-items:flex-start;gap:8px;margin-top:10px;color:#a7bfd8;font-size:11px;line-height:1.4}
.leoStudioCheck input{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:#00d9ff}
.leoStudioPrimary{width:100%;min-height:48px;margin-top:14px;border:1px solid rgba(0,229,255,.65);border-radius:14px;background:linear-gradient(135deg,#007fc9,#004d9f);color:white;font-weight:950;box-shadow:0 8px 24px rgba(0,104,211,.22)}
.leoStudioPrimary:disabled,.leoStudioAction:disabled{cursor:not-allowed;opacity:.48;transform:none}
.leoStudioNotice{margin-top:11px;padding:10px;border:1px solid rgba(255,195,80,.25);border-radius:11px;background:rgba(116,71,0,.14);color:#f3d9a2;font-size:11px;line-height:1.45}
.leoStudioPolicyResult{margin-top:10px;padding:11px;border:1px solid rgba(68,230,167,.3);border-radius:11px;background:rgba(15,108,76,.16);color:#b7f9da;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.leoStudioPolicyResult[hidden]{display:none}.leoStudioPolicyResult[data-result="blocked"]{border-color:rgba(255,86,112,.42);background:rgba(130,20,43,.2);color:#ffc2ce}
.leoStudioPlan{display:grid;gap:9px;margin-top:12px}
.leoStudioPlanRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.06);color:#92aac3;font-size:11px}
.leoStudioPlanRow strong{color:#edf7ff;text-align:right;overflow-wrap:anywhere}
.leoStudioState{display:inline-flex;align-items:center;min-height:27px;padding:4px 8px;border-radius:999px;background:rgba(0,166,255,.16);color:#8ce5ff;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.leoStudioJobList{display:grid;gap:9px;margin-top:12px}
.leoStudioJob{padding:11px;border:1px solid rgba(0,177,255,.18);border-radius:13px;background:rgba(2,15,31,.72)}
.leoStudioJobHead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.leoStudioJobTitle{min-width:0;color:#f2f8ff;font-size:12px;font-weight:850;overflow-wrap:anywhere}
.leoStudioJobMeta{margin-top:6px;color:#819bb5;font-size:10px;line-height:1.45}
.leoStudioJobActions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.leoStudioJobActions .leoStudioAction{min-height:38px;flex:1 1 82px;font-size:10px}
.leoStudioCompare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.leoStudioComparePane{display:grid;place-items:center;min-width:0;min-height:130px;overflow:hidden;border:1px solid rgba(0,181,255,.16);border-radius:13px;background:rgba(1,10,22,.65);color:#7690a8;font-size:11px;text-align:center}
.leoStudioComparePane img{display:block;width:auto;max-width:100%;height:auto;max-height:240px;object-fit:contain}
.leoStudioComparePane.zoom100{display:block;overflow:auto;place-items:unset}.leoStudioComparePane.zoom100 img{max-width:none;max-height:none;width:auto;height:auto}
.leoStudioReviewActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.leoStudioExport{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:8px}.leoStudioExport .leoStudioField{margin:0}.leoStudioExport .leoStudioAction{min-width:96px}
.leoStudioModal{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:rgba(0,5,15,.78);backdrop-filter:blur(8px)}
.leoStudioModal[hidden]{display:none}
.leoStudioModalCard{width:min(460px,100%);padding:20px;border:1px solid rgba(0,229,255,.36);border-radius:20px;background:#06172f;box-shadow:0 24px 70px rgba(0,0,0,.48)}
.leoStudioModalCard h3{margin:0;background:none!important;color:#f4faff!important;-webkit-text-fill-color:#f4faff!important}.leoStudioModalCard p{color:#a6bed6;line-height:1.5}
.leoStudioModalActions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.leoStudioModalActions button{flex:1 1 150px}
.leoStudioToast{position:fixed;z-index:13000;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));max-width:min(390px,calc(100vw - 36px));padding:12px 14px;border:1px solid rgba(0,229,255,.35);border-radius:13px;background:#071c35;color:#eaf8ff;box-shadow:0 15px 40px rgba(0,0,0,.42);font-size:12px;line-height:1.45}
@media(max-width:1120px){.leoStudioShell{grid-template-columns:minmax(270px,.85fr) minmax(380px,1.15fr)}.leoStudioColumn:last-child{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.leoStudioColumn:last-child .leoStudioCard:last-child{grid-column:1/-1}}
@media(max-width:760px){.leoImageStudioPage .panelHead{flex-direction:column}.leoStudioHeaderBadges{justify-content:flex-start}.leoImageStudio{height:calc(100% - 122px);padding:0 10px max(14px,env(safe-area-inset-bottom));scrollbar-gutter:auto}.leoStudioShell{grid-template-columns:1fr;gap:10px}.leoStudioColumn:last-child{grid-column:auto;display:flex}.leoStudioCard{padding:12px;border-radius:15px}.leoStudioCanvasFrame{min-height:280px}.leoStudioModes{grid-template-columns:repeat(2,minmax(0,1fr))}.leoStudioCompare{grid-template-columns:1fr}.leoStudioFormGrid{grid-template-columns:1fr}.leoStudioMode,.leoStudioTool,.leoStudioAction,.leoStudioPrimary{min-height:44px}.leoStudioCanvasStack img{max-height:440px}}
@media(max-width:390px){.leoStudioModes,.leoStudioReviewActions{grid-template-columns:1fr 1fr}.leoStudioMode{font-size:11px;padding-inline:6px}.leoStudioCanvasToolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.leoStudioTool{width:100%}.leoStudioCanvasFrame{min-height:230px}.leoStudioExport{grid-template-columns:1fr}.leoStudioExport .leoStudioAction{width:100%}}
@media(max-width:360px){body.leoImageStudioMode .app{width:calc(100vw - 10px)!important;max-width:calc(100vw - 10px)!important;min-width:0!important;margin-inline:auto!important}body.leoImageStudioMode .topbar,body.leoImageStudioMode .tabs,body.leoImageStudioMode .main,body.leoImageStudioMode #imagesPage,body.leoImageStudioMode .leoImageStudioPage{width:100%!important;max-width:100%!important;min-width:0!important}.leoStudioBadge{max-width:100%;overflow-wrap:anywhere}}
@media(orientation:landscape) and (max-height:500px){.leoImageStudio{height:calc(100% - 78px)}.leoImageStudioPage .panelHead{padding-block:8px}.leoImageStudioPage .panelHead .titleBlock p,.leoStudioHeaderBadges{display:none}.leoStudioShell{grid-template-columns:minmax(240px,.8fr) minmax(360px,1.2fr)}.leoStudioColumn:last-child{grid-column:1/-1}.leoStudioCanvasFrame{min-height:245px}.leoStudioCanvasStack img{max-height:320px}}
@media(prefers-reduced-motion:reduce){.leoImageStudio *{scroll-behavior:auto!important;transition:none!important}}
.leoStudioAxisLabel{display:block;margin:.9rem 0 .35rem;color:var(--muted,#9aa4b6);font-size:.78rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.leoStudioConsentActions{display:flex;flex-wrap:wrap;gap:.55rem;margin:.75rem 0}
.leoStudioConsentLink{display:inline-flex;margin:.35rem 0 .75rem;overflow-wrap:anywhere;color:#7dd3fc}
.leoStudioAnatomyWarning{border:1px solid rgba(251,191,36,.5);border-radius:.75rem;padding:.75rem;background:rgba(251,191,36,.1);color:#fde68a}
.leoStudioHoldConsent{width:100%;min-height:3.4rem;touch-action:none;user-select:none;-webkit-user-select:none}
.leoStudioGlbCanvas{width:100%;min-height:360px;border-radius:.8rem;background:#09101b;cursor:grab;touch-action:none}
.leoStudioGlbCanvas:active{cursor:grabbing}
