/* Phase one: an inviting front door, then one task per mobile screen. */
.welcome{max-width:1270px;margin:auto;padding:50px 38px 38px}.welcome-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:60px;align-items:center;padding:28px 0 65px}.hero-copy .eyebrow{color:#627457;letter-spacing:2px}.hero-copy h1{font-weight:550;font-size:clamp(36px,4.3vw,58px);line-height:1.32;letter-spacing:-2px;margin:20px 0}.hero-copy h1 span{color:var(--orange)}.hero-copy>p{font-size:15px;line-height:1.9;color:#748068}.welcome-actions{display:flex;gap:12px;margin:28px 0 10px}.welcome-actions .btn{height:47px;padding:0 22px;font-size:13px}.hero-copy>.link{padding:10px 0;font-size:12px}.welcome-trust{display:flex;flex-wrap:wrap;gap:18px;color:#78856e;font-size:10px;margin-top:23px}.welcome-trust span:before{content:'✓';color:var(--green);margin-right:5px}.hero-art{position:relative;background:#eaf0df;border-radius:14px 70px 14px 14px;padding:28px 34px 22px;transform:rotate(2deg);box-shadow:0 18px 35px #4a603910}.case-label{font:9px Georgia,serif;letter-spacing:2px;color:#6e7f5f}.hero-art canvas{display:block;width:100%;max-width:320px;margin:10px auto 0;filter:drop-shadow(0 4px 1px #31462710)}.hero-art-note{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#4b6140;padding-top:15px;border-top:1px solid #718b5322}.hero-art-note b{font-weight:550}.hero-art-note span{font-size:10px}.preview-label{font-size:9px;color:#7f8c72;display:block;margin-top:13px}.case-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.case-heading h2{font-size:25px;font-weight:550;letter-spacing:-.5px;margin:12px 0}.case-heading p{font-size:12px;color:#7e8a73;margin:0}.case-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:28px}.example-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white;transition:box-shadow .2s,transform .2s}.example-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px #52634f12}.example-art{display:block;position:relative;width:100%;background:#f0f2e8;padding:16px 30px}.example-card:nth-child(2) .example-art{background:#f6eeeb}.example-card:nth-child(3) .example-art{background:#f6f1e7}.example-card:nth-child(4) .example-art{background:#eaf0ea}.example-art canvas{width:100%;height:auto;display:block}.example-tag{position:absolute;left:12px;top:12px;font-size:9px;letter-spacing:.5px;color:#65745c;background:#ffffffc9;border-radius:20px;padding:5px 9px}.example-body{padding:17px 18px}.example-body h3{font-size:15px;font-weight:550;margin:0 0 10px}.example-body p{font-size:11px;line-height:1.8;color:#7d8675;min-height:40px;margin:0}.example-body .example-meta{font-size:10px;min-height:auto;color:#52634f;margin:12px 0}.example-body .link{padding-left:0}.welcome-how{display:flex;justify-content:center;gap:40px;padding:35px 0;color:#728266;font-size:12px}.welcome-how b{font:18px Georgia;color:#a5b098;margin-right:10px}.welcome-how i{font-style:normal;color:#bdc7b3}.case-disclosure{font-size:10px;text-align:center;color:#84907b;line-height:1.8;margin:0}.color-credit{text-align:center;font-size:10px;color:#84907b;padding:20px;line-height:1.8}.color-credit a{color:#64775b;text-underline-offset:3px}.work-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 28px 20px;padding:13px 18px;border-radius:8px;background:#edf1e7}.work-intro p{font-size:12px;color:#52634f;margin:0;line-height:1.7;font-variant-numeric:tabular-nums}.work-intro>span{font-size:10px;color:#7a896d;white-space:nowrap}.plan-section{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}.plan-section h2{font-size:15px;margin:9px 0 15px;font-weight:550}.plan-picks{display:grid;grid-template-columns:1fr 1fr;gap:7px}.plan-picks button{border:1px solid #dde4d4;border-radius:8px;padding:12px 7px;text-align:left;line-height:1.5}.plan-picks button[aria-pressed=true]{background:#edf2e5;border-color:#82956f;color:#43583a;box-shadow:inset 0 0 0 1px #82956f}.plan-picks b{font-size:12px;display:block}.plan-picks small{display:block;font-size:9px;color:#8a967f;margin-top:6px}.note.pending{color:#b1643c}.kit-label{margin-top:14px}.palette-name{font-size:10px;line-height:1.6}.mobile-tabs{display:none}#sizes{flex-wrap:wrap}#sizes button{min-width:44px}#portraitColors{flex-wrap:wrap;margin-top:14px}#portraitColors button{min-width:35px}#brandColorsDialog{width:min(640px,94vw);max-height:85vh;overflow:auto}.brand-color-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:15px;max-height:48vh;overflow:auto}.brand-color{display:flex;flex-direction:column;align-items:center;gap:7px;padding:9px;border:1px solid var(--line);border-radius:8px}.brand-color i{width:100%;height:30px;border:1px solid #0001;border-radius:5px}.brand-color b{font-size:12px}.brand-color small{font-size:9px;color:#8c9289}#convertPalette{font-size:11px;margin:0 0 10px}.stat b{font-size:17px}.color-desc strong{font-size:11px}.note,dialog p{color:#7b8671}.color-desc small{color:#7b8671}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.example-card:hover{transform:none}}
@media(max-width:1000px){.welcome{padding:30px 25px}.welcome-hero{gap:30px}.hero-copy h1{font-size:40px}.welcome-trust{gap:10px}.hero-art{padding:24px}.case-gallery{gap:12px}.example-body{padding:15px 12px}.example-art{padding:15px 20px}.welcome-actions{flex-wrap:wrap}.hero-art-note{flex-direction:column;align-items:flex-start}.case-heading>.quiet{display:none}}
@media(max-width:700px){
 body{font-size:14px}header{height:auto;min-height:68px;padding:12px 16px;gap:16px;flex-wrap:wrap}.brand{gap:8px}.brand b{font-size:22px}.brand small{font-size:8px}nav{margin-left:auto;gap:8px;height:auto}nav>span{display:none}nav .quiet{font-size:11px;min-height:36px;padding:0 5px}#newWork,#help{display:none}.header-right{display:none}
 .welcome{padding:30px 20px}.welcome-hero{grid-template-columns:1fr;gap:30px;padding:5px 0 45px}.hero-copy h1{font-size:39px;line-height:1.33;margin:17px 0}.hero-copy>p{font-size:13px;line-height:1.85}.hero-copy .eyebrow{font-size:9px;letter-spacing:1.5px}.welcome-actions{gap:10px;margin-top:23px}.welcome-actions .btn{flex:1;min-width:145px;font-size:12px;padding:0 12px;min-height:48px}.hero-copy>.link{font-size:12px;min-height:40px;text-align:left}.welcome-trust{font-size:9px;margin-top:15px;gap:12px}.hero-art{margin:0 9px;padding:22px 27px 18px;border-radius:12px 45px 12px 12px;transform:rotate(1.5deg)}.hero-art canvas{max-width:240px;margin-top:0}.hero-art-note{flex-direction:row;align-items:center;font-size:12px}.hero-art-note span{font-size:9px}.case-heading h2{font-size:22px;line-height:1.5}.case-heading p{font-size:12px;line-height:1.8}.case-gallery{grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.example-art{padding:14px 18px}.example-tag{left:8px;top:8px;font-size:8px;padding:4px 7px}.example-body{padding:13px 12px}.example-body h3{font-size:13px}.example-body p{font-size:11px;min-height:59px}.example-body .example-meta{font-size:9px;line-height:1.7}.example-body .link{font-size:11px;min-height:36px}.welcome-how{gap:8px;font-size:10px;justify-content:space-between;padding:30px 0}.welcome-how b{font-size:14px;margin-right:3px}.case-disclosure{font-size:10px;text-align:left}
 .topline{padding:18px 16px;align-items:center;gap:10px}.project-title input{width:min(43vw,195px);font-size:17px}.actions{gap:7px}.actions .btn{height:42px;padding:0 11px}.actions .save-label{display:inline}.actions .btn .i{display:none}.subline{font-size:10px;max-width:195px;line-height:1.6}.work-intro{margin:0 12px 14px;padding:12px;flex-direction:column;align-items:flex-start;gap:5px}.work-intro p{font-size:12px}.work-intro>span{font-size:10px}.mobile-tabs{position:sticky;top:0;z-index:5;display:flex;padding:8px 12px 11px;background:#fafbf7f2;backdrop-filter:blur(8px);gap:6px;border-bottom:1px solid var(--line);margin-bottom:14px}.mobile-tabs button{flex:1;min-height:43px;border:1px solid #e0e5d6;border-radius:8px;background:white;font-size:12px;white-space:nowrap}.mobile-tabs button[aria-selected=true]{background:var(--green);border-color:var(--green);color:white}
 .layout{display:block}.layout>.left,.layout>.center,.layout>.right{display:none}.layout[data-mobile-panel=settings]>.left,.layout[data-mobile-panel=result]>.center,.layout[data-mobile-panel=materials]>.right{display:block;width:100%}.panel-section,.left .panel-section{padding:20px 18px}.plan-section h2{font-size:17px}.plan-picks button{padding:14px}.plan-picks b{font-size:14px}.plan-picks small{font-size:11px}.field label{font-size:13px}.field label b{font-size:13px}.seg button,.mode-picker .seg button{height:40px;font-size:12px}.select{font-size:13px;min-height:43px;height:43px}.note{font-size:11px}.section-head h2{font-size:14px}.toggle-row{font-size:13px;min-height:40px}.toggle-row input{height:20px;width:20px}.upload{min-height:145px}.upload b{font-size:14px}.upload small{font-size:11px}.full{height:45px}.mode-picker p{font-size:12px}.range-labels{font-size:11px}input[type=range]{min-height:28px}.example-line{font-size:11px}.example-line .link{min-height:36px;font-size:12px}.workspace{min-height:390px;padding:46px 4px 52px 44px}.canvas-viewport{max-height:66vh;padding:10px}.view-tabs{gap:10px;width:100%;justify-content:space-between}.view-tabs button{font-size:11px;min-height:50px}.editor-head{padding:0 12px}.comparison.is-compare{grid-template-columns:1fr}.comparison figure{max-width:100%}.comparison figcaption{font-size:11px}.canvas-tag{font-size:9px;right:10px}.tools{left:7px;padding:3px}.tools button{height:31px;width:29px}.zoom{height:37px}.zoom button{height:32px;width:32px}.zoom span{font-size:12px}.editor-foot{font-size:10px}.right .palette-list{max-height:45vh}.color-row{padding:11px 8px;min-height:53px}.color-desc strong,.count{font-size:13px}.color-desc small{font-size:11px}.swatch{height:30px;width:30px}.palette-footer{font-size:11px;gap:10px}.palette-footer .link{font-size:12px}.stat span{font-size:12px}.stat b{font-size:22px}.stat small{font-size:11px}.export-card h3{font-size:15px}.export-card p{font-size:12px}.export-card button{min-height:44px}.page-bottom{padding-top:20px}.brand-color-list{grid-template-columns:repeat(4,minmax(0,1fr))}.brand-color{min-height:80px;padding:7px}dialog .choice{min-height:64px}dialog .choice b{font-size:14px}dialog .choice small{font-size:12px}.crop-controls label{font-size:12px}.crop-bottom span{font-size:12px}.crop-bottom .btn{min-height:44px}.anime-actions .btn{min-height:44px}#seedreamConfig summary{font-size:12px;padding:8px 0}
}
@media(max-width:700px){.comparison.is-compare{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison.is-compare.three-way{grid-template-columns:repeat(3,minmax(0,1fr))}.comparison.is-compare figcaption{font-size:10px;min-height:16px}}
@media(max-width:700px){.hero-copy h1{font-size:clamp(30px,9.5vw,39px)}}
@media(max-width:380px){.topline{flex-wrap:wrap}.topline>div:first-child{width:100%}.project-title input{width:calc(100vw - 80px)}.actions{width:100%}.actions .btn{flex:1;white-space:nowrap;font-size:12px}.subline{max-width:100%}}

nav>button{position:relative;height:100%}nav>button.is-current{color:#3f5039;font-weight:600}nav>button.is-current:after{content:'';height:3px;background:var(--orange);position:absolute;bottom:0;left:0;right:0}@media(max-width:700px){nav>button{height:auto}nav>button.is-current:after{height:2px;bottom:-6px}}

#releaseNotesDialog{width:min(680px,94vw);max-height:88vh;overflow:auto;padding:30px;scrollbar-width:thin}#releaseNotesDialog h2{font-size:24px;line-height:1.5;margin:12px 28px 6px 0;font-weight:550}.release-intro{display:flex;align-items:center;gap:12px;margin:0 0 22px}.release-badge{font-size:11px;color:#52634f;background:#edf2e5;border:1px solid #dce6d1;padding:4px 9px;border-radius:20px}.release-entry{padding:20px 0;border-top:1px solid var(--line)}.release-heading{display:flex;justify-content:space-between;gap:14px;align-items:baseline}.release-heading h3{font-size:16px;font-weight:600;margin:0;color:#43583a}.release-heading h3 span{font-size:13px;font-weight:500;margin-left:8px;color:#697c5d}.release-heading time{font-size:11px;color:#8b9780;white-space:nowrap;font-variant-numeric:tabular-nums}.release-entry ul{margin:13px 0 0;padding-left:20px;color:#6a7761;font-size:12px;line-height:1.9}.release-entry li+li{margin-top:6px}.release-entry strong{font-weight:550;color:#52634f}.release-foundation p{font-size:12px;margin-bottom:0}.release-boundaries{background:#f4f3eb;border:1px solid #e9e7d9;padding:15px 17px;border-radius:9px}.release-boundaries h3{margin:0;font-size:12px;font-weight:550;color:#756f54}.release-boundaries p{margin:7px 0 0;font-size:11px;line-height:1.8;color:#8b846e}#releaseNotesDialog>.full{margin-top:20px;min-height:43px}
@media(max-width:700px){#releaseNotesDialog{padding:22px 20px;max-height:88dvh}#releaseNotesDialog h2{font-size:21px}.release-heading{flex-wrap:wrap;gap:6px}.release-heading h3{font-size:16px}.release-heading h3 span{font-size:12px}.release-heading time{font-size:11px}.release-entry ul{font-size:13px;line-height:1.85;padding-left:18px}.release-intro{font-size:12px;flex-wrap:wrap}.release-boundaries p{font-size:12px}.release-foundation p{font-size:13px}#releaseNotesOpen{white-space:nowrap}}
@media(max-width:380px){header nav{width:100%;margin-left:0;justify-content:space-between}}

/* Keep the editing loop in one viewport; long lists scroll inside their panels. */
.settings-tabs{display:flex;gap:6px;padding:10px;border-bottom:1px solid var(--line);background:#f5f6f0;flex-shrink:0}
.settings-tabs button{flex:1;min-height:38px;border-radius:7px;font-weight:600;font-size:12px}
.settings-tabs button[aria-selected=true]{background:white;color:var(--green);box-shadow:0 2px 6px #313c3410}
.settings-actions{padding:12px 16px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}
.settings-actions #generate{margin:0;min-height:40px}
.settings-actions .note{margin:7px 0 0}
#studioLayout .right .craft-bar{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 16px;display:flex;flex-wrap:wrap;gap:8px}
#studioLayout .right .craft-bar label{width:100%;justify-content:space-between;font-size:12px}
#studioLayout .right .craft-bar select{max-width:145px;padding:6px}
#studioLayout .right .craft-bar>span{font-size:10px}
#studioLayout .right .craft-bar>.btn{height:34px;font-size:11px;padding:0 10px}
@media(min-width:1001px){
 body:has(#workbench:not([hidden])){overflow:hidden}
 body:has(#workbench:not([hidden]))>.color-credit{display:none}
 #workbench{height:calc(100dvh - var(--studio-header-height,76px));display:flex;flex-direction:column;min-height:0}
 #workbench .topline{padding:14px 24px 10px;flex-shrink:0}
 #workbench .work-intro{margin:0 24px 12px;padding:8px 13px;flex-shrink:0}
 #studioLayout{grid-template-columns:minmax(260px,300px) minmax(300px,1fr) minmax(280px,310px);gap:16px;padding:0 24px;flex:1;min-height:0;align-items:stretch;max-width:1320px;width:100%;margin:0 auto}
 #studioLayout>.left,#studioLayout>.center,#studioLayout>.right{min-width:0;min-height:0}
 #studioLayout>.left>.panel{height:100%;display:flex;flex-direction:column}
 #studioLayout .left .panel-section{padding:15px 16px;min-height:0;overflow:auto;flex:1;scrollbar-width:thin;border-bottom:0}
 #studioLayout .left .field{margin-top:13px}
 #studioLayout .left .field label{margin-bottom:7px}
 #studioLayout .left .plan-section{padding-bottom:13px;margin-bottom:13px}
 #studioLayout .left .plan-section h2{margin:7px 0 10px}
 #studioLayout .left .plan-picks button{padding:8px}
 #studioLayout .left .mode-picker{padding-bottom:12px;margin-bottom:13px}
 #studioLayout .left .upload{min-height:100px}
 #studioLayout .left .tip{padding:12px;margin-top:14px}
 #studioLayout>.center{display:flex;flex-direction:column}
 #studioLayout .editor{flex:1;min-height:0;display:flex;flex-direction:column}
 #studioLayout .editor-head,#studioLayout .editor-foot{flex-shrink:0}
 #studioLayout .workspace{flex:1;min-height:0;padding:43px 10px 48px 52px}
 #studioLayout .canvas-viewport{height:100%;max-height:none;min-height:0}
 #studioLayout .under-editor{flex-shrink:0;margin:9px 2px;font-size:9px;gap:7px}
 #studioLayout>.right{display:flex;flex-direction:column;overflow:auto;scrollbar-width:thin;grid-column:auto}
 #studioLayout>.right>.panel-section{border-right:0}
 #studioLayout .right>.panel-section{padding:12px 15px;flex-shrink:0}
 #studioLayout .right>.panel-section:first-child{display:flex;flex-direction:column;flex:1;min-height:150px}
 #studioLayout .right .section-head{margin-bottom:8px}
 #studioLayout .right .palette-list{flex:1;min-height:50px;max-height:none;overflow:auto;padding-bottom:4px;mask-image:linear-gradient(#000 calc(100% - 12px),transparent)}
 #studioLayout .right .color-row{padding:6px;margin-bottom:2px}
 #studioLayout .right .stats{gap:10px}
 #studioLayout .right .stat b{font-size:16px}
 #studioLayout .right .export-card{padding:10px 15px;flex-shrink:0}
 #studioLayout .right .export-card h3{font-size:12px;margin:0 0 6px}#studioLayout .right .export-card p{display:none}
 #studioLayout .right .export-card .btn{margin:0;width:100%;height:34px}
 #studioLayout .right .craft-bar{flex-shrink:0}
 #workbench .page-bottom{padding:9px 24px;font-size:9px;flex-shrink:0;gap:12px}
}
@media(max-width:1000px){
 .settings-actions{position:sticky;bottom:0;z-index:3;box-shadow:0 -5px 15px #313c3408}
 .settings-tabs{position:sticky;top:0;z-index:3}
}
@media(max-width:700px){
 #studioLayout .right .craft-bar>.btn{min-height:44px}
 .settings-tabs button{min-height:44px}
 .settings-tabs{top:62px}
}

/* Tablet: one step at a time, so the canvas and materials never need a long scroll. */
@media(min-width:701px) and (max-width:1000px){
 .mobile-tabs{position:sticky;top:0;z-index:6;display:flex;padding:10px 20px;background:#fafbf7f2;backdrop-filter:blur(8px);gap:8px;border-bottom:1px solid var(--line);margin:0 0 14px}
 .mobile-tabs button{flex:1;min-height:44px;border:1px solid #e0e5d6;border-radius:8px;background:#fff;font-size:12px}
 .mobile-tabs button[aria-selected=true]{background:var(--green);border-color:var(--green);color:#fff}
 .layout{display:block;padding:0 20px 20px}
 .layout>.left,.layout>.center,.layout>.right{display:none}
 .layout[data-mobile-panel=settings]>.left,.layout[data-mobile-panel=result]>.center,.layout[data-mobile-panel=materials]>.right{display:block;width:100%}
 .layout[data-mobile-panel=materials]>.right{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
 .layout[data-mobile-panel=materials]>.right .panel-section{border-right:0;border-bottom:1px solid var(--line)}
 .layout[data-mobile-panel=materials]>.right .export-card{border-top:0}
 .layout[data-mobile-panel=materials]>.right .palette-list{max-height:none}
 .layout[data-mobile-panel=result]>.center .workspace{min-height:520px}
 .settings-tabs{position:sticky;top:0;z-index:4}
}

/* Keep the canvas at a workable size when the step view is full width. */
@media(max-width:1000px){
 .canvas-wrap{width:min(100%,460px)!important;max-width:460px!important;margin:0 auto}
 .canvas-viewport{display:flex;justify-content:center}
}

/* Small screens keep every field reachable in one scroll; the desktop tabs stay for wide layouts. */
@media(max-width:1000px){
 .settings-tabs{display:none}
 .left [data-settings-page][hidden]{display:block!important}
 .left [data-settings-page]{padding-bottom:0}
}
