/* ============================================================================
   Cabi — Prospect Discovery Quiz  ·  styles.css
   Mobile-first. Brand tokens reverse-engineered from the website mockup.
   ========================================================================== */

:root {
  --ink: #1A1A1A;
  --ink-2: #2A2A2A;
  --body: #555555;
  --muted: #999999;
  --line: #DDDDDD;
  --line-soft: #E0DDD8;
  --bg: #FFFFFF;
  --cream: #FAFAF8;
  --sand: #F5F4F1;
  --greige: #F0EDE8;
  --warm-grey: #E8E6E1;
  --blue: #4A90D9;
  --blue-tint: #EEF3FB;
  --gold: #C9A96E;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 560px;
  --nav-h: 64px;
  --esc-h: 46px;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: 52px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__logo { height: 20px; width: auto; }
.topbar__progress {
  flex: 1; height: 3px; background: var(--warm-grey);
  border-radius: 3px; overflow: hidden;
}
.topbar__progress-fill {
  height: 100%; width: 0%; background: var(--blue);
  border-radius: 3px; transition: width .35s ease;
}

/* ---------- App container ---------- */
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 20px calc(var(--nav-h) + var(--esc-h) + var(--safe-b) + 24px);
  min-height: 100vh;
}
body.no-nav .app { padding-bottom: calc(var(--safe-b) + 28px); }

/* Step 1 only — the style picker breaks out wider so the tiles stay photo-sized on
   tablet/desktop. Every other step keeps --maxw, as does the bottom navbar. */
.app--wide { max-width: 560px; }
@media (min-width: 720px)  { .app--wide { max-width: 760px; } }
@media (min-width: 1000px) { .app--wide { max-width: 900px; } }
.app--wide .screen__title { max-width: 20ch; }

.screen { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 10px;
}
.screen__title {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: 30px; line-height: 1.15; margin: 0 0 8px; letter-spacing: .2px;
}
.screen__sub { font-size: 15px; line-height: 1.5; color: var(--body); margin: 0 0 22px; max-width: 42ch; }
.section-label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 26px 0 12px; }

/* ---------- Style cards (Step 1) ---------- */
.grid { display: grid; gap: 12px; }
.grid--styles { grid-template-columns: 1fr 1fr; }

.card {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg); text-align: left; padding: 0;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.card:active { transform: scale(.99); }
.card.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
/* Portrait 3:4 — big enough to read the photo, short enough that the next row peeks. */
.card__imgwrap { position: relative; aspect-ratio: 3 / 4; background: var(--warm-grey); }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__check {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--blue); color: #fff;
  display: none; align-items: center; justify-content: center; font-size: 14px;
}
.card.is-selected .card__check { display: flex; }
.card__body { padding: 10px 12px 12px; }
/* Always reserve two lines so every tile in a row is the same height — names like
   "Natural Wood / Japandi" wrap and would otherwise make the grid rows uneven. */
.card__name {
  font-family: var(--serif); font-size: 17px; color: var(--ink); font-weight: 500; line-height: 1.1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.2em;
}
.card__blurb { font-size: 13px; color: var(--body); margin-top: 3px; line-height: 1.4; }
.card__more {
  position: absolute; bottom: 8px; left: 8px; font-size: 10.5px; letter-spacing: .04em;
  background: rgba(0,0,0,.55); color: #fff; padding: 3px 8px; border-radius: 20px;
}

/* Reveal block sits full-width in the grid, directly under the chosen tile */
.style-extras { grid-column: 1 / -1; }
.style-extras .section-label { margin-top: 12px; }

/* Reveal strip (extra photos of a chosen project) */
.reveal { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; margin: 4px 0 2px; -webkit-overflow-scrolling: touch; }
.reveal img { height: 92px; width: auto; border-radius: 10px; flex: 0 0 auto; }

