/* Motif Maker web studio — one layout system, independent of the legacy admin UI. */
:root{color-scheme:light;--ink:#243b36;--muted:#697975;--brand:#285c4d;--brand-hover:#194737;--line:#dfe7e4;--surface:#fff;--canvas:#f3f6f5;--tint:#eaf2ee;--radius:14px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--canvas);font-size:14px;line-height:1.6}
*{box-sizing:border-box}body{margin:0;min-width:320px}body,button,input,select,textarea{font-family:inherit}button,input,select,textarea{font-size:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{transition:background .15s,color .15s,border-color .15s}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;min-height:40px;padding:8px 14px;font-weight:600}button:hover{background:var(--tint);border-color:#b5cabe}button:disabled{cursor:wait;opacity:.6}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #80bda8;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p,figure{margin:0}h1{font-family:"Songti SC","STSong",serif;font-weight:600;font-size:30px;line-height:1.3;letter-spacing:.02em}h2{font-size:18px;line-height:1.4}h3{font-size:15px}fieldset{border:0;margin:0;padding:0;min-width:0}legend,label{font-size:13px;font-weight:600}input:not([type=range]):not([type=file]),select,textarea{width:100%;color:var(--ink);background:#fbfcfc;border:1px solid #d6e1dc;border-radius:8px;padding:10px 12px;line-height:1.5}textarea{resize:vertical;min-height:96px;max-height:200px}select{height:42px}img{max-width:100%;display:block}details>summary{cursor:pointer;list-style:none;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:12px}details>summary::-webkit-details-marker{display:none}details>summary::after{content:'+';font-size:18px;color:var(--muted)}details[open]>summary::after{content:'−'}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:10px;left:16px;transform:translateY(-180%);z-index:100;background:var(--brand);color:white;padding:10px}.skip-link:focus{transform:none}
/* A compact product header keeps price, sign-in and account actions together. */
.site-nav{height:76px;display:flex;align-items:center;gap:24px;padding:0 max(28px,calc((100vw - 1280px)/2));background:white;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap;margin-right:auto;color:var(--ink)}.brand:hover{text-decoration:none}.brand-mark{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:var(--brand);color:white;font-family:Georgia,serif;font-size:25px}.brand-name{font-size:17px;letter-spacing:.02em}.brand-slogan{font-size:12px;font-weight:400;color:var(--muted);padding-left:16px;border-left:1px solid var(--line);margin-left:4px}.nav-pricing-link{font-size:13px;white-space:nowrap;font-weight:600}.nav-actions,.account-summary{display:flex;align-items:center;gap:10px;white-space:nowrap}.nav-login{background:transparent;border-color:transparent}.nav-register,.buy-credits-btn,#generate-btn,#photo-style-btn,#profile-buy-credits,#profile-login-btn,.auth-view form>button{background:var(--brand);color:white;border-color:var(--brand)}.nav-register:hover,.buy-credits-btn:hover,#generate-btn:hover,#photo-style-btn:hover,#profile-buy-credits:hover,#profile-login-btn:hover,.auth-view form>button:hover{background:var(--brand-hover)}.account-summary{font-size:12px}.account-summary #account-name{max-width:90px;overflow:hidden;text-overflow:ellipsis}.account-summary strong{font-weight:500;color:var(--muted)}.account-summary #admin-link{margin:0 3px}.account-summary #logout-btn{padding:7px 10px;border-color:transparent;background:transparent;color:var(--muted)}
.page-header,.app-shell,.site-footer{width:min(1280px,calc(100% - 56px));margin-inline:auto}.page-header{padding:28px 0 20px}.page-header p{margin-top:7px;font-size:13px;color:var(--muted)}.app-tabbar{display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto;scrollbar-width:none}.app-tab{flex:0 0 auto;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 0 13px;color:var(--muted);font-weight:600;min-height:46px}.app-tab:hover{background:transparent;color:var(--brand)}.app-tab.is-active{border-bottom-color:var(--brand);color:var(--brand)}.credits-tab{margin-left:auto}.guest-banner{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--tint);border-radius:9px;margin-bottom:18px;font-size:12px}.guest-banner>span{font-weight:700;white-space:nowrap}.guest-banner p{color:var(--muted)}.guest-banner button{margin-left:auto;white-space:nowrap;min-height:30px;padding:4px 10px;font-size:12px;background:transparent;border-color:transparent}.site-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 14px;padding:22px 0;margin-top:24px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.site-footer a{color:var(--muted)}
/* Two equal-height work surfaces: parameters and the artwork, with one persistent action. */
.create-panel{display:grid;grid-template-columns:420px minmax(0,1fr);gap:20px;align-items:stretch}.left-panel,.right-panel{border:1px solid var(--line);border-radius:var(--radius);background:white;min-width:0;overflow:hidden}.left-panel{min-height:700px}.creation-mode-switch{display:none}#pattern-controls{height:100%;display:flex;flex-direction:column}.parameter-scroll{padding:22px 24px;overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#c1d2c9 transparent;outline-offset:-4px}.form-section,.prompt-section{margin-bottom:20px}.form-section h2,.artist-section h2{font-size:13px;font-weight:650;margin-bottom:10px}.designer-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.designer-card{display:flex;align-items:center;gap:8px;min-width:0;min-height:44px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:white;text-align:left}.designer-card img{width:29px;height:29px;object-fit:cover;border-radius:50%;flex:0 0 29px}.designer-card p{font-size:11px;font-weight:500;line-height:1.4}.designer-card.active{border-color:var(--brand);background:var(--tint);box-shadow:inset 0 0 0 .5px var(--brand)}.prompt-section>label{display:block;margin-bottom:8px}.prompt-section textarea{font-size:13px}.field-help{color:var(--muted);font-size:11px;margin-top:6px}.creation-essentials{display:grid;gap:14px;margin-bottom:18px}.creation-essentials>label{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:12px}.choice-group legend{margin-bottom:8px;font-size:12px;color:var(--muted)}.creation-essentials .choice-group{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:12px}.creation-essentials .choice-group legend{float:left;margin:0;font-size:13px;color:var(--ink)}.preference-choices{display:flex;gap:6px}.preference-btn{flex:1;padding:6px 8px;min-height:34px;font-size:12px;font-weight:500;background:#f5f7f6;border-color:transparent}.preference-btn.active,.shape-btn.active,.event-btn.active{background:var(--tint);color:var(--brand);border-color:#86aa9b}.advanced-preferences{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.advanced-preferences>summary{padding:12px 0}.advanced-preferences[open]>summary{margin-bottom:12px}.advanced-preferences .preference-section>h2,.advanced-preferences .preference-section>.field-help,.advanced-preferences .section-kicker{display:none}.advanced-preferences .choice-group{margin-bottom:14px}.preference-grid{display:grid;gap:12px}.preference-grid label{display:grid;gap:6px}.optional-preferences{border-top:1px solid var(--line);padding:12px 0}.optional-preferences[open]>summary{margin-bottom:14px}.color-selection{display:flex;gap:14px;justify-content:space-between}.color-swatch{width:30px;height:30px;min-height:30px;border-radius:50%;padding:0;border:3px solid white;box-shadow:0 0 0 1px var(--line)}.color-swatch.active{box-shadow:0 0 0 2px var(--brand)}.color-item{display:flex;flex-direction:column;align-items:center;gap:8px}.color-personality{display:none}.shape-selection,.event-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.shape-btn,.event-btn{min-height:40px;padding:8px;text-align:left;font-size:12px;font-weight:500}.shape-btn span{display:block}.shape-btn span+span{font-size:10px;color:var(--muted)}.slideshow-container{display:flex;align-items:center;justify-content:space-between;padding:10px;background:var(--tint);border-radius:8px}.slide{font-size:12px}.prev,.next{font-size:14px;padding:5px 9px;min-height:32px}.generation-actions{flex:0 0 auto;padding:16px 24px 20px;border-top:1px solid var(--line);background:#fff}.recipe-card{margin:0 0 12px}.recipe-card>span{display:none}.recipe-card strong{display:block;font-size:12px;font-weight:600}.recipe-card p{font-size:10px;color:var(--muted);margin-top:3px}#generate-btn,#photo-style-btn{width:100%;min-height:46px;font-size:14px}#loading-indicator,#photo-loading{font-size:12px;padding:10px 0;color:var(--brand)}.error-message{margin-top:10px;padding:10px 12px;border-radius:8px;background:#fff0ed;color:#a33927;font-size:12px;overflow-wrap:anywhere}
.right-panel{display:flex;flex-direction:column;padding:24px;min-height:700px;background:#edf2ef}.result-intro{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;width:100%;text-align:center}.studio-art{width:100%;margin:0 0 15px}.studio-art img{width:100%;height:410px;object-fit:cover;border-radius:10px}.studio-art figcaption{font-size:10px;color:var(--muted);margin-top:8px}#result-eyebrow{display:none}#result-title{font-size:17px;font-weight:600;margin:4px 0 7px}#result-description{font-size:12px;color:var(--muted);max-width:440px}.inspiration-guide{width:100%;margin-top:20px;padding-top:16px;border-top:1px solid #d6e2dc}.inspiration-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:10px}.inspiration-heading h3{font-size:12px}.inspiration-heading>div>span{display:none}.inspiration-heading>p{font-size:10px;color:var(--muted)}.prompt-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.prompt-examples button{position:relative;text-align:left;padding:10px 12px;min-height:66px;background:#fff;border:1px solid #d8e3dc;border-radius:9px}.prompt-examples strong{display:block;font-size:12px}.prompt-meta{display:block;font-size:10px;color:var(--muted);margin-top:4px}.prompt-card-top{position:absolute;top:8px;right:10px;color:#7f9c8f;font-size:12px}.prompt-examples button:hover{border-color:var(--brand);background:#fafffc}
/* Photo creation uses the same work surfaces. */
.photo-style-controls{padding:24px;height:100%;overflow-y:auto}.photo-style-controls>.section-kicker{display:none}.photo-style-controls>h2{font-size:15px}.photo-style-controls>.field-help{margin-bottom:18px}.photo-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-height:142px;padding:18px;text-align:center;border:1px dashed #a8bfb3;background:#f6faf7;border-radius:10px;cursor:pointer;margin-bottom:20px;overflow:hidden}.photo-dropzone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.photo-dropzone span{display:block;font-size:11px;color:var(--muted);margin-top:3px}#photo-preview{max-height:130px;object-fit:contain;border-radius:6px}.photo-style-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.photo-style-list legend{margin-bottom:10px}.photo-style-option{text-align:left;padding:13px 10px;min-height:78px;font-weight:500}.photo-style-option strong{font-size:12px}.photo-style-option span{display:block;margin-top:4px;color:var(--muted);font-size:10px}.photo-style-option.active{background:var(--tint);border-color:var(--brand)}.style-strength{display:grid;gap:10px;margin:24px 0}.style-strength input{width:100%;accent-color:var(--brand)}.style-strength>span{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.style-strength b{font-weight:400}.photo-preview-stage{width:100%;flex:1;display:flex;flex-direction:column;min-height:400px;text-align:left}.preview-toolbar{display:flex;justify-content:space-between;font-size:12px;padding-bottom:15px;color:var(--muted)}.preview-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:340px;border:1px dashed #c8d8cf;border-radius:10px;color:#7d988a}.preview-empty p{font-size:12px}.preview-empty strong{font-size:14px}.preview-footnote{font-size:10px;color:var(--muted);text-align:center;margin:12px 0}.has-photo .preview-empty{display:none}#photo-stage-image{width:100%;height:400px;object-fit:contain;border-radius:10px}body[data-page=photo] #result-title,body[data-page=photo] #result-description{display:none}#photo-guide h3{font-size:12px;margin-bottom:10px}#photo-guide ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0;padding:0;list-style:none}#photo-guide li strong{display:block;font-size:12px;margin-bottom:4px}#photo-guide li span{font-size:10px;color:var(--muted)}
/* Generated artwork is the focus; downloading is always explicit. */
.result-actions{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;font-size:12px}.result-actions h3{font-size:14px}#pattern-result{width:100%}#image-container{position:relative}#generated-image{width:100%;height:500px;object-fit:contain;border-radius:10px;background:white}.ai-label{position:absolute;top:12px;left:12px;border-radius:5px;padding:3px 7px;color:white;background:#244b3dcc;font-size:10px}#zoom-btn{position:absolute;bottom:12px;right:12px;font-size:12px;min-height:34px}#qrcode-container{display:none}.chat-interface{margin-top:18px}.chat-input{display:flex;gap:8px}.chat-input input{flex:1;min-width:0}#chat-history{max-height:160px;overflow:auto;margin-bottom:12px;font-size:12px}.message{padding:10px;background:white;border-radius:8px;margin-bottom:8px}.modal{position:fixed;inset:0;z-index:110;background:#10231ded;display:flex;align-items:center;justify-content:center;padding:40px}.modal-content{max-width:95%;max-height:90vh;object-fit:contain}.close-modal{position:absolute;right:20px;top:20px;color:white;background:transparent;font-size:30px;border:0}
/* Account: compact identity and balance cards above a useful activity area. */
.account-card{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}.account-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px}.account-heading .section-kicker,.account-heading h2,.account-heading p{display:none}.account-heading{height:0;position:relative}.account-pricing-link{position:absolute;right:0;top:-65px;font-size:12px}.account-overview{display:contents}.account-overview-main{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.account-profile-card{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:20px}.account-profile-card>div{min-width:0}.account-profile-card strong{font-size:15px}.account-profile-card small{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.account-profile-card>a{margin-left:auto;font-size:12px;white-space:nowrap}.account-balance-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}.balance-label{display:block;font-size:13px;font-weight:600}.balance-caption{display:block;color:var(--muted);font-size:11px;margin-top:5px}.account-balance-panel>strong{font-weight:500;font-size:12px;color:var(--muted);white-space:nowrap}.account-balance-panel b{font-size:44px;line-height:1;letter-spacing:-.04em;color:var(--brand);margin-right:8px;font-weight:600}.account-action-list{display:flex;gap:10px}.account-action-list button{font-size:12px;min-height:40px}#profile-logout-btn{background:transparent;color:var(--muted);border-color:transparent;margin-left:auto}.account-help{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.section-kicker{color:var(--muted);font-size:10px;letter-spacing:.06em;margin-bottom:6px}.account-help h3{margin-bottom:18px}.account-help details{border-top:1px solid var(--line);padding:12px 0}.account-help details summary{font-size:12px;font-weight:500}.account-help details p{font-size:11px;color:var(--muted);margin-top:9px}.account-activity{grid-column:1/-1;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-height:200px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-heading h3{font-size:15px}.section-heading .section-kicker{display:none}#refresh-activity{font-size:12px;min-height:32px;padding:5px 10px}#account-ledger{font-size:12px;color:var(--muted);padding:16px 0}.ledger-row{display:grid;grid-template-columns:1fr 140px 100px;gap:15px;border-bottom:1px solid var(--line);padding:14px 0}.ledger-row strong{text-align:right;color:var(--ink)}
.credit-shop,.local-gallery-section{background:white;padding:28px;border:1px solid var(--line);border-radius:var(--radius)}.back-account{font-size:12px;background:transparent;border:0;padding:0;margin-bottom:12px;color:var(--muted)}.credit-shop-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.credit-shop-heading>div>span{font-size:11px;color:var(--muted)}.credit-shop-heading h2{margin-top:4px}.payment-status{font-size:11px;color:var(--brand);padding:5px 10px;border-radius:20px;background:var(--tint)}.package-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.package-card{display:flex;flex-direction:column;gap:8px;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fafcfb}.package-card strong{font-size:16px}.package-card span{font-size:13px;color:var(--muted)}.package-card button{background:var(--brand);color:white;border-color:var(--brand);margin-top:14px}.storage-note{font-size:12px;color:var(--muted);margin:18px 0}.payment-recovery{display:flex;gap:12px;align-items:center}.payment-recovery a{padding:10px;border:1px solid var(--line);border-radius:8px}.local-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.works-empty{grid-column:1/-1;text-align:center;padding:60px 20px}.works-empty p{margin-bottom:18px;color:var(--muted)}.local-work{border:1px solid var(--line);padding:12px;border-radius:10px}.local-work img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px}.local-work p{font-size:11px;color:var(--muted);margin:12px 0}.local-work button{font-size:12px;margin-right:6px;min-height:34px}
/* Auth stays consistent with the product instead of inheriting the old dark theme. */
.auth-panel{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:100;padding:24px}.auth-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:#18392b66;cursor:default}.auth-backdrop:hover{background:#18392b66}.auth-card{position:relative;z-index:1;display:grid;grid-template-columns:260px minmax(0,1fr);gap:30px;background:white;border-radius:18px;padding:26px;width:min(720px,100%);max-height:calc(100dvh - 48px);overflow:auto;box-shadow:0 24px 90px #172e2533}.close-auth{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:26px;padding:0 8px;color:var(--muted);z-index:2}.auth-brand-panel{display:flex;flex-direction:column;padding:24px;background:var(--brand);color:white;border-radius:11px;min-height:330px}.auth-brand-mark{font:36px Georgia,serif;margin-bottom:auto}.auth-brand-overline{font-size:10px;letter-spacing:.12em;margin-bottom:10px}.auth-brand-panel h2{font-family:"Songti SC",serif;font-size:25px;line-height:1.5}.auth-brand-panel>p:last-child{font-size:11px;line-height:1.8;color:#c9ded3;margin-top:16px}.auth-view{padding:25px 0 5px}.auth-view h2{font-size:22px}.auth-intro{font-size:12px;color:var(--muted);margin:8px 0 22px}.auth-view form{display:grid;gap:14px}.auth-view form label{display:grid;gap:6px;font-size:12px}.auth-view form>button{margin-top:5px}.auth-switch{font-size:11px;color:var(--muted);margin-top:18px}.auth-switch button{border:0;padding:0 6px;color:var(--brand);font-size:11px;background:transparent;min-height:30px}.auth-message{grid-column:2;font-size:12px;color:#a33927}.auth-message:empty{display:none}
@media(min-width:1450px){.left-panel{min-height:740px}.right-panel{min-height:740px}.studio-art img{height:440px}}
@media(max-width:1100px){.brand-slogan{display:none}.site-nav{gap:18px}.create-panel{grid-template-columns:380px minmax(0,1fr)}.parameter-scroll,.generation-actions,.photo-style-controls{padding-left:20px;padding-right:20px}.right-panel{padding:20px}.studio-art img{height:360px}.account-summary #account-name{display:none}}
@media(max-width:850px){.left-panel{min-height:0}.site-nav{height:68px;padding:0 20px;gap:16px}.brand-name{font-size:15px}.account-summary strong,.account-summary #admin-link{display:none}.page-header,.app-shell,.site-footer{width:calc(100% - 40px)}.create-panel{grid-template-columns:1fr}.left-panel{height:auto}.right-panel{min-height:0}.parameter-scroll{overflow:visible}.generation-actions{padding-top:16px}.designer-selection{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-art img{height:380px}.account-card{grid-template-columns:minmax(0,1fr) 260px}.package-list{gap:10px}.package-card{padding:18px}.photo-preview-stage{min-height:320px}.account-pricing-link{top:-63px}}
@media(max-width:600px){.site-nav{padding:0 14px;gap:12px;height:64px}.brand{gap:8px}.brand-mark{width:31px;height:31px;flex-basis:31px;font-size:22px;border-radius:9px}.brand-name{font-size:13px}.site-nav .nav-pricing-link{font-size:11px}.nav-actions,.account-summary{gap:3px}.nav-actions button,.account-summary button{padding:7px 9px;font-size:11px;min-height:34px}.site-nav .brand-slogan{display:none}.page-header,.app-shell,.site-footer{width:calc(100% - 28px)}.page-header{padding:24px 0 16px}h1{font-size:25px}.page-header p{font-size:12px}.app-tabbar{gap:19px;margin-bottom:16px}.app-tab{font-size:12px;min-height:42px;padding-bottom:10px}.credits-tab{margin-left:0}.guest-banner{padding:9px 12px;gap:8px}.guest-banner>span{display:none}.guest-banner p{font-size:10px;max-width:230px}.guest-banner button{font-size:10px;padding:4px}.create-panel{gap:14px}.parameter-scroll,.generation-actions,.photo-style-controls{padding:18px}.designer-selection{grid-template-columns:repeat(2,minmax(0,1fr))}.designer-card{min-height:46px}.designer-card p{font-size:11px}.creation-essentials{gap:14px}.right-panel{padding:18px}.studio-art img{height:auto;aspect-ratio:1.15;object-fit:cover}.prompt-examples{gap:6px}.prompt-examples button{padding:12px 9px;min-height:74px}.prompt-examples strong{font-size:11px}.prompt-meta{font-size:9px}.prompt-card-top{right:7px;top:5px;font-size:10px}.inspiration-heading>p{font-size:9px}#result-title{font-size:16px}#result-description{font-size:11px}.account-card{grid-template-columns:1fr;gap:14px}.account-heading{display:none}.account-overview-main,.account-help,.account-activity{padding:20px}.account-help{order:3}.account-activity{grid-column:1;min-height:180px}.account-balance-panel b{font-size:38px}.account-profile-card small{font-size:11px}.ledger-row{grid-template-columns:1fr auto auto;gap:12px;font-size:11px}.credit-shop,.local-gallery-section{padding:20px}.credit-shop-heading{align-items:flex-start;flex-direction:column;gap:10px}.package-list,.local-gallery{grid-template-columns:1fr}.package-card{padding:22px}.photo-style-controls{max-height:none}.photo-preview-stage{min-height:300px}.preview-empty{min-height:260px}#photo-stage-image{height:300px}#photo-guide ol{gap:10px}#generated-image{height:auto}.site-footer{font-size:10px;padding:18px 4px;margin-top:20px}.footer-divider{display:none}.auth-card{grid-template-columns:1fr;gap:0;padding:22px}.auth-brand-panel{display:none}.auth-view{padding:10px 0}.auth-message{grid-column:1}.modal{padding:16px}.payment-recovery{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.account-menu{position:relative}.account-menu>summary{display:flex;gap:7px;padding:6px;border-radius:8px;font-size:12px}.account-menu>summary::after{content:'⌄';font-size:12px}.account-menu[open]>summary{background:var(--tint)}.nav-avatar{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--tint);color:var(--brand);font:16px Georgia,serif}.account-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:160px;padding:6px;border:1px solid var(--line);border-radius:10px;background:white;box-shadow:0 10px 30px #244b3d1a}.account-menu-panel>a,.account-menu-panel>button{display:block;width:100%;text-align:left;padding:9px 12px!important;margin:0!important;min-height:36px;border:0;font-size:12px;font-weight:500;border-radius:6px}.account-menu-panel>a:hover{background:var(--tint);text-decoration:none}.account-summary .account-menu #account-name{display:inline}.account-summary .account-menu #admin-link:not([hidden]){display:block}.shape-item{min-width:0}.shape-btn{width:100%}.tooltip{font-size:10px;color:var(--muted);padding:3px 0 6px}.package-card>span:last-of-type{font-size:32px;font-weight:600;color:var(--ink);margin:12px 0}.package-actions button{width:100%}.color-personality{display:none}.creation-essentials:empty{display:none}
@media(max-width:600px){.account-summary .account-menu #account-name{display:none}.account-menu>summary{gap:3px;padding:3px}.site-nav{gap:10px}.nav-balance{display:none}.brand-name{font-size:12px}.nav-actions{gap:0}.nav-actions button{padding:7px}.site-nav .nav-pricing-link{font-size:10px}}
.account-heading{display:none}

.credit-shop{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.credit-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.credit-shop-toolbar p{font-size:12px;color:var(--muted)}
.payment-status{flex:0 0 auto;font-size:11px;font-weight:600;color:var(--brand);padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--tint)}
.payment-status[data-state="paused"],.payment-status[data-state="test"]{color:#765c34;background:#fbf4e8;border-color:#eddfc1}
.package-list{gap:14px}
.package-card{gap:8px;padding:22px;border-radius:12px;background:#fbfcfb}
.package-card strong{font-size:15px}
.package-card span{font-size:12px}
.package-card span:nth-of-type(2){font-size:26px;font-weight:650;letter-spacing:-.03em;color:var(--ink);margin:4px 0 8px}
.package-actions{margin-top:auto}
.package-actions button{width:100%;min-height:42px;margin-top:8px;font-size:12px}
.storage-note{margin:14px 0 0;font-size:11px;line-height:1.7}
@media(max-width:600px){.credit-shop{padding:16px}.credit-shop-toolbar{align-items:flex-start;flex-direction:column;gap:9px}.package-list{gap:10px}.package-card{padding:18px}}
/* Mobile creation flow: keep controls and preview inside the viewport. */
@media(max-width:600px){
  html,body{max-width:100%;overflow-x:clip}
  .page-header,.app-shell,.site-footer{width:calc(100% - 24px);min-width:0}
  .app-shell{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  .app-tabbar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;width:100%;padding:4px;margin:0 0 12px;background:#ffffffed}
  .app-tab{min-width:0;min-height:44px;padding:6px 2px 8px;font-size:11px;white-space:nowrap}
  .credits-tab{margin-left:0}
  .create-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;min-width:0}
  .left-panel,.right-panel{width:100%;min-width:0;min-height:0}
  #pattern-controls{height:auto;min-width:0}
  .parameter-scroll{padding:16px;overflow:visible}
  .creation-essentials>label,.creation-essentials .choice-group{grid-template-columns:minmax(0,1fr);gap:7px;align-items:stretch}
  .preference-choices{min-width:0;gap:5px}
  .preference-btn{min-width:0;padding-inline:3px;font-size:11px;white-space:nowrap}
  .creation-essentials [data-choice="mood"]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .creation-essentials [data-choice="mood"] .preference-btn{min-height:44px;padding-inline:2px;font-size:12px}
  .color-palette{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .color-item{min-width:0}.color-item>span{font-size:10px;text-align:center;overflow-wrap:anywhere}
  .shape-selection,.event-selection{grid-template-columns:repeat(2,minmax(0,1fr))}
  .right-panel{padding:16px;overflow:hidden}
  .prompt-examples{grid-template-columns:1fr;gap:7px}
  #generated-image{height:auto;max-height:70vh;aspect-ratio:1;object-fit:contain}
}
