/* 住好一点 / A living journal. A warm canvas for real rooms. */
:root{--bg:#f7f5f0;--surface:#fffefa;--stage:#eeece6;--ink:#292b27;--muted:#696c64;--faint:#787b72;--line:#dfdfd5;--blue:#3167a9;--button:#3167a9;--on-button:#fff;--shadow:0 18px 55px -30px #46493728;--display:'Songti SC','STSong','SimSun',serif;color-scheme:light}
body.dark{--bg:#22231f;--surface:#2b2d27;--stage:#34362e;--ink:#f4f1e8;--muted:#b6b8ad;--faint:#a0a395;--line:#42453a;--blue:#95b7dd;--button:#95b7dd;--on-button:#202a31;color-scheme:dark}
body{font-family:'MiSans','PingFang SC','Microsoft YaHei','Segoe UI',sans-serif;background:var(--bg)}
button,a,input{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--blue)}
.header{height:80px;background:var(--bg);border-color:var(--line)}
.nav-wrap{max-width:1536px;padding:0 48px;gap:65px}.brand strong{font-size:21px;letter-spacing:1px}.brand-icon{width:32px;height:32px;border-width:1px;border-radius:10px}.brand strong span{font-size:10px;color:var(--muted);letter-spacing:1px}nav{gap:32px;font-size:12px}nav a.active{color:var(--ink)}.nav-right{gap:14px}.quota-button{background:transparent;padding:8px 14px;border-color:var(--line);font-size:11px}.prototype-badge{display:none}
.editorial-shell,.shell{max-width:1536px;padding-left:48px;padding-right:48px;margin-left:auto;margin-right:auto}
.editorial-hero.intro{display:grid;grid-template-columns:.78fr 1.35fr;gap:6%;align-items:center;padding:55px 0 46px;text-align:left}
.hero-copy{position:relative;padding:8px 0 16px;min-width:0}.hero-eyebrow{display:flex;align-items:center;gap:9px;font-size:12px;letter-spacing:2px;color:var(--muted);margin-bottom:25px}.hero-eyebrow i{width:6px;height:6px;background:var(--blue);border-radius:50%}
.editorial-hero h1{font-family:var(--display);font-size:clamp(44px,4.7vw,78px);font-weight:500;line-height:1.3;letter-spacing:-2px;white-space:normal;margin:0}.editorial-hero h1 span{color:var(--blue);position:relative}
.hero-note{font-size:13px;color:var(--muted);line-height:1.8;margin:23px 0 29px;letter-spacing:.5px}.hero-links{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.hero-start{display:inline-flex;align-items:center;gap:20px;background:var(--button);color:var(--on-button);border-radius:40px;padding:15px 22px;font-size:12px;transition:transform .2s,box-shadow .2s}.hero-start:hover{transform:translateY(-2px);box-shadow:0 8px 22px #3167a922}.hero-start svg{width:17px;height:17px}.hero-links>button{border:0;background:transparent;padding:12px 0;font-size:11px;color:var(--muted);transition:color .2s}.hero-links>button:hover{color:var(--blue)}.hero-links>button span{margin-left:6px}
.hero-footnote{display:flex;gap:16px;font-size:10px;color:var(--muted);margin-top:32px}.hero-footnote span+span{border-left:1px solid var(--line);padding-left:16px}
.hero-showcase{margin:0;position:relative;min-width:0}.hero-comparison{position:relative;aspect-ratio:1.6;overflow:hidden;border-radius:8px 32px 8px 8px;background:var(--stage);isolation:isolate;box-shadow:0 22px 50px -36px #252b2970}.hero-comparison>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.hero-comparison #hero-before{clip-path:inset(0 58% 0 0)}
.hero-image-label{position:absolute;top:18px;border:1px solid #fff4;background:#fffc;backdrop-filter:blur(10px);padding:6px 11px;border-radius:20px;color:#41423b;font-size:10px;pointer-events:none}.before-label{left:18px}.after-label{right:18px}.hero-divider{position:absolute;top:0;bottom:0;left:42%;width:1px;background:#ffffffe0;pointer-events:none}.hero-divider>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fffdf5e8;color:#363b36;border:1px solid #fff;box-shadow:0 2px 20px #0001;font-size:22px}.hero-comparison input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}.hero-comparison:focus-within{outline:3px solid var(--blue);outline-offset:5px}
.hero-showcase figcaption{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:15px;font-size:11px;color:var(--muted)}.hero-showcase figcaption>span{display:flex;align-items:center;gap:7px}.hero-showcase figcaption i{width:5px;height:5px;background:#929e80;border-radius:50%}.hero-showcase figcaption small{font-size:9px;letter-spacing:.6px}
.studio-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;padding-top:27px;border-top:1px solid var(--line);margin-bottom:22px}.section-index{font-size:9px;letter-spacing:1.8px;color:var(--muted);display:block;margin-bottom:9px}.studio-heading h2{font-family:var(--display);font-size:30px;font-weight:500;letter-spacing:-.5px;margin:0}.studio-heading>a{font-size:11px;color:var(--muted);padding-bottom:4px}.studio-heading>a:hover{color:var(--blue)}.studio-heading>a span{margin-left:12px}
.workspace{background:var(--stage);border:1px solid var(--line);border-radius:24px;box-shadow:none;padding:22px;margin:0;width:100%;position:relative}.upload-grid{gap:16px;align-items:start}.photo-panel{min-width:0}.photo-panel .panel-heading{display:none}.photo-stage{height:clamp(235px,24vw,360px);border:1px dashed #c9cbbf;background:var(--surface);border-radius:15px;position:relative;transition:border-color .25s,box-shadow .25s;overflow:hidden}.photo-stage:before{content:'';position:absolute;inset:0;background:url('assets/room-before.png') center/cover;opacity:.09;pointer-events:none;transition:opacity .3s}.photo-panel:nth-last-child(1) .photo-stage:before{background-image:url('assets/room-after.png');opacity:.1}.photo-stage.is-filled{border-style:solid;border-color:var(--line)}.photo-stage.is-filled:before{opacity:0}.photo-stage.dragging{border-color:var(--blue);box-shadow:inset 0 0 0 2px var(--blue)}
.upload-target{position:relative;z-index:1;width:100%;height:100%;padding:35px;gap:14px}.upload-symbol{width:49px;height:49px;border:1px solid var(--line);background:var(--surface);border-radius:50%;box-shadow:0 4px 20px #00000004}.upload-symbol svg{width:19px;height:19px}.upload-target strong{font-size:13px;font-weight:500;letter-spacing:.4px}.upload-target:hover .upload-symbol{border-color:var(--blue);color:var(--blue)}.photo-preview{overflow:hidden}.photo-view{position:relative;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in;display:block}.photo-view>img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .4s}.photo-view:hover>img{transform:scale(1.015)}.photo-view-hint{position:absolute;left:50%;bottom:18px;transform:translate(-50%,5px);display:flex;align-items:center;gap:6px;border:1px solid #fff9;background:#fffdeef0;backdrop-filter:blur(8px);color:#42473e;padding:8px 13px;border-radius:30px;font-size:10px;opacity:0;transition:.2s;pointer-events:none}.photo-view-hint svg{width:12px;height:12px}.photo-view:is(:hover,:focus-visible) .photo-view-hint{opacity:1;transform:translate(-50%,0)}.photo-actions{z-index:3;top:12px;right:12px;gap:5px}.photo-actions button{height:31px;background:#fffdf6eb;backdrop-filter:blur(12px);color:#30352f;border-color:#fff9;border-radius:8px;font-size:10px;padding:7px 11px}.photo-actions .remove-button{width:31px}.photo-actions .photo-zoom{display:none}.photo-actions button:hover{background:#fff;color:#3167a9}.photo-actions button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.photo-preview:focus-within .photo-actions{opacity:1;transform:none}.upload-error{font-size:11px;margin:8px 2px 0;color:#a63d35}.upload-error:empty{display:none}
.connection{top:calc(clamp(235px,24vw,360px)/2 + 2px);left:50%;border-color:var(--line);background:var(--stage);width:32px;height:32px;color:var(--muted)}.workspace-action{padding:20px 0 0}.workspace-action .primary{min-width:270px;height:46px;background:var(--button);color:var(--on-button);font-size:12px;box-shadow:none;transition:transform .2s,background .2s}.workspace-action .primary:not(:disabled):hover{transform:translateY(-2px)}.workspace-action .primary:disabled{background:#d9dcd3;color:#70766b;opacity:1}.dark .workspace-action .primary:disabled{background:#494d40;color:#b4baa7}
.editorial-history{margin-top:22px;border-bottom:1px solid var(--line);padding:18px 0 22px}.editorial-history .section-heading{margin-bottom:16px}.editorial-history .section-heading h2{font-size:19px;font-weight:500}.editorial-history .section-heading .overline{display:none}.editorial-history .section-heading p:last-child{display:none}.editorial-history:has(#history-empty:not([hidden])){display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding:19px 0}.editorial-history:has(#history-empty:not([hidden])) .section-heading{margin:0;display:contents}.editorial-history:has(#history-empty:not([hidden])) .gallery-total{margin-left:auto;order:3}.editorial-history .history-empty{font-size:11px;color:var(--muted);padding:0;margin:0;background:none;text-align:left;border:0}.editorial-history .history-list:empty{display:none}
.inspiration-wide{margin-top:76px;padding:0 clamp(24px,3vw,56px);width:100%;max-width:none}.inspiration-wide>.section-heading{align-items:end;margin-bottom:25px;gap:20px}.inspiration-wide .overline{font-size:9px;letter-spacing:2px;color:var(--muted);margin-bottom:10px}.inspiration-wide .section-heading h2{font-family:var(--display);font-size:clamp(26px,2.7vw,40px);font-weight:500;letter-spacing:-.7px}.inspiration-wide .gallery-total{font-size:10px;color:var(--muted)}
.editorial-selection{display:grid;grid-template-columns:1.45fr 1fr 1fr;gap:12px;margin-bottom:44px}.editorial-pick{position:relative;isolation:isolate;border:0;border-radius:12px;background:var(--stage);padding:0;overflow:hidden;height:clamp(240px,23vw,390px);text-align:left;color:#fff;transition:transform .3s}.editorial-pick>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s}.editorial-pick:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#10170edf,transparent 65%);z-index:0;pointer-events:none}.editorial-pick:hover{transform:translateY(-3px)}.editorial-pick:hover>img{transform:scale(1.035)}.pick-copy{position:absolute;bottom:25px;left:28px;right:24px;z-index:1;display:flex;flex-direction:column;gap:9px}.pick-copy>small{font-size:9px;letter-spacing:1.4px;color:#ffffffe0}.pick-copy>strong{font-family:var(--display);font-size:clamp(20px,2vw,31px);font-weight:500;letter-spacing:.2px;line-height:1.3}.pick-copy>span{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#ffffffde;margin-top:6px}.pick-copy svg{width:16px;height:16px}
.library-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:18px}.library-heading h3{font-size:17px;font-weight:500;letter-spacing:.5px;margin:0}.library-heading>span{font-size:10px;color:var(--muted)}.room-categories{gap:10px}.room-category{height:110px;border-radius:10px;box-shadow:none;transition:box-shadow .2s}.room-category .category-copy{left:17px;bottom:15px}.category-copy strong{font-size:18px;letter-spacing:1px}.category-copy small{display:none!important}.room-category[aria-pressed=true]{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--blue)}.category-check{width:20px;height:20px}.bath-outline{height:90px;width:90px;top:4px;right:8px}.gallery-toolbar{margin:23px 0 21px}.gallery-toolbar button{font-size:10px;padding:7px 14px}.gallery-toolbar button[aria-pressed=true]{background:var(--ink);color:var(--bg)}.masonry-gallery{column-gap:10px}.masonry-gallery .style-card{border-radius:10px;background:var(--stage)}.masonry-gallery .style-card .style-cover{border-radius:inherit}.masonry-gallery .use-label{border-radius:30px;bottom:12px;left:12px;right:12px;padding:11px 13px;font-size:10px;background:#fffdf5f5;align-items:center;color:#343b32}.masonry-gallery .style-card:is(:hover,:focus-within) .use-label{opacity:1;transform:none}.masonry-gallery .style-card.is-selected{outline:2px solid var(--blue);outline-offset:2px}.inspiration-wide .gallery-note{padding-top:20px;margin-top:26px;color:var(--muted);font-size:10px}.shell footer{margin-top:34px;padding-top:27px}.footer-brand{font-family:var(--display);font-size:23px;font-weight:500}
.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}.photo-zoom-dialog{position:fixed;padding:0;width:fit-content;max-width:94vw;max-height:90vh;border-radius:10px;border:0;overflow:visible;background:transparent}.photo-zoom-dialog>img{display:block;width:auto;max-width:94vw;height:auto;max-height:88vh;border-radius:10px;object-fit:contain}.photo-zoom-dialog .dialog-close{position:absolute;right:12px;top:12px;background:#fffdeee8;color:#343b32;border:1px solid #fff5;box-shadow:0 2px 12px #0001}.photo-zoom-dialog::backdrop{background:#21271fe3;backdrop-filter:blur(10px)}.gallery-preview-dialog{border-radius:14px;border-color:var(--line)}.gallery-preview-dialog::backdrop{background:#20251ee0}.gallery-preview-title{font-family:var(--display);font-weight:500}.gallery-preview-media>img{border-radius:0}
@media(min-width:1800px){.editorial-hero.intro{padding-top:66px;padding-bottom:54px}.nav-wrap,.editorial-shell,.shell{max-width:1640px}.hero-comparison{aspect-ratio:1.65}.photo-stage{height:370px}.connection{top:188px}.editorial-selection{grid-template-columns:1.6fr 1fr 1fr}}
@media(max-width:1100px){.nav-wrap{padding:0 30px;gap:30px}.shell,.editorial-shell{padding-left:30px;padding-right:30px}.brand strong span{display:none}.editorial-hero.intro{gap:5%;grid-template-columns:.9fr 1.2fr;padding-top:42px}.editorial-hero h1{font-size:52px}.hero-links{gap:15px}.hero-start{padding:13px 18px;gap:10px}.hero-footnote{gap:10px;font-size:9px}.hero-footnote span+span{padding-left:10px}.hero-note{font-size:11px}.hero-comparison{aspect-ratio:1.35}.photo-stage{height:260px}.connection{top:132px}.editorial-selection{gap:10px}.pick-copy{left:19px;right:18px;bottom:21px}.editorial-pick{height:270px}.room-category{height:100px}}
@media(max-width:760px){.header{height:66px}.nav-wrap{padding:0 22px;gap:20px}.brand strong{font-size:19px}.brand-icon{width:27px;height:27px}.nav-wrap nav{gap:16px;margin-left:auto;font-size:10px}.nav-right{margin-left:0;gap:8px}.quota-button{padding:6px 9px;font-size:9px}.quota-button svg{width:11px}.nav-right .icon-button{width:27px}.shell,.editorial-shell{padding-left:24px;padding-right:24px}.editorial-hero.intro{grid-template-columns:1fr;gap:29px;padding-top:34px;padding-bottom:35px}.hero-copy{padding:0}.hero-eyebrow{margin-bottom:15px;font-size:10px}.editorial-hero h1{font-size:50px;line-height:1.25}.editorial-hero h1 br{display:none}.hero-note{margin:18px 0 20px;font-size:12px}.hero-links{gap:22px}.hero-footnote{margin-top:20px;font-size:9px}.hero-comparison{aspect-ratio:1.6}.hero-showcase figcaption{font-size:10px}.studio-heading{padding-top:23px;margin-bottom:18px}.studio-heading h2{font-size:25px}.studio-heading>a{font-size:10px}.section-index{font-size:8px}.workspace{padding:14px;border-radius:20px}.photo-stage{height:240px}.connection{top:123px}.upload-target{padding:20px}.upload-target strong{font-size:11px}.upload-symbol{width:42px;height:42px}.workspace-action .primary{min-width:230px;height:43px;font-size:11px}.inspiration-wide{margin-top:48px;padding-left:24px;padding-right:24px}.inspiration-wide .section-heading{flex-direction:row}.inspiration-wide .section-heading h2{font-size:29px}.editorial-selection{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:30px}.editorial-pick{height:240px}.editorial-pick:first-child{grid-column:1/-1;height:270px}.pick-copy>strong{font-size:23px}.pick-copy{bottom:21px;left:20px}.editorial-pick:first-child .pick-copy>strong{font-size:29px}.room-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;margin:0;padding:0;gap:8px}.room-category{height:85px;border-radius:9px}.room-category .category-copy{left:11px;bottom:13px}.category-copy strong{font-size:15px}.category-check{width:16px;height:16px;top:6px;right:6px}.library-heading h3{font-size:16px}.gallery-toolbar{margin:20px 0 18px}.masonry-gallery{column-gap:8px}.masonry-gallery .use-label{left:8px;right:8px;bottom:8px;padding:9px 10px;font-size:9px}.editorial-history .history-empty{font-size:10px}.gallery-preview-sidebar{padding:20px}.gallery-preview-title{font-size:19px}}
@media(max-width:540px){.nav-wrap{padding:0 18px;gap:14px}.brand-icon{display:none}.brand strong{font-size:17px}.nav-wrap nav{gap:13px}.nav-wrap nav>a:first-child{display:none}.nav-right{gap:5px}.quota-button{border:0;padding:6px 0}.quota-button svg{display:none}.shell,.editorial-shell{padding-left:18px;padding-right:18px}.editorial-hero.intro{padding-top:30px;gap:24px}.editorial-hero h1{font-size:clamp(35px,9.8vw,49px);letter-spacing:-1.6px}.hero-eyebrow{letter-spacing:1.3px}.hero-start{padding:12px 18px}.hero-footnote{margin-top:18px}.hero-comparison{aspect-ratio:1.4;border-radius:7px 24px 7px 7px}.hero-divider>span{width:34px;height:34px;font-size:20px}.hero-image-label{font-size:9px;top:12px;padding:5px 9px}.before-label{left:12px}.after-label{right:12px}.hero-showcase figcaption small{font-size:8px}.studio-heading h2{font-size:24px}.studio-heading>a{font-size:9px}.upload-grid{grid-template-columns:1fr 1fr;gap:10px}.photo-stage{height:205px;border-radius:11px}.upload-target{gap:12px;padding:13px}.upload-target strong{font-size:11px;max-width:115px;line-height:1.6}.connection{display:none}.photo-view-hint{display:none}.photo-actions{top:7px;right:7px;gap:4px}.photo-actions button{font-size:9px;padding:6px 8px;height:27px}.photo-actions .remove-button{width:27px;padding:5px}.photo-actions .remove-button svg{width:14px}.workspace-action{padding-top:15px}.workspace-action .primary{width:100%;min-width:0}.editorial-history{gap:10px;padding:15px 0}.editorial-history .history-empty{display:none}.editorial-history .section-heading h2{font-size:16px}.editorial-history .gallery-total{font-size:9px}.inspiration-wide{padding-left:18px;padding-right:18px;margin-top:40px}.inspiration-wide .section-heading h2{font-size:26px;line-height:1.4}.inspiration-wide .overline{font-size:8px;letter-spacing:1.2px}.inspiration-wide>.section-heading .gallery-total{display:none}.editorial-pick:first-child{height:225px}.editorial-pick{height:215px}.pick-copy{left:14px;right:13px;bottom:17px}.pick-copy>strong{font-size:21px}.pick-copy>small{font-size:8px;letter-spacing:.7px}.pick-copy>span{font-size:9px}.editorial-pick:first-child .pick-copy>strong{font-size:27px}.room-categories{display:flex;overflow-x:auto;gap:9px;padding:4px 3px 7px;margin:0 -3px;scroll-snap-type:x proximity;scrollbar-width:none}.room-category{flex:0 0 105px;height:80px;scroll-snap-align:start}.gallery-toolbar>div{gap:10px}.gallery-toolbar{margin:15px 0 16px}.masonry-gallery .style-card{border-radius:8px}.inspiration-wide .gallery-note{font-size:9px;gap:12px}.shell footer{padding:22px 0;gap:10px}.footer-brand{font-size:20px}.shell footer p{font-size:9px}.shell footer button{font-size:9px}}
.photo-panel .photo-stage.is-filled:before{display:none}
.generation-spec{font-size:10px;color:var(--muted);margin:10px 0 0;letter-spacing:.3px}
.generation-progress{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;margin:15px 0 0;font-size:11px;color:var(--blue);line-height:1.8}
.generation-progress>i{width:12px;height:12px;border:1px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:generation-spin .9s linear infinite}
.generation-progress.is-paused{color:var(--muted)}.generation-progress.is-paused>i,.generation-progress.is-complete>i{animation:none;border-color:currentColor;background:currentColor;width:5px;height:5px}
.generation-progress>button{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:4px 10px;font-size:10px;color:var(--blue)}
@keyframes generation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.generation-progress>i{animation:none}}
@media(max-width:1100px){.masonry-gallery{--gallery-columns:4}}
@media(max-width:800px){.masonry-gallery{--gallery-columns:3}}
@media(max-width:600px){.masonry-gallery{--gallery-columns:2}}
.gallery-preview-dialog.is-portrait .gallery-preview-media>img{object-fit:contain;transform:none}
@media(max-width:700px){.gallery-preview-dialog,.gallery-preview-dialog.is-portrait{width:calc(100vw - 24px);max-width:calc(100vw - 24px)}.gallery-preview-dialog.is-portrait .gallery-preview-media>img{height:55vh;max-height:55vh;object-fit:contain;transform:none}}
@media(hover:none){.photo-view-hint{opacity:0}.photo-actions{opacity:1;transform:none}.masonry-gallery .style-cover .use-label{display:flex!important;opacity:1;transform:none}.editorial-pick:hover{transform:none}.editorial-pick:hover>img{transform:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-start,.editorial-pick,.editorial-pick>img,.photo-view>img,.photo-view-hint,.photo-stage{transition:none}.hero-start:hover,.editorial-pick:hover,.editorial-pick:hover>img,.photo-view:hover>img{transform:none}}

/* Compact workspace and direct access to the full inspiration library. */
main.editorial-shell{padding-top:36px}
.inspiration-wide{margin-top:36px}
@media(max-width:760px){main.editorial-shell{padding-top:24px}.inspiration-wide{margin-top:28px}}

/* Keep reference photos visible on the first screen at normal browser zoom. */
:root{--first-screen-photo-height:clamp(180px,34svh,370px)}
.header{height:64px}
main.editorial-shell{padding-top:24px}
.workspace{padding:16px}
.photo-stage{height:var(--first-screen-photo-height)}
.connection{top:calc(var(--first-screen-photo-height)/2 + 2px)}
.workspace-action{padding:14px 0 0}
.workspace-action .primary{height:42px}
.inspiration-wide{margin-top:24px}
.room-category{height:clamp(64px,9svh,110px)}
.gallery-toolbar{margin:16px 0}
@media(max-width:760px){
  :root{--first-screen-photo-height:clamp(150px,28svh,240px)}
  .header{height:58px}
  main.editorial-shell{padding-top:16px}
  .workspace{padding:12px}
  .workspace-action{padding:12px 0 0}
  .workspace-action .primary{height:40px}
  .inspiration-wide{margin-top:20px}
  .room-category{height:64px}
  .gallery-toolbar{margin:14px 0}
}
@media(max-height:600px) and (min-width:761px){
  :root{--first-screen-photo-height:clamp(120px,30svh,180px)}
  .header{height:52px}
  main.editorial-shell{padding-top:14px}
  .workspace{padding:12px}
  .inspiration-wide{margin-top:16px}
  .room-category{height:56px}
  .gallery-toolbar{margin:10px 0}
}

.generated-result{margin-top:24px;padding:20px;background:var(--stage);border:1px solid var(--line);border-radius:20px;scroll-margin-top:24px}
.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.result-heading h2{font-size:20px;font-weight:500;margin:0}.result-heading a{font-size:12px;color:var(--blue)}
.inline-comparison{position:relative;margin:auto;overflow:hidden;border-radius:12px;background:var(--surface)}
.inline-comparison>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.inline-label{position:absolute;top:12px;padding:5px 10px;background:#20241fcc;color:#fff;border-radius:20px;font-size:11px;pointer-events:none}.inline-label.before{left:12px}.inline-label.after{right:12px}
#inline-divider{position:absolute;top:0;bottom:0;width:2px;background:white;pointer-events:none}#inline-divider span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:white;color:#222;box-shadow:0 2px 12px #0004}
#inline-range{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:ew-resize;touch-action:pan-y}.inline-comparison:focus-within{outline:2px solid var(--blue);outline-offset:4px}#inline-caption{text-align:center;color:var(--muted);font-size:12px;margin:14px 0 0}
.history-dialog{width:min(960px,94vw)}.history-dialog .history-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.history-open{display:block;width:100%;padding:0;border:0;background:var(--stage);cursor:pointer}.history-open img{display:block;width:100%;height:200px;object-fit:contain}.history-meta{display:flex;flex-wrap:wrap;gap:10px;padding:12px;font-size:12px}.history-meta span{width:100%;color:var(--muted)}
#history-open{display:inline-block;color:var(--muted);white-space:nowrap}
@media(max-width:540px){.nav-wrap{gap:8px}.nav-wrap nav{gap:10px}#history-open{font-size:10px}.generated-result{padding:12px}.result-heading h2{font-size:17px}.history-dialog .history-list{grid-template-columns:1fr}}

#inline-before{z-index:0}#inline-after{z-index:1;background:var(--surface)}
.inline-label{z-index:2}#inline-divider{z-index:3}#inline-range{z-index:4}
#inline-comparison .inline-label.after{left:12px;right:auto}#inline-comparison .inline-label.before{right:12px;left:auto}
#compare-original-open{display:block;margin:16px auto 0}
/* Two-column creation studio. */
main.studio-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;max-width:1800px;padding:24px 32px 0;align-items:stretch}
.studio-layout .workspace{padding:22px;border-radius:20px;background:var(--stage)}
.studio-intro>span{font-size:10px;letter-spacing:2px;color:var(--blue)}.studio-intro h1{font-family:var(--display);font-size:26px;letter-spacing:0;line-height:1.4;margin:8px 0}.studio-intro p{font-size:11px;color:var(--muted);margin:0 0 20px}
.studio-layout .upload-grid{display:grid;grid-template-columns:1fr;gap:16px}.studio-layout .connection{display:none}.studio-layout .photo-panel .panel-heading{display:flex;margin-bottom:8px}.studio-layout .panel-heading h2{font-size:13px}.studio-layout .panel-heading h2 span,.studio-layout .panel-heading .step,.studio-layout #room-demo{display:none}.studio-layout .panel-heading .subtle-button{font-size:10px}.studio-layout .photo-stage{height:145px;border-radius:12px}.studio-layout .upload-target{padding:12px;gap:10px}.studio-layout .upload-target strong{font-size:12px}.studio-layout .upload-symbol{width:36px;height:36px}
.prompt-field{margin-top:20px}.prompt-field label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500}.prompt-field label span{font-size:10px;font-weight:400;color:var(--muted);border:1px solid var(--line);padding:1px 6px;border-radius:5px}.prompt-field textarea{display:block;box-sizing:border-box;resize:vertical;width:100%;min-height:90px;max-height:240px;margin-top:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px;line-height:1.7;padding:12px}.prompt-field textarea:focus{outline:2px solid var(--blue);outline-offset:2px}.prompt-field p{font-size:10px;color:var(--muted);margin:8px 0}
.studio-layout .workspace-action .primary{width:100%;min-width:0}.studio-layout .generation-spec{font-size:9px}.result-column{min-width:0;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:24px}.result-placeholder{text-align:center;color:var(--muted);width:100%;padding:50px 10px}.result-eyebrow{font-size:11px;letter-spacing:2px;color:var(--blue)}.result-placeholder h2{font-family:var(--display);font-size:clamp(25px,2.5vw,42px);font-weight:500;color:var(--ink);margin:16px 0 36px}.placeholder-icon{width:110px;height:110px;border:1px dashed var(--line);border-radius:25px;display:grid;place-items:center;margin:0 auto 26px;background:var(--bg)}.placeholder-icon svg{width:40px;height:40px;opacity:.5}.result-placeholder p{font-size:13px;line-height:2}.placeholder-note{display:block;font-size:10px;margin-top:30px;letter-spacing:1px}
.result-column .generated-result{width:100%;margin:0;border:0;background:none;padding:0}.result-column .inline-comparison{max-width:100%}.result-column #inline-caption{line-height:1.8}.studio-layout+.inspiration-wide{margin-top:28px}
@media(min-width:1600px){main.studio-layout{grid-template-columns:370px minmax(0,1fr)}}
@media(max-width:900px){main.studio-layout{grid-template-columns:280px minmax(0,1fr);gap:16px;padding:20px 20px 0}.studio-layout .workspace{padding:16px}.result-column{padding:16px}.result-heading{flex-wrap:wrap}}
@media(max-width:680px){main.studio-layout{grid-template-columns:1fr;padding:16px 16px 0}.studio-layout .upload-grid{grid-template-columns:1fr 1fr;gap:10px}.studio-layout .photo-stage{height:150px}.studio-layout .panel-heading h2{font-size:12px}.studio-layout .panel-heading .subtle-button{display:none}.studio-intro p{margin-bottom:16px}.prompt-field{margin-top:16px}.result-column{min-height:300px}.result-placeholder{padding:25px 5px}.result-placeholder h2{margin:12px 0 20px}.placeholder-icon{width:70px;height:70px;margin-bottom:16px}.placeholder-note{margin-top:16px}}
/* Keep the generation action reachable in the desktop sidebar. */
@media(min-width:681px){
  .studio-layout .photo-stage{height:118px}
  .studio-layout .upload-grid{gap:11px}
  .studio-layout .studio-intro p{margin-bottom:12px}
  .studio-layout .prompt-field{margin-top:12px}
  .studio-layout .prompt-field textarea{min-height:68px}
  .studio-layout .workspace-action{padding-top:10px}
}
.studio-layout .photo-panel .panel-heading{position:static;align-items:center;justify-content:space-between;min-height:19px}
.studio-layout .panel-heading .step{display:none}

/* First-screen proportions and an immersive generation state. */
@media(min-width:1000px){
  main.studio-layout{width:80%;max-width:1800px;padding:22px 0 0;grid-template-columns:clamp(248px,17vw,340px) minmax(0,1fr);gap:22px;margin-inline:auto}
  .studio-layout .workspace{padding:20px;min-height:clamp(510px,69svh,730px)}
  .studio-layout .photo-stage{height:clamp(76px,10.7svh,118px)}
  .studio-intro h1{font-size:24px;margin:7px 0}
  .studio-layout .studio-intro p{font-size:10px;margin-bottom:10px}
  .studio-layout .upload-grid{gap:8px}
  .studio-layout .prompt-field textarea{min-height:64px;height:clamp(64px,8svh,88px);padding:9px;font-size:11px;margin-top:8px}
  .studio-layout .prompt-field label{font-size:12px}
  .studio-layout .prompt-field p{font-size:9px;margin:6px 0}
  .studio-layout .workspace-action .primary{height:40px;font-size:11px}
  .studio-layout .generation-progress{font-size:10px;margin-top:10px}
  .result-column{padding:22px;--result-image-height:clamp(300px,calc(69svh - 90px),640px)}
  .result-heading h2{font-size:18px}.result-heading{margin-bottom:16px}
  .result-column #inline-caption{font-size:10px;margin-top:12px}
  .studio-layout+.inspiration-wide{margin-top:24px}
}
.result-loading[hidden]{display:none!important}
.result-loading{position:relative;isolation:isolate;overflow:hidden;width:100%;align-self:stretch;min-height:460px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 43%,#17142d 0%,#0b0c15 48%,#080b10 100%);color:#f3efff;text-align:center;padding:44px 20px 24px}
.loading-topline{position:absolute;inset:22px 24px auto;display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:2px;color:#9c9aaa}
.loading-live{letter-spacing:1px;display:flex;align-items:center;gap:7px}.loading-live:before{content:'';width:5px;height:5px;border-radius:50%;background:#c4acff;box-shadow:0 0 12px #a980ff;animation:loading-breathe 3.6s ease-in-out infinite}
.loading-orbit{position:relative;width:clamp(170px,20vw,285px);aspect-ratio:1;display:grid;place-items:center;margin:8px 0 28px}
.orbit-halo{position:absolute;inset:-14%;border-radius:50%;background:radial-gradient(circle,#b67bff00 42%,#754aff27 53%,#6f48ff00 69%);filter:blur(12px);animation:loading-breathe 4.8s ease-in-out infinite}
.orbit-ring{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 25deg,#171326 0deg,#332286 65deg,#704cff 130deg,#e6aaff 166deg,#fff3ff 174deg,#b581ff 186deg,#4d34bc 220deg,#171326 310deg);box-shadow:inset 0 0 16px #bea6ff70,0 0 38px #704cff35;animation:loading-orbit 12s linear infinite}
.orbit-ring:before{content:'';position:absolute;inset:15%;border-radius:50%;background:#090b12;box-shadow:0 0 25px 8px #06070e,inset 0 0 19px #9d74ee75;border:1px solid #c4a5ff5c}
.orbit-ring:after{content:'';position:absolute;inset:3%;border-radius:50%;border:1px solid #ad8aff38}
.orbit-core{position:relative;width:64%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 38% 30%,#181522,#080a10 75%);box-shadow:0 0 26px #0008;animation:loading-breathe 4.8s ease-in-out infinite}
.orbit-core svg{width:42px;height:42px;color:#e4d4ff;filter:drop-shadow(0 0 12px #b682ff)}
.loading-eyebrow{font-size:10px;color:#ad9bcf;letter-spacing:3px}.loading-copy h2{font-family:var(--display);font-size:clamp(23px,2vw,32px);font-weight:400;margin:12px 0;color:#f3efff}.loading-copy p{font-size:11px;color:#a7a2b8;line-height:1.8;min-height:20px;margin:0}
.loading-dots{display:flex;justify-content:center;gap:7px;margin:18px 0}.loading-dots i{width:4px;height:4px;border-radius:50%;background:#b798ec;animation:loading-breathe 2.4s ease-in-out infinite}.loading-dots i:nth-child(2){animation-delay:.3s}.loading-dots i:nth-child(3){animation-delay:.6s}
.loading-footnote{font-size:9px;color:#797587;letter-spacing:1px;margin:8px 0 0}
@keyframes loading-breathe{0%,100%{opacity:.45;transform:scale(.96)}50%{opacity:1;transform:scale(1.035)}}
@keyframes loading-orbit{to{transform:rotate(360deg)}}
@media(max-width:999px){.result-column{--result-image-height:440px}.result-loading{min-height:400px}.loading-orbit{width:190px}}
@media(max-width:680px){.result-column{--result-image-height:420px}.result-loading{min-height:390px;padding:48px 16px 22px}.loading-topline{inset:18px 16px auto}.loading-orbit{width:180px;margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){.orbit-ring,.orbit-halo,.orbit-core,.loading-live:before,.loading-dots i{animation:none}}
.studio-layout .workspace-action .primary{padding-inline:12px;gap:10px}.studio-layout .workspace-action .primary>span{white-space:nowrap}.studio-layout .workspace-action .primary>svg{width:16px;height:16px}
@media(min-width:1000px) and (max-height:800px){
  .studio-layout .photo-panel .panel-heading{height:0;min-height:0;margin-bottom:0;overflow:hidden}
  .studio-layout .workspace{min-height:clamp(440px,69svh,730px);padding:16px}
  .studio-layout .studio-intro p{margin-bottom:8px}
  .result-loading{min-height:400px}
}
.result-column{position:relative}
.result-loading{position:absolute;inset:22px;width:auto;min-height:0;padding:36px 20px 18px}
.loading-orbit{width:clamp(150px,27svh,275px);margin:8px 0 18px}
@media(max-width:999px){.result-loading{inset:16px}}
@media(max-width:680px){.result-column:has(.result-loading:not([hidden])){min-height:440px}.result-loading{padding:40px 16px 18px}.loading-orbit{width:165px}}