/* Moodboard (Step 1 — hero 3:2 left, detail + moment 1:1 stacked right, each captioned)
   The height comes from the moodboard's OWN aspect-ratio, not from its children: WebKit
   does not propagate aspect-ratio-derived row heights into a nested grid's intrinsic
   height, so the parent .grid--styles row came out too short and the next row of tiles
   was painted on top of the moodboard. 1.25 is the ratio that keeps the two right-hand
   figures exactly square at gap 10 (H = 0.8W + 0.2·gap). */
.moodboard {
  display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr;
  aspect-ratio: 1.25; gap: 10px; margin: 4px 0 2px; align-items: stretch;
}
.moodboard__fig { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--warm-grey); }
.moodboard__fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.moodboard__fig--hero   { grid-column: 1; grid-row: 1 / span 2; }
.moodboard__fig--detail { grid-column: 2; grid-row: 1; }
.moodboard__fig--moment { grid-column: 2; grid-row: 2; }
.moodboard__fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 11px; line-height: 1.3; color: #fff; font-weight: 400;
  padding: 20px 11px 9px;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
}
.moodboard__fig--hero figcaption { font-size: 12px; padding-top: 26px; }

/* ---------- Zone tiles ---------- */
.grid--zones { grid-template-columns: 1fr 1fr; }
.tile {
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg);
  padding: 18px 14px; text-align: center; transition: border-color .15s, box-shadow .15s, transform .1s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tile:active { transform: scale(.99); }
.tile.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); background: var(--blue-tint); }
.tile__icon { color: var(--ink); line-height: 0; }
.tile__icon svg { width: 30px; height: 30px; display: block; }
.tile.is-selected .tile__icon { color: var(--blue); }
.tile__label { font-size: 14px; font-weight: 500; color: var(--ink); }

/* ---------- Piece cards (Step 3 — pieces within a room) ---------- */
.piece-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.piece-card { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); text-align: left; padding: 0; transition: border-color .15s, box-shadow .15s, transform .1s; }
.piece-card:active { transform: scale(.99); }
.piece-card.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
/* 4:5 rather than Step 1's 3:4 — cabinet runs are wide, so a taller crop loses too much. */
.piece-card__imgwrap { position: relative; aspect-ratio: 4 / 5; background: var(--warm-grey); }
.piece-card__img { width: 100%; height: 100%; object-fit: cover; }
.piece-card__check { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: none; align-items: center; justify-content: center; font-size: 13px; }
.piece-card.is-selected .piece-card__check { display: flex; }
.piece-card__label {
  padding: 9px 11px; font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(2.5em + 18px);
}

