/* Nowhere Home — storefront and seller console share this sheet.
   The storefront rules are scoped to body.page wherever a name is shared
   with the console (bar, brand); the console section at the bottom is
   untouched by the storefront's design. */
:root {
  --bg: oklch(0.965 0.008 80);
  --paper: oklch(0.985 0.005 80);
  --tint: oklch(0.94 0.012 78);
  --ink: oklch(0.22 0.01 60);
  --muted: oklch(0.5 0.01 60);
  --muted-2: oklch(0.42 0.01 60);
  --line: oklch(0.88 0.01 70);
  --line-2: oklch(0.8 0.01 70);
  --bubble: oklch(0.92 0.012 75);
  --accent: oklch(0.52 0.13 40);
  --accent-badge: oklch(0.62 0.13 40);
  --ok: oklch(0.62 0.13 150);
  --warn: oklch(0.65 0.13 70);
  --down: oklch(0.55 0.15 30);
  --placeholder: repeating-linear-gradient(135deg, oklch(0.9 0.012 75) 0 1px, transparent 1px 9px);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 4px;
  --gutter: clamp(20px, 3vw, 44px);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); -webkit-font-smoothing: antialiased; }
/* The shop is one screen: only the stage and the thread scroll, never the
   document — otherwise a tall view (a product page) scrolls the seller's
   voice and the ask bar out of sight. */
