/* ==========================================================================
   OWN BUSINESS prototype — App shell + screen styles
   --------------------------------------------------------------------------
   Shared building blocks (buttons, fields, badges, modal…) live in
   shared/css/. This file holds the prototype's own layout, one block per
   screen.

   Design language (refinement pass, 2 Oct 2026 — brief §11):
   - Black and tan from the logo on a neutral off-white. Green only means
     "verified". Tan is used for rules and small marks, never large fills.
   - Montserrat everywhere it matters, using the logo's own weight contrast:
     heavy for the claim, light for the follow-on (.h-light) and for big
     figures. No uppercase tracked labels except the tagline.
   - Tight corners (4 / 6 / 8 / 10px), hairlines instead of grey boxes,
     figures laid out like a term sheet.
   - Owner hours is the hero figure on every listing — it is the product.
   ========================================================================== */

/* ---- Sticky top: demo bar + header move together ----------------------- */
.topbar { position: sticky; top: 0; z-index: var(--z-header); }

/* ---- Demo bar: permanent prototype label + "View as" switcher ----------- */
.demo-bar { background: var(--ink); color: #e6e5e1; font-size: 0.8125rem; }
.demo-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 42px; }
.demo-bar__label { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; }
.demo-bar__long { color: #a7a8a6; font-weight: 500; }

/* Segmented "View as" control — native radios */
.switcher { display: flex; align-items: center; gap: var(--space-3); }
.switcher__label { font-family: var(--font-display); font-weight: 500; color: #a7a8a6; }
.switcher__group { display: inline-flex; padding: 2px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); }
.switcher__opt { position: relative; }
.switcher__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switcher__opt span {
  display: block; padding: 0.3rem 0.8rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; color: #d9d8d4;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.switcher__opt input:checked + span { background: var(--gold); color: var(--ink); }
.switcher__opt input:hover:not(:checked) + span { background: rgba(255, 255, 255, 0.08); }
.switcher__opt input:focus-visible + span { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  background: rgba(244, 244, 241, 0.92);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a {
  position: relative; padding: 0.4rem 0;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.is-current { color: var(--ink); }
/* Current section: tan rule under the link (the logo's doorway edge colour) */
.nav a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav a.is-current::before { transform: scaleX(1); }
/* Small tan mark = the workspace for the role being viewed (real state, not decoration) */
.nav a.is-role::after {
  content: ""; position: absolute; top: 2px; right: -8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  align-items: center; justify-content: center; padding: 0;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after  { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after  { transform: translateY(-6px) rotate(-45deg); }
.menu-btn:focus-visible { border-radius: var(--radius); }

/* ---- Mobile menu drawer -------------------------------------------------- */
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-menu);
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100vh - 110px); overflow-y: auto;
}
.mobile-menu__nav { display: flex; flex-direction: column; padding: var(--space-2) 0 var(--space-6); }
.mobile-menu__nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); letter-spacing: -0.01em; text-decoration: none;
}
.mobile-menu__nav a.is-role::after { content: "Your view"; font-size: var(--fs-xs); font-weight: 600; color: var(--gold-deep); }
.mobile-menu .btn { margin-top: var(--space-6); }
body.menu-open { overflow: hidden; }

/* ---- Sections ------------------------------------------------------------ */
.section-head h2 { max-width: 22ch; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--ink); padding-block: var(--space-12) var(--space-10); font-size: var(--fs-sm); color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); flex-wrap: wrap; }
.site-footer__demo { max-width: 30rem; text-align: right; }

/* ---- Dev placeholder (removed as each session fills its section) -------- */
.dev-placeholder {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8);
  color: var(--muted); text-align: center; font-size: var(--fs-sm);
}
.dev-placeholder strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; margin-bottom: var(--space-1); }

/* ---- Shell responsive --------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { gap: var(--space-5); }
}
@media (max-width: 960px) {
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .demo-bar__long { display: none; }
}
@media (max-width: 480px) {
  .switcher__label { display: none; }          /* the segmented control speaks for itself */
  .site-footer__demo { text-align: left; }
}

/* ==========================================================================
   SESSION 2 — Home, Browse, Listing detail, Compare
   (realigned in 2b; design refinement 2 Oct 2026)
   ========================================================================== */

/* ---- Home / hero (js/screens/home.js) ----------------------------------- */
.section--hero { padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem) var(--section-y); }
.hero__title { max-width: 17em; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero__tagline { color: var(--gold-deep); margin-bottom: var(--space-5); }
.hero__lead { max-width: 33rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-8); }