/* ---------- Format cards (Step 4 — pick a layout per piece, single-select) ---------- */
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.format-card { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); text-align: left; padding: 0; transition: border-color .15s, box-shadow .15s, transform .1s; }
.format-card:active { transform: scale(.99); }
.format-card.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.format-card__imgwrap { position: relative; aspect-ratio: 4 / 5; background: var(--warm-grey); }
.format-card__img { width: 100%; height: 100%; object-fit: cover; }
.format-card__check { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: none; align-items: center; justify-content: center; font-size: 13px; }
.format-card.is-selected .format-card__check { display: flex; }
.format-card__label {
  padding: 9px 11px; font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(2.5em + 18px);
}
/* "Not sure — recommend for me" — a full-width option under the grid */
.format-card--rec { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 13px 15px; }
.format-card--rec .format-card__rec { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.format-card--rec .format-card__recic { font-size: 18px; line-height: 1; }
.format-card--rec .format-card__label { padding: 0; font-size: 14px; min-height: 0; display: block; }
.format-card--rec.is-selected { border-color: var(--blue); background: var(--blue-tint); }
.format-card--rec.is-selected .format-card__rec { background: #fff; }

/* ---------- Zone blocks (shared by Steps 4 & 5 section headers) ---------- */
.zone-block { margin-bottom: 30px; }
.zone-block__head { font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 600; margin: 0 0 4px; }
.zone-block__sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

.react-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.react-item { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: var(--bg); }
.react-item__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--warm-grey); }
.react-item__btns { display: flex; }
.react-btn {
  flex: 1; border: none; background: var(--bg); color: var(--body);
  padding: 11px 4px; font-size: 12px; font-weight: 500; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.react-btn + .react-btn { border-left: 1px solid var(--line-soft); }
.react-btn .ic { font-size: 13px; }
.react-btn.on[data-r="love"]  { background: #fdeef0; color: #c0392b; }
.react-btn.on[data-r="maybe"] { background: var(--blue-tint); color: var(--blue); }
.react-btn.on[data-r="no"]    { background: var(--sand); color: var(--muted); }
.react-scrollhint { font-size: 12px; color: var(--muted); margin: 8px 0 0; text-align: right; letter-spacing: .02em; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 22px; padding: 9px 14px; font-size: 13px; transition: all .12s;
}
.chip:active { transform: scale(.97); }
.chip.is-selected { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }

/* ---------- Priorities (ranked) ---------- */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1.5px solid var(--line); background: var(--bg); border-radius: var(--radius);
  padding: 14px 16px; font-size: 15px; color: var(--ink); transition: all .12s;
}
.rank-item:active { transform: scale(.99); }
.rank-item.is-selected { border-color: var(--blue); background: var(--blue-tint); }
.rank-badge {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.rank-item.is-selected .rank-badge { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Pills (timeline/budget/approach) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 12px; padding: 11px 15px; font-size: 14px; transition: all .12s;
}
.pill.is-selected { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.pill.is-selected.is-premium { border-color: var(--gold); background: #faf5ea; color: #9a7b3c; }
.pill--block { display: block; width: 100%; text-align: left; }
.pill--block .pill__desc { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.pill--block.is-selected .pill__desc { color: inherit; opacity: .8; }

/* ---------- Form fields ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg);
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.textarea { resize: vertical; min-height: 92px; }
.field-error { display: none; font-size: 12px; color: #b4532a; margin: 6px 0 0; }
.field--error .field-error { display: block; }
.field--error .input { border-color: #b4532a; }
.field--error .input:focus { box-shadow: 0 0 0 3px rgba(180,83,42,.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; font-size: 12.5px; color: var(--body); line-height: 1.45; }
.consent input { margin-top: 2px; width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--blue); }

/* ---------- Lite auxiliary works (Step 6) ---------- */
.aux-block { margin-top: 6px; }
.aux-sub { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; line-height: 1.45; }

/* ---------- Project location block (Step 6) ---------- */
.loc-block { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-label--lead { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }

/* ---------- Buttons / nav ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  border-radius: 12px; padding: 14px 22px; font-size: 15px; font-weight: 500; width: 100%;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--gold { background: var(--gold); border-color: var(--gold); }
.btn--wa { background: #25D366; border-color: #25D366; }
.btn-row { display: flex; flex-direction: column; gap: 10px; }

.navbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 20px calc(12px + var(--safe-b));
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.navbar .app-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: flex; gap: 12px; }
.nav-back {
  background: transparent; border: none; color: var(--muted); font-size: 14px;
  padding: 0 4px; flex: 0 0 auto; display: flex; align-items: center; gap: 5px;
}
.nav-next { flex: 1; }
body.no-nav .navbar { display: none; }

.escape {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b));
  z-index: 24; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14px; font-weight: 500; color: var(--blue);
  text-decoration: none; padding: 12px 8px;
  background: var(--cream); border-top: 1px solid var(--line);
}
.escape span { text-decoration: underline; text-underline-offset: 2px; }
.escape__ic { width: 17px; height: 17px; flex: 0 0 17px; }
.escape:hover { color: #2f6fb3; }
body.no-nav .escape { display: none; }

.hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Welcome ---------- */
.welcome { text-align: center; padding-top: 8vh; }
.welcome__emblem { height: 56px; margin: 0 auto 26px; }
.welcome__title { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 38px; line-height: 1.1; margin: 0 0 16px; }
.welcome__sub { font-size: 15.5px; line-height: 1.55; color: var(--body); max-width: 34ch; margin: 0 auto 30px; }
.welcome__cta { max-width: 280px; margin: 0 auto; }
.welcome__reassure { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* ---------- Result screen ---------- */
.result__emblem { height: 40px; margin-bottom: 18px; }
.result__title { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ink); margin: 0 0 6px; }
.result__intro { font-size: 15px; color: var(--body); margin: 0 0 22px; line-height: 1.5; }
.result-card { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--bg); margin-bottom: 18px; }
.result-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--warm-grey); }

/* Collage mosaic — style cover largest, cabinet-type covers medium, reacted images smallest */
.collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 64px; gap: 6px; padding: 6px; background: var(--sand); }
.collage__cell { overflow: hidden; border-radius: 10px; background: var(--warm-grey); }
.collage__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage__cell--xl { grid-column: span 4; grid-row: span 3; }
.collage__cell--md { grid-column: span 2; grid-row: span 2; }
.collage__cell--sm { grid-column: span 1; grid-row: span 1; }
/* graceful degradation when there are very few images */
.collage[data-n="1"] .collage__cell--xl { grid-row: span 4; }
.collage[data-n="2"] { grid-auto-rows: 120px; }
.collage[data-n="2"] .collage__cell { grid-column: span 2; grid-row: span 1; }
.collage[data-n="3"] .collage__cell--md { grid-column: span 2; grid-row: span 2; }
.result-card__body { padding: 16px 18px; }
.result-card__eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.result-card__style { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 600; margin: 2px 0 0; }
.result-summary { font-size: 14px; color: var(--body); line-height: 1.55; }
.result-summary b { color: var(--ink); font-weight: 600; }
.result-next { background: var(--sand); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; }
.result-next h3 { font-family: var(--serif); font-size: 19px; color: var(--ink); margin: 0 0 8px; font-weight: 600; }
.result-next ul { margin: 0; padding-left: 18px; }
.result-next li { font-size: 13.5px; color: var(--body); margin-bottom: 5px; line-height: 1.45; }
.result-status { text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0 0 14px; }
.result-status.is-ok { color: #1f7a4d; }
.result-status.is-err { color: #b4532a; }
.result__signoff { text-align: center; font-family: var(--serif); font-style: italic; color: var(--muted); margin: 24px 0 8px; font-size: 16px; }

/* ============================================================================
   PRINT — the Discovery Brief PDF (the sales artifact)
   ========================================================================== */
.print-brief { display: none; }

@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff; color: #222; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .app, .navbar, .escape { display: none !important; }
  .print-brief { display: block; font-family: var(--sans); color: #222; font-size: 11.5px; line-height: 1.5; }
  .pb-head { border-bottom: 2px solid #1A1A1A; padding-bottom: 10px; margin-bottom: 14px; }
  .pb-kicker { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #999; font-weight: 700; }
  .pb-title { font-family: var(--serif); font-size: 24px; color: #1A1A1A; margin: 4px 0 0; font-weight: 600; }
  .pb-meta { margin-top: 8px; font-size: 11px; color: #444; }
  .pb-meta span { display: inline-block; margin-right: 18px; }
  .pb-section { margin: 16px 0; page-break-inside: avoid; }
  .pb-h { font-family: var(--serif); font-size: 15px; color: #1A1A1A; font-weight: 600; border-bottom: 1px solid #ddd; padding-bottom: 4px; margin: 0 0 8px; }
  .pb-list { margin: 0; padding-left: 16px; }
  .pb-list li { margin-bottom: 4px; }
  .pb-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
  .pb-table th, .pb-table td { border: 1px solid #ddd; padding: 6px 8px; text-align: left; vertical-align: top; font-size: 10.5px; }
  .pb-table th { background: #F5F4F1; color: #1A1A1A; font-weight: 600; }
  .pb-quote { font-style: italic; color: #333; border-left: 3px solid #C9A96E; padding: 2px 0 2px 12px; margin: 6px 0; }
  .pb-foot { margin-top: 22px; border-top: 1px solid #ddd; padding-top: 8px; font-size: 10px; color: #999; }

  /* warm prospect document ("Your Starting Point") */
  .yp { font-family: var(--sans); color: #222; }
  .yp-head { text-align: center; border-bottom: 1px solid #e5e2dd; padding-bottom: 16px; margin-bottom: 18px; }
  .yp-logo { height: 22px; width: auto; margin: 0 auto 14px; }
  .yp-title { font-family: var(--serif); font-size: 30px; color: #1A1A1A; font-weight: 600; }
  .yp-for { font-size: 11px; letter-spacing: .04em; color: #999; margin-top: 6px; }
  .yp-intro { font-size: 13px; color: #444; text-align: center; max-width: 60ch; margin: 0 auto 22px; font-style: italic; }
  .yp-look { display: flex; gap: 18px; align-items: center; margin: 0 0 20px; page-break-inside: avoid; }
  .yp-look-img { width: 46%; height: 150px; object-fit: cover; border-radius: 8px; }
  .yp-look-body { flex: 1; }
  .yp-eyebrow { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #C9A96E; font-weight: 700; }
  .yp-look-name { font-family: var(--serif); font-size: 24px; color: #1A1A1A; font-weight: 600; margin-top: 2px; }
  .yp-look-sub { font-size: 12.5px; color: #666; margin-top: 3px; }
  .yp-section { margin: 14px 0; page-break-inside: avoid; }
  .yp-h { font-family: var(--serif); font-size: 16px; color: #1A1A1A; font-weight: 600; margin: 0 0 6px; }
  .yp-p { font-size: 12.5px; color: #333; margin: 0; }
  .yp-list { margin: 0; padding-left: 18px; }
  .yp-list li { font-size: 12.5px; color: #333; margin-bottom: 4px; }
  .yp-quote { font-style: italic; color: #333; border-left: 3px solid #C9A96E; padding: 2px 0 2px 12px; font-size: 13px; }
  .yp-cta { margin-top: 22px; background: #F5F4F1; border-radius: 8px; padding: 14px 16px; font-size: 12.5px; color: #333; text-align: center; }
  .yp-signoff { text-align: center; font-family: var(--serif); font-style: italic; color: #999; margin-top: 14px; font-size: 15px; }
  .yp-foot { text-align: center; font-size: 10px; color: #bbb; margin-top: 8px; }

  /* visuals — team brief cover + table thumbnails */
  .pb-cover { width: 190px; height: 116px; object-fit: cover; border-radius: 6px; float: right; margin: 0 0 8px 14px; }
  .pb-thumb-cell { width: 60px; }
  .pb-thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 4px; }
  .pb-fmt { display: flex; align-items: center; gap: 8px; }
  /* internal brief — reacted images grouped by category */
  .pb-react-group { margin: 0 0 6px; page-break-inside: avoid; }
  .pb-react-group:last-child { margin-bottom: 0; }
  .pb-react-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; }
  .pb-react-label--love { color: #c0392b; }
  .pb-react-label--maybe { color: #4A90D9; }
  .pb-react-label--no { color: #999; }
  .pb-react-thumbs { display: flex; flex-wrap: wrap; gap: 4px; }
  .pb-react-thumbs .pb-thumb { width: 48px; height: 36px; }
  /* visuals — prospect doc per-room pieces */
  .yp-room { margin: 12px 0; page-break-inside: avoid; }
  .yp-room-name { font-family: var(--serif); font-size: 15px; font-weight: 600; color: #1A1A1A; margin-bottom: 6px; }
  .yp-piece { margin: 0 0 10px; page-break-inside: avoid; }
  .yp-piece-head { font-size: 12.5px; color: #444; margin-bottom: 5px; }
  .yp-piece-name { font-weight: 600; color: #1A1A1A; }
  .yp-piece-wish { color: #666; }
  .yp-thumbs { display: flex; gap: 7px; }
  .yp-thumb { width: 96px; height: 70px; object-fit: cover; border-radius: 6px; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 620px) {
  .grid--styles { grid-template-columns: 1fr 1fr 1fr; }
  .piece-grid { grid-template-columns: 1fr 1fr 1fr; }
  .format-grid { grid-template-columns: 1fr 1fr 1fr; }
  .react-item { flex-basis: 300px; }
}