body.page { height: 100dvh; min-height: 0; overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
em, i { font-style: italic; }
::selection { background: var(--accent); color: #fff; }
button { font: inherit; cursor: pointer; color: inherit; }

/* ---- header ---------------------------------------------------------------*/

.bar { background: var(--paper); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.brand { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px 24px 10px; }
.brand-block { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; flex: 0 0 auto; }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .light { stroke: var(--accent); }
.brand-block .sub { font-size: 13px; color: var(--muted); align-self: flex-end; padding-bottom: 3px; }
.status-group { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex: 0 1 auto; }
.ghost-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 12px; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; color: var(--muted-2); }
.ghost-btn:hover { border-color: var(--ink); color: var(--ink); }
.ghost-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.ghost-btn .dot[data-state="open"] { background: var(--ok); }
.ghost-btn .dot[data-state="down"] { background: var(--down); }
.home-pill { border: 0; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 13px; }
.home-pill:hover { background: var(--accent); }
.home-pill.bump { animation: nhBump .6s cubic-bezier(.3, 1.6, .5, 1); }
.status-group { position: relative; }
.home-toast { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; max-width: min(360px, 80vw); padding: 9px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 10px 24px -12px oklch(0.3 0.05 40 / .6); }
.home-toast[hidden] { display: none; }
.home-toast.show { animation: nhToast 4.2s ease both; }
@keyframes nhToast { 0% { opacity: 0; transform: translateY(-8px); } 8%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
.home-count { font-size: 11px; font-weight: 600; min-width: 20px; text-align: center; padding: 2px 6px; border-radius: 999px; background: var(--accent-badge); font-variant-numeric: tabular-nums; }
.home-total { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
@keyframes nhBump { 0% { transform: scale(1); } 35% { transform: scale(1.09); } 100% { transform: scale(1); } }

/* The departments: plain words, like a shop's own navigation. `active` = the
   visitor is browsing it; `lit` = something of that department is on the
   stage right now, whoever put it there. */
/* One row, scrolled sideways (page.js wires the mouse wheel); the edges fade
   where more departments are out of sight. */
.categories { display: flex; gap: 22px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding: 0 24px 0; min-height: 34px; }
.categories::-webkit-scrollbar { display: none; }
/* Arrows over the faded edges, for whoever does not know the sideways gesture. */
.categories-wrap { position: relative; }
.categories-arrow { position: absolute; top: 0; bottom: 0; z-index: 1; width: 34px; border: 0; background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; padding: 0 0 6px; }
.categories-arrow.prev { left: 0; box-shadow: 10px 0 12px -6px var(--paper); }
.categories-arrow.next { right: 0; box-shadow: -10px 0 12px -6px var(--paper); }
.categories-arrow:hover { color: var(--accent); }
.categories-arrow[hidden] { display: none; }
.categories.more-left { mask-image: linear-gradient(to right, transparent, #000 48px); }
.categories.more-right { mask-image: linear-gradient(to left, transparent, #000 48px); }
.categories.more-left.more-right { mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.chip { position: relative; flex: 0 0 auto; border: 0; background: transparent; color: var(--muted-2); padding: 6px 0 11px; font-size: 13px; letter-spacing: .01em; }
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.chip:hover { color: var(--ink); }
.chip.active { color: var(--ink); }
.chip.active::after { transform: scaleX(1); }
.chip.lit { color: var(--accent); }
.chip.lit::after { background: var(--accent); transform: scaleX(1); }

/* ---- body: three panes -----------------------------------------------------*/

.body { flex: 1; display: flex; min-height: 0; }

/* The thread of the visit (left). Not a chat: the seller speaks on the stage;
   this is the memory of what was said and seen. */
.chat-pane { flex: 0 1 300px; min-width: 220px; display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; background: var(--bg); }
.chat-pane.hidden { display: none; }
.chat-head-actions { display: inline-flex; gap: 12px; }
.chat-handle { flex: 0 0 30px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 18px 0; }
.chat-handle:hover { color: var(--ink); background: var(--paper); }
.chat-handle[hidden] { display: none; }
.chat-head { padding: 18px 22px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.chat-head .label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.link-btn.mono-link { font-family: var(--mono); font-size: 11px; padding: 0; }
.link-btn { font-size: 12px; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 6px 22px 24px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.msg-user { align-self: flex-end; max-width: 88%; padding: 9px 13px; background: var(--bubble); border-radius: 14px 14px 4px 14px; font-size: 13.5px; line-height: 1.45; }
.msg-bot { display: flex; flex-direction: column; gap: 4px; max-width: 94%; }
.msg-bot .who { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.msg-bot .msg-text { font-family: var(--serif); font-size: 17px; line-height: 1.3; color: var(--muted-2); }
.msg-bot.latest .msg-text { color: var(--ink); }
.msg-notice { font-size: 12px; color: var(--muted); border-left: 2px solid var(--line-2); padding: 2px 0 2px 10px; }
/* A view that has been on the stage: who put it there, and what it was. One
   click brings it back. */
.msg-nav, .msg-act { align-self: stretch; display: flex; gap: 8px; align-items: baseline; text-align: left; border: 0; background: transparent; padding: 0 0 0 14px; font-size: 12px; line-height: 1.4; color: var(--muted); position: relative; }
.msg-nav::before, .msg-act::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); }
.msg-nav .by, .msg-act .by { flex: 0 0 auto; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.msg-nav[data-by="seller"] .by, .msg-act[data-by="seller"] .by { color: var(--accent); }
.msg-nav[data-by="seller"]::before { border-color: var(--accent); }
.msg-nav:hover { color: var(--ink); }
.msg-nav.current { color: var(--ink); }
.msg-nav.current::before { background: var(--ink); border-color: var(--ink); }
.msg-nav.current[data-by="seller"]::before { background: var(--accent); border-color: var(--accent); }
.msg-act { cursor: default; }
.chat-head-actions { display: flex; align-items: center; gap: 12px; }

/* ---- the stage ---------------------------------------------------------------*/

.stage { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
/* The site is working on an answer: a hairline runs along the top of the
   stage. The visitor can keep browsing meanwhile — nothing is locked. */
.stage-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3; overflow: hidden; opacity: 0; transition: opacity .3s ease; }
.stage-progress::before { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: nhRun 1.3s ease-in-out infinite; }
.stage.thinking .stage-progress { opacity: 1; }
@keyframes nhRun { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.stage-scroll { flex: 1; overflow-y: auto; min-height: 0; padding-bottom: 28px; }
.center { min-height: 60%; }
.center .empty { color: var(--muted); text-align: center; padding: 100px 0; font-family: var(--serif); font-size: 20px; font-style: italic; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* The seller's voice, on the stage: the site answers here, over what it
   composed. While an answer is on its way, the visitor's own words wait in
   the same place. */
.voice { max-width: 1200px; margin: 0 auto; padding: 26px var(--gutter) 0; display: flex; flex-direction: column; gap: 8px; }
.voice[hidden] { display: none; }
.voice-kicker { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.voice-text { font-family: var(--serif); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.16; letter-spacing: -.005em; max-width: 46ch; animation: nhRise .5s ease both; text-wrap: pretty; }
.voice.notice .voice-text { font-family: var(--sans); font-size: 15px; color: var(--muted-2); }
.voice { transition: opacity .4s ease; }
.voice.waiting { opacity: .4; }

/* What enters the stage enters in order, top to bottom: the seller lays
   things down one after the other. */
@keyframes nhRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view-board > *, .room-grid > *, .browse-grid > *, .view-detail > *, .intro > *, .view-room > .room-header { animation: nhRise .55s cubic-bezier(.2, .7, .2, 1) both; }
.view-board > :nth-child(2), .room-grid > :nth-child(2), .browse-grid > :nth-child(2), .view-detail > :nth-child(2), .intro > :nth-child(2) { animation-delay: .08s; }
.view-board > :nth-child(3), .room-grid > :nth-child(3), .browse-grid > :nth-child(3), .view-detail > :nth-child(3), .intro > :nth-child(3) { animation-delay: .16s; }
.view-board > :nth-child(4), .room-grid > :nth-child(4), .browse-grid > :nth-child(4), .intro > :nth-child(4) { animation-delay: .24s; }
.view-board > :nth-child(5), .room-grid > :nth-child(5), .browse-grid > :nth-child(5) { animation-delay: .32s; }
.view-board > :nth-child(n+6), .room-grid > :nth-child(n+6), .browse-grid > :nth-child(n+6) { animation-delay: .4s; }
/* A view the seller composed is assembled by page.js (assemble()): the
   generic rise steps aside so the two do not run on top of each other. */
.center.assembling .view-board > *, .center.assembling .room-grid > *, .center.assembling .browse-grid > *, .center.assembling .view-detail > *, .center.assembling .view-room > .room-header { animation: none; }
/* While the seller thinks: "Compongo la tua pagina…" floats over the stage. */
.stage-composing { position: absolute; top: 14px; left: 50%; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: 0 6px 24px oklch(0 0 0 / .08); font-size: 13px; color: var(--muted-2); opacity: 0; transform: translate(-50%, -6px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.stage.thinking .stage-composing { opacity: 1; transform: translate(-50%, 0); }
.stage-composing .spark, .scene-wait .spark { color: var(--accent); animation: nhSpark 1.6s ease-in-out infinite; }
@keyframes nhSpark { 0%, 100% { opacity: .45; transform: scale(.9) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
.stage-composing .dots, .scene-wait .dots { display: inline-block; animation: nhDot 1.2s ease-in-out infinite; }
/* The seller's words arrive one after the other. */
.voice-text .w { display: inline-block; animation: nhWord .32s ease both; animation-delay: calc(var(--w, 0) * 28ms); }
@keyframes nhWord { from { opacity: 0; transform: translateY(4px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* ask bar: the shop's one voice-in, docked under the stage */
.askbar { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px clamp(16px, 4vw, 48px) 16px; background: linear-gradient(to top, var(--bg) 75%, transparent); position: relative; margin-top: -28px; }
.askbar > * { width: 100%; max-width: 820px; }
.ask-form { display: flex; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); box-shadow: 0 10px 30px -14px oklch(0.3 0.02 60 / .35); }
.ask-form:focus-within { border-color: var(--ink); }
.ask-form input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: inherit; min-width: 0; padding: 8px 12px; }
.ask-send { flex: 0 0 auto; font-size: 14px; font-weight: 500; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); }
.ask-send:hover { background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chips button { font-size: 12px; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in oklab, var(--paper) 85%, transparent); backdrop-filter: blur(6px); }
.chips button:hover { border-color: var(--ink); }
.chips[hidden], .ask-wait[hidden] { display: none; }

/* The wait, said where the visitor just wrote: their words, three dots that
   breathe, and the ask bar's edge turning slowly. */
.ask-wait { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 30px; font-size: 12.5px; color: var(--muted-2); }
.ask-wait-who { flex: 0 0 auto; font-weight: 500; color: var(--accent); }
.ask-wait-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }
.ask-dots { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.ask-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: nhDot 1.2s ease-in-out infinite; }
.ask-dots i:nth-child(2) { animation-delay: .15s; }
.ask-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nhDot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
@property --nh-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.askbar.thinking .ask-form { border-color: transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, conic-gradient(from var(--nh-turn), var(--line-2) 0 62%, var(--accent) 82%, var(--line-2) 100%) border-box; animation: nhTurn 2.4s linear infinite; }
@keyframes nhTurn { to { --nh-turn: 360deg; } }

/* …and on the scene itself, which stays alive while the seller thinks: a
   light passes over the pieces one after the other (--i, set by the page in
   reading order), the home's picture drifts. Decoration over the content,
   never in its way: everything stays clickable. */
.stage.thinking .ph::after, .stage.thinking .starter-img::after, .stage.thinking .blk-ambient::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, oklch(1 0 0 / .6) 50%, transparent 62%) no-repeat; background-size: 260% 100%; animation: nhSheen 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .22s); }
@keyframes nhSheen { 0% { background-position: 130% 0; } 55%, 100% { background-position: -60% 0; } }
.stage.thinking .intro-hero > img { animation: nhDrift 7s ease-in-out infinite alternate; }
@keyframes nhDrift { from { transform: scale(1); } to { transform: scale(1.05) translateX(-1%); } }

/* ---- shared pieces of the stage's language ---------------------------------*/

.kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }
.price { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.price.big { font-size: 20px; }
/* A product photograph: studio shots on white, laid on the shop's own warm
   paper (multiply) so they belong to the page instead of sitting in boxes. */
.ph { position: relative; background: var(--tint); border-radius: var(--r); overflow: hidden; aspect-ratio: 1; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ph.empty { background: var(--tint) var(--placeholder); }
/* Already the visitor's: said on the piece, so it reads as a reference. */
.in-home > .ph::before { content: "✓ Nella tua casa"; position: absolute; z-index: 1; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11px; letter-spacing: .02em; }
.in-home > .ph img { opacity: .82; }
[data-code] { cursor: pointer; }
[data-code]:hover > .ph img, .ph:hover img { transform: scale(1.035); }
.room-add { font-size: 12px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; white-space: nowrap; }
.room-add:hover { border-color: var(--ink); }
.room-add.added { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.board-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-desc { color: var(--muted-2); line-height: 1.6; max-width: 46ch; font-size: 15px; }
/* The seller's own words printed on the stage, next to what they are about. */
.board-voice { padding-left: 14px; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--ink); max-width: 40ch; }
.board-card-note { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.3; color: var(--muted-2); }
.specs { border-top: 1px solid var(--line); }
.spec { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec strong { font-weight: 500; text-align: right; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 8px; border: 1px solid oklch(0 0 0 / .12); }

/* ---- the home ----------------------------------------------------------------*/

.intro { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); padding-bottom: 40px; }
.intro-hero { position: relative; min-height: clamp(380px, 62vh, 620px); display: flex; align-items: flex-end; overflow: hidden; background: var(--tint); }
.intro-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.965 0.008 80 / .97) 0%, oklch(0.965 0.008 80 / .6) 30%, oklch(0.965 0.008 80 / 0) 62%), linear-gradient(to right, oklch(0.965 0.008 80 / .82) 0%, oklch(0.965 0.008 80 / .5) 38%, oklch(0.965 0.008 80 / 0) 66%); }
.intro-copy { position: relative; z-index: 1; padding: 40px var(--gutter) 34px; display: flex; flex-direction: column; gap: 16px; }
.intro h1 { font-size: clamp(42px, 5.6vw, 88px); line-height: .96; letter-spacing: -.02em; max-width: 13ch; }
.intro-copy p { max-width: 50ch; font-size: 16px; line-height: 1.55; color: var(--muted-2); }
.intro-section { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.starters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.starter-card { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: transparent; }
.starter-img { position: relative; aspect-ratio: 4/3; width: 100%; border-radius: var(--r); overflow: hidden; background: var(--tint) var(--placeholder); }
.starter-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.starter-card:hover .starter-img img { transform: scale(1.04); }
.starter-card .room-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.starter-card .prompt { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.starter-card:hover .prompt { color: var(--accent); }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.how h4 { font-size: 21px; line-height: 1.15; margin-bottom: 6px; }
.how p { font-size: 13.5px; line-height: 1.5; color: var(--muted-2); max-width: 36ch; }

/* ---- show_board: the stage laid out by the seller ---------------------------
   A small editorial vocabulary. Every block is a full-width band of the same
   column; the seller chooses which, in which order, with which words. */

.view-board { max-width: 1200px; margin: 0 auto; padding: 26px var(--gutter) 56px; display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 46px); }
.board-title { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.015em; max-width: 22ch; }
.blk-title { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* hero: one product in evidence — image left, right, or a wide band */
.blk-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 48px); align-items: center; }
.blk-hero.lay-right .hero-ph { order: 2; }
.blk-hero.lay-wide { grid-template-columns: 1fr; gap: 20px; }
.blk-hero.lay-wide .hero-ph { aspect-ratio: 21/9; }
.blk-hero.lay-wide .hero-ph img { object-fit: contain; }
.blk-hero.lay-wide .hero-info { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px 40px; align-items: start; }
.blk-hero.lay-wide .hero-info > .eyebrow, .blk-hero.lay-wide .hero-info > h3, .blk-hero.lay-wide .hero-info > .detail-desc { grid-column: 1; }
.blk-hero.lay-wide .hero-info > .board-buy, .blk-hero.lay-wide .hero-info > .board-voice, .blk-hero.lay-wide .hero-info > .hero-extra, .blk-hero.lay-wide .hero-info > .specs { grid-column: 2; }
.blk-hero.lay-wide .hero-info > .board-buy { grid-row: 1 / span 2; align-self: end; }
.hero-info { display: flex; flex-direction: column; gap: 14px; }
.hero-info h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.03; letter-spacing: -.01em; }
.hero-extra { font-size: 13px; color: var(--muted-2); display: flex; align-items: center; gap: 10px; }
.hero-extra .ph { width: 44px; flex: 0 0 44px; }

/* strip: a titled group — a row, a mosaic with a lead piece, or a compact list */
.strip-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 45%), 1fr)); gap: 22px 18px; }
.board-card { display: flex; flex-direction: column; gap: 10px; }
.card-body { display: flex; flex-direction: column; gap: 6px; }
.board-card .name { font-family: var(--serif); font-size: 19px; line-height: 1.15; }
.board-card .price { font-size: 13px; }
.blk-strip.lay-mosaic .strip-items { grid-auto-flow: dense; }
.blk-strip.lay-mosaic .board-card:first-child { grid-column: span 2; grid-row: span 2; }
.blk-strip.lay-mosaic .board-card:first-child .ph { flex: 1; min-height: 280px; aspect-ratio: auto; }
.blk-strip.lay-mosaic .board-card:first-child .name { font-size: 26px; }
.blk-strip.lay-list .strip-items { grid-template-columns: 1fr; gap: 0; }
.blk-strip.lay-list .board-card { flex-direction: row; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.blk-strip.lay-list .board-card .ph { width: 72px; flex: 0 0 72px; }
.blk-strip.lay-list .card-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; align-items: center; }
.blk-strip.lay-list .board-buy { grid-column: 2; grid-row: 1 / span 2; }
.blk-strip.lay-list .board-card-note { grid-column: 1; }

/* note: a few words of the seller's, large */
.blk-note { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.14; letter-spacing: -.005em; max-width: 30ch; text-wrap: balance; }

/* pair: two products facing each other */
.blk-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px clamp(14px, 2vw, 30px); align-items: start; }
.pair-side { display: flex; flex-direction: column; gap: 10px; }
.pair-side .ph { aspect-ratio: 4/3; }
.pair-side h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.08; }
.pair-or { align-self: center; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--muted); }
.pair-diff { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-2); }
.pair-diff strong { font-weight: 600; color: var(--ink); }

/* ambient: an atmosphere photograph chosen by the seller */
.blk-ambient { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--tint); cursor: pointer; }
.blk-ambient img { display: block; width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.blk-ambient figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 44px 20px 16px; background: linear-gradient(to top, oklch(0.2 0.01 60 / .62), transparent); color: #fff; }
.amb-cap { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.12; max-width: 30ch; }
.amb-tag { flex: 0 0 auto; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* palette: a band of the catalogue's own colours */
.pal-row { display: flex; flex-wrap: wrap; gap: 14px; }
.pal-chip { flex: 1 1 96px; max-width: 180px; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: transparent; text-align: left; }
.pal-swatch { display: block; height: 96px; border-radius: var(--r); background: var(--c, #ccc); box-shadow: inset 0 0 0 1px oklch(0 0 0 / .08); transition: transform .3s ease; }
.pal-chip:hover .pal-swatch { transform: translateY(-4px); }
.pal-name { font-size: 13px; }
.blk-palette .board-card-note { margin-top: 14px; font-size: 17px; }

/* ---- compose_room -------------------------------------------------------------*/

.view-room { max-width: 1200px; margin: 0 auto; }
.room-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 32px; flex-wrap: wrap; padding: 26px var(--gutter) 0; }
.room-header .meta { font-size: 14px; color: var(--muted-2); margin-top: 8px; }
.room-header h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: .98; letter-spacing: -.015em; margin-top: 8px; }
.room-cta { font-size: 14px; font-weight: 500; padding: 13px 20px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg); }
.room-cta:hover { background: var(--accent); border-color: var(--accent); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 45%), 1fr)); grid-auto-flow: dense; gap: 22px 18px; padding: 24px var(--gutter) 56px; }
.room-featured { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; gap: 12px; }
.room-featured .ph { flex: 1; min-height: 300px; aspect-ratio: auto; }
.room-piece { display: flex; flex-direction: column; gap: 10px; }
.room-piece .name, .room-featured .name { font-family: var(--serif); font-size: 20px; line-height: 1.1; }
.room-featured .name { font-size: 28px; }
.room-piece .material, .room-featured .material { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.room-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.room-row .price { font-size: 13px; text-align: right; margin-bottom: 6px; }

/* ---- browse / search ----------------------------------------------------------*/

.view-browse { max-width: 1200px; margin: 0 auto; padding: 26px var(--gutter) 56px; }
.view-browse .kicker { margin-bottom: 6px; }
.browse-head { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 24px; }
.view-browse .empty { text-align: center; color: var(--muted); padding: 60px 0; }
.browse-grid { display: grid; gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(min(190px, 45%), 1fr)); }
.browse-card { display: flex; flex-direction: column; gap: 6px; }
.browse-card .ph { margin-bottom: 6px; }
.browse-card h3 { font-size: 19px; line-height: 1.15; }
.browse-card .price { font-size: 13px; }

