@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #111113;
  --muted: #66666d;
  --line: #e6e6e9;
  --soft: #f6f6f7;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, textarea, select, input { color: inherit; font: inherit; }
button { cursor: pointer; border: 0; background: transparent; padding: 0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled, textarea:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #18181b; outline-offset: 4px; }
h1,h2,h3,h4,p { margin: 0; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header-inner, .workspace { max-width: 1280px; width: calc(100% - clamp(40px, 9vw, 132px)); margin: auto; }
.site-header { border-bottom: 1px solid #f0f0f2; background: #fff; }
.header-inner { height: 70px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 29px; font-weight: 770; letter-spacing: -.078em; line-height: 1; }
.brand img { width: 29px; height: 29px; }
.header-inner nav { display: flex; align-items: center; gap: clamp(12px, 2.1vw, 24px); }
.nav-link, .primary, .tool-chip, .notes-button, .product-source { display: inline-flex; justify-content: center; align-items: center; gap: 7px; }
.brand, .nav-link, .saved-open, .shop-heading a, a.tool-chip, .credit-chip { text-decoration: none; }
.nav-link { font-size: .9rem; font-weight: 560; }
.header-inner nav a { white-space: nowrap; }
.nav-link:hover, .product-source:hover { text-decoration: underline; text-underline-offset: 3px; }
.primary { border-radius: 30px; min-height: 43px; padding: 10px 20px; color: #fff; background: #111113; font-weight: 620; font-size: .9rem; text-decoration: none; }
.primary:hover:not(:disabled) { background: #343438; }
.header-inner .primary { min-height: 36px; padding: 8px 15px; font-size: .85rem; }
.credit-chip { display: inline-flex; gap: 4px; align-items: center; padding: 6px 11px; border-radius: 20px; background: #f1eef7; color: #46365c; font-size: .82rem; white-space: nowrap; }
.credit-chip:hover { background: #ebe4f6; }
.workspace { padding-bottom: 60px; }
.creation { padding: clamp(40px, 4.35vw, 70px) 0 clamp(38px, 4.2vw, 65px); position: relative; isolation: isolate; }
.page-heading { text-align: center; margin: 0 auto 25px; }
.page-heading h1 { font-size: clamp(2.9rem, 5.15vw, 5.1rem); letter-spacing: -.075em; font-weight: 640; line-height: 1.06; }
.page-heading p, .saved-heading p { color: var(--muted); margin-top: 10px; font-size: 1.03rem; line-height: 1.45; letter-spacing: -.016em; }
.composer-wrap { width: min(100%, 790px); margin: 0 auto; position: relative; isolation: isolate; }
.composer-wrap::before {
  content: ""; position: absolute; inset: -6px -10px -12px; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg,#e1daff 4%,#e2e2fb 28%,#fcddd2 60%,#e0d5ff 87%);
  filter: blur(24px); opacity: .76; border-radius: 32px;
}
.composer { background: rgb(255 255 255 / .96); padding: 18px; border: 1px solid #e4e3e8; border-radius: 23px; box-shadow: 0 2px 4px #15122206, 0 9px 34px #36314609; position: relative; }
.composer textarea { resize: none; field-sizing: content; border: 0; background: transparent; display: block; width: 100%; min-height: 49px; max-height: 180px; padding: 3px 4px 9px; font-size: 1rem; line-height: 1.45; letter-spacing: -.018em; outline: none; }
.composer textarea::placeholder { color: #74747c; opacity: 1; }
.composer:focus-within { border-color: #bbb9c2; }
.composer-tools, .input-tools { display: flex; gap: 8px; align-items: center; }
.composer-tools { justify-content: space-between; gap: 14px; margin-top: 9px; }
.input-tools { min-width: 0; }
.tool-chip { border: 1px solid var(--line); background: #fff; border-radius: 22px; min-height: 36px; padding: 6px 13px; font-size: .85rem; font-weight: 560; white-space: nowrap; }
.tool-chip:hover:not(:disabled), .icon-btn:hover, .notes-button:hover { background: var(--soft); }
.upload-chip, .style-chip { min-width: 0; }
.upload-chip span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.style-chip span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.chip-image { width: 21px; height: 21px; border-radius: 6px; object-fit: cover; }
.style-chip:has(img:not([hidden])), .upload-chip:has(img) { padding-left: 7px; }
.options-chip { width: 36px; padding: 0; flex-shrink: 0; }
.generate { white-space: nowrap; }
.composer.dragging { outline: 2px dashed #62586f; outline-offset: 3px; }
.stage-note, .status-error { margin: 15px auto 0; max-width: 790px; text-align: center; font-size: .88rem; color: var(--muted); }
.status-error { background: #fbf7f7; color: #6c3939; padding: 10px 14px; border-radius: 12px; }
.generation-progress { width: min(100%, 790px); margin: 20px auto 0; padding: 14px 17px 12px; border-radius: 16px; border: 1px solid #eae6f3; background: #fdfcff; }
.progress-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .86rem; }
.progress-heading strong { font-weight: 620; }
.progress-heading span { color: var(--muted); font-size: .76rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.generation-progress progress { display: block; width: 100%; height: 7px; margin: 9px 0 8px; appearance: none; border: 0; border-radius: 8px; color: #7558b0; background: #eeeaf5; overflow: hidden; }
.generation-progress progress::-webkit-progress-bar { background: #eeeaf5; }
.generation-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #9679d1, #69499e); border-radius: 8px; transition: width .3s ease; }
.generation-progress progress::-moz-progress-bar { background: #7558b0; border-radius: 8px; }
.generation-progress ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; font-size: clamp(.63rem, 2.3vw, .75rem); color: #6e6978; }
.generation-progress li:last-child { text-align: right; }
.generation-progress li.complete { color: #504761; }
.generation-progress li[aria-current] { font-weight: 750; color: #543685; }
.shopping-skeleton { display: none; color: #77727f; padding: 4px 0; }
.shopping-skeleton h3 { font-size: 1.19rem; font-weight: 620; }
.shopping-skeleton span { display: block; height: 58px; border-radius: 12px; background: #fcfbfd; border: 1px solid #f1eff4; margin-top: 11px; }
#app[data-generating="plan"] .shopping-skeleton { display: block; }
#app[data-generating="plan"] .shopping { display: none; }
#app[data-generating] .mode-picker button:disabled { background: #fff; color: #75717b; opacity: .8; }
.result-section { border-top: 1px solid var(--line); padding-top: 24px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.result-heading h2, .saved-heading h1 { font-size: clamp(1.55rem,2.35vw,2.2rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 620; }
.result-heading p { margin-top: 5px; font-size: .85rem; color: var(--muted); }
.result-heading p span { margin: 0 4px; }
.save-room { min-height: 34px; }
.result-grid { display: grid; grid-template-columns: minmax(0,1.95fr) minmax(275px,1fr); gap: clamp(22px,2.7vw,40px); align-items: start; }
.result-grid.solo { grid-template-columns: 1fr; }
@media (min-width: 676px) { #app[data-generating="plan"] .result-grid.solo { grid-template-columns: minmax(0,1.95fr) minmax(245px,1fr); } }
.result-grid.solo .viewer { max-width: 900px; width: 100%; margin: 0 auto; }
.viewer { --photo-max-height: min(80dvh, calc(100dvh - 96px)); position: relative; min-width: 0; display: grid; gap: 10px; justify-items: center; }
@media (min-width: 676px) { .result-grid:not(.solo) > .viewer { position: sticky; top: 16px; } }
.room-image { position: relative; isolation: isolate; border-radius: 18px; max-width: 100%; overflow: hidden; background: #ededee; }
.room-photo { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--photo-max-height); }
.viewer-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; max-width: 100%; }
.share-photo { border: 1px solid var(--line); }
.share-error { color: #8b2929; font-size: .8rem; }
.mode-picker { display: inline-flex; gap: 1px; background: var(--soft); border-radius: 24px; padding: 3px; }
.mode-picker button { min-height: 29px; padding: 5px 12px; display: inline-flex; gap: 4px; align-items: center; border-radius: 20px; font-size: .76rem; font-weight: 570; }
.mode-picker button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.products-overlay {
  position: absolute;
  z-index: 2;
  inset: 10px 10px auto auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 10px 6px 12px;
  border: 1px solid #ffffffa6;
  border-radius: 24px;
  background: #ffffffc4;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px #0003;
  font-size: .78rem;
  font-weight: 650;
}
.products-overlay:hover { background: #ffffffe6; }
.products-switch { width: 27px; height: 16px; padding: 2px; border-radius: 10px; background: #74747b; }
.products-switch::after { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; background: white; }
.products-overlay[aria-pressed="true"] .products-switch { background: var(--ink); }
.products-overlay[aria-pressed="true"] .products-switch::after { transform: translateX(11px); }
.product-markers { position: absolute; inset: 0; pointer-events: none; }
.product-marker { display: grid; place-items: center; position: absolute; transform: translate(-50%,-50%); width: 25px; height: 25px; border-radius: 50%; background: #fffffff5; box-shadow: 0 0 0 3px #ffffff64, 0 2px 6px #0002; pointer-events: auto; }
.product-marker:hover, .product-marker:focus-visible { z-index: 1; box-shadow: 0 0 0 5px #ffffff85; }
.has-product-locations .room-photo { cursor: pointer; }
.shopping { padding: 0 0 3px; min-width: 0; }
.shop-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.shop-heading h3 { font-weight: 640; font-size: 1.19rem; letter-spacing: -.04em; display: flex; gap: 9px; align-items: center; }
.shop-heading h3 span { color: var(--muted); font-size: .75rem; font-weight: 550; border-radius: 12px; background: var(--soft); padding: 1px 8px; }
.shopping-total { color: var(--muted); font-size: .85rem; margin: 2px 0 8px; }
.shopping-total strong { color: var(--ink); margin-left: 5px; }
.shopping-total small { display: block; }
.shopping-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 9px 0 12px; padding: 3px; min-width: 0; border: 1px solid #ece8f0; border-radius: 14px; background: #f6f4f8; }
.shopping-switch label { cursor: pointer; text-align: center; }
.shopping-switch span { display: block; padding: 6px 10px; border-radius: 10px; color: #615a68; font-size: .84rem; font-weight: 620; }
.shopping-switch input:checked + span { background: #fff; color: #302043; box-shadow: 0 1px 3px #1b0c241a; }
.shopping-switch input:focus-visible + span { outline: 2px solid #7558b0; outline-offset: -2px; }
.shopping:not(:has(#shopping-essentials:checked)) [data-essentials-list],
.shopping:has(#shopping-essentials:checked) :is([data-full-list], .product-card:not([data-essential-item])) { display: none; }
.budget-warning { color: #745118; background: #fff7e7; border-radius: 9px; padding: 7px 10px; font-size: .82rem; margin: 7px 0 8px; }
.icon-btn { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; flex-shrink: 0; }
.product-card { display: flex; min-width: 0; text-align: left; align-items: center; padding: 12px 0; gap: 14px; border-bottom: 1px solid var(--line); position: relative; }
.item-photo { width: clamp(60px,5.9vw,86px); flex-shrink: 0; aspect-ratio: 1; border-radius: 11px; background: var(--soft); overflow: hidden; display: grid; place-items: center; color: #777; }
.item-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.product-category { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.item-name { font-weight: 620; font-size: .97rem; text-align: left; line-height: 1.25; letter-spacing: -.025em; }
.item-name::after { position: absolute; inset: 0; content: ""; }
.product-source { z-index: 1; position: relative; text-decoration: none; color: #505056; font-size: .76rem; margin-top: 3px; }
.product-price { display: block; font-size: .82rem; margin-top: 4px; color: var(--muted); }
.notes-button { min-height: 33px; font-size: .85rem; font-weight: 560; padding: 4px 8px; margin: 10px 0 0 -8px; border-radius: 10px; }
.studio-dialog { width: min(470px,calc(100% - 30px)); color: var(--ink); max-height: 88dvh; border: 1px solid #e0e0e4; border-radius: 23px; padding: 0; background: white; box-shadow: 0 20px 80px #15131f29; }
.studio-dialog::backdrop { background: #1b182a33; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 21px 0; gap: 12px; }
.dialog-bar h2 { letter-spacing: -.045em; font-weight: 630; font-size: 1.4rem; }
.dialog-content { padding: 20px 22px 24px; }
.note-intro { margin-bottom: 15px; }
.note-list { margin: 0; padding-left: 19px; color: #55555c; }
.note-list li + li { margin-top: 9px; }
.detail-content .item-photo { width: min(210px,60%); margin: 0 auto 20px; }
.detail-content h3 { font-size: 1.55rem; letter-spacing: -.055em; line-height: 1.1; margin: 4px 0 12px; }
.detail-content > p:not(.product-category), .list-footnote { color: var(--muted); }
.detail-content h4 { font-size: .9rem; margin: 16px 0 4px; }
.detail-content .primary { margin-top: 20px; width: 100%; }
.list-footnote { display: block; font-size: .8rem; margin: 12px 0 0; }
.custom-style { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; }
.custom-style summary { cursor: pointer; padding: 10px 12px; font-size: .88rem; font-weight: 600; }
.custom-style form { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 10px; }
.custom-style input { flex: 1 1 180px; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 8px 11px; }
.custom-style form button { flex-shrink: 0; }
.style-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.style-choice { min-width: 0; padding: 4px; border-radius: 14px; border: 1px solid var(--line); text-align: left; }
.style-choice[aria-pressed="true"] { border: 2px solid var(--ink); padding: 3px; }
.style-choice img { width: 100%; aspect-ratio: 1.8; object-fit: cover; border-radius: 10px; }
.style-choice span { display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 8px 6px 4px; font-weight: 550; font-size: .86rem; }
.settings-content label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 16px; }
.select-wrap { display: block; position: relative; margin-top: 6px; }
.select-wrap select { width: 100%; appearance: none; background: #fff; border: 1px solid var(--line); border-radius: 11px; min-height: 42px; padding: 8px 34px 8px 12px; font-weight: 450; }
.select-wrap svg { pointer-events: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rooms-page { max-width: 1120px; }
.saved-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(40px, 6vw, 76px) 0 28px; }
.saved-heading h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.saved-heading p { overflow-wrap: anywhere; }
.saved-heading a { color: var(--ink); text-underline-offset: 3px; }
.account-utilities { display: flex; gap: 18px; color: var(--muted); font-size: .9rem; }
.account-utilities button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.billing-status { margin-bottom: 18px; color: var(--muted); }
.pricing-page { max-width: 1120px; }
.pricing-intro { max-width: 760px; margin: 0 auto; padding: clamp(44px, 7vw, 94px) 0 46px; text-align: center; }
.pricing-intro h1 { font-size: clamp(2.55rem, 5.5vw, 5.25rem); font-weight: 640; line-height: 1.04; letter-spacing: -.075em; }
.pricing-intro > p { max-width: 510px; margin: 17px auto 22px; color: var(--muted); }
.pricing-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.pricing-actions .tool-chip { min-height: 43px; padding-inline: 19px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pricing-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: clamp(18px, 3vw, 30px); border: 1px solid #e8e4ed; border-radius: 22px; background: #fff; }
.pricing-featured { background: linear-gradient(145deg,#f6efff 0%,#fff 75%); border-color: #d7c7ee; }
.pricing-card h2 { font-size: 1.28rem; font-weight: 670; letter-spacing: -.045em; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.plan-price strong { font-size: clamp(2.65rem, 5vw, 3.6rem); line-height: 1.16; letter-spacing: -.07em; font-weight: 660; }
.plan-price span, .plan-use, .pricing-notes { color: var(--muted); font-size: .9rem; }
.plan-credits { font-size: .97rem; font-weight: 650; border-top: 1px solid #eae5ee; padding-top: 13px; width: 100%; }
.plan-bonus { display: block; margin-top: 3px; color: #594073; font-size: .8rem; font-weight: 600; }
.pricing-card > :is(a, button) { width: 100%; min-height: 41px; margin-top: auto; }
.pricing-card > form { width: 100%; }
.plan-use { padding-bottom: 11px; }
.pricing-notes { max-width: 660px; text-align: center; margin: 22px auto 0; }
.pricing-notes p + p { margin-top: 7px; }
.account-page { display: grid; justify-items: center; padding-top: clamp(45px, 8vw, 105px); }
.account-card { width: min(100%, 465px); background: #fff; border: 1px solid #e8e4ed; border-radius: 24px; padding: clamp(20px, 5vw, 36px); box-shadow: 0 15px 46px #422b5c0a; }
.account-card h1 { font-size: clamp(2rem, 4.8vw, 2.6rem); font-weight: 660; letter-spacing: -.065em; line-height: 1.1; }
.account-card > p { margin: 10px 0 0; color: var(--muted); }
.account-form { margin: 22px 0 15px; display: grid; gap: 14px; }
.account-form label { font-size: .88rem; font-weight: 640; }
.account-form input:not([type="hidden"]) { display: block; margin-top: 6px; width: 100%; border: 1px solid #ded9e4; border-radius: 11px; padding: 10px 12px; background: #fff; }
.account-alternate { font-size: .87rem; }
.account-card .pricing-actions { justify-content: flex-start; margin-top: 20px; }
.checkout-back { margin-bottom: 18px; min-height: 24px; color: var(--muted); font-size: .85rem; }
.checkout-form > .topup-amount { margin-top: 20px; }
.topup-amount { display: grid; gap: 6px; }
.topup-amount label { color: var(--muted); font-size: .85rem; font-weight: 560; }
.topup-input { display: flex; align-items: center; gap: 6px; border: 1px solid #d9d6dd; border-radius: 12px; padding-inline: 14px; font-size: 1.35rem; }
.topup-input:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.topup-input > span { color: var(--muted); }
.topup-input input { min-width: 0; width: 100%; height: 48px; padding: 0; background: transparent; border: 0; font-weight: 620; outline: 0; }
.topup-amount output { min-height: 1.45em; font-size: .95rem; font-weight: 600; }
.checkout-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 10px; margin-top: 24px; }
.checkout-actions :is(.primary, .tool-chip) { width: 100%; min-height: 44px; padding-inline: 12px; font-size: .9rem; }
.account-card > .checkout-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .83rem; }
.library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.empty-library { grid-column: 1/-1; background: #faf9fb; border: 1px solid var(--line); border-radius: 20px; padding: clamp(42px, 7vw, 80px) 24px; text-align: center; }
.empty-room-photo { display: inline-grid; place-items: center; position: relative; isolation: isolate; width: 56px; height: 46px; color: #71667f; }
.empty-room-photo::before, .empty-room-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid #d5cddd; border-radius: 6px; background: #fff; }
.empty-room-photo::before { background: #eee9f2; transform: translate(-4px, -3px) rotate(-10deg); }
.empty-library h2 { margin: 10px 0 5px; letter-spacing: -.04em; }
.empty-library p { max-width: 42ch; margin-inline: auto; color: var(--muted); }
.saved-card { position: relative; min-width: 0; }
.saved-open { width: 100%; display: block; text-align: left; }
.saved-open img { width: 100%; aspect-ratio: 1.65; object-fit: cover; border-radius: 16px; margin-bottom: 10px; }
.saved-open > span { color: var(--muted); font-size: .8rem; }
.result-heading p, .saved-open > span { overflow-wrap: anywhere; }
.saved-open h2 { font-size: 1.13rem; letter-spacing: -.035em; padding-right: 40px; }
.saved-card .remove-room { position: absolute; bottom: 0; right: 0; }
.import-rooms { margin-bottom: 18px; }
[hidden], .request-indicator { display: none !important; }
.request-indicator:is(.htmx-request, .preparing) { display: block !important; }

@media (max-width: 850px) {
  .result-grid { grid-template-columns: minmax(0,1.5fr) minmax(245px,1fr); gap: 20px; }
  .product-card { padding: 9px 0; }
  .item-photo { width: 58px; }
}
@media (max-width: 675px) {
  .header-inner, .workspace { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; height: auto; padding-block: 8px; flex-wrap: wrap; gap: 6px 12px; }
  .header-inner nav { gap: 15px; }
  .creation { padding: 39px 0 34px; }
  .page-heading { margin-bottom: 21px; }
  .page-heading h1 { font-size: clamp(2.35rem,8vw,3.35rem); }
  .page-heading p { max-width: 330px; margin: 9px auto 0; font-size: .94rem; }
  .composer { padding: 14px; border-radius: 19px; }
  .composer-wrap::before { filter: blur(18px); inset: 0 -2px -7px; }
  .composer-tools { flex-wrap: wrap; gap: 10px; }
  .input-tools { flex-wrap: wrap; }
  .generate { margin-left: auto; }
  .result-section { padding-top: 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid > .viewer { --photo-max-height: 70dvh; }
  .shop-heading { margin: 0; }
  .product-card { padding: 10px 0; }
  .item-photo { width: 68px; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .pricing-intro { padding-bottom: 28px; }
  .pricing-card { gap: 8px; }
  .header-inner nav { max-width: 100%; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 390px) {
  .header-inner nav { gap: 8px; }
  .credit-chip { padding-inline: 7px; font-size: .75rem; }
}
@media (max-width: 515px) {
  .composer-tools { display: grid; grid-template-columns: minmax(0,1fr); }
  .input-tools { justify-content: flex-start; }
  .generate { width: 100%; margin: 1px 0 0; }
  .tool-chip { padding-inline: 10px; }
  .options-chip { padding: 0; }
  .upload-chip span { max-width: 103px; }
  .viewer-tools .mode-picker button { padding-inline: 10px; }
  .brand { font-size: 25px; }
  .brand img { width: 25px; height: 25px; }
  .result-heading { margin-bottom: 12px; flex-direction: column; align-items: flex-start; }
  .result-actions { justify-content: flex-start; }
  .result-heading h2 { font-size: 1.45rem; }
  .result-heading p { font-size: .78rem; }
  .save-room { font-size: .78rem; }
  .library-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .header-inner nav { gap: 10px; }
  .nav-link { font-size: .82rem; }
  .composer .input-tools { gap: 4px; }
  .composer :is(.upload-chip, .style-chip) { padding-inline: 7px; }
}
@media (max-width: 365px) {
  .header-inner, .workspace { width: calc(100% - 24px); }
  .tool-chip { font-size: .75rem; }
  .tool-chip span { max-width: 85px; }
  .generation-progress ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .generation-progress li:nth-child(3n) { text-align: right; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