/* Featured listing "sheet" — one big button (keyboard + screen-reader friendly) */
.sheet {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; width: 100%; text-align: left;
  padding: clamp(1.4rem, 1rem + 1.2vw, 2rem); border: 0; border-radius: var(--radius-xl);
  background: var(--ink-2); color: #f1f0ec; font-size: var(--fs-sm);
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* The logo's doorway O, large and faint, sitting off the corner */
.sheet::after {
  content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -110px; top: -120px;
  background: url("../shared/brand/mark-doorway-light.svg") center / contain no-repeat; opacity: 0.07;
}
.sheet:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sheet:focus-visible { border-radius: var(--radius-xl); }
.sheet__top { display: flex; justify-content: space-between; gap: var(--space-3); color: #a3a5a7; font-family: var(--font-display); font-size: 0.8125rem; font-weight: 500; }
.sheet__title { margin-top: var(--space-5); font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; max-width: 16em; }
.sheet__cat { margin-top: var(--space-3); }
.sheet__hours { display: flex; align-items: flex-end; gap: var(--space-4); margin-top: var(--space-8); }
.sheet__hours-num { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 3vw, 5.5rem); font-weight: 300; line-height: 0.8; letter-spacing: -0.05em; color: #fff; }
.sheet__hours-label { color: #c3c4c4; line-height: 1.35; padding-bottom: 2px; }
.sheet__figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.sheet__fig { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4) var(--space-3) 0 0; }
.sheet__fig + .sheet__fig { padding-left: var(--space-4); border-left: 1px solid rgba(255, 255, 255, 0.1); }
.sheet__fig-label { color: #a3a5a7; font-size: var(--fs-xs); }
.sheet__fig-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; }
.sheet__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.sheet__verified { color: #93c9ad; font-weight: 600; }
.sheet__cta { font-family: var(--font-display); font-weight: 600; color: var(--gold); }

/* What every listing shows (master plan §13) — a quiet four-column key */
.layers {
  list-style: none; margin: clamp(3.5rem, 2rem + 5vw, 6rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.layers__item { padding: var(--space-5) var(--space-6) 0 0; }
.layers__item + .layers__item { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.layers__title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.layers__item p { margin: 0; font-size: var(--fs-sm); color: var(--muted); max-width: 26ch; }

/* ---- Browse (js/screens/browse.js) ------------------------------------- */
.filters { display: flex; flex-direction: column; gap: var(--space-5); }
.filters__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); align-items: end; }
.filters__actions { display: flex; gap: var(--space-3); justify-content: flex-end; align-items: center; }
/* "More filters" — native <details>, keeps the main panel uncluttered */
.filters__more { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.filters__more summary {
  display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; padding: var(--space-1) 0; list-style: none;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
}
.filters__more summary::-webkit-details-marker { display: none; }
.filters__more summary::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease);
}
.filters__more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.filters__more[open] summary { margin-bottom: var(--space-4); }
.filters__more summary:focus-visible { border-radius: var(--radius-sm); }
.filters__more-count { color: var(--gold-deep); font-size: var(--fs-xs); }

/* Category key: title column + one column per category, hairline-separated */
.cat-legend { display: grid; grid-template-columns: 10rem repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin: var(--space-8) 0 var(--space-2); }
.cat-legend__title { margin: 0; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; }
.cat-legend__item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding-left: var(--space-5); border-left: 1px solid var(--line); }
.cat-legend__hours { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--ink); white-space: nowrap; }
.cat-legend__item .small { flex-basis: 100%; line-height: 1.5; }
.browse-count { margin: var(--space-8) 0 var(--space-4); }

.listing-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.listing-card { position: relative; display: flex; flex-direction: column; padding: var(--space-5) var(--space-5) var(--space-4); }
.listing-card__meta {
  display: flex; justify-content: space-between; gap: var(--space-3); margin: 0;
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 500; color: var(--muted);
}
.listing-card__verified { color: var(--green); font-weight: 600; white-space: nowrap; }
.listing-card__title { font-size: var(--fs-lg); line-height: 1.22; margin: var(--space-4) 0 var(--space-1); }
/* Stretched link: the button's click area covers the whole card */
.listing-card__link { all: unset; cursor: pointer; }
.listing-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.listing-card__link:focus-visible::after { box-shadow: inset 0 0 0 2px var(--gold-deep); } /* inset: .card clips outside */
.listing-card__loc { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--space-3); }
.listing-card__cat { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Owner hours — the lead figure on every card */
.listing-card__hours { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); margin-top: var(--space-5); padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.listing-card__hours-fig { display: flex; align-items: flex-end; gap: var(--space-3); margin: 0; }
.listing-card__hours-num { font-family: var(--font-display); font-size: 3rem; font-weight: 300; line-height: 0.8; letter-spacing: -0.05em; }
.listing-card__hours-label { font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); }
.listing-card__mgr { margin: 0; text-align: right; font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.listing-card__mgr strong { display: block; font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink); }
.listing-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--ink); }
.listing-card__stats div + div { padding-left: var(--space-3); }
.listing-card__stats dt { font-size: var(--fs-xs); color: var(--muted); }
.listing-card__stats dd { margin: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.listing-card__demo { display: flex; justify-content: space-between; margin: auto 0 0; padding-top: var(--space-5); font-size: var(--fs-xs); }
.listing-card__demo span:first-child { color: var(--danger); font-weight: 600; }
.listing-card__go { font-family: var(--font-display); font-weight: 600; opacity: 0; transform: translateX(-4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.listing-card:hover .listing-card__go, .listing-card:focus-within .listing-card__go { opacity: 1; transform: none; }
/* Line every card's rows up across the grid (titles wrap to 1 or 2 lines) */
@supports (grid-template-rows: subgrid) {
  .listing-card { display: grid; grid-template-rows: subgrid; grid-row: span 7; row-gap: 0; }
  .listing-card__title { align-self: start; }
}
.browse-empty { grid-column: 1 / -1; text-align: center; }
.browse-notice { margin-top: var(--space-8); }

/* ---- Listing detail modal (js/screens/listing.js) ----------------------- */
.demo-tag { margin: 0 0 var(--space-3); }
.listing-badges { gap: var(--space-2); margin-bottom: var(--space-4); }
.listing-summary { margin-bottom: var(--space-8); }
.listing-tiles { gap: var(--space-6) var(--space-5); margin-bottom: var(--space-10); }
.listing-tiles .stat__value { font-size: 1.25rem; }
.listing-panel { min-height: 220px; }
.listing-panel:focus-visible { border-radius: var(--radius-sm); }
.listing-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-12); }
.listing-h { font-size: var(--fs-md); margin-bottom: var(--space-3); }
.listing-h__sub { margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
.listing-h--gap { margin-top: var(--space-10); }
.listing-note { margin-top: var(--space-5); }
.listing-actions { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }

/* Label / value list */
.facts { margin: 0; }
.facts__row { display: grid; grid-template-columns: 12rem 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* OWN Verified checklist */
.checklist { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.checklist li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.checklist li.is-done { color: var(--ink); font-weight: 600; }
.checklist__mark { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); font-size: 0.6875rem; }
.is-done .checklist__mark { background: var(--green); border-color: var(--green); color: #fff; }
.checklist__state { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; text-align: right; }
.is-done .checklist__state { color: var(--green); }
/* Inactive checks — visible but clearly not live (locked #12) */
.checklist li.is-planned { color: var(--subtle); }
.is-planned .checklist__mark { border-style: dashed; border-color: var(--line); }
.is-planned .checklist__state { color: var(--subtle); font-weight: 500; }

/* Evidence level chip — describes what a fact rests on (never a grade) */
.evidence {
  display: inline-block; vertical-align: 1px; margin-left: var(--space-1);
  padding: 0.05rem 0.45rem; border-radius: var(--radius-sm); white-space: nowrap;
  font-size: 0.6875rem; font-weight: 600; line-height: 1.6; border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.evidence[data-evidence="reviewed"] { border-color: transparent; background: var(--green-tint); color: var(--green); }
.evidence[data-evidence="buyer"]    { border-style: dashed; color: #5a4224; border-color: var(--gold); }
.listing-note .evidence:first-child, .listing-h__sub .evidence { margin-left: 0; }

/* Public verified result (client spec §12) */
.verified-result { border: 1px solid var(--green); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); }
.verified-result__head { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.verified-result__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-8); }
.verified-result__list li { display: flex; flex-direction: column; font-size: var(--fs-sm); }
.verified-result__list span { color: var(--muted); font-size: var(--fs-xs); }
.verified-result__disclaimer { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }

/* Management category callout */
.cat-callout { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); border-radius: var(--radius-lg); background: var(--field); }
.cat-callout p { margin: 0; flex-basis: 100%; font-size: var(--fs-sm); color: var(--muted); }
.cat-callout__hours { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; }

/* Key Considerations — neutral, no levels, no colour coding (locked #5) */
.consider-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-8); }
.consider { padding: var(--space-4) 0 var(--space-5); border-top: 1px solid var(--line); }
.consider__title { font-size: var(--fs-base); margin: 0 0 var(--space-1); letter-spacing: -0.01em; }
.consider p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* ---- Compare (js/screens/compare.js) ------------------------------------ */
.compare__table { min-width: 720px; }
.compare__table[data-cols="2"] { min-width: 560px; }
.compare__table[data-cols="4"] { min-width: 920px; }
.compare__table th[scope="row"] { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare__table thead th { border-bottom-color: var(--ink); }
.compare__table thead th:first-child, .compare__table th[scope="row"] { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.compare__head { display: flex; align-items: center; gap: var(--space-1); }
.compare__pick {
  flex: 1 1 auto; width: 100%; min-width: 9rem; min-height: 42px; padding: 0.45rem 2rem 0.45rem 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--surface);
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
}
.compare__pick:hover { border-color: var(--line-strong); }
.compare__pick:focus-visible { border-color: var(--ink); border-radius: var(--radius); }
.compare__remove {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: var(--radius-sm); background: transparent;
  font-size: 1.25rem; line-height: 1; color: var(--muted);
}
.compare__remove:hover { background: var(--field); color: var(--ink); }
.compare__remove:focus-visible { border-radius: var(--radius-sm); }
.compare__table td.is-strong { color: var(--green); font-weight: 600; }
.compare__actions td, .compare__actions th { border-bottom: 0; }
.compare__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }
.compare__note { margin: 0; }
.compare__key { color: var(--green); font-weight: 700; }

/* ---- Session 2 responsive ---------------------------------------------- */
@media (max-width: 1100px) {
  .filters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layers__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .layers__item:nth-child(n+3) { margin-top: var(--space-6); }
  .cat-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-legend__title { grid-column: 1 / -1; }
  .cat-legend__item:nth-child(2) { padding-left: 0; border-left: 0; }
}
@media (max-width: 960px) {
  .hero__row { grid-template-columns: 1fr; align-items: start; }
  .listing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .cat-legend { grid-template-columns: 1fr; gap: var(--space-4); }
  .cat-legend__item { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .filters__grid { grid-template-columns: 1fr 1fr; }
  .filters__q { grid-column: 1 / -1; }
  .filters__actions .btn { flex: 1; }
  .listing-cards { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 1fr; gap: var(--space-1); }
  .listing-tiles.grid--4 { grid-template-columns: 1fr 1fr; }
  .verified-result__list { grid-template-columns: 1fr; }
  .consider-list { grid-template-columns: 1fr; }
  .hero__actions .btn:not(.btn--ghost) { flex: 1 1 auto; }
  .layers { grid-template-columns: 1fr; }
  .layers__item, .layers__item + .layers__item { padding-left: 0; border-left: 0; }
  .layers__item + .layers__item { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); }
  .sheet__fig + .sheet__fig { padding-left: var(--space-3); }
}
@media (max-width: 340px) {
  .filters__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SESSION 3 — Buyer workspace, confidential access journey, OWN Verified,
   Financial view. Follows the 2 Oct design system: hairlines not boxes,
   sentence case, tight radii, green only for "verified", tan for rules
   and small marks, big figures in Montserrat Light.
   ========================================================================== */

/* ---- Buyer workspace shell (js/screens/buyer.js) ------------------------ */
.ws { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.ws-side { position: sticky; top: calc(var(--header-h) + 58px); }
.ws-side__title { margin: 0 0 var(--space-3); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); letter-spacing: -0.02em; }
.ws-side__demo { margin: var(--space-5) 0 0; color: var(--danger); font-weight: 600; font-size: var(--fs-xs); }
.ws-nav { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.ws-nav__tab {
  position: relative; min-height: 42px; padding: 0.55rem var(--space-4); border: 0; background: none; text-align: left;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.ws-nav__tab::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--ink); transform: scaleY(0); transition: transform var(--dur) var(--ease); }
.ws-nav__tab:hover { color: var(--ink); }
.ws-nav__tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.ws-nav__tab[aria-selected="true"]::before { transform: scaleY(1); }
.ws-nav__tab:focus-visible { border-radius: var(--radius-sm); }

.ws-main { min-width: 0; }
.ws-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.ws-panel:focus-visible { border-radius: var(--radius-lg); }
.ws-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-6); }
.ws-head p { margin: var(--space-2) 0 0; max-width: 40rem; }
.ws-title { margin: 0; font-size: var(--fs-xl); }
.ws-sub { margin: var(--space-10) 0 var(--space-2); font-size: var(--fs-md); }
.ws-kpis { gap: var(--space-6) var(--space-5); }
.ws-kpis .stat__value { font-weight: 300; font-size: 2rem; letter-spacing: -0.04em; }
.ws-more { margin-top: var(--space-5); }
.ws-note { margin: var(--space-6) 0 0; max-width: 46rem; }

