/* Luma 0.3. Photo-first mobile studio, informed by Lensa's editing layout. */
:root{color-scheme:dark;--bg:#141414;--paper:#202020;--ink:#f4f4f1;--muted:#adada8;--line:#343432;--green:#f4dc57;--soft:#2a2a26;--error:#f5a29a;--radius:18px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Microsoft YaHei",sans-serif}
body{background:#0d0d0d}button,a,label,input,select,textarea{touch-action:manipulation}button{transition:background .16s,border-color .16s}button:disabled{opacity:1;background:#343431;color:#91918c;border-color:#343431;box-shadow:none}button:active:not(:disabled){filter:brightness(.92)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,label:focus-within,summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}.symbol{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 auto}.symbol svg{width:100%;height:100%;display:block}.app-shell{width:min(100%,480px);background:var(--bg);padding-bottom:102px;box-shadow:none;overflow-x:clip}.page{padding:0 20px 28px}h1{font-family:inherit;font-size:28px;font-weight:650;line-height:1.14;letter-spacing:-.8px;text-wrap:balance}h2{font-size:18px;line-height:1.35;font-weight:600;letter-spacing:-.2px}h3{margin:0}p{overflow-wrap:anywhere}.lead{font-size:14px;line-height:1.6;color:var(--muted);margin-top:10px}.eyebrow{font-size:11px;letter-spacing:1.1px;color:var(--muted);line-height:1.5}.fine{font-size:12px;line-height:1.6;color:var(--muted)}
.topbar{padding:20px 20px 21px;gap:12px}.brand{font-family:inherit;font-size:26px;font-weight:750;letter-spacing:-1px;gap:8px;color:var(--ink)}.brand>.symbol{width:25px;height:25px;border-radius:0;background:none;color:var(--green);margin:0}.brand>span:last-child{margin-inline-start:-6px;color:var(--green)}.top-actions{gap:8px}.language-control select{font-size:12px;max-width:108px;min-height:44px;color:var(--muted);padding-inline:4px}.wallet{min-width:51px;min-height:44px;padding:8px 10px;border-radius:12px;border:1px solid #3e3e38;background:#292924;gap:5px}.wallet>.symbol{width:16px;height:16px;color:var(--green)}.wallet b{font-size:13px;font-weight:600}
.primary,.secondary{min-height:52px;padding:14px 17px;border-radius:13px;font-size:14px;line-height:1.45;gap:10px;font-weight:650;box-shadow:none}.primary{background:var(--green);border:1px solid var(--green);color:#171711}.primary .symbol:last-child{width:19px;height:19px;margin-inline-start:auto}.secondary{background:#252525;border:1px solid #40403d;color:var(--ink);font-weight:500}.primary.small{min-height:44px}.text-button,.inline-link{min-height:44px;background:none;font-size:13px;line-height:1.5;color:var(--muted);padding:10px 0}.inline-link{display:inline-flex;align-items:center;color:var(--green);font-size:inherit}.back{margin:0 0 14px;min-height:44px;gap:9px}.icon-button{display:grid;place-items:center;min-width:44px;min-height:44px;background:#272727;border:1px solid #383835;border-radius:12px;color:var(--ink);font-size:20px;flex:0 0 auto}
.studio-intro{margin:0 0 20px}.studio-intro>p{color:var(--muted);font-size:11px;letter-spacing:1.15px;line-height:1.5;text-transform:uppercase;margin-bottom:7px}.studio-intro h1{max-width:300px;font-size:29px;line-height:1.15;font-weight:600}.feature-cover{position:relative;height:264px;overflow:hidden;border-radius:21px;background:#30302c}.feature-cover>img{width:100%;height:100%;object-fit:cover;object-position:50% 29%;display:block}.feature-cover:after{position:absolute;content:"";inset:0;background:linear-gradient(90deg,#090909db 0%,#09090987 43%,transparent 85%),linear-gradient(0deg,#08080870,transparent 60%)}.feature-content{position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:24px 19px;z-index:1;color:#fff;max-width:250px}.sample-label{font-size:11px;color:#f3f3ed;background:#17171790;padding:5px 8px;border-radius:6px;line-height:1.3}.feature-content .sample-label{margin-bottom:36px}.feature-content h2{font-size:25px;line-height:1.12;max-width:180px;font-weight:600}.feature-content>p{font-size:12px;line-height:1.5;margin-top:9px;color:#e1e1dd;max-width:175px}.feature-content>.primary{width:auto;min-width:146px;min-height:47px;margin-top:17px;font-size:13px;padding:11px 14px}.quota-strip{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 0;margin:0 0 22px;border-bottom:1px solid var(--line)}.quota-strip>span{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;line-height:1.4}.quota-strip strong{color:var(--ink)}.quota-strip .symbol{width:16px;height:16px;color:var(--green)}.quota-strip .text-button{color:var(--green);font-size:12px;flex-shrink:0}.home-group{margin:0 0 25px}.section-title{gap:12px;margin-bottom:13px}.section-title h2{font-size:18px}.section-title>span{font-size:12px;color:#858580;font-variant-numeric:tabular-nums}.home-tools{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(134px,40%);gap:11px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:4px;scrollbar-width:none}.home-tools::-webkit-scrollbar{display:none}.tool-card{position:relative;display:flex;flex-direction:column;min-height:0;padding:0;border:0;background:none;border-radius:0;text-align:start;overflow:hidden;scroll-snap-align:start;min-width:0}.card-photo{position:relative;display:block;height:166px;width:100%;border-radius:14px;overflow:hidden;background:#353530}.card-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 28%}.card-photo .sample-label{position:absolute;bottom:7px;inset-inline-start:7px;font-size:10px;max-width:calc(100% - 14px)}.tool-text{display:flex;flex-direction:column;gap:5px;padding:11px 1px 3px;min-width:0}.tool-text strong{font-size:14px;line-height:1.35;font-weight:600}.tool-text small{color:var(--muted);font-size:12px;line-height:1.45;font-weight:400;max-width:100%}.document-tools{display:block;overflow:visible}.document-tools .tool-card{display:flex;flex-direction:row;align-items:center;gap:15px;padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:15px;width:100%}.document-tools .card-photo{width:69px;height:84px;flex:0 0 69px;border-radius:10px}.document-tools .sample-label{font-size:9px;inset-inline:4px;bottom:4px;text-align:center;padding:3px}.document-tools .tool-text{padding:0}.privacy-promise{display:grid;grid-template-columns:22px 1fr;gap:5px 8px;margin:19px 0 8px}.privacy-promise>.symbol{width:18px;height:18px;color:var(--muted)}.privacy-promise p{font-size:12px;line-height:1.65;color:var(--muted)}.privacy-promise>button{grid-column:2;text-align:start;margin:0}.app-footer{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.app-footer button{min-height:44px;padding:8px 0;background:transparent;color:var(--muted);font-size:12px;line-height:1.4}.app-footer>span{color:#696963}
.bottom-nav{padding:8px 13px max(10px,env(safe-area-inset-bottom));border-top:1px solid #333330;background:#1b1b1bf5;backdrop-filter:blur(14px);box-shadow:none}.bottom-nav>div{gap:5px}.bottom-nav button{border-radius:13px;padding:9px 2px;min-height:60px;gap:5px;font-size:10.5px;line-height:1.4;color:#9c9c97;font-weight:500}.bottom-nav .symbol{width:22px;height:22px}.bottom-nav [aria-current=page]{background:#f4dc5712;color:var(--green)}
.editor-heading{display:flex;align-items:center;gap:11px;margin:0 0 18px}.editor-heading>div{min-width:0;flex:1}.editor-heading p{font-size:11px;color:var(--muted);line-height:1.4;margin-bottom:4px}.editor-heading h1{font-size:22px;line-height:1.2;letter-spacing:-.5px}.editor-heading .result-ai-label{font-size:11px;letter-spacing:.6px;border:1px solid #565646;border-radius:7px;padding:6px 8px;color:var(--green)}.editor-stage{position:relative;overflow:hidden;min-height:210px;max-height:340px;aspect-ratio:4/3;border-radius:17px;background:#252523;margin-bottom:17px}.editor-stage>img{width:100%;height:100%;object-fit:cover;display:block;object-position:50% 27%}.editor-stage.has-photo>img{object-fit:contain}.editor-stage>.sample-label{position:absolute;bottom:11px;inset-inline-start:11px}.editor-panel{padding:17px 14px;border-radius:17px;background:var(--paper);border:1px solid #333331;margin-bottom:9px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.panel-title h2{font-size:15px;line-height:1.4}.panel-title>span{font-size:11px;color:#a4a49b;line-height:1.4;text-align:end}.look-title{margin-top:22px}.uploads{gap:10px;margin:0}.upload-slot{background:#272726;border:1px dashed #5c5c52;border-radius:13px;overflow:hidden;min-width:0}.upload-choice{min-height:134px;padding:15px 9px 8px;gap:8px;position:relative}.upload-choice>.symbol{width:25px;height:25px;color:var(--green)}.upload-choice strong{font-size:13px;line-height:1.35}.upload-choice small{font-size:11px;line-height:1.4;color:var(--muted)}.upload-choice img{height:137px;width:100%;object-fit:contain;border-radius:8px}.single .upload-choice{min-height:112px}.single .upload-choice img{height:90px}.upload-controls{gap:14px;padding:0 9px 5px}.camera-label,.upload-controls .text-button{min-height:44px;font-size:12px;padding:8px 0;gap:6px;line-height:1.4;color:var(--muted)}.camera-label .symbol{width:15px;height:15px}.has-photo{border-style:solid;border-color:#535349}.photo-guide,.photo-disclosure{border:1px solid #40403b;border-radius:11px;background:#252523;padding:0 12px;margin-top:14px}.photo-guide summary,.photo-disclosure summary{min-height:44px;padding:12px 0;color:var(--muted);font-size:12px;line-height:1.5;cursor:pointer}.photo-guide p,.photo-disclosure p{font-size:12px;line-height:1.65;color:#bfbfb5;padding-bottom:13px}.photo-disclosure .inline-link{font-size:12px}.photo-disclosure{margin-top:22px}.option-group{padding:0;border:0;margin:0 0 20px;min-width:0}.option-group legend{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-bottom:10px;font-size:12px;font-weight:500;color:var(--muted);line-height:1.5}.option-group legend small{font-size:10px;color:#92928b;font-weight:400}.choices{gap:8px;flex-wrap:wrap}.choices button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid #41413c;background:#282826;font-size:12px;color:#dbdbd3}.choices [aria-pressed=true]{background:#f4dc5715;border-color:var(--green);color:var(--green);font-weight:500;box-shadow:none}.preset-strip{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:1px 0 6px}.preset-strip .preset-option{padding:5px;border-radius:12px;display:flex;flex-direction:column;align-items:stretch;justify-content:start;flex:0 0 84px;min-height:132px;gap:7px;background:none;scroll-snap-align:start}.preset-option>span:last-child{font-size:11px;text-align:center;line-height:1.4;padding-bottom:2px}.preset-image{position:relative;display:block;overflow:hidden;border-radius:8px;height:90px;background:#30302b}.preset-image img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;display:block}.preset-selected{display:none;position:absolute;inset-inline-end:5px;top:5px;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--green);color:#12120d;font-size:12px}.preset-option[aria-pressed=true] .preset-selected{display:grid}.preset-warm img,.preset-film img{filter:sepia(.55) saturate(.8)}.preset-cinematic img{filter:contrast(1.3) saturate(.6)}.preset-editorial img{filter:grayscale(1) contrast(1.12)}.preset-painting img{filter:saturate(1.5) contrast(.9)}.background-swatch{display:inline-block;flex:0 0 13px;width:13px;height:13px;border-radius:50%;border:1px solid #7b7b75}.swatch-white{background:#eee}.swatch-blue{background:#6288b8}.swatch-red{background:#c26265}.swatch-neutral{background:#9d9a92}.swatch-dark{background:#171717}.swatch-outdoor{background:#577657}.consent{gap:10px;align-items:flex-start;margin-top:13px;padding:0;color:var(--muted);font-size:12px;line-height:1.7}.consent input{width:20px;height:20px;accent-color:var(--green);margin-top:3px;flex:0 0 auto}.consent .inline-link{min-height:24px;padding:1px 0}.draft-note{margin-top:16px;padding-top:13px;border-top:1px solid var(--line);font-size:11px;line-height:1.6;color:#9a9a92}.create-dock{position:fixed;bottom:82px;left:50%;transform:translateX(-50%);width:min(100%,480px);z-index:19;padding:13px 20px 11px;background:#1b1b1bf5;border-top:1px solid #383833;backdrop-filter:blur(14px)}.create-dock>.primary{margin-top:10px}.generation-cost{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:0;color:var(--muted);font-size:11px;line-height:1.5}.generation-cost span:last-child{color:var(--muted);text-align:end}.generation-cost strong{color:var(--ink);font-weight:600}.create-dock .fine{font-size:11px;margin-top:8px}.app-shell[data-view=tool] .page{padding-bottom:180px}.app-shell[data-view=tool] .bottom-nav{height:82px}
.uploads.multi-reference{display:flex;flex-direction:column;gap:20px}.reference-section{min-width:0}.reference-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.reference-heading h2{font-size:13px;font-weight:600}.reference-heading>span{color:var(--green);font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.reference-section>.fine{font-size:11px;margin:7px 0 12px;line-height:1.6}.reference-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.reference-thumb,.reference-add{position:relative;aspect-ratio:3/4;border-radius:11px;overflow:hidden;min-width:0;background:#30302b}.reference-thumb>img{display:block;width:100%;height:100%;object-fit:cover}.reference-thumb>span{position:absolute;inset:auto 0 0;padding:6px 4px;color:#fff;background:#181818d9;font-size:10px;text-align:center;line-height:1.4}.reference-remove{position:absolute;top:0;inset-inline-end:0;min-width:44px;min-height:44px;background:#1e1e1edb;color:#fff;font-size:22px;border-radius:0 0 0 10px}.reference-primary{position:absolute;bottom:24px;inset-inline:0;min-height:44px;padding:6px 4px;font-size:10px;background:#1d1d1dbc;color:#fff;line-height:1.4}.reference-add{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:12px 5px;text-align:center;border:1px dashed #656558;background:#292925;cursor:pointer}.reference-add .add{font-size:25px;color:var(--green)}.reference-add strong{font-size:11px;line-height:1.4;font-weight:500;color:var(--muted)}.reference-camera{display:flex;justify-content:center;align-items:center;gap:7px;font-size:12px;min-height:44px;color:var(--muted);cursor:pointer;margin-top:6px}.reference-camera .symbol{width:17px;height:17px}.reference-cost{font-size:12px;color:var(--muted);line-height:1.6;margin:14px 0}.upload-warning{font-size:12px;line-height:1.6;color:#e6ce89;background:#3c3526;padding:10px;border-radius:8px;margin:8px 0 0}
.result-stage{position:relative;margin-top:0;min-height:0;border-radius:17px;background:#282825;overflow:hidden}.result-stage>img{width:100%;height:auto;display:block}.result-empty{min-height:340px;gap:17px;color:var(--green);padding:30px 23px}.result-empty h2{font-size:18px}.result-empty p{font-size:13px;line-height:1.65;color:var(--muted)}.spinner{border-color:#535347;border-top-color:var(--green)}.compare-before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--compare)) 0 0);background:#282825;pointer-events:none}.compare-before img{display:block;object-fit:contain;width:100%;height:100%}.comparison-label{position:absolute;bottom:13px;background:#151515d6;border-radius:6px;font-size:11px;padding:5px 8px;color:#fff;pointer-events:none}.comparison-label.before{left:11px}.comparison-label.after{right:11px}.compare-divider{position:absolute;left:var(--compare);top:0;bottom:0;width:2px;background:#faf9ec;pointer-events:none}.compare-divider:after{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#faf9ec;color:#24241e;font-size:17px}.zoom-button{position:absolute;top:10px;inset-inline-end:10px;min-height:44px;min-width:44px;border-radius:11px;background:#1b1b1bdd;color:#fff;font-size:21px}.compare-control{margin-top:15px}.compare-control>label{display:block;font-size:12px;color:var(--ink)}input[type=range]{accent-color:var(--green);min-height:44px;width:100%;background:none;touch-action:pan-y}.compare-control p{font-size:11px;line-height:1.6;color:var(--muted)}.compare-upload{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:10px;margin-top:13px;color:var(--muted);font-size:12px;cursor:pointer}.result-meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px;margin-top:18px}.result-meta>span:last-child{font-variant-numeric:tabular-nums}.result-controls{display:flex;justify-content:center;gap:17px;flex-wrap:wrap;margin-top:16px}.result-controls button{font-size:12px}.task-receipt{font-size:10px;line-height:1.5;color:#909088;overflow-wrap:anywhere;margin-top:12px}.danger-text{color:#f3a79b!important}.danger-card{background:#3c2926;border:1px solid #69473f;border-radius:16px;padding:18px;margin-top:16px}.primary.danger{background:#b25340;border-color:#b25340;color:#fff}.danger-card>.secondary{background:#30231f}.notice{border:1px solid #54533d;background:#343324;border-radius:13px;color:#ded8ab;font-size:12px;line-height:1.65;padding:15px}.notice p{margin-top:8px}.notice bdi{overflow-wrap:anywhere}.toast{background:#ece8d8;color:#27251c;border-radius:13px;bottom:103px;font-size:13px;line-height:1.6;box-shadow:0 4px 22px #0004}.background-task{display:flex;align-items:center;gap:10px;width:calc(100% - 40px);padding:13px;margin:0 20px 17px;min-height:64px;border:1px solid #55513b;border-radius:13px;background:#2d2b21;color:var(--ink);text-align:start}.background-task>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.background-task strong{font-size:12px;line-height:1.4}.background-task small{font-size:11px;color:var(--muted);line-height:1.4}.background-task .spinner{width:22px;height:22px;display:block}.background-task>.symbol{width:19px;height:19px;color:var(--green)}
#imageViewer{width:min(100%,480px);max-width:100%;max-height:90dvh;padding:16px;border:1px solid #494940;border-radius:17px;background:#151515;color:var(--ink)}#imageViewer::backdrop{background:#000c}.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:14px}.viewer-image{overflow:auto;max-height:62dvh;display:block;margin-top:15px}.viewer-image>img{display:block;width:100%;height:auto;max-width:none;transform-origin:center}.viewer-controls{display:flex;align-items:center;gap:10px;margin-top:12px}.viewer-controls label{font-size:12px}.viewer-controls input{flex:1}.viewer-controls span{font-size:12px;min-width:32px}
.field{gap:9px;margin-top:23px}.field label{font-size:13px}.field input,.field select,.field textarea{min-height:52px;border-radius:13px;background:#272726;border:1px solid #45453f;color:var(--ink);font:inherit;font-size:16px;padding:13px;width:100%;resize:vertical}.field small{font-size:12px;color:var(--muted);line-height:1.6}.balance{background:#292820;border:1px solid #53503a;border-radius:18px;padding:24px;margin:25px 0 20px}.balance strong{font-family:inherit;font-size:46px;font-weight:600;line-height:1.1;color:var(--green)}.plan{border-radius:14px;background:var(--paper);border:1px solid #414139;padding:21px 17px;min-height:88px}.plan[aria-pressed=true]{border:1px solid var(--green);padding:21px 17px;background:#f4dc570e}.plan>bdi{font-family:inherit;font-size:23px}.plans{gap:11px}.profile-card{display:flex;align-items:center;gap:14px;margin:27px 0}.profile-card .avatar{width:60px;height:60px;margin:0;background:#343327;color:var(--green);font-size:20px}.profile-card>div:last-child{min-width:0}.profile-card .lead{font-size:13px;margin-top:5px;overflow-wrap:anywhere}.account-list{border:1px solid #373733;background:var(--paper);border-radius:16px;padding:0 17px;margin-top:20px}.account-list>button,.account-row{min-height:61px;gap:12px;font-size:13px;line-height:1.5;padding:16px 0}.account-list>button>.symbol{width:18px;height:18px;color:var(--green)}.account-list>button>span:last-child{margin-inline-start:auto}.order small{font-size:11px}.trust-emblem{display:grid;place-items:center;width:64px;height:64px;margin-top:26px;border-radius:50%;background:#363323;color:var(--green)}.trust-emblem>.symbol{width:28px;height:28px}.policy-sections{margin-top:25px}.policy-sections section{border-top:1px solid var(--line);padding:22px 0}.policy-sections h2{font-size:20px;font-weight:500}.policy-sections p{font-size:14px;line-height:1.85;margin-top:11px;color:var(--muted);overflow-wrap:anywhere}.creation-grid{gap:12px}.creation{border-radius:15px;background:var(--paper);border-color:#383833}.creation strong{font-size:13px}.creation small{font-size:11px}.creation-placeholder .symbol{width:32px;height:32px}.empty-art,.empty>.symbol{color:var(--green)}.empty>.symbol{width:36px;height:36px}.empty{padding-top:48px}.legal-body{background:var(--bg)}.legal-document{max-width:760px;margin:auto;padding:35px 24px 70px}.legal-document>.brand{display:inline-flex;margin-bottom:35px}.legal-document h1{font-size:35px}.legal-document section{margin-top:27px}.legal-document h2{font-size:22px}.legal-document section p{font-size:15px;line-height:1.8;margin-top:12px;color:var(--muted)}.legal-links{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:35px;border-top:1px solid var(--line);padding-top:18px}.legal-links a{min-height:44px;font-size:13px;line-height:1.5;padding:10px 0}.legal-back{float:right;padding:10px;font-size:13px}
[dir=rtl] h1{font-family:inherit;letter-spacing:0}[dir=rtl] .primary .symbol:last-child{transform:scaleX(-1)}
.home-tools.pair-tools{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}

/* Compact flow: one entry per tool, one photo preview, comfortable tap targets. */
.topbar{padding:14px 16px;justify-content:space-between;min-height:66px}
.brand{font-size:24px}.page{padding:0 16px 22px}
.home-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-heading h1{font-size:23px}.home-heading small{font-size:11px;color:var(--muted)}
.quota-strip{padding:10px 0;margin-bottom:14px;min-height:40px}
.home-tools.compact-grid{display:grid;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;overflow:visible;padding:0}
.compact-grid .card-photo{height:auto;aspect-ratio:1.25;border-radius:13px}
.compact-grid .tool-text{gap:4px;padding:8px 0 0}.compact-grid .tool-text small{font-size:11px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.editor-heading{margin-bottom:12px;gap:10px}.editor-heading>h1{flex:1;font-size:21px;line-height:1.3;min-width:0}
.editor-panel{padding:12px;border-radius:14px}.uploads{gap:8px}
.upload-choice{min-height:104px;padding:12px 8px 6px;gap:6px}.upload-choice img{height:160px}
.single .upload-choice{min-height:96px}.single .upload-choice img{height:200px}
.upload-controls{padding:0 8px;gap:12px}.upload-controls .text-button,.camera-label{padding:8px 0}
.photo-guide,.photo-disclosure{margin-top:10px;padding-inline:10px}
.photo-guide p,.photo-disclosure p{padding-bottom:10px}
.option-group{margin:14px 0 0}.option-group legend{margin-bottom:7px}
.choices{gap:6px}.choices button{padding:9px 11px;min-height:44px}
.output-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.output-options label{display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--muted);font-size:12px}
.output-options select,.account-row select{min-height:44px;border:1px solid #484844;border-radius:10px;background:#282826;color:var(--ink);font-size:16px;padding:8px 10px;width:100%;min-width:0}
.output-options select:disabled{opacity:1;color:var(--muted)}.output-note{margin-top:8px;font-size:11px}
.beauty-controls{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}.beauty-control{display:block;margin:12px 0}.beauty-control>span{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.beauty-control b{color:var(--green);font-variant-numeric:tabular-nums;font-weight:600}.beauty-control input{width:100%;margin-top:4px}
.consent{margin-top:10px;min-height:44px;align-items:center;gap:8px}.consent input{margin:0}
.consent .inline-link{min-height:44px;padding:0 4px;margin-inline:-4px}
.create-dock{bottom:calc(72px + env(safe-area-inset-bottom,0px));padding:10px 16px;background:#1b1b1bf5}
.create-dock>.primary{margin-top:7px;min-height:48px;padding:11px 14px}
.app-shell[data-view=tool] .page{padding-bottom:calc(122px + env(safe-area-inset-bottom,0px))}
.app-shell[data-view=tool] .bottom-nav{height:calc(72px + env(safe-area-inset-bottom,0px))}
.bottom-nav{padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px))}
.bottom-nav button{min-height:58px;padding:7px 2px;gap:4px}
.app-shell{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
.background-task{width:calc(100% - 32px);margin:0 16px 12px;padding:8px 10px;min-height:44px;gap:9px;border-radius:10px}
.background-task>.spinner{width:16px;height:16px;border-width:2px;flex:0 0 auto}
.background-task>strong{font-size:12px;font-weight:500}.background-task>span:last-child{margin-inline-start:auto;display:flex;align-items:center;gap:5px;font-size:11px}.background-task .symbol{width:16px;height:16px}
.profile-card{margin:12px 0 16px;gap:12px}.profile-card .avatar{width:48px;height:48px;font-size:18px}
.account-list{margin-top:14px;padding-inline:14px;border-radius:13px}
.account-list>button,.account-row{min-height:52px;padding:11px 0;font-size:13px;gap:10px}
.account-row select{width:auto;max-width:65%;margin-inline-start:auto;font-size:14px;border:0;text-align:end;background:transparent}
.lead{margin-top:8px}.reset-note{margin:12px 0}.balance{margin:14px 0;padding:16px;gap:5px}
.balance strong{font-size:36px}.plans{gap:8px}.plan,.plan[aria-pressed=true]{padding:14px;min-height:70px}.plan>bdi{font-size:22px;font-family:inherit}
.result-actions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px;margin-top:12px}
.result-actions>.primary,.result-actions>.secondary{margin:0;min-height:48px;padding:11px 12px}
.result-video{display:block;width:100%;height:auto;max-height:620px;background:#090909}.video-stage{background:#090909}
.upload-choice video{display:block;width:100%;height:137px;object-fit:contain;border-radius:8px;background:#111}
.result-menu{border-top:1px solid var(--line);margin-top:12px}.result-menu>summary{min-height:44px;padding:12px 0;font-size:12px;color:var(--muted);cursor:pointer}
.result-menu .result-controls{margin:0;justify-content:space-between;gap:8px}.result-menu .task-receipt{margin:0 0 10px}
.result-meta{margin-top:12px}.compare-control{margin-top:10px}
.creation-grid{margin-top:14px;gap:10px}.creation{padding-bottom:10px}.creation strong{margin-top:8px}.creation small{margin-top:4px}
.field{margin-top:14px;gap:7px}.policy-sections{margin-top:16px}.policy-sections section{padding:16px 0}.policy-sections h2{font-size:17px}.policy-sections p{font-size:13px;line-height:1.75}
.notice{padding:12px;margin-top:12px}.order{padding:14px 0}.empty{padding:32px 12px 20px;gap:12px}
@media(max-width:359px){.topbar{padding:12px 14px}.page{padding-inline:14px}.compact-grid .tool-text strong{font-size:13px}.compact-grid .tool-text small{font-size:10.5px}.editor-heading>h1{font-size:20px}.create-dock{padding-inline:14px}}
.reference-thumb{aspect-ratio:auto;display:flex;flex-direction:column}.reference-thumb>img{height:112px;flex:0 0 112px}.reference-thumb>span{position:static;min-height:30px;display:grid;place-items:center}.reference-primary{position:static;width:100%;border-top:1px solid #505047}.reference-add{min-height:142px;aspect-ratio:auto;align-self:start}.viewer-controls label{flex:0 1 auto;overflow-wrap:anywhere}.panel-title{flex-wrap:wrap}.generation-cost{flex-wrap:wrap}.consent{min-height:44px}
.reference-gallery{align-items:start}.bottom-nav,.app-shell[data-view=tool] .bottom-nav{height:calc(82px + env(safe-area-inset-bottom,0px));padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}.create-dock{bottom:calc(82px + env(safe-area-inset-bottom,0px))}.app-shell[data-view=tool] .page{padding-bottom:calc(180px + env(safe-area-inset-bottom,0px))}.app-shell{padding-bottom:calc(102px + env(safe-area-inset-bottom,0px))}
@media(min-width:600px){.app-shell{margin:24px auto;min-height:calc(100dvh - 48px);border-radius:24px 24px 0 0;border:1px solid #282825}.feature-cover{height:280px}.home-tools{grid-auto-columns:calc((100% - 22px)/3)}.card-photo{height:175px}.feature-content h2{font-size:27px}.feature-content{max-width:280px}.studio-intro h1{font-size:32px}.topbar{padding-top:26px}}
@media(max-width:359px){.topbar{padding:18px 16px;gap:7px}.brand{font-size:23px;gap:5px}.top-actions{gap:4px}.language-control select{max-width:90px}.wallet{min-width:45px}.page{padding-inline:16px}.studio-intro h1{font-size:26px}.home-tools{grid-auto-columns:132px}.feature-cover{height:248px}.feature-content{padding:19px 15px}.editor-heading h1{font-size:20px}.editor-panel{padding:15px 12px}.reference-gallery{gap:6px}.create-dock{padding-inline:16px}.generation-cost{font-size:10px}.bottom-nav button{font-size:10px}.upload-choice strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){button{transition:none}.spinner{animation:none}}

/* Quiet focus and native control treatment for the compact mobile surface. */
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
label:focus-within{outline:none}
select{color-scheme:dark;appearance:none;background-color:#282826;border:1px solid #484844;background-image:linear-gradient(45deg,transparent 50%,#a9aa9f 50%),linear-gradient(135deg,#a9aa9f 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-inline-end:28px!important}
select:focus-visible{outline:2px solid var(--green);outline-offset:1px}
select option{background:#282826;color:#f4f4f1}
.account-row{border-bottom-color:#2f302d}
.account-row:focus-within{outline:none}
.account-row select{background-color:transparent;background-image:none;border:0;padding-inline-end:0!important}
.output-options select{min-height:46px}
.beauty-controls{background:#242522;border:1px solid #353833;border-radius:12px;padding:12px;margin-top:14px}
.beauty-controls .panel-title{margin-bottom:4px}

/* Direction 01: quiet, light, WeChat-like utility surface. */
:root{color-scheme:light;--bg:#f4f7f3;--paper:#ffffff;--ink:#1f2b25;--muted:#748078;--line:#e0e7e1;--green:#1f8a55;--soft:#e7f1ea;--error:#b6534a}
body{background:#e9efea;color:var(--ink)}
.app-shell{background:var(--bg);border:1px solid #dfe8e1;box-shadow:0 16px 50px #1b3b2812}
.topbar{background:var(--bg);border-bottom:1px solid transparent}.brand{color:var(--ink)}.brand>.symbol{color:var(--green)}.brand>span:last-child{color:var(--green)}
.wallet{background:#fff;border-color:#dce7df;color:var(--ink);border-radius:12px}.wallet>.symbol{color:var(--green)}
.page{background:var(--bg)}
.home-heading h1,.editor-heading>h1,h1{color:var(--ink)}.home-heading small,.eyebrow,.fine,.lead{color:var(--muted)}
.quota-strip{border-bottom-color:var(--line)}.quota-strip .symbol,.quota-strip strong{color:var(--green)}
.compact-grid .card-photo{background:#e1e9e3}.compact-grid .tool-card{background:transparent}.compact-grid .tool-text strong{color:var(--ink)}
.compact-grid .tool-text small{color:var(--muted)}
.primary{background:var(--green);border-color:var(--green);color:#fff}.secondary{background:#fff;border-color:#d9e3dc;color:var(--ink)}
.icon-button{background:#e8f0ea;border-color:#d6e2d9;color:var(--ink)}.text-button,.inline-link{color:var(--green)}
.bottom-nav{background:#ffffffef;border-top-color:var(--line);box-shadow:0 -8px 28px #1b3b2810}.bottom-nav button{color:#839087}.bottom-nav [aria-current=page]{background:#e8f3eb;color:var(--green)}
.editor-panel{background:#fff;border-color:#dfe7e1;box-shadow:0 8px 25px #1b3b2808}.editor-heading p{color:var(--muted)}
.upload-slot{background:#fbfdfb;border-color:#d9e4dc;box-shadow:0 5px 18px #1b3b2807}.upload-slot.has-photo{border-color:#b7d3c0}.upload-preview{background:#eef5ef;color:var(--muted)}.upload-preview strong{color:var(--ink)}
.source-actions{border-top-color:#e3ebe5}.source-action{background:#f4f8f4;color:var(--muted)}.source-action:first-child{background:#e8f4eb;border-color:#b7d9c2;color:var(--green)}.remove-photo{background:#f4e9e7;color:#a94f48}
.photo-guide,.photo-disclosure{background:#fff;border-color:#dfe7e1}.photo-guide summary,.photo-disclosure summary{color:var(--ink)}.photo-guide p,.photo-disclosure p{color:var(--muted)}
.option-group legend,.menu-label{color:var(--muted)}.choices button{background:#fff;border-color:#d9e3dc;color:var(--ink)}.choices [aria-pressed=true]{background:#e8f4eb;border-color:#8fc29f;color:var(--green)}
.output-options select,.account-row select{background:#fff;color:var(--ink);border-color:#d5e2d9}.choice-menu>summary,.language-menu>summary{background:#fff;color:var(--ink);border-color:#d5e2d9}.choice-menu[open]>summary,.language-menu[open]>summary{background:#edf7ef;border-color:#8fc29f}.choice-menu-list{background:#fff;border-color:#d5e2d9;box-shadow:0 14px 30px #1b3b2820}.choice-menu-list button{color:var(--ink)}.choice-menu-list button:hover,.choice-menu-list button[aria-pressed=true]{background:#e8f4eb;color:var(--green)}
.beauty-controls{background:#f6faf6;border-color:#d9e6dc}.beauty-control>span{color:var(--muted)}.beauty-control b{color:var(--green)}input[type=range]{accent-color:var(--green)}
.create-dock{background:#ffffffed;border-top-color:var(--line);box-shadow:0 -8px 28px #1b3b2810}.generation-cost{color:var(--muted)}.generation-cost strong{color:var(--ink)}
.result-stage,.result-empty{background:#eaf2ec}.result-menu{border-top-color:var(--line)}.result-menu>summary{color:var(--muted)}.result-meta{color:var(--muted)}.task-receipt{color:#839087}.notice{background:#edf5ef;border-color:#cfe2d4;color:#3d6a4d}.background-task{background:#edf6ef;border-color:#cfe2d4;color:var(--ink)}.background-task small{color:var(--muted)}
.account-list{background:#fff;border-color:#dfe7e1;box-shadow:0 5px 18px #1b3b2806}.account-list>button,.account-row{border-bottom-color:#e5ece6}.profile-card .avatar{background:#e2f0e6;color:var(--green)}
.balance{background:#e7f2e9;border-color:#c6ddcd}.balance strong{color:var(--green)}.plan{background:#fff;border-color:#dce6df}.plan[aria-pressed=true]{background:#e8f4eb;border-color:#79b78d}
.result-video{background:#15231a}.danger-card{background:#fbefed;border-color:#e4b7b0}.primary.danger{background:#b6534a;border-color:#b6534a}.danger-text{color:#a94f48!important}

/* Refined source cards and app-owned menus. */
.upload-slot{border:1px solid #383a36;background:#242522;border-radius:14px;box-shadow:0 8px 22px #00000022}
.upload-slot.has-photo{border-color:#555944}
.upload-preview{min-height:112px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:12px 10px;text-align:center}
.upload-preview>.symbol{width:25px;height:25px;color:var(--green)}
.upload-preview strong{font-size:13px;line-height:1.35}.upload-preview small{font-size:11px;color:var(--muted)}
.upload-preview img,.upload-preview video{display:block;width:100%;height:126px;object-fit:contain;border-radius:9px;background:#181917}
.source-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:7px;border-top:1px solid #343631}
.source-action{min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:9px;background:#2b2d29;color:#c8c9bd;font-size:11px;line-height:1.3;cursor:pointer}
.source-action:first-child{color:var(--green);background:#f4dc570b}.source-action .symbol{width:16px;height:16px}
.remove-photo{display:block;width:calc(100% - 14px);margin:0 7px 7px;min-height:36px;border:0;border-radius:8px;background:#31332e;color:#d2a099;font-size:11px}
.reference-section .source-actions{margin-top:8px;padding:0;border-top:0}.reference-section .source-action{border:1px solid #3c3f39}
.menu-field{min-width:0;display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px}
.menu-label{line-height:1.4}.choice-menu,.language-menu{position:relative;min-width:0}.choice-menu>summary,.language-menu>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:10px 12px;border:1px solid #454841;border-radius:10px;background:#282a26;color:var(--ink);font-size:13px;cursor:pointer}.choice-menu>summary::-webkit-details-marker,.language-menu>summary::-webkit-details-marker{display:none}.menu-chevron{color:#aaaD9f;font-size:14px;line-height:1}.choice-menu[open]>summary,.language-menu[open]>summary{border-color:var(--green);background:#2d3028}.choice-menu-list{position:absolute;z-index:35;top:calc(100% + 5px);left:0;right:0;padding:5px;background:#262824;border:1px solid #4a4d44;border-radius:10px;box-shadow:0 14px 30px #00000055}.choice-menu-list button{display:block;width:100%;min-height:42px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#d9dbd0;text-align:start;font-size:12px}.choice-menu-list button:hover,.choice-menu-list button[aria-pressed=true]{background:#f4dc5712;color:var(--green)}.choice-menu[data-disabled=true]>summary{opacity:.55;pointer-events:none}.language-menu{width:148px}.language-menu .choice-menu-list{left:auto;right:0;width:180px;max-height:300px;overflow:auto}.language-row{position:relative;z-index:10}.language-row>span{flex:1}.output-options{position:relative;z-index:12}

/* Final light control pass. These selectors follow the legacy dark rules so
   every app-owned surface uses the active light theme. */
body[data-theme="green"] .app-shell,
body[data-theme="blue"] .app-shell{background:var(--bg);color:var(--ink)}
body[data-theme="green"] .upload-slot,
body[data-theme="blue"] .upload-slot{background:#fff;border-color:#d9e4dc;box-shadow:0 5px 18px #1b3b2807}
body[data-theme="green"] .upload-preview,
body[data-theme="blue"] .upload-preview{background:var(--soft);color:var(--muted)}
body[data-theme="green"] .upload-preview img,
body[data-theme="green"] .upload-preview video,
body[data-theme="blue"] .upload-preview img,
body[data-theme="blue"] .upload-preview video{background:var(--soft)}
body[data-theme="green"] .source-actions,
body[data-theme="blue"] .source-actions{background:#fff;border-top-color:var(--line)}
body[data-theme="green"] .source-action,
body[data-theme="blue"] .source-action{background:#f4f8f4;color:var(--muted);border-color:#d9e3dc}
body[data-theme="green"] .source-action:first-child,
body[data-theme="blue"] .source-action:first-child{background:#e8f4eb;color:var(--green);border-color:#b7d9c2}
body[data-theme="green"] .remove-photo,
body[data-theme="blue"] .remove-photo{background:#f4e9e7;color:#a94f48}
body[data-theme="green"] .photo-guide,
body[data-theme="green"] .photo-disclosure,
body[data-theme="blue"] .photo-guide,
body[data-theme="blue"] .photo-disclosure{background:#fff;border-color:#dfe7e1}
body[data-theme="green"] .choice-menu>summary,
body[data-theme="green"] .language-menu>summary,
body[data-theme="blue"] .choice-menu>summary,
body[data-theme="blue"] .language-menu>summary{background:#fff!important;color:var(--ink)!important;border-color:#d5e2d9!important}
body[data-theme="green"] .choice-menu[open]>summary,
body[data-theme="green"] .language-menu[open]>summary,
body[data-theme="blue"] .choice-menu[open]>summary,
body[data-theme="blue"] .language-menu[open]>summary{background:var(--soft)!important;border-color:#8fc29f!important}
body[data-theme="green"] .choice-menu-list,
body[data-theme="blue"] .choice-menu-list{background:#fff!important;border-color:#d5e2d9!important;box-shadow:0 14px 30px #1b3b2820!important}
body[data-theme="green"] .choice-menu-list button,
body[data-theme="blue"] .choice-menu-list button{color:var(--ink)!important;background:transparent!important}
body[data-theme="green"] .choice-menu-list button:hover,
body[data-theme="green"] .choice-menu-list button[aria-pressed="true"],
body[data-theme="blue"] .choice-menu-list button:hover,
body[data-theme="blue"] .choice-menu-list button[aria-pressed="true"]{background:var(--soft)!important;color:var(--green)!important}
body[data-theme="green"] select,
body[data-theme="blue"] select{color-scheme:light!important;background-color:#fff!important;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%)!important;border-color:#d5e2d9!important;color:var(--ink)!important}
body[data-theme="green"] select option,
body[data-theme="blue"] select option{background:#fff!important;color:var(--ink)!important}
body[data-theme="green"] .field input,
body[data-theme="green"] .field select,
body[data-theme="green"] .field textarea,
body[data-theme="blue"] .field input,
body[data-theme="blue"] .field select,
body[data-theme="blue"] .field textarea{background:#fff!important;color:var(--ink)!important;border-color:#d5e2d9!important}
body[data-theme="green"] .beauty-controls,
body[data-theme="blue"] .beauty-controls{background:#f6faf6;border-color:#d9e6dc}
body[data-theme="blue"] .beauty-controls{background:#f4f9fc;border-color:#d8e7ef}
.beauty-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.beauty-tool{display:flex;align-items:center;justify-content:center;gap:3px;flex-direction:column;min-width:0;min-height:58px;padding:7px 4px;border:1px solid #d9e3dc;border-radius:10px;background:#fff;color:var(--muted);font-size:10px;line-height:1.25;text-align:center}
.beauty-tool-icon{font-size:17px;line-height:1;color:var(--green)}
.beauty-tool b{font-size:10px;font-weight:600;color:var(--green);font-variant-numeric:tabular-nums}
.beauty-tool[aria-pressed="true"]{background:#e8f4eb;border-color:#8fc29f;color:var(--green)}
.beauty-control-active{margin:10px 2px 0;padding:8px 3px 0;border-top:1px solid var(--line)}
.beauty-control-active input{margin-top:3px}
body[data-theme="blue"] .beauty-tool{border-color:#d7e5ed}
body[data-theme="blue"] .beauty-tool[aria-pressed="true"]{background:#e4f2f9;border-color:#7cb6d1}
body[data-theme="blue"] .source-action{background:#f4f9fc;border-color:#d7e5ed}
body[data-theme="blue"] .source-action:first-child{background:#e4f2f9;border-color:#b8d9e6}
body[data-theme="green"] .create-dock,
body[data-theme="blue"] .create-dock{background:#ffffffed!important;border-top-color:var(--line)!important;box-shadow:0 -8px 28px #1b3b2810}
body[data-theme="green"] .create-dock .primary:disabled,
body[data-theme="blue"] .create-dock .primary:disabled{background:#dfe9e1!important;color:#718075!important;border-color:#dfe9e1!important}
body[data-theme="green"] .background-task,
body[data-theme="blue"] .background-task{background:var(--soft);border-color:#cfe2d4;color:var(--ink)}
body[data-theme="green"] .creation,
body[data-theme="blue"] .creation{background:#fff;border-color:#dfe7e1}

/* Optional blue variant for review: append ?theme=blue to the preview URL. */
body[data-theme="blue"]{background:#eaf4fa}
body[data-theme="blue"] .app-shell{--bg:#f3f8fb;--paper:#fff;--ink:#173040;--muted:#718390;--line:#dbe7ee;--green:#1677a8;--soft:#e5f2f8;--error:#b6534a;border-color:#d7e6ee;box-shadow:0 16px 50px #1a526b14}
body[data-theme="blue"] .bottom-nav{background:#ffffffef;border-top-color:var(--line)}
body[data-theme="blue"] .primary{background:var(--green);border-color:var(--green)}
body[data-theme="blue"] .icon-button{background:#e6f1f7;border-color:#d1e2eb}

/* Keep disabled actions inside the same light-green system as the rest of the
   app. Purchase is disabled while Stripe is unconfigured, but it should still
   look like a quiet app state rather than a dark legacy control. */
body[data-theme="green"] .primary:disabled,
body[data-theme="blue"] .primary:disabled{background:#dfeee3!important;color:#6e8175!important;border-color:#dfeee3!important;box-shadow:none!important}

/* Beauty controls use soft surfaces and spacing for grouping; the thin card
   borders made the controls look like unrelated form fields. */
body[data-theme="green"] .beauty-tool,
body[data-theme="blue"] .beauty-tool{border:0!important;background:#f8fbf8;color:var(--muted);box-shadow:none}
body[data-theme="green"] .beauty-tool[aria-pressed="true"]{background:#e4f3e8;color:var(--green);box-shadow:none}
body[data-theme="blue"] .beauty-tool[aria-pressed="true"]{background:#e4f2f9;color:var(--green);box-shadow:none}
body[data-theme="green"] .beauty-control-active{border-top:0;background:#edf7ef;border-radius:10px;padding:10px 12px 7px}
body[data-theme="blue"] .beauty-control-active{border-top:0;background:#eaf5fa;border-radius:10px;padding:10px 12px 7px}
.live-beauty-entry{margin-top:12px;min-height:44px;background:#e8f4eb;border-color:#b7d9c2;color:var(--green)}
.live-beauty-frame{overflow:hidden;border-radius:17px;background:#eaf2ec;border:1px solid var(--line);height:min(76dvh,720px)}
.live-beauty-frame iframe{display:block;width:100%;height:100%;border:0;background:#f4f7f3}

/* Compact balance row: free allowance and paid credits stay visible together
   so the next action is clear without taking space from the tool grid. */
.header-balances{display:flex;align-items:center;gap:6px}
.quota-pill{display:flex;align-items:center;gap:5px;min-height:44px;padding:7px 8px;border:1px solid #dce7df;border-radius:12px;background:#fff;color:var(--green);text-align:start}
.quota-pill>.symbol{width:16px;height:16px}
.quota-pill>span{display:flex;flex-direction:column;gap:1px;line-height:1.1}
.quota-pill b{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.quota-pill small{font-size:9px;color:var(--muted);line-height:1.1}
.quota-pill.is-empty{background:#fff7ed;border-color:#efd9b8;color:#ae6b21}
.quota-pill.is-empty small{color:#9b7a50}
.home-heading{margin-bottom:14px}
.home-heading h1{font-size:24px}
.home-upsell{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 15px;padding:10px 12px;border:1px solid #dbe8df;border-radius:12px;background:#f8fcf9}
.home-upsell>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.home-upsell strong{font-size:12px;color:var(--ink)}
.home-upsell span{font-size:11px;color:var(--muted)}
.home-upsell .text-button{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:6px 0;font-size:12px;white-space:nowrap}
.home-upsell .symbol{width:14px;height:14px}
body[data-theme="blue"] .quota-pill{border-color:#d7e5ed;color:var(--green)}
body[data-theme="blue"] .quota-pill.is-empty{background:#fff7ed;border-color:#efd9b8;color:#ae6b21}
body[data-theme="blue"] .home-upsell{background:#f7fbfd;border-color:#d8e7ef}