/* ---- product detail -----------------------------------------------------------*/

.view-detail { max-width: 1200px; margin: 0 auto; padding: 22px var(--gutter) 56px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb button:hover { color: var(--accent); }
.breadcrumb .current { color: var(--ink); }
.detail-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 48px); align-items: start; }
.detail-info { display: flex; flex-direction: column; gap: 14px; }
.detail-info h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.03; letter-spacing: -.01em; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch-btn { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); cursor: pointer; background: var(--swatch-color, #ccc); box-shadow: 0 0 0 1px var(--line-2); padding: 0; }
.swatch-btn.selected { box-shadow: 0 0 0 2px var(--ink); }
.swatch-line { display: flex; flex-direction: column; gap: 8px; }
.related { margin-top: 44px; display: flex; flex-direction: column; gap: 30px; }
.related-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.related-card { flex: 0 0 160px; display: flex; flex-direction: column; gap: 6px; }
.related-card p { font-size: 13px; line-height: 1.3; }
.related-card .name { font-family: var(--serif); font-size: 16px; }

/* ---- budget, cart, la tua casa ----------------------------------------------*/

.budget-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.budget-grid.one { grid-template-columns: 1fr; max-width: 520px; }
.budget-card { border-top: 2px solid var(--line-2); padding: 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.budget-card.after { border-top-color: var(--ink); }
.budget-card .bigprice { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 52px); line-height: 1; margin: 6px 0 12px; }
.budget-card .verdict { margin-top: 10px; font-size: 13px; font-weight: 500; }
.budget-card .verdict.ok { color: var(--ok); }
.budget-card .verdict.over { color: var(--down); }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.line small { display: block; color: var(--muted); font-size: 12px; }
.line strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.row.total, .view-home .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font-family: var(--serif); font-size: 28px; }
.blk-list { max-width: 760px; }
.home-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.home-line .name { font-family: var(--serif); font-size: 21px; }
.home-line small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.home-line-right { display: flex; align-items: center; gap: 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.empty-home { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--muted); }
.fine-print { font-size: 12px; color: var(--muted); margin-top: 14px; }
@media (max-width: 720px) {
  .budget-grid, .detail-main, .blk-hero, .blk-hero.lay-wide .hero-info { grid-template-columns: 1fr; }
  .blk-hero.lay-right .hero-ph { order: 0; }
  .blk-hero.lay-wide .hero-info > * { grid-column: 1 !important; grid-row: auto !important; }
  .blk-pair { grid-template-columns: 1fr; }
  .pair-or { justify-self: center; }
}