/* "Next step" line: the most useful thing to do now */
.ws-next {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  margin-top: var(--space-8); padding: var(--space-4) 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line);
}
.ws-next p { margin: 0; font-size: var(--fs-sm); }

.ws-table th[scope="row"] { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.ws-table__sub { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.ws-table td, .ws-table th { white-space: nowrap; }
.ws-table th[scope="row"], .ws-table td:nth-child(2) { white-space: normal; min-width: 11rem; }
.ws-table thead th { border-bottom-color: var(--ink); }
.ws-ok { font-weight: 600; color: var(--ink); }
.ws-match strong { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* Thin match meter — ink on a hairline track */
.match-meter { display: block; width: 4.5rem; height: 3px; margin-top: 6px; background: var(--line); border-radius: 2px; overflow: hidden; }
.match-meter span { display: block; height: 100%; background: var(--ink); }

/* ---- My matches ----------------------------------------------------------- */
.match-list { list-style: none; margin: 0; padding: 0; }
.match { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: var(--space-6); padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.match:first-child { border-top-color: var(--ink); }
.match__score { display: flex; flex-direction: column; }
.match__num { font-family: var(--font-display); font-weight: 300; font-size: 3rem; line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.match__pct { font-size: 1.4rem; letter-spacing: 0; margin-left: 1px; }
.match__label { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--muted); }
.match__meta { margin: 0; font-family: var(--font-display); font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.match__title { margin: var(--space-1) 0 var(--space-2); font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.match__badges { gap: var(--space-2); }
.match__figs { margin: var(--space-3) 0 0; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.match__go { align-self: start; }

.match__why { margin-top: var(--space-3); }
.match__why summary {
  display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; list-style: none; padding: var(--space-1) 0;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--gold-deep);
}
.match__why summary::-webkit-details-marker { display: none; }
.match__why summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease); }
.match__why[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.match__why summary:focus-visible { border-radius: var(--radius-sm); }
.match__why ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; max-width: 34rem; }
.match__why li { display: grid; grid-template-columns: 1.25rem 1fr auto; gap: var(--space-2); padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.match__mark { font-weight: 700; text-align: center; }
.match__why li[data-fit="1"] .match__mark { color: var(--ink); }
.match__why li[data-fit="0.5"] .match__mark { color: var(--gold-deep); }
.match__why li[data-fit="0"] { color: var(--muted); }
.match__why li[data-fit="0"] .match__mark { color: var(--subtle); }
.match__pts { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- Saved businesses / results / alerts ---------------------------------- */
.saved-list, .alert-list { list-style: none; margin: 0; padding: 0; }
.saved-row, .alert-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.saved-row .match__title { margin: 0 0 2px; }
.saved-row p, .alert-row p { margin: 0; }
.alert-row__title { font-family: var(--font-display); font-weight: 600; margin-bottom: 2px !important; }
.created-pct { font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; letter-spacing: -0.04em; }
.ws-empty { padding: var(--space-8) 0; border-top: 1px solid var(--line); color: var(--muted); }

/* Investment profile form */
.ws-industries { border: 0; margin: 0; padding: 0; min-width: 0; }
.ws-industries .field__hint { margin: 0 0 var(--space-2); }
.ws-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); }

/* ---- Confidential access journey (js/requests.js) ------------------------ */
.journey { list-style: none; margin: var(--space-2) 0 var(--space-6); padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.journey__step { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding-right: var(--space-2); font-size: var(--fs-xs); color: var(--muted); }
/* connecting rule between steps */
.journey__step::before { content: ""; position: absolute; top: 11px; left: 26px; right: 4px; height: 1px; background: var(--line); }
.journey__step:last-child::before { display: none; }
.journey__step[data-state="done"]::before { background: var(--ink); }
.journey__num {
  position: relative; z-index: 1; width: 23px; height: 23px; display: grid; place-items: center; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: 0.6875rem;
}
.journey__label { line-height: 1.3; }
.journey__step[data-state="done"] .journey__num { background: var(--ink); border-color: var(--ink); color: #fff; }
.journey__step[data-state="done"] { color: var(--ink); }
.journey__step[data-state="current"] .journey__num { border: 2px solid var(--gold); color: var(--ink); }
.journey__step[data-state="current"] { color: var(--ink); font-weight: 600; }

.req-head { margin-bottom: var(--space-5); }
.req-head__title { margin: 0; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.015em; }
.req-head__meta { margin: var(--space-1) 0 var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.req-fieldset { border: 0; margin: 0 0 var(--space-6); padding: var(--space-5) 0 0; border-top: 1px solid var(--line); min-width: 0; }
.req-legend { padding: 0 var(--space-3) 0 0; margin-bottom: var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); letter-spacing: -0.015em; }
.req-terms { margin: 0 0 var(--space-3); padding-left: 1.1rem; font-size: var(--fs-sm); }
.req-terms li + li { margin-top: var(--space-1); }
.req-terms li::marker { color: var(--gold); }
.req-actions { margin-top: var(--space-6); }
.req-gap { margin-top: var(--space-5); }
.req-question { margin-top: var(--space-5); padding: var(--space-4) 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); }
.req-question p { margin: 0; }
.req-question p + p { margin-top: var(--space-1); }
.req-tiles { margin: var(--space-6) 0; }
.req-tiles .stat__value { font-size: 1rem; }

/* Data room */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.doc {
  position: relative; display: flex; flex-direction: column; gap: var(--space-1); min-height: 92px; padding: var(--space-4) var(--space-4) var(--space-4) 3rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: left;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* small page glyph */
.doc::before { content: ""; position: absolute; left: var(--space-4); top: var(--space-4); width: 16px; height: 20px; border: 1.5px solid var(--ink); border-radius: 2px; }
.doc::after { content: ""; position: absolute; left: calc(var(--space-4) + 4px); top: calc(var(--space-4) + 7px); width: 8px; height: 6px; border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); }
.doc:hover { border-color: var(--ink); transform: translateY(-2px); }
.doc:focus-visible { border-radius: var(--radius-lg); }
.doc__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.doc__meta { font-size: var(--fs-xs); color: var(--muted); }
.access-log { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--muted); }
.access-log li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.doc-preview { margin-bottom: var(--space-4); padding: var(--space-5) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.doc-preview__mark { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--gold-deep); }

/* ---- OWN Verified (js/screens/verified.js) ------------------------------- */
.vchecks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.vcheck { padding-top: var(--space-4); border-top: 2px solid var(--ink); }
.vcheck.is-planned { border-top: 1px dashed var(--line-strong); color: var(--muted); }
.vcheck__state { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--subtle); }
.vcheck.is-active .vcheck__state { color: var(--green); }
.vcheck__title { margin: 0 0 var(--space-2); font-size: var(--fs-lg); font-weight: 700; line-height: 1.2; }
.vcheck.is-planned .vcheck__title { color: var(--muted); }
.vcheck__covers { margin: 0 0 var(--space-2); font-size: var(--fs-sm); }
.vcheck__ev { margin: 0; }
.vcheck__list { margin-top: var(--space-4); }
.vcheck__list p { margin: 0 0 var(--space-1); }
.vcheck__list ul { list-style: none; margin: 0; padding: 0; }
.vcheck__list li { padding: var(--space-1) 0; font-size: var(--fs-sm); }
.vcheck__link {
  padding: 0; border: 0; background: none; text-align: left; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.vcheck__link:hover { text-decoration-color: var(--ink); }
.vcheck__link:focus-visible { border-radius: var(--radius-sm); }

.vexplain { margin-top: clamp(3rem, 2rem + 4vw, 5rem); padding-top: var(--space-8); border-top: 1px solid var(--ink); }
.vexplain__title { font-size: var(--fs-2xl); margin-bottom: var(--space-4); }
.vexplain .lead { max-width: 44rem; }
.vexplain__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10); margin-top: var(--space-8); }
.vexplain__h { font-size: var(--fs-md); margin: 0 0 var(--space-3); }
.vexplain__h--gap { margin-top: var(--space-12); }
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li { position: relative; padding: var(--space-3) 0 var(--space-3) 1.75rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.vlist li::before { content: "→"; position: absolute; left: 0; top: var(--space-3); color: var(--subtle); font-weight: 700; }
.vlist--yes li::before { content: "✓"; color: var(--green); }
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); counter-reset: none; }
.vsteps li { padding-top: var(--space-3); border-top: 1px solid var(--line-strong); }
.vsteps__n { display: block; font-family: var(--font-display); font-weight: 300; font-size: 2.25rem; line-height: 1; letter-spacing: -0.04em; color: var(--gold-deep); }
.vsteps__t { margin: var(--space-2) 0 var(--space-1); font-family: var(--font-display); font-weight: 600; }
.vsteps li p.small { margin: 0; }
.vlevels { margin: var(--space-3) 0 0; }
.vlevels__row { display: grid; grid-template-columns: 15rem 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); align-items: center; }
.vlevels dd { margin: 0; }
.vlevels .evidence { margin-left: 0; }
.vdisclaimer { margin: var(--space-10) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); max-width: 52rem; }

