/* Pai paper-white workbench. Artwork supplies the colour. */
body{font-family:Nunito,PaiRound,PaiTitles,system-ui,sans-serif}.rail{position:fixed}.topbar{background:var(--canvas)}.modes{gap:6px}.mode-caption{font-size:11px;letter-spacing:0}.inspector h1{font-size:25px;line-height:1.35}.inspector-title{margin-bottom:26px}.inspector-bottom{display:flex;flex-direction:column;gap:10px}.generation-controls{display:flex;align-items:center;gap:10px;min-height:44px;width:100%;font-size:12px}.generation-controls .model-trigger{max-width:220px;text-align:left;font-weight:700;background:var(--soft);padding:10px 12px;border-radius:10px;min-height:44px;line-height:1.3}.generation-controls select{appearance:auto;border:0;background:none;padding:8px 3px;min-height:44px;font-size:12px;width:auto}.generation-cost{margin-left:auto;white-space:nowrap;color:var(--muted)}.idea-composer .generation-controls{padding:0 8px}.idea-composer #compare-models{font-size:12px;padding:0 8px}.model-list{display:flex;flex-direction:column;gap:8px}.model-choice{padding:16px;border-radius:16px;display:grid;grid-template-columns:1fr auto;gap:7px;text-align:left;min-height:76px}.model-choice strong{font-size:15px}.model-choice small{color:var(--muted);grid-column:1/-1;font-size:12px}.model-choice>span{font-size:12px;color:var(--muted)}.model-choice.selected{background:var(--wash)}.model-choice.selected strong:before{content:'●';font-size:8px;color:var(--pink);margin-right:7px}.generation-way{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}.generation-way select{width:100%;font-size:14px;min-height:44px;border:0;background:var(--soft);padding:10px 12px;border-radius:12px}.style-direction{margin-top:24px}.style-ref-heading{display:none}.inspiration-heading{margin:8px 0}.inspiration-heading button{min-height:44px}.style-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.style-sample{padding:0;text-align:left;min-width:0}.style-sample img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;background:var(--soft);transition:transform .18s}.style-sample.birthday img{object-position:0% 50%}.style-sample.stage img{object-position:100% 50%}.style-sample span{display:block;font-size:11px;margin-top:7px;line-height:1.4;color:var(--muted)}.style-sample:hover img{transform:translateY(-2px)}.style-reference-list:empty{display:none}.more-directions{padding-bottom:12px}.style-inspirations button{font-size:12px;padding:6px 3px;min-height:36px}.color-details{margin-top:12px}.style-reference-note:empty{display:none}.poster-presets{display:flex;flex-wrap:wrap;gap:6px}.poster-presets button{flex:1;min-width:54px;white-space:nowrap;padding:10px 8px;font-size:13px}.poster-presets button:last-child{flex-basis:100%}.creator-types,.commerce-types{display:flex;flex-wrap:wrap;gap:4px;margin:12px 0}.creator-types button,.commerce-types button{font-size:12px;color:var(--muted);min-height:44px;padding:8px 10px;border-radius:10px}.creator-types .selected,.commerce-types .selected{background:var(--wash);color:var(--ink)}.product-upload{width:100%;margin:14px 0 20px;border:0;background:var(--soft);border-radius:14px;text-align:left}.product-upload img{object-fit:contain;background:var(--paper)}.product-upload strong{font-size:13px}.product-upload small{font-size:11px}.poster-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.poster-art.has-art .poster-circle{display:none}.poster-art.layout-creator .poster-title{font-size:17cqw;top:10%;left:6%;width:88%;line-height:1.03;font-weight:700;letter-spacing:-.065em}.poster-art.layout-creator .poster-subtitle{top:39%;left:7%;font-size:3cqw}.poster-art.layout-creator .poster-book{width:80%;right:-5%;bottom:0;transform:none;z-index:1}.poster-art.layout-creator .poster-footer{left:6%;bottom:6%;right:auto;max-width:47%;gap:2cqw;z-index:2}.poster-art.layout-creator .poster-footer strong{font-size:4.3cqw;max-width:70%;line-height:1.25}.poster-art.layout-creator .poster-footer span{font-size:2.2cqw;max-width:64%;line-height:1.4}.poster-art.layout-creator .poster-circle{background:var(--poster-circle,#efc5d0);width:94%;left:30%;bottom:-6%;z-index:-1}.poster-art.layout-creator.square .poster-title{font-size:13cqw;top:12%;width:70%}.poster-art.layout-creator.square .poster-subtitle{top:44%;width:45%;font-size:2.4cqw}.poster-art.layout-creator.square .poster-book{width:65%;right:-5%;bottom:-14%}.poster-art.layout-creator.square .poster-footer strong{font-size:3cqw}.poster-art.layout-creator.landscape .poster-title{font-size:8.5cqw;width:52%;top:18%}.poster-art.layout-creator.landscape .poster-subtitle{top:57%;font-size:1.9cqw}.poster-art.layout-creator.landscape .poster-book{width:48%;right:1%;bottom:-18%}.poster-art.layout-creator.landscape .poster-footer strong{font-size:2.4cqw}.poster-art.layout-creator.landscape .poster-footer span{font-size:1.6cqw;max-width:none}.create-references{display:flex;gap:8px;padding:8px;flex-wrap:wrap}.create-references button{display:flex;align-items:center;gap:8px;max-width:100%;font-size:12px;background:var(--soft);padding:5px 9px 5px 5px;border-radius:10px}.create-references img{width:32px;height:40px;object-fit:cover;border-radius:6px}.create-references span{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.generation-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;max-width:100%;margin:32px auto}.generation-results:empty{display:none}.result-card{padding:0;text-align:left;max-width:600px;min-width:0}.result-card img{width:100%;height:230px;object-fit:contain;background:var(--soft);border-radius:14px;display:block}.result-card span{display:block;margin-top:9px;color:var(--muted);font-size:12px}.history-grid .result-card img{height:180px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:24px}#image-dialog{width:min(1000px,calc(100% - 24px));max-height:calc(100dvh - 24px)}#image-full{width:100%;height:min(65dvh,900px);object-fit:contain;background:var(--soft);display:block;border-radius:14px}.account-row{display:block;padding:16px 8px}.account-row+.account-row{border-top:1px solid var(--line)}@keyframes pai-breathe{50%{opacity:.4}}.toast{max-width:calc(100% - 32px);white-space:normal}#spend-dialog p{line-height:1.75}html[lang=en] .inspector h1{font-size:27px}.export-options strong{flex-wrap:wrap}.export-options button{min-width:0}.create-intro h1{font-family:Nunito,PaiTitles,PaiRound,sans-serif}#poster-art{font-family:Nunito,PaiTitles,PaiRound,sans-serif}.idea-composer textarea{max-height:40dvh}#edit-note{max-height:200px}
@media(min-width:1100px){.inspector{max-height:calc(100dvh - 152px);overflow-y:auto;scrollbar-width:thin}.workbench{position:sticky;top:0;align-self:start}.editor{align-items:start}}
@media(max-width:760px){.topbar{padding:0 20px;height:65px;gap:16px}.top-actions{gap:10px}.top-actions .preview-label{display:none}.modes{padding:6px 16px;height:60px;justify-content:center}.modes>button{padding:10px 14px;font-size:14px}.mode-caption{display:none}.inspector{padding:24px 20px 40px}.inspector h1{font-size:25px}.create-intro{padding-top:28px}.create-intro h1{font-size:40px}.idea-actions{gap:6px;flex-wrap:wrap}.idea-actions .primary{margin-left:auto}.idea-actions .quiet{padding:0 4px}.generation-controls{gap:8px}.generation-controls .model-trigger{max-width:190px}.style-gallery{gap:8px}.style-sample span{font-size:11px}.poster-presets button:last-child{flex-basis:auto;flex-grow:1.5}.product-upload{margin:12px 0 20px}.generation-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.result-card img{height:180px}.dialog-actions .primary{min-height:44px}.poster-mat{padding:16px 32px}.inspector-bottom{padding-bottom:env(safe-area-inset-bottom)}#spend-dialog{max-height:calc(100dvh - 24px)}.topbar .bread{display:none}}
@media(prefers-reduced-motion:reduce){.style-sample img{transition:none}}
.inspector>*{flex-shrink:0}.inspector-bottom{position:static;box-shadow:none;margin-top:20px}.poster-editor .inspector-bottom{padding-top:16px}.poster-presets{margin-bottom:4px}.inspector{height:auto}.poster-art.layout-creator .poster-subtitle{top:39%;width:36%;line-height:1.6;max-width:36%}.poster-art.layout-creator.square .poster-subtitle{width:36%;max-width:36%}.poster-art.layout-creator.landscape .poster-subtitle{width:45%;max-width:45%}
.transparent-control{display:inline-flex;align-items:center;gap:6px;font-size:12px;min-height:44px;margin-right:12px;color:var(--muted)}.transparent-control input{width:16px;height:16px;accent-color:var(--ink)}
.poster-lettering{position:absolute;top:9%;left:6%;width:88%;height:28%;object-fit:contain;z-index:3}.poster-art.landscape .poster-lettering{width:52%;height:43%;top:12%;left:5%}.poster-art.layout-creator .poster-subtitle{width:29%;max-width:29%;font-size:2.6cqw;top:39%;line-height:1.6;overflow-wrap:anywhere}.poster-art.layout-creator.landscape .poster-subtitle{width:44%;max-width:44%;font-size:1.9cqw;top:59%}

.title-tools{margin:-4px 0 23px;font-size:12px;color:var(--muted,#777080)}.title-tools>span{font-size:11px;letter-spacing:.04em}.title-tools-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:9px}.title-tools .quiet{font-size:12px;padding:0;min-height:30px;color:#6f3658}.title-tools p{font-size:11px;line-height:1.7;margin:6px 0 10px}.title-tools summary{cursor:pointer;padding:7px 0;color:#1e192d}.title-tools details label{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:8px;margin:8px 0;font-size:12px}.title-tools input[type=range]{padding:0;width:100%;height:22px;background:transparent;accent-color:#a56786}.poster-art #poster-lettering{object-fit:contain;object-position:left top}.poster-art #poster-title{max-width:none}.poster-art.layout-creator #poster-lettering{height:39%;width:70%;left:3%;top:7%}.poster-art.layout-creator .poster-subtitle{font-size:2.6cqw;line-height:1.65;white-space:normal}

.poster-art.layout-creator .poster-book{height:70%;width:80%;right:-5%;bottom:0}.poster-art.layout-creator .poster-subtitle{top:41%;width:30%;font-size:2.7cqw;line-height:1.75}.poster-art.layout-creator .poster-footer{gap:4cqw}.poster-art.layout-creator .poster-footer strong{font-size:3.6cqw}

.poster-mat{position:relative}.layout-toolbar{display:flex;gap:12px;align-items:center;padding:0 2px 10px;flex-wrap:wrap;font-size:12px}.layout-toolbar button,.layout-toolbar select{border:0;background:transparent;color:#756c7d;padding:6px 0;font:inherit;cursor:pointer}.layout-toolbar #layout-toggle[aria-pressed=true]{color:#a03e79}.layout-toolbar button:disabled{opacity:.3}.layout-toolbar select{max-width:145px}.layout-hint{color:#8a8390;font-size:11px;text-align:center;margin:8px 0}.layer-selection{position:absolute;pointer-events:none;border:1px solid #b979a0;z-index:7;border-radius:2px;box-sizing:border-box}.layer-label{position:absolute;top:-23px;left:-1px;white-space:nowrap;font:11px Nunito,PaiUI,sans-serif;padding:3px 6px;background:#fbf7fa;color:#915c7d;border-radius:4px}.layer-handle{position:absolute;right:-20px;bottom:-20px;width:40px;height:40px;pointer-events:auto;background:transparent;border:0;cursor:nwse-resize;touch-action:none}.layer-handle:after{content:'';position:absolute;inset:15px;border-radius:3px;background:#fffcfd;border:1.5px solid #a96892;box-shadow:0 1px 4px #30122514}.layer-selection.snapped{border-color:#7b6c8b;box-shadow:0 0 0 1px #7b6c8b33}.layout-editing [id^=poster-]:not(#poster-background){cursor:move;touch-action:none;user-select:none;-webkit-user-select:none}.layout-editing{outline:none}.layout-editing .poster-book{pointer-events:auto}.layout-editing .poster-lettering{pointer-events:auto}@media(max-width:760px){.layout-toolbar{padding:0 2px 8px;font-size:12px;gap:12px}.layout-hint{font-size:10px}}
/* Poster inspector: stable actions, one focused pane at a time. */
#poster-panel>.inspector{overflow:hidden;gap:0;padding-bottom:0;min-height:0}.inspector-title{margin-bottom:19px}.inspector-title .eyebrow{display:none}.inspector-title h1{font-size:22px;line-height:1.35;margin:0}.inspector-tabs{display:flex;gap:25px;flex-shrink:0;border-bottom:1px solid #e9e5e5;margin-bottom:18px}.inspector-tabs button{appearance:none;border:0;border-bottom:2px solid transparent;background:none;padding:0 0 10px;color:#918997;font:inherit;font-size:13px;cursor:pointer}.inspector-tabs button[aria-selected=true]{color:#251b30;border-bottom-color:#9c698b}.inspector-panels{flex:1!important;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}.inspector-pane>.section-head{margin:0 0 13px}.inspector-pane>.section-head h2{font-size:13px;font-weight:500;color:#827a88}.inspector-pane .poster-presets{margin-bottom:16px}.inspector-pane .product-upload{margin:17px 0}.inspector-pane .poster-fields{margin-top:20px}.inspector-pane .title-tools{margin-bottom:17px}.inspector-pane .title-tools-actions{gap:14px}.inspector-pane .title-tools>span{display:none}.inspector-pane .title-tools p{max-width:30em}.inspector-pane .title-tools #title-example{display:none}.inspector-pane .style-direction{margin:0;padding:0;border:0}.inspector-pane .style-direction .section-head{margin-top:0}.inspector .keep-note{font-size:10px;margin:12px 0 8px;line-height:1.5;flex-shrink:0}.inspector .keep-note svg{display:none}.inspector .inspector-bottom{padding-top:0;gap:9px;flex-shrink:0;padding-bottom:14px;border-top:0}.generation-way{display:flex;flex-direction:row;align-items:center;gap:12px;font-size:11px}.generation-way select{margin:0;flex:1;padding:7px 0;border:0;background:transparent;font-size:12px}.inspector-bottom #poster-edit-image{display:none}.inspector-bottom .primary{min-height:43px}.panel-caption{font-size:12px;color:#7c7383;margin:0 0 15px}.layer-list{display:flex;flex-direction:column;gap:5px}.layer-row{display:flex;align-items:center;gap:12px;border:0;border-radius:12px;background:transparent;padding:12px;color:#6c6476;font:inherit;font-size:13px;text-align:left;cursor:pointer}.layer-row[aria-pressed=true]{background:#eee6ed;color:#5e3052}.layer-kind{font:17px Georgia,serif;width:19px;text-align:center;opacity:.65}.layout-panel-note{font-size:11px;color:#928895;line-height:1.8;margin:23px 0}.layer-scale-control{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:12px;margin-top:18px;color:#736778}.layer-scale-control input{flex:1;min-width:100px;accent-color:#a46d91}.layer-scale-control output{min-width:34px;font-size:11px}#layer-actions{display:flex;gap:20px;margin-top:18px}#layer-actions button{border:0;background:transparent;font:inherit;font-size:12px;color:#7b667c;padding:0;cursor:pointer}#layer-actions button:disabled{opacity:.3}.layout-toolbar #layout-layer{display:none}.layout-toolbar{justify-content:flex-end;padding:0 0 8px}.layout-hint{display:none}.poster-mat{overflow:visible}.layer-selection[hidden]{display:none}@media(max-width:760px){#poster-panel>.inspector{padding-bottom:8px;max-height:none}.inspector-tabs{position:static;margin:0 0 20px;gap:30px}.inspector-panels{overflow:visible}.inspector-title{display:none}.inspector .keep-note{margin-top:20px}.inspector .inspector-bottom{padding-bottom:20px}.inspector .generation-controls{padding-top:4px}.layout-toolbar{padding-top:4px}.poster-mat{margin-top:0}}

#poster-panel.laying-out .inspector-bottom .generation-way,#poster-panel.laying-out .inspector-bottom .generation-controls{display:none}.inspector-pane .layer-row{min-height:44px}.inspector-title{margin-bottom:17px}.poster-stage .layout-toolbar{flex-shrink:0}

.mobile-layout-undo{display:none}#poster-panel.laying-out #poster-generate svg{display:none}@media(max-width:760px){.layout-toolbar{min-height:34px}.laying-out .layout-toolbar{justify-content:space-between}.laying-out .layout-toolbar #layout-layer{display:block;max-width:125px;font-size:12px}.laying-out .mobile-layout-undo{display:block}.layout-toolbar #layout-toggle{font-size:12px}}

.canvas-actions{display:flex;align-items:center;gap:16px}.canvas-actions .quiet{font-size:12px;padding:6px 0}.canvas-actions svg{width:14px;height:14px}.canvas-top{gap:10px}.canvas-top strong{font-size:13px}@media(max-width:760px){.canvas-actions{gap:12px}.canvas-actions .quiet{font-size:11px}.canvas-actions svg{display:none}.canvas-top small{font-size:10px}}
/* Creation flow: content first, deliberately optional samples, one mobile action group. */
.composer-utilities{display:flex;align-items:center;gap:14px;padding:0 4px 12px;min-width:0}.composer-utilities .quiet{font-size:13px;padding:0;min-height:44px;gap:6px}.composer-utilities .ratio-trigger{background:none;padding:0 4px;font-size:13px}.composer-utilities .ratio-value{display:none}.composer-utilities .options-trigger{margin-left:auto;width:44px;justify-content:center}.composer-submit{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 4px 4px;border-top:1px solid #eae7e6}.composer-submit .generation-controls{padding:0;gap:5px;min-width:0;flex-wrap:wrap;align-content:center;row-gap:0}.composer-submit .model-trigger{background:none!important;padding:0!important;min-height:30px;max-width:100%;font-size:13px;white-space:nowrap}.composer-submit select{font-size:11px;min-height:30px;padding:0 4px}.composer-submit .primary{height:auto;min-height:50px;min-width:116px;padding:8px 20px;display:flex;flex-direction:column;gap:2px;font-size:14px;border-radius:15px;margin:0}.composer-submit .primary small{font-family:Nunito,sans-serif;font-size:10px;color:#d4c9da;font-weight:400;line-height:1.1}.idea-composer{padding:20px;box-shadow:none}.settings-sheet{width:min(440px,calc(100% - 32px));padding:26px}.settings-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.settings-sheet h2{font-size:22px}.settings-sheet .transparent-control{display:flex;justify-content:space-between;gap:15px;margin:0;width:100%;padding:14px 0;border-bottom:1px solid var(--line)}.settings-sheet strong{font-size:15px;font-weight:600;color:var(--ink)}.settings-sheet small{font-size:12px;display:block;color:var(--muted);margin-top:6px;line-height:1.5}.settings-sheet input[type=checkbox]{width:20px;height:20px}.settings-choice{display:block;width:100%;text-align:left;padding:18px 0}.edit-entry{text-align:center;padding:clamp(40px,9vh,110px) 22px 65px;max-width:620px;margin:auto}.entry-mark{color:#a4879c;margin:0 auto 24px;display:grid;place-items:center;width:64px;height:64px;background:#f0eaf0;border-radius:22px}.entry-mark svg{width:32px;height:32px}.edit-entry h1{font-size:29px;line-height:1.5}.edit-entry p{font-size:14px;color:var(--muted);line-height:1.8;margin:14px 0 28px}.edit-entry>.primary{margin:auto;padding:0 32px}.edit-entry>small{display:block;margin-top:14px;font-size:11px;color:var(--muted)}.example-link{display:block;color:#876c82;font-size:12px;padding:12px 0;min-height:44px;margin:20px auto 0}.empty-source>.workbench,.empty-source>.inspector{display:none!important}#edit-panel.empty-source{display:block}.purpose-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;min-height:44px;font-size:12px;color:var(--muted)}.purpose-row button{display:flex;gap:14px;align-items:center;padding:8px 0;font-size:14px;color:var(--ink)}.purpose-row strong{font-weight:600}.purpose-choice{display:block;width:100%;padding:17px 10px;text-align:left;border-radius:13px}.purpose-choice[aria-pressed=true]{background:#eee5ed}.purpose-choice[aria-pressed=true] strong{color:#864673}.creator-types,.commerce-types{margin:0 0 16px;gap:20px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.creator-types button,.commerce-types button{padding:0 0 9px;min-height:38px;border-radius:0;font-size:12px;white-space:nowrap;position:relative;background:none!important}.creator-types .selected,.commerce-types .selected{color:#8a4b78}.creator-types .selected:after,.commerce-types .selected:after{content:'';position:absolute;bottom:0;left:0;width:100%;height:2px;background:#b68aa6;border-radius:2px}.product-upload{background:transparent;padding:14px 0;margin:8px 0 18px!important;border-bottom:1px solid #eae7e6;border-radius:0}.product-upload img{width:48px;height:48px;border-radius:10px}.product-upload strong{font-size:14px}.product-upload small{font-size:11px;line-height:1.55;margin-top:4px}.product-upload>svg{background:#efeaef;box-sizing:content-box;padding:12px;border-radius:14px;width:18px;height:18px;margin:0;color:#806579}.poster-fields{margin-top:18px!important}.poster-fields input,.poster-fields>textarea{background:#f2f0ef;border:0;border-radius:12px;font-size:15px;padding:12px 14px;box-shadow:none}.poster-fields>textarea{font-size:20px;line-height:1.5;min-height:92px}.poster-fields label{font-size:12px;margin-bottom:9px}.poster-fields input::placeholder,.poster-fields textarea::placeholder{font-size:14px;color:#9a939e}.poster-extra-fields{margin:16px 0 4px}.poster-extra-fields summary{font-size:12px;color:var(--muted);cursor:pointer;padding:10px 0}.poster-extra-fields .field-pair{margin-top:13px;display:grid;grid-template-columns:1fr;gap:12px}.poster-extra-fields .field-pair label{margin:0}.sample-notice{font-size:11px;color:#916b84;line-height:1.7;margin:-6px 0 14px}.direction-intro{font-size:12px;color:var(--muted);line-height:1.75;margin:0 0 18px;max-width:30em}.style-gallery{grid-template-columns:1fr 1fr;gap:20px 14px;margin:0}.style-sample .direction-image{display:block;width:100%;aspect-ratio:3/4;border-radius:12px;background-image:url('/static/image-lab/assets/direction-cars.png');background-size:200% 200%;margin:0;transition:transform .2s}.style-sample .direction-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-top:9px;min-height:20px;color:#746a7b}.style-sample[aria-pressed=true] .direction-label{color:#89466f}.style-sample[aria-pressed=true] .direction-label:after{content:'✓';font-family:system-ui}.style-sample[aria-pressed=true] .direction-image{box-shadow:0 0 0 3px var(--canvas),0 0 0 4.5px #b783a4;transform:translateY(-2px)}.direction-references{display:flex;align-items:center;justify-content:space-between;margin:22px 0 18px;gap:10px;color:var(--muted);font-size:12px}.direction-references .quiet{font-size:13px;padding:0;min-height:44px;white-space:nowrap}.style-direction>.field-label{font-size:12px;margin:0 0 8px}.style-direction>#style-brief{font-size:14px;line-height:1.7;min-height:88px;margin:0;border-radius:12px;padding:12px 14px}.color-details{margin-top:14px}.color-details summary{font-size:12px;min-height:44px}.color-details summary small{display:none}#more-inspiration,#more-directions,.style-inspirations,.style-preview-note{display:none!important}.poster-render-controls{display:grid;grid-template-columns:1fr;gap:8px}.poster-render-controls>.generation-controls{justify-content:flex-start;font-size:12px}.poster-render-controls>.generation-controls .model-trigger{background:none;padding-left:0}.poster-render-controls .generation-way{margin-bottom:0}.inspector .keep-note{display:none}#poster-panel[data-stage=content] .poster-render-controls{display:none}#poster-panel:not([data-stage=content]) .flow-next{display:none}#poster-panel[data-stage=layout] .flow-preview{display:none}#poster-panel[data-stage=layout] .generation-way,#poster-panel[data-stage=layout] .generation-controls{display:none}.flow-preview{justify-content:center;font-size:12px;min-height:44px}.poster-empty{position:absolute;z-index:3;inset:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;text-align:center;background:var(--canvas);border-radius:8px}.poster-empty>span{font:10px Nunito,sans-serif;letter-spacing:.18em;color:#a698a4}.poster-empty>p{font-size:27px;line-height:1.55;color:#5b4b64;margin:24px 0 18px}.poster-empty>small{font-size:11px;color:#a393a0}.blank-poster{opacity:.08}.no-subject .poster-circle{display:none}.poster-art:not(.layout-creator) .poster-book{width:96%;height:48%;left:2%;right:auto;bottom:19%;transform:none;object-fit:contain}.poster-art:not(.layout-creator).landscape .poster-book{width:60%;left:40%;height:70%;bottom:10%}.poster-art:not(.layout-creator).square .poster-book{bottom:10%;height:46%}.poster-art .poster-subtitle{line-height:1.6}.poster-art .poster-price:empty{display:none}
@media(max-width:760px){.create-panel{padding:16px 18px 32px}.create-intro{padding-top:25px}.create-intro h1{font-size:35px}.idea-composer{padding:15px;margin-top:26px;border-radius:21px}.idea-composer textarea{padding:8px 2px;font-size:16px;min-height:124px}.composer-utilities{gap:12px;padding:0 0 10px}.composer-utilities .ratio-trigger{gap:6px;min-height:44px}.composer-utilities .ratio-label{font-size:12px}.composer-utilities .ratio-mini{width:20px}.composer-submit{padding:11px 0 0;gap:8px}.composer-submit .primary{min-width:108px;padding:9px 16px;font-size:13px}.composer-submit .model-trigger{font-size:12px}.composer-submit .generation-controls{display:flex;flex-wrap:nowrap;gap:5px;min-width:0}.composer-submit .model-trigger{max-width:110px;white-space:normal;text-align:left}.composer-submit select{font-size:11px}.settings-sheet{margin:auto 0 0;width:100%;max-width:none;border-radius:24px 24px 0 0;padding:24px 22px calc(22px + env(safe-area-inset-bottom))}.edit-entry{padding:48px 24px 70px}.edit-entry h1{font-size:25px}.edit-entry p{font-size:13px}.poster-editor{display:flex!important;flex-direction:column;gap:0;padding:0 20px 24px!important}.poster-editor[hidden]{display:none!important}#poster-panel>.inspector{display:contents}#poster-panel>.workbench{order:4;width:100%;padding:0;position:static;display:none}#poster-panel.laying-out>.workbench{display:block;order:1;margin-bottom:18px}.poster-editor .inspector-tabs{order:0;padding:16px 0 12px;margin:0 0 22px;gap:0;justify-content:space-between;border-bottom:1px solid var(--line)}.poster-editor .inspector-tabs button{font-size:14px;min-height:40px;padding:0 18px 10px}.poster-editor .inspector-panels{order:2;overflow:visible;padding:0;flex:0 0 auto!important}.poster-editor .inspector-bottom{order:3;margin:22px 0 0;padding:0 0 18px;position:static;gap:4px}.purpose-row{margin-bottom:14px}.product-upload strong{font-size:14px}.product-upload small{font-size:11px}.product-upload>svg{padding:11px}.poster-fields>textarea{font-size:20px;min-height:86px}.poster-fields input{font-size:16px;min-height:46px}.title-tools{margin-bottom:18px}.title-tools .quiet{min-height:36px}.title-tools p{font-size:11px}.style-gallery{gap:18px 14px}.style-direction>#style-brief{min-height:90px;font-size:16px}.style-direction>#style-brief::placeholder{font-size:13px}.poster-render-controls{gap:8px}.poster-render-controls .primary,.flow-next{height:48px}.poster-render-controls .generation-controls{padding:0;min-height:44px}.poster-render-controls .generation-cost{font-size:11px}.generation-way select{font-size:12px;max-width:100%;min-width:0}.poster-extra-fields .field-pair{grid-template-columns:1fr 1fr;gap:12px}.poster-extra-fields input{font-size:14px}.layout-toolbar{padding-top:0}.poster-mat{height:410px;padding:16px 24px;margin:0}.poster-mat:has(.square){height:320px}.poster-mat:has(.landscape){height:220px}.poster-size-bar{justify-content:flex-start}.canvas-top{padding:0 0 10px;min-height:44px}.layer-list{display:none}.panel-caption{font-size:11px;margin:0 0 10px}.layout-panel-note{margin:10px 0;font-size:11px}.layer-scale-control{margin-top:10px}#layer-actions{margin-top:12px}.modes{position:static}.poster-empty{inset:16px}#poster-panel[data-stage=content] .flow-preview{margin-top:6px}.style-direction .section-head h2{font-size:17px;color:var(--ink);font-weight:600}.direction-intro{font-size:12px;max-width:none}.poster-editor .inspector-title{display:none}.creator-types,.commerce-types{gap:20px}.creator-types button,.commerce-types button{font-size:12px}.poster-presets{display:none}}
@media(max-width:360px){.poster-editor{padding-left:16px!important;padding-right:16px!important}.composer-submit .primary{min-width:96px;padding:9px 12px}.composer-submit .model-trigger{max-width:90px}.composer-utilities{gap:10px}.composer-utilities .quiet{font-size:12px}.poster-mat{height:365px;padding:16px}.poster-extra-fields .field-pair{grid-template-columns:1fr}.direction-references{font-size:11px}}
.poster-art:not(.layout-creator) .poster-circle{display:none}.poster-art:not(.layout-creator) .poster-title{font-size:14cqw!important;line-height:1.12;letter-spacing:-.03em}.poster-art:not(.layout-creator) .poster-subtitle{font-size:3cqw;left:7%;width:80%;max-width:80%;line-height:1.6}.poster-art:not(.layout-creator).landscape .poster-title{font-size:8cqw!important;width:52%!important}.poster-art:not(.layout-creator).landscape .poster-subtitle{font-size:1.8cqw;width:43%}.poster-art{--poster-bg:#faf7f0;--poster-text:#282330;--poster-circle:#dfd8e2}.poster-art:not(.layout-creator) .poster-book{bottom:13%;height:45%}.starter.book-starter>img{object-fit:contain;background:#eeebf1}

/* Mobile mode navigation uses short labels and equal hit areas in both languages. */
@media(max-width:760px){.modes{display:flex;gap:6px;padding:8px 16px;height:64px}.modes>button{flex:1 1 0;min-width:0;min-height:44px;padding:8px 6px;white-space:nowrap;gap:7px;justify-content:center;font-size:13px;line-height:1.2}.modes>button svg{width:17px;height:17px}.modes .mode-caption{display:none}}

/* Waiting feedback belongs beside the current image, with a persistent outcome. */
.generation-progress{display:flex;align-items:flex-start;gap:14px;background:var(--wash);color:var(--ink);padding:20px;border-radius:16px;margin:0 0 18px;width:100%;box-sizing:border-box;scroll-margin-top:16px}
.generation-progress[hidden]{display:none}.progress-copy{min-width:0;flex:1}.progress-copy strong{display:block;font-size:17px;line-height:1.5;font-weight:700}.progress-copy p{margin:6px 0 0;font-size:13px;line-height:1.7;color:var(--muted)}.progress-mark{display:grid;place-items:center;flex:0 0 34px;height:34px;background:var(--paper);border-radius:50%;margin-top:2px}.progress-mark svg{width:19px;height:19px;color:var(--ink)}.generation-progress[aria-busy=true] .progress-mark{animation:progress-soft 1.8s ease-in-out infinite}.progress-copy #progress-elapsed{display:block;font-size:12px;line-height:1.6;margin-top:9px;color:var(--muted);font-variant-numeric:tabular-nums}.progress-copy #progress-elapsed[hidden]{display:none}.progress-copy #progress-history{padding:0;min-height:44px;margin-top:5px;font-size:13px;text-decoration:underline;text-underline-offset:4px}.generation-progress[data-phase=success] .progress-mark{color:var(--success,#39775F)}.generation-progress[data-phase=success] .progress-mark svg{color:inherit}.generation-progress[data-phase=error],.generation-progress[data-phase=uncertain]{background:#F5EDEF}.generation-progress[data-phase=error] .progress-mark svg,.generation-progress[data-phase=uncertain] .progress-mark svg{color:#A83D51}.create-panel>.generation-progress{max-width:760px;margin:20px auto}.poster-editor>.generation-progress{margin-top:20px}
@keyframes progress-soft{50%{transform:scale(.87);opacity:.65}}
@media(max-width:760px){.generation-progress{gap:12px;padding:17px 16px;margin-bottom:14px;border-radius:14px}.progress-copy strong{font-size:16px}.progress-copy p{font-size:13px}.progress-mark{flex-basis:30px;height:30px}.create-panel>.generation-progress{margin-top:16px}.poster-editor>.generation-progress{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.generation-progress[aria-busy=true] .progress-mark{animation:none}}

/* Only the available tools are exposed. Inspiration is a non-submitted hint. */
#poster-panel,#image-poster,[data-mode=poster],[data-starter=poster]{display:none!important}
.starter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.prompt-field{position:relative}.prompt-inspiration{position:absolute;inset:20px 22px auto;pointer-events:none;color:var(--muted);font-size:17px;line-height:1.8;max-height:calc(100% - 40px);overflow:hidden}.prompt-inspiration[hidden]{display:none}.prompt-inspiration i{display:inline-block;height:1em;width:2px;margin-left:3px;background:var(--muted);vertical-align:-.12em;animation:inspiration-caret 1.1s step-end infinite}.prompt-field textarea{display:block;width:100%}.prompt-field:focus-within .prompt-inspiration{display:none}
@keyframes inspiration-caret{50%{opacity:0}}
@media(max-width:760px){.prompt-inspiration{inset:16px 16px auto;font-size:16px;line-height:1.7}.starter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.prompt-inspiration i{display:none}}

@media(max-width:760px){#edit-panel .inspector-bottom{margin-left:0;margin-right:0;padding-left:0;padding-right:0}}

.starter.coffee-starter>img{object-fit:cover;object-position:50% 67%}

/* Quiet tool navigation: clear return and history targets, without account chrome. */
.topbar{gap:24px}.header-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:13px;background:transparent;color:var(--ink);text-decoration:none;transition:background .18s ease,transform .18s ease}.header-icon svg{width:21px;height:21px;stroke-width:1.8}.header-icon:hover{background:var(--soft)}.header-icon:active{transform:scale(.94)}.header-icon:focus-visible{outline:2px solid var(--ink);outline-offset:3px}.topbar .brand{flex:0 0 auto}.topbar .top-actions{gap:16px}
@media(max-width:760px){.topbar{padding:0 12px;gap:8px;justify-content:space-between}.topbar .brand{margin-left:2px}.topbar .top-actions{margin-left:auto;gap:0}.topbar .brand img{width:85px}.header-icon{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.header-icon{transition:none}}

/* A standalone lab has a quiet, balanced tool title rather than a brand lockup. */
.topbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;padding:0 24px}.tool-title{font-size:15px;line-height:1.3;font-weight:700;text-align:center;color:var(--ink)}.topbar .top-actions{margin:0;gap:0}.topbar #wallet-label{display:none}.workspace-back{margin:0}
@media(max-width:760px){.topbar{padding:0 12px;grid-template-columns:44px minmax(0,1fr) 44px}.tool-title{font-size:14px}}

/* One continuous creation column: idea, controls, outcome, then optional inspiration. */
.create-panel{max-width:1040px;padding-top:36px}.create-intro{padding-top:0}.create-intro h1{font-size:38px;line-height:1.3;margin:0 0 12px;font-weight:650}.create-intro p{margin:0;font-size:14px;line-height:1.7}.idea-composer{max-width:760px;margin:26px auto 34px}.starter-heading,.starter-grid,.generation-results{max-width:760px;margin-left:auto;margin-right:auto}.starter-heading{margin-top:0;margin-bottom:15px}.starter-grid{gap:20px}.starter>img{height:240px}.starter>span{padding:14px 2px}.starter strong{font-size:15px;line-height:1.5}.starter small{font-size:12px;line-height:1.5}
@media(max-width:760px){.topbar{height:56px}.modes{height:56px;padding-top:6px;padding-bottom:6px}.create-panel{padding:28px 18px 30px}.create-intro h1{font-size:28px;line-height:1.35;margin-bottom:10px}.create-intro p{font-size:12px;line-height:1.7}.idea-composer{margin-top:22px;margin-bottom:30px;padding:16px;border-radius:20px}.idea-composer #create-prompt{min-height:120px;font-size:16px;line-height:1.7}.starter-heading h2{font-size:13px;line-height:1.5}.starter-heading>span{font-size:11px}.starter-grid{gap:14px}.starter>img{height:185px}.starter>span{padding:11px 1px}.starter strong{font-size:13px}.starter small{font-size:11px}.inspector-title{margin-bottom:20px}}
@media(max-width:360px){.create-panel{padding-left:16px;padding-right:16px}.create-intro h1{font-size:25px}.create-intro p{font-size:11px}.idea-composer{padding:14px}.starter>img{height:155px}}

main{margin-left:0}.service-notice{max-width:760px;margin:16px auto 0;padding:14px 18px;background:var(--wash);border-radius:12px;color:var(--ink);font-size:13px;line-height:1.7}.service-notice[hidden]{display:none}.service-notice a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
@media(min-width:761px){.modes{max-width:760px;margin:auto;justify-content:center;height:68px;padding:12px 0;position:relative}.modes>button{min-width:150px}.modes .mode-caption{position:absolute;right:0}.create-panel{padding-top:20px}}
@media(max-width:760px){.service-notice{margin:12px 18px 0}}

/* A single sliding plate connects the two ways to work with an image. */
.modes .mode-switch{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:340px;max-width:100%;height:50px;padding:3px;gap:0;background:var(--soft);border-radius:16px}
.mode-switch::before{content:"";position:absolute;left:3px;top:3px;width:calc((100% - 6px)/2);height:calc(100% - 6px);border-radius:13px;background:var(--ink);transform:translateX(0);transition:transform .34s cubic-bezier(.22,1,.36,1);pointer-events:none;z-index:0}
.mode-switch[data-active=edit]::before{transform:translateX(100%)}
.modes .mode-switch>button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;width:100%;height:44px;min-height:44px;padding:0 12px;border-radius:13px;background:transparent;color:var(--muted);font-size:14px;line-height:1.2;white-space:nowrap;transition:color .18s ease}
.modes .mode-switch>button.selected{background:transparent;color:var(--paper)}
.modes .mode-switch>button:focus-visible{outline:2px solid var(--ink);outline-offset:-4px}
.modes .mode-switch>button.selected:focus-visible{outline-color:var(--paper)}
.mode-switch>button svg{width:18px;height:18px;flex:none}
@media(min-width:761px){.modes{height:74px}}
@media(max-width:760px){.modes{height:62px;padding:6px 16px}.modes .mode-switch{width:100%}.modes .mode-switch>button{font-size:13px}}
@media(prefers-reduced-motion:reduce){.mode-switch::before,.modes .mode-switch>button{transition:none}}
.composer-submit .primary{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.composer-submit .primary svg{width:18px;height:18px;flex:none}