/* ---- highlight: the seller points --------------------------------------------*/
#stage-center .hl { position: relative; outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--r); animation: nhPoint 1.2s ease-out 1; }
@keyframes nhPoint { 0% { outline-offset: 18px; outline-color: transparent; } 100% { outline-offset: 6px; } }
.hl-note { margin-top: 10px; padding: 9px 12px; background: var(--accent); color: #fff; border-radius: var(--r); font-family: var(--serif); font-size: 16px; line-height: 1.25; animation: nhRise .5s ease both; }

/* ---- trail: what has been on the stage ---------------------------------------*/
.trail { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 10px var(--gutter); background: linear-gradient(var(--bg) 70%, transparent); scrollbar-width: none; }
.trail[hidden] { display: none; }
.trail-step { flex: 0 0 auto; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); }
.trail-step:hover { border-color: var(--line-2); color: var(--ink); }
.trail-step.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.trail-sep { color: var(--line-2); font-size: 12px; }

/* ---- agent pane: the demonstrator's instruments ----------------------------*/
.agent-pane { flex: 0 1 330px; min-width: 240px; display: flex; flex-direction: column; background: oklch(0.21 0.01 60); color: oklch(0.9 0.008 80); font-family: var(--mono); min-height: 0; }
.agent-pane.hidden { display: none; }
.agent-close { display: none; align-self: flex-end; font-family: var(--mono); font-size: 11px; background: transparent; border: 1px solid oklch(0.4 0.01 60); border-radius: 999px; padding: 5px 10px; color: oklch(0.9 0.008 80); }
.agent-head { padding: 20px 22px 16px; border-bottom: 1px solid oklch(0.32 0.01 60); display: flex; flex-direction: column; gap: 6px; }
.agent-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: oklch(0.75 0.11 40); }
.agent-tagline { font-family: var(--serif); font-size: 20px; line-height: 1.25; color: oklch(0.95 0.008 80); }
.agent-section-label { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: oklch(0.62 0.01 60); }
.agent-session { padding: 14px 22px; border-bottom: 1px solid oklch(0.32 0.01 60); display: flex; flex-direction: column; gap: 8px; }
.mono-status { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: oklch(0.86 0.008 80); }
.mono-status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.mono-status .link-btn { align-self: flex-start; color: oklch(0.7 0.01 60); }
.mono-status .link-btn:hover { color: #fff; }
.agent-tools { padding: 16px 22px; border-bottom: 1px solid oklch(0.32 0.01 60); display: flex; flex-direction: column; gap: 8px; max-height: 38%; overflow-y: auto; scrollbar-width: thin; }
#agent-tools-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.agent-tool-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.agent-tool-row .name { color: oklch(0.95 0.008 80); }
.agent-tool-row .calls { color: oklch(0.6 0.01 60); }
.agent-tool-row.fresh .name, .agent-tool-row.fresh .calls { color: oklch(0.75 0.11 40); }
.agent-log-wrap { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.agent-log-empty { font-size: 12px; line-height: 1.5; color: oklch(0.6 0.01 60); margin-top: 4px; }
.agent-log-entry { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; line-height: 1.45; padding-left: 10px; border-left: 1px solid oklch(0.4 0.01 60); margin-top: 10px; }
.agent-log-entry .row1 { display: flex; justify-content: space-between; gap: 8px; }
.agent-log-entry .tool { color: oklch(0.75 0.11 40); }
.agent-log-entry .t { color: oklch(0.55 0.01 60); }
.agent-log-entry .result { color: oklch(0.78 0.1 150); word-break: break-word; }

/* ---- footer: the shop's own small print --------------------------------------*/
.foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; padding: 8px 24px; border-top: 1px solid var(--line); background: var(--paper); font-size: 11.5px; color: var(--muted); }
.foot-brand { color: var(--muted-2); }
.foot-links { display: flex; gap: 16px; }
.foot-note { margin-left: auto; }

/* ---- narrower windows: nothing is cut off -----------------------------------
   The seller's voice is on the stage, so the thread can step aside: the shop
   stays whole in one column. (No dedicated phone design yet.) */
@media (max-width: 1100px) { .agent-pane { display: none; } .agent-pane.shown { display: flex; position: fixed; inset: 0; z-index: 20; flex: none; width: 100%; } .agent-close { display: inline-block; } }
@media (max-width: 900px) { .chat-pane { flex-basis: 250px; } .brand-block .sub { display: none; } }
@media (max-width: 720px) {
  .chat-pane { display: none; }
  .chat-handle { display: none; }
  .chat-pane.shown { display: flex; position: fixed; inset: 0; z-index: 20; flex: none; width: 100%; }
  .foot-links { display: none; }
  .foot-note { margin-left: 0; }
  .home-total { display: none; }
}

/* ---- shared form controls ---------------------------------------------------*/

input, textarea { font: inherit; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
button.small { padding: 2px 8px; font-size: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; }
button:disabled { opacity: .4; cursor: not-allowed; }

/* ---- console (unchanged layout, same palette) ------------------------------*/

.badge, .status { font-size: 10px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-family: var(--mono); }
[data-state="open"] { border-color: var(--ok); color: var(--ok); }
[data-state="connecting"], [data-state="warn"] { border-color: var(--warn); color: var(--warn); }
[data-state="down"] { border-color: var(--down); color: var(--down); }
.auth { display: flex; gap: 8px; padding: 20px; max-width: 480px; }
.auth input { flex: 1; min-width: 0; padding: 8px 10px; }
.auth button { padding: 9px 14px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: #fff; }
.console-main { display: grid; gap: 20px; padding: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .console-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.console-main h2 { font-size: 16px; font-weight: 500; margin: 0 0 10px; font-family: var(--sans); }
.catalog { max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.catalog-row { padding: 8px 12px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.catalog-row:last-child { border-bottom: none; }
.page-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.page-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 500; font-family: var(--sans); }
.page-card .status { display: inline-block; border-radius: 8px; }
.gesture { display: grid; gap: 6px; margin-top: 12px; }
.gesture textarea { width: 100%; font-family: var(--mono); font-size: 12px; padding: 8px; }
.gesture button { justify-self: start; padding: 9px 14px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: #fff; }
.log { list-style: none; padding: 0; margin: 0; font-family: var(--mono); font-size: 12px; max-height: 75vh; overflow: auto; }
.log li { padding: 4px 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.log time { color: var(--muted); }
.log .ok { color: var(--ok); }
.log .err { color: var(--down); }
.log .warn { color: var(--warn); }
.log .event { color: var(--accent); }
.page-card.closed { opacity: .45; }
.hide-closed .page-card.closed { display: none; }
#show-closed { font-weight: normal; margin-left: 12px; }
.page-card.closed .gesture { display: none; }
pre.webmcp { font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- "Fammi vedere come sarebbe": the scene ----------------------------------*/
.room-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.imagine-btn { font-size: 14px; font-weight: 500; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.imagine-btn span { color: var(--accent); }
.imagine-btn:hover { border-color: var(--accent); color: var(--accent); }
.view-home .imagine-btn { margin-top: 14px; }
.view-scene { max-width: 1200px; margin: 0 auto; }
.scene-slot { padding: 22px var(--gutter) 0; }
.scene-frame { margin: 0; border-radius: 18px; overflow: hidden; background: var(--line); aspect-ratio: 16 / 9; position: relative; }
.scene-frame img { width: 100%; height: 100%; object-fit: cover; display: block; animation: nhSceneIn .9s ease both; }
@keyframes nhSceneIn { from { opacity: 0; filter: blur(10px); transform: scale(1.02); } to { opacity: 1; filter: none; transform: none; } }
.scene-frame figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; font-size: 12px; color: var(--muted-2); background: oklch(1 0 0 / .82); padding: 6px 10px; border-radius: 8px; width: fit-content; max-width: calc(100% - 24px); }
.scene-frame.pending::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, oklch(1 0 0 / .55) 50%, transparent 65%) no-repeat; background-size: 260% 100%; animation: nhSheen 2.4s ease-in-out infinite; }
.scene-wait { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; color: var(--muted-2); z-index: 1; }
.scene-wait p { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); color: var(--ink); }
.scene-wait .spark { font-size: 22px; }
.scene-frame.failed { display: grid; place-content: center; color: var(--muted-2); padding: 24px; text-align: center; }
.scene-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; padding: 22px var(--gutter) 0; }

/* ---- what a change is worth (budget) and two carts side by side ------------*/
.saving-blk { display: flex; flex-direction: column; gap: 10px; }
.saving-meter { position: relative; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.saving-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; font-size: 13px; color: var(--muted-2); }
.saving-row .bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.saving-row .bar i { display: block; height: 100%; border-radius: inherit; background: var(--line-2); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.saving-row.after .bar i { background: var(--accent); }
.saving-row b { color: var(--ink); font-weight: 500; }
.saving-row .bar { position: relative; overflow: visible; }
.saving-row .bar i { overflow: hidden; }
.budget-mark { position: absolute; top: -5px; bottom: -5px; width: 0; border-left: 2px dashed var(--ink); opacity: .55; }
.saving-headline { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.saving-swap { font-size: 14px; color: var(--muted-2); }
.carts .cart-col { display: flex; flex-direction: column; gap: 6px; }
.carts .cart-col.cheaper { border-color: var(--accent); }
.carts .cart-col .room-cta { margin-top: auto; align-self: flex-start; }
.carts .line small { display: block; color: var(--muted-2); font-size: 12px; }
.only-here { font-size: 13px; color: var(--accent); margin-top: 4px; }
.carts-verdict { font-size: 15px; color: var(--ink); margin-top: 6px; }

/* ---- gallery on the product page: the product, then the close-up ----------*/
.gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb { width: 84px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; font-size: 11px; color: var(--muted-2); }
.gallery-thumb .ph { aspect-ratio: 1; }
.gallery-thumb span { padding: 4px 0; }
.gallery-thumb.selected { border-color: var(--accent); color: var(--accent); }

/* ---- Vista agente: which model answers ----------------------------------------*/
.agent-model { padding: 16px 22px; border-bottom: 1px solid oklch(0.32 0.01 60); display: flex; flex-direction: column; gap: 8px; }
.agent-model[hidden] { display: none; }
.model-switch { display: inline-flex; border: 1px solid oklch(0.4 0.01 60); border-radius: 999px; padding: 3px; gap: 3px; width: fit-content; }
.model-opt { font-size: 12px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: oklch(0.75 0.01 60); }
.model-opt.selected { background: var(--accent); color: oklch(0.98 0 0); }