/* ---- Financial view (js/screens/financials.js) ---------------------------- */
.fin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.fin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-6); }
.fin-head__eyebrow { margin: 0; }
.fin-head__title { margin: var(--space-1) 0 var(--space-3); font-size: var(--fs-xl); }
.fin-head__badges { gap: var(--space-2); }
.fin-head__badges .evidence { margin-left: 0; }
.fin-panel { min-height: 300px; }
.fin-panel:focus-visible { border-radius: var(--radius-sm); }
.fin-intro { margin: 0 0 var(--space-6); max-width: 46rem; color: var(--muted); }
.fin-stats { gap: var(--space-6) var(--space-5); margin-bottom: var(--space-8); }
.fin-stats .stat__value { font-weight: 300; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -0.04em; }
.stat__note { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); }

.fin-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.fchart { margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.fchart__title { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--space-2); }
.fchart svg { display: block; width: 100%; height: auto; max-height: 240px; overflow: visible; }
.fchart__base { stroke: var(--line-strong); stroke-width: 1; }
.fchart__bar path { fill: var(--ink); opacity: 0.72; transition: opacity var(--dur) var(--ease); }
.fchart__bar.is-latest path { opacity: 1; }
.fchart__bar:hover path { opacity: 1; fill: var(--gold-deep); }
.fchart__val { font-family: var(--font-display); font-size: 13px; font-weight: 600; fill: var(--ink); }
.fchart__yr { font-size: 12px; fill: var(--muted); }

.fin-points { margin: 0; padding: 0; list-style: none; max-width: 46rem; }
.fin-points li { position: relative; padding: var(--space-2) 0 var(--space-2) 1.25rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.fin-points li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 7px; height: 1.5px; background: var(--gold); }
.fin-panel .table-wrap + .fin-points, .fin-panel .table-wrap + .listing-note { margin-top: var(--space-6); }

.fin-table { font-variant-numeric: tabular-nums; }
.fin-table thead th { border-bottom-color: var(--ink); text-align: right; white-space: nowrap; }
.fin-table thead th:first-child { text-align: left; }
.fin-table td { text-align: right; white-space: nowrap; }
.fin-table th[scope="row"] { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--ink); min-width: 10rem; }
.fin-table tr.is-sub th, .fin-table tr.is-sub td { font-weight: 600; }
.fin-table tr.is-total th, .fin-table tr.is-total td { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 2px solid var(--ink); }
.fin-table--detail { max-width: 40rem; }
.fin-table--bridge td:not(:nth-child(2)), .fin-table--bridge thead th:not(:nth-child(2)),
.fin-table--debt td:not(:nth-child(2)), .fin-table--debt thead th:not(:nth-child(2)) { text-align: left; white-space: normal; }
.fin-table--bridge { min-width: 640px; }
.fin-table--debt { min-width: 640px; }
.fin-table .evidence { margin-left: 0; }
.fin-foot { margin: var(--space-8) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.fin-foot .evidence { margin-left: 0; margin-right: var(--space-1); }

/* ---- Session 3 responsive ------------------------------------------------- */
@media (max-width: 1100px) {
  .vchecks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ws { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .ws-side { position: static; min-width: 0; }
  .ws-side__title, .ws-side__demo { display: none; }
  /* sidebar becomes a scrollable underline tab row */
  .ws-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-left: 0; border-bottom: 1px solid var(--line); gap: var(--space-5); }
  .ws-nav::-webkit-scrollbar { display: none; }
  .ws-nav__tab { flex: none; padding: 0.6rem 0; white-space: nowrap; }
  .ws-nav__tab::before { left: 0; right: 0; top: auto; bottom: -1px; width: auto; height: 2px; transform: scaleX(0); }
  .ws-nav__tab[aria-selected="true"]::before { transform: scaleX(1); }
  .vsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .vexplain__cols { grid-template-columns: 1fr; gap: var(--space-8); }
  .journey { grid-template-columns: 1fr; gap: var(--space-2); }
  .journey__step { flex-direction: row; align-items: center; gap: var(--space-3); }
  .journey__step::before { top: 23px; bottom: -8px; left: 11px; right: auto; width: 1px; height: auto; }
}
@media (max-width: 640px) {
  .ws-head { flex-direction: column; }
  .match { grid-template-columns: 1fr; gap: var(--space-3); }
  .match__score { flex-direction: row; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
  .match__score .match-meter { flex-basis: 100%; }
  .saved-row { flex-direction: column; align-items: flex-start; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .vchecks, .vsteps { grid-template-columns: 1fr; }
  .vlevels__row { grid-template-columns: 1fr; gap: var(--space-1); }
  .fin-charts { grid-template-columns: 1fr; }
  .fin-head { flex-direction: column; }
  .ws-checks { grid-template-columns: 1fr; }
  .ws-kpis.grid--4 { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   SESSION 4a — Seller workspace, listing wizard, Management Verification
   (js/screens/seller.js, js/verification.js). Same design system: hairlines,
   sentence case, 4/6/8/10px radii, green only for "verified", tan for
   rules and small marks, ink for the selected state. Category cards are
   deliberately equal in weight so no category reads as "better" (spec §13).
   ========================================================================== */

/* Inline text button (links that act, e.g. "Change an answer") */
.linkbtn {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.linkbtn:hover { text-decoration-color: var(--ink); }
.linkbtn:focus-visible { border-radius: var(--radius-sm); }

/* ---- Flow scaffolding ----------------------------------------------------- */
.vlead { margin: 0 0 var(--space-5); max-width: 44rem; }
.vgap { margin-top: var(--space-5); }
.vnote { margin: var(--space-3) 0 0; }
.vopt { font-weight: 400; color: var(--muted); }
.vh { margin: 0 0 var(--space-2); font-size: var(--fs-md); }
.vh--gap { margin-top: var(--space-8); }
.vh__sub { margin: 0 0 var(--space-3); }

/* Opening screen: the five steps with target times */
.vopen { list-style: none; margin: 0 0 var(--space-5); padding: 0; border-top: 1px solid var(--ink); }
.vopen li { display: grid; grid-template-columns: 2rem 1fr auto; gap: var(--space-3); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.vopen__n { font-family: var(--font-display); font-weight: 300; font-size: 1.35rem; line-height: 1; color: var(--gold-deep); }
.vopen__t { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.vopen__m { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.vdemo { margin: var(--space-6) 0 0; padding-top: var(--space-4); border-top: 1px dashed var(--line-strong); }

/* Five-step progress indicator */
.vprog { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.vprog__btn {
  display: flex; flex-direction: column; gap: var(--space-2); width: 100%; padding: var(--space-2) 0 0; border: 0; border-top: 2px solid var(--line);
  background: none; text-align: left; font: inherit; color: var(--muted);
}
button.vprog__btn { cursor: pointer; }
button.vprog__btn:hover .vprog__label { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
button.vprog__btn:focus-visible { border-radius: var(--radius-sm); }
.vprog__num { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); }
.vprog__label { font-size: var(--fs-xs); line-height: 1.3; }
.vprog__step[data-state="done"] .vprog__btn { border-top-color: var(--ink); color: var(--ink); }
.vprog__step[data-state="current"] .vprog__btn { border-top-color: var(--gold); color: var(--ink); }
.vprog__step[data-state="current"] .vprog__label { font-weight: 600; }

/* Footer: back · saved state · save later / continue */
.vfoot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line);
}
.vfoot__save { flex: 1; min-width: 8rem; font-size: var(--fs-xs); color: var(--muted); }
.vfoot .btn[disabled] { visibility: hidden; }

/* ---- Question groups --------------------------------------------------------- */
.vset { border: 0; margin: 0 0 var(--space-6); padding: 0; min-width: 0; }
.vset__legend { padding: 0; margin-bottom: var(--space-4); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); letter-spacing: -0.015em; }
.wz-form .vset { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.vq + .vq { margin-top: var(--space-6); }
.vq__q { margin: 0 0 var(--space-3); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); line-height: 1.45; }
.vq .field__hint { display: block; margin-top: var(--space-2); }
.vq .field__error { display: block; margin-top: var(--space-2); }
.vcond, .vexact { margin-top: var(--space-4); max-width: 34rem; }
.vexact input { max-width: 9rem; }

/* Management type cards: equal weight, ink when selected */
.vcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.vcard {
  position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5) var(--space-5) var(--space-5);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.vcard input { position: absolute; opacity: 0; pointer-events: none; }
.vcard::after {   /* selection mark, top right */
  content: ""; position: absolute; top: var(--space-4); right: var(--space-4); width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface);
}
.vcard:hover { border-color: var(--ink); }
.vcard:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vcard:has(input:checked)::after { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--surface); }
.vcard:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.vcard__name { padding-right: 1.75rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); letter-spacing: -0.015em; }
.vcard__guide { font-family: var(--font-display); font-weight: 300; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.15; }
.vcard__rule { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
/* Each category keeps its own small colour cue (a rule), never a "better" colour */
.vcard__name::before { content: ""; display: block; width: 20px; height: 3px; margin-bottom: var(--space-3); border-radius: 2px; background: var(--cat-ready-fg); }
.vcard[data-category="full"] .vcard__name::before { background: var(--cat-full-bg); }
.vcard[data-category="semi"] .vcard__name::before { background: var(--gold); }

/* Answer chips: big tap targets, ink when chosen */
.vchips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.vchip { position: relative; display: inline-flex; }
.vchip input { position: absolute; opacity: 0; pointer-events: none; }
.vchip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  font-size: var(--fs-sm); line-height: 1.3; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.vchip span:hover { border-color: var(--ink); }
.vchip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.vchip input[type="checkbox"]:checked + span::before { content: "✓"; margin-right: 0.4rem; font-weight: 700; }
.vchip input:focus-visible + span { box-shadow: var(--focus-ring); }

/* Category recommendation — tan rule, calm, never red */
.vrec { margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border: 1px solid var(--gold); border-left-width: 3px; border-radius: var(--radius); background: var(--surface); }
.vrec__title { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 600; }
.vrec__reasons { margin: 0 0 var(--space-3); padding-left: 1.1rem; font-size: var(--fs-sm); }
.vrec__reasons li::marker { color: var(--gold); }
.vrec__note { margin: 0 0 var(--space-3); color: var(--muted); }
.vrec--kept { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; border-color: var(--line-strong); border-left-color: var(--gold); }
.vrec__text { margin: 0; font-size: var(--fs-sm); }

/* ---- Step 4: simulated upload ------------------------------------------------ */
.vupload { margin-top: var(--space-5); }
.vupload__empty { padding: var(--space-6); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; }
.vupload__empty .cluster { justify-content: center; margin-top: var(--space-4); }
.vupload__empty .field__error { display: block; margin-top: var(--space-3); }
.vupload__t { margin: 0 0 var(--space-1); font-family: var(--font-display); font-weight: 600; }
.vupload__empty p.small { margin: 0; }
.vupload__more { margin: var(--space-3) 0 0; }
.vfiles { list-style: none; margin: 0; padding: 0; }
.vfile { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.vfile + .vfile { margin-top: var(--space-2); }
.vfile[data-state="done"] { border-color: var(--green); }
.vfile__icon { position: relative; flex: none; width: 18px; height: 22px; border: 1.5px solid var(--ink); border-radius: 2px; }
.vfile__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 6px; border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); }
.vfile__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vfile__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.vfile__meta { font-size: var(--fs-xs); color: var(--muted); }
.vfile[data-state="done"] .vfile__meta { color: var(--green); font-weight: 600; }
.vfile__bar { display: block; height: 3px; margin-top: var(--space-2); background: var(--line); border-radius: 2px; overflow: hidden; }
.vfile__bar span { display: block; width: 0; height: 100%; background: var(--ink); transition: width 160ms linear; }
.vfile__acts { flex: none; gap: var(--space-1); }

/* ---- Step 5: declaration ------------------------------------------------------ */
.vsum { margin-bottom: var(--space-2); }
.vsum .facts__row { grid-template-columns: 13rem 1fr; }
.vsum__sub { display: block; margin-top: 2px; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.vcheckline { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.vcheckline:first-of-type { border-top: 1px solid var(--line); }
.vsig { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.15rem !important; letter-spacing: 0.01em; }

/* Submitted: 4-stage status track (reuses the journey timeline) */
.vtrack { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- Listing wizard ------------------------------------------------------------ */
.wz-preview { padding: var(--space-6); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius-lg); margin-bottom: var(--space-4); }
.wz-preview__eyebrow { margin: 0; font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--gold-deep); }
.wz-preview__title { margin: var(--space-1) 0 var(--space-2); font-size: var(--fs-xl); }
.wz-preview__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0 0 var(--space-6); }
.wz-tiles { margin-bottom: var(--space-5); }
.wz-tiles .stat__value { font-size: 1.05rem; }
.wz-preview__summary { margin: 0 0 var(--space-4); max-width: 44rem; }
.wz-verify { margin-top: var(--space-6); padding: var(--space-5) 0 0; border-top: 1px solid var(--green); }
.wz-verify p { margin: 0 0 var(--space-3); max-width: 44rem; font-size: var(--fs-sm); }
.wz-edit { margin: var(--space-5) 0 0; color: var(--muted); }

/* ---- Seller workspace ----------------------------------------------------------- */
.ws-sub--first { margin-top: 0; }
.doc--static { padding-top: var(--space-4); cursor: default; }
.doc--static:hover { border-color: var(--line); transform: none; }
.sdoc-key { margin-top: var(--space-6); }
.sdoc-key .vlevels__row { grid-template-columns: 13rem 1fr; }

.svchecks { margin-bottom: var(--space-10); }
.svchecks .vcheck__title { font-size: var(--fs-md); }
.svgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.svupdate { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.svupdate p { margin: 0 0 var(--space-3); font-size: var(--fs-sm); }
.svreset { margin: var(--space-4) 0 0; }

/* Performance: weekly views bars + funnel */
.perf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.vbars { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); align-items: end; height: 220px; border-bottom: 1px solid var(--line-strong); }
.vbars__bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; }
.vbars__val { order: 0; margin-bottom: var(--space-1); text-align: center; font-family: var(--font-display); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vbars__fill { display: block; min-height: 2px; background: var(--ink); opacity: 0.72; border-radius: 2px 2px 0 0; }
.vbars__bar.is-latest .vbars__fill { opacity: 1; }
.vbars__lbl { position: absolute; top: 100%; left: 0; right: 0; padding-top: var(--space-2); text-align: center; font-size: 11px; color: var(--muted); line-height: 1.25; }
.perf__chart { padding-bottom: var(--space-8); }

.funnel { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.funnel__row { display: grid; grid-template-columns: 9rem 1fr 7rem; gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.funnel__track { display: block; height: 10px; background: var(--field); border-radius: 2px; overflow: hidden; }
.funnel__track span { display: block; height: 100%; background: var(--ink); }
.funnel__val { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.funnel__pct { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--muted); }

/* ---- Session 4a responsive -------------------------------------------------------- */
@media (max-width: 960px) {
  .svgrid, .perf { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .vcards { grid-template-columns: 1fr; }
  .vcard { padding: var(--space-4); }
  .vtrack { grid-template-columns: 1fr; }
  .vprog__label { display: none; }                 /* numbers only on small screens */
  .vprog__step[data-state="current"] .vprog__label { display: block; }
  .vprog { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vfoot { flex-direction: column-reverse; align-items: stretch; }
  .vfoot__go { flex-direction: column-reverse; align-items: stretch; }
  .vfoot__go .btn, .vfoot > .btn { width: 100%; }
  .vfoot__save { text-align: center; }
  .vsum .facts__row, .sdoc-key .vlevels__row { grid-template-columns: 1fr; gap: var(--space-1); }
  .vfile { flex-wrap: wrap; }
  .vfile__acts { width: 100%; justify-content: flex-end; }
  .funnel__row { grid-template-columns: 1fr 5.5rem; }
  .funnel__track { grid-column: 1 / -1; grid-row: 2; }
  .wz-preview { padding: var(--space-4); }
  .vopen li { grid-template-columns: 1.75rem 1fr; }
  .vopen__m { grid-column: 2; }
}
.section-head__actions { margin-top: var(--space-5); }
/* ==========================================================================
   Session 4b — Broker workspace styles
   Append this block to prototype/css/prototype.css
   ========================================================================== */

/* ---- Pilot onboarding status ------------------------------------------- */
.brk-onboard {
  border: 1px solid var(--c-border, #ddd);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--c-surface, #faf9f7);
}
.brk-onboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.brk-onboard__current {
  color: var(--c-tan, #b8966e);
  font-weight: 600;
  font-size: 0.8125rem;
}
.brk-onboard__stages {
  display: flex;
  gap: 0;
}
.brk-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: var(--c-muted, #888);
  text-align: center;
  position: relative;
}
.brk-stage:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--c-border, #ddd);
  z-index: 0;
}
.brk-stage--done::before  { background: var(--c-tan, #b8966e); }
.brk-stage--current::before { background: var(--c-tan, #b8966e); }
.brk-stage__icon {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 2px solid var(--c-border, #ddd);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  color: var(--c-muted, #888);
}
.brk-stage--done .brk-stage__icon {
  background: var(--c-tan, #b8966e);
  border-color: var(--c-tan, #b8966e);
  color: #fff;
}
.brk-stage--current .brk-stage__icon {
  border-color: var(--c-tan, #b8966e);
  color: var(--c-tan, #b8966e);
}
.brk-stage--done .brk-stage__label,
.brk-stage--current .brk-stage__label {
  color: var(--c-ink, #15171a);
}

/* ---- Broker listing rows ------------------------------------------------ */
.brk-listings {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--c-border, #ddd);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.brk-listing-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--c-border, #ddd);
  font-size: 0.875rem;
}
.brk-listing-row:last-child { border-bottom: none; }
.brk-listing-row__title {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}
.brk-listing-row__meta { color: var(--c-muted, #888); font-size: 0.75rem; }
.brk-listing-row__enq  { color: var(--c-muted, #888); font-size: 0.8125rem; min-width: 5rem; text-align: right; }
.brk-listing-row__actions { min-width: 6rem; text-align: right; }

/* ---- Confidentiality badge ---------------------------------------------- */
.conf-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1em 0.45em;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: #f0ede9;
  color: var(--c-muted, #888);
  vertical-align: middle;
}
.conf-badge--nda-required { background: #fff3e0; color: #b37400; }
.conf-badge--broker-first  { background: #e8f0ff; color: #2d55c7; }
.conf-badge--nda-optional  { background: #f0ede9; color: #7a6550; }
.conf-badge--general       { background: #eaf4ea; color: #3a7a3a; }

/* ---- Listing status badge ----------------------------------------------- */
.status-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.status-badge--active            { background: #eaf4ea; color: #2a6a2a; }
.status-badge--draft             { background: #f0ede9; color: #7a6550; }
.status-badge--awaiting-approval { background: #fff3e0; color: #b37400; }

/* ---- Add-listing method tabs -------------------------------------------- */
.brk-method-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--c-border, #ddd);
  margin-bottom: 1.25rem;
}
.brk-method-tab {
  flex: 1;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--c-muted, #888);
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.brk-method-tab:hover { color: var(--c-ink, #15171a); }
.brk-method-tab.is-active {
  color: var(--c-ink, #15171a);
  border-bottom-color: var(--c-tan, #b8966e);
}
.brk-method-panel { display: none; }
.brk-method-panel.is-active { display: block; }

/* ---- File drop area ----------------------------------------------------- */
.file-drop {
  border: 2px dashed var(--c-border, #ddd);
  border-radius: 6px;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.file-drop__input { width: 100%; font-size: 0.875rem; }
.file-drop__label { font-size: 0.875rem; color: var(--c-muted, #888); }

/* ---- Draft preview block ------------------------------------------------ */
.brk-draft-preview {
  border: 1px solid var(--c-border, #ddd);
  border-radius: 6px;
  margin: 1rem 0;
  overflow: hidden;
}
.brk-draft-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--c-border, #ddd);
  font-size: 0.875rem;
}
.brk-draft-preview__row:last-child { border-bottom: none; }

/* ---- Founding Broker panel ---------------------------------------------- */
.founding-panel {
  margin-top: 2rem;
  border: 1px solid var(--c-tan, #b8966e);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  background: #fdf8f3;
}
.founding-panel__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-tan, #b8966e);
  margin-bottom: 0.375rem;
}
.founding-panel__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.625rem;
}
.founding-panel__perks {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}
.founding-panel__perks li { margin-bottom: 0.25rem; }

/* ---- Verify status note on overview ------------------------------------- */
.verify-status {
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  background: #f5f5f5;
  color: var(--c-muted, #888);
}
.verify-status--ok { background: #eaf4ea; color: #2a6a2a; }

/* ---- Broker → seller confirmation banner (used in seller.js verify panel) */
.brk-seller-confirm {
  border: 1px solid var(--c-tan, #b8966e);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: #fdf8f3;
  margin-bottom: 1rem;
}
.brk-seller-confirm p { margin: 0 0 0.75rem; font-size: 0.875rem; }
.brk-seller-confirm .cluster { gap: 0.5rem; }

/* ---- Responsive: stack listing rows on small screens ------------------- */
@media (max-width: 540px) {
  .brk-listing-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .brk-listing-row__enq    { display: none; }
  .brk-listing-row__status { grid-column: 2; grid-row: 1; }
  .brk-listing-row__actions { grid-column: 1 / -1; justify-self: start; }
  .brk-method-tab { flex: none; font-size: 0.75rem; padding: 0.5rem; }
}

/* ==========================================================================
   Session 4c — Reviewer view + journey section + tester feedback form
   ========================================================================== */

/* ---- Reviewer modal -------------------------------------------------------- */
.rev-disclaimer {
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background: #fff8e1;
  border-left: 3px solid #f9a825;
  border-radius: 0 4px 4px 0;
  font-style: italic;
}
.rev-section-head {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted, #888);
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--c-border, #ddd);
}
/* §11 checklist */
.rev-checks {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.rev-check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.rev-check__icon {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--c-border, #ddd);
  color: var(--c-muted, #888);
}
.rev-check--pass .rev-check__icon { background: #d4edda; color: #1d6a2a; }
.rev-check--warn .rev-check__icon { background: #fff3cd; color: #856404; }
.rev-check--unknown .rev-check__icon { background: #e9ecef; color: #6c757d; }
/* Category mismatch label */
.rev-mismatch { color: #b37400; font-size: 0.8125rem; }
/* Reviewer actions */
.rev-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.25rem;
}
.rev-request-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rev-note {
  width: 100%;
  font-size: 0.875rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--c-border, #ddd);
  border-radius: 4px;
  resize: vertical;
}
/* Demo reviewer link in the seller verification panel */
.rev-demo-note {
  margin-top: 0.5rem;
  color: var(--c-muted, #888);
}
.rev-demo-note .linkbtn { color: var(--c-tan, #b8966e); }

/* ---- Journey cards --------------------------------------------------------- */
.journey-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.journey-card {
  border: 1px solid var(--c-border, #ddd);
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.journey-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.journey-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c-tan, #b8966e);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.journey-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.journey-card__steps {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  flex: 1;
}
.journey-card__steps li { margin-bottom: 0.4rem; }

/* ---- Tester feedback form -------------------------------------------------- */
.journey-feedback { max-width: 720px; }
.feedback-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.lead-sm { font-size: 0.9375rem; margin: 0 0 1.5rem; }
.fb-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: end;
}
.fb-section {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted, #888);
  margin: 1.5rem 0 0.625rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--c-border, #ddd);
}
.fb-field { margin-bottom: 0.875rem; }
.fb-field textarea {
  width: 100%;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  border: 1px solid var(--c-border, #ddd);
  border-radius: 4px;
  resize: vertical;
}
.fb-submit {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.fb-thanks {
  padding: 2rem;
  border: 1px solid var(--c-border, #ddd);
  border-radius: 8px;
  background: #eaf4ea;
  text-align: center;
}
.fb-thanks h3 { margin: 0 0 0.5rem; }

/* ---- Responsive: journey cards -------------------------------------------- */
@media (max-width: 760px) {
  .journey-cards { grid-template-columns: 1fr; }
  .fb-meta { grid-template-columns: 1fr; }
}
