/* Stairtop proposal mockup — tokens lifted from the live app 2026-08-28
   (computed styles / :root vars, see stairtop-eval capture-log.json)
   Re-verified against the live DOM 2026-08-28 13:30 via Chrome session:
   sidebar #05242E, yellow #E8E36E on #052530, ink #020E12, bg #FBFBF9,
   radius 8px, pills 9999px, font BeVietnamPro — all exact.
   Corrected: --warn to #FF9900 (live: hsl(36 100% 50%)), --muted to #667275
   (live: hsl(195 7% 43%)). Logo path is the app's own SVG, verbatim. */

:root {
  --teal: #05242E;
  --teal-deep: #020E13;
  --logo: #16333D;
  --ink: #020E12;
  --muted: #667275;
  --bg: #FBFBF9;
  --card: #FFFFFF;
  --line: #E5E5E5;
  --yellow: #E8E36E;
  --yellow-ink: #052530;
  --ok: #16A34A;
  --warn: #FF9900;
  --bad: #EF4444;
  --radius: 8px;
  --rail: 248px;
  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- proposal ribbon: this is never mistaken for the real product ---------- */

.ribbon {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 9px 20px;
  background: var(--teal-deep);
  color: #CFE0E5;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.ribbon strong { color: #fff; font-weight: 600; }

.ribbon .spacer { margin-left: auto; }

.ribbon a {
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 227, 110, 0.35);
}

/* ---------- app chrome ---------- */

.app { display: flex; min-height: calc(100vh - 38px); }

.sidebar {
  width: var(--rail);
  flex: 0 0 var(--rail);
  background: var(--teal);
  color: #E8EEF0;
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 22px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand svg { flex: 0 0 auto; }

.nav-label {
  padding: 14px 12px 6px;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6E8B93;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 14.5px;
  color: #C6D6DA;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.nav-item.active { background: rgba(232, 227, 110, 0.14); color: #fff; font-weight: 500; }

.nav-item.active svg { color: var(--yellow); }

.nav-item svg { flex: 0 0 auto; opacity: 0.9; }

.nav-item .count {
  margin-left: auto;
  font-size: 12px;
  color: #8FA8AE;
  font-variant-numeric: tabular-nums;
}

.sidebar .foot { margin-top: auto; padding-top: 18px; }

/* collapsible rail */
.navtoggle {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 12px; margin-top: 2px; border: 0; background: none;
  border-radius: var(--radius); font: inherit; font-size: 13px;
  color: #8FA8AE; cursor: pointer; text-align: left;
  transition: background 120ms ease, color 120ms ease;
}
.navtoggle:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.navtoggle svg { flex: 0 0 auto; transition: transform 180ms ease; }
.sidebar { transition: width 180ms ease, flex-basis 180ms ease, padding 180ms ease; }
html.navmin .sidebar { width: 62px; flex-basis: 62px; padding-left: 9px; padding-right: 9px; }
html.navmin .brand { font-size: 0; gap: 0; justify-content: center; padding-left: 0; padding-right: 0; }
html.navmin .nav-label { font-size: 0; height: 15px; padding: 0; }
html.navmin .nav-item { font-size: 0; gap: 0; justify-content: center; padding-left: 0; padding-right: 0; }
html.navmin .nav-item .count { display: none; }
html.navmin .navtoggle { font-size: 0; gap: 0; justify-content: center; padding-left: 0; padding-right: 0; }
html.navmin .navtoggle svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .sidebar, .navtoggle svg { transition: none; }
}

.main { flex: 1; min-width: 0; padding: 30px 40px 72px; }

.wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- type ---------- */

h1 { font-size: 27px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }

.sub { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 12px;
}

/* ---------- tabbed search (place.com model Curtis screen-shared) ---------- */

.search {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 6px 0;
  margin-bottom: 30px;
  box-shadow: 0 1px 2px rgba(2, 14, 18, 0.04);
}

.tabs { display: flex; gap: 2px; padding: 0 4px; overflow-x: auto; scrollbar-width: none; }

.tabs::-webkit-scrollbar { display: none; }

.tab { white-space: nowrap; flex: 0 0 auto; }

.tab {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  padding: 10px 15px 11px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
}

.tab:hover { color: var(--ink); }

.tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--teal);
}

/* tool tabs under the pipeline phase bar */
.pipetools { margin: 12px 0 4px; border-bottom: 1px solid var(--line); }
.pipetools .tab { text-decoration: none; }

/* Pricing Room seller/buyer switch */
.roomtabs { margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.roomtabs .tab { text-decoration: none; }

/* the coach feed on Listings */
.coachfeed { margin-top: 26px; }
.coachfeed .card-head .pill { margin-left: auto; }

.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 8px 14px;
  border-top: 1px solid var(--line);
  margin-top: -1px;
}

.search-row .field {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14.5px;
}

.search-hint {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 9999px;
  background: var(--yellow);
  color: var(--yellow-ink);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.btn.dark { background: var(--teal); color: #fff; }

.btn.sm { padding: 8px 16px; font-size: 13px; }

/* ---------- pipeline: the window Curtis says nobody has touched ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px 14px;
  position: relative;
}

.stage.live { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }

.stage .stage-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stage .name { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }

.stage .n { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

.stage .meta { font-size: 12.5px; color: var(--muted); }

.stage .bar { height: 3px; border-radius: 2px; background: var(--line); margin-bottom: 11px; overflow: hidden; }
.stage .bar i { display: block; height: 100%; background: var(--teal); }
.stage.risk .bar i { background: var(--warn); }

.deal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.deal:first-of-type { border-top: 0; }

.deal .addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.deal .day { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }

/* ---------- generic cards / grid ---------- */

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1.55fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}

.card.tint { background: #F4F7F7; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2 { margin: 0; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.row:first-of-type { border-top: 0; padding-top: 2px; }

.row .body { flex: 1; min-width: 0; }
.row .body .t { font-size: 14px; font-weight: 500; }
.row .body .d { font-size: 12.5px; color: var(--muted); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
  background: #EEF2F2;
  color: var(--muted);
  white-space: nowrap;
}

.pill.hot { background: rgba(232, 227, 110, 0.4); color: var(--yellow-ink); }
.pill.ok { background: rgba(22, 163, 74, 0.12); color: #15803D; }
.pill.warn { background: rgba(255, 149, 0, 0.14); color: #B45309; }

.src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 2px 9px 2px 7px;
}

.src b { font-weight: 600; color: var(--ink); }

/* ---------- scorecard ---------- */

.score { text-align: left; }

.score .big {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.score .big span { font-size: 17px; color: var(--muted); font-weight: 500; letter-spacing: 0; }

.metric { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.metric .v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- comps table (Seller Playbook step 3) ---------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

table { border-collapse: collapse; width: 100%; min-width: 700px; font-size: 13.5px; }

th, td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }

thead th {
  border-top: 0;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #FAFBFB;
}

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

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

.simscore { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-variant-numeric: tabular-nums; }
.simscore i { display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--line); position: relative; }
.simscore i b { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--teal); }

/* ---------- range bar (replaces the off-canvas forecast) ---------- */

.range { padding: 4px 0 0; }

.range .scale { position: relative; height: 46px; margin: 26px 0 40px; }

.range .track { position: absolute; left: 0; right: 0; top: 20px; height: 6px; border-radius: 3px; background: var(--line); }

.range .band { position: absolute; top: 20px; height: 6px; border-radius: 3px; background: #8FA9B0; }

.range .mark { position: absolute; top: 13px; width: 2px; height: 20px; border-radius: 1px; background: var(--teal); }

.range .tag {
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.range .tag small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; }

.range .ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- case page ---------- */

.case { max-width: 900px; margin: 0 auto; padding: 54px 24px 90px; }

.case .lede { font-size: 18.5px; line-height: 1.55; color: #33474D; margin: 0 0 30px; }

.case h1 { font-size: 34px; margin-bottom: 10px; }

.change {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px 24px 24px;
  margin-bottom: 16px;
}

.change .n {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.change h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 10px; }

.change p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; }

blockquote {
  margin: 0 0 12px;
  padding: 10px 0 10px 16px;
  border-left: 3px solid var(--yellow);
  color: #33474D;
  font-size: 14px;
  line-height: 1.6;
}

blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--muted); }

.shot { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); margin: 6px 0 4px; }

.caption { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }

.note {
  border-top: 1px solid var(--line);
  padding: 11px 0 0;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.linkrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 10px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- interactive layer ---------- */

.stamp {
  margin-left: 14px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #5E7A83;
  font-variant-numeric: tabular-nums;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  max-width: min(520px, calc(100vw - 40px));
  background: var(--teal-deep);
  color: #E8EEF0;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(2, 14, 18, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 90;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 14, 18, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 20px 40px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 140ms ease;
  z-index: 80;
}

.overlay.show { opacity: 1; }

.modal {
  background: var(--card);
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  padding: 20px 24px 24px;
  box-shadow: 0 18px 60px rgba(2, 14, 18, 0.3);
}

.modal.wide { max-width: 680px; }

.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.modal-head h2 { margin: 0; font-size: 17px; }

.modal .x, .drawer .x {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal .x:hover, .drawer .x:hover { background: #EEF2F2; color: var(--ink); }

.modal-body .row.click, .row.click { cursor: pointer; }
.modal-body .row.click:hover .t { text-decoration: underline; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 44px rgba(2, 14, 18, 0.18);
  padding: 26px 26px 26px;
  z-index: 70;
  transform: translateX(24px);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
  overflow-y: auto;
}

.drawer.show { transform: none; opacity: 1; }

.drawer .x { position: absolute; top: 14px; right: 14px; }
.drawer h2 { font-size: 18px; margin: 6px 0 2px; }
.drawer-stage { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.drawer-client { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.drawer-note { font-size: 14px; line-height: 1.55; margin: 0 0 20px; }

.deal.click { cursor: pointer; }
.deal.click:hover .addr { text-decoration: underline; }

.score.click { cursor: pointer; }
.score.click:hover .big { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.simscore.click { cursor: pointer; }
.simscore.click:hover { text-decoration: underline; }

.search-row .field.live { position: relative; overflow: visible; color: var(--ink); }

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
}
.search-input::placeholder { color: var(--muted); }

.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(2, 14, 18, 0.14);
  padding: 6px;
  display: none;
  z-index: 60;
}
.suggest.show { display: block; }

.s-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
}
.s-item:hover { background: #EEF2F2; }
.s-item span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.s-empty { padding: 10px 12px; font-size: 13px; color: var(--muted); }

.slider { width: 100%; margin: 16px 0 6px; accent-color: var(--teal); }
.modal .ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.reprice-read { margin-top: 4px; }

.slot { display: block; width: 100%; text-align: left; margin-bottom: 8px; }
.slot:hover { border-color: var(--teal); }

.range .mark.drag { background: var(--yellow); width: 16px; height: 16px; border-radius: 50%; top: 15px; cursor: grab; border: 2.5px solid var(--card); box-shadow: 0 1px 5px rgba(2, 14, 18, 0.35); transform: translateX(-50%); z-index: 2; }
.range .tag.drag {
  top: 58px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 12px 7px;
  cursor: grab;
  box-shadow: 0 8px 22px rgba(2, 14, 18, 0.1);
  text-align: left;
  z-index: 2;
}
.range .tag.drag small { color: var(--muted); }
.range .tag.drag em { display: block; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.range .tag.drag.slow em { color: var(--warn); }
.range .scale { cursor: pointer; touch-action: none; }
.range .scale.locked { cursor: not-allowed; }
.range .scale.locked .mark.drag, .range .scale.locked .tag.drag { cursor: not-allowed; }

/* locked banner: the emblem stays wordless, the state does not */
.lockban { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 2px; padding: 10px 13px; border: 1px solid var(--warn); border-radius: 10px; background: #FFF6E8; color: #8A5A00; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.lockban .lockicon { flex: 0 0 auto; }
.lockban b { font-weight: 600; }
.lockban:hover { border-color: #B45309; }
body.stage .lockban { background: rgba(255, 153, 0, 0.12); border-color: rgba(255, 153, 0, 0.5); color: #FFD9A0; }

/* comp sales on the track */
.range .cdot { position: absolute; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--teal); box-sizing: border-box; transform: translateX(-50%); pointer-events: none; }

/* snap animation: keyboard/release glides, live drag follows instantly */
.range .mark.drag, .range .tag.drag { transition: left 130ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.range .scale.dragging .mark.drag, .range .scale.dragging .tag.drag { transition: none; cursor: grabbing; }
.range .scale.dragging { cursor: grabbing; }
.range .tag.drag:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* present mode: bigger stage, bigger target */
body.present .range .scale { height: 58px; margin: 30px 0 48px; }
body.present .range .track, body.present .range .band { top: 26px; }
body.present .range .mark { top: 19px; height: 20px; }
body.present .range .mark.drag { top: 21px; height: 16px; }
body.present .range .tag.drag { top: 66px; font-size: 13px; }
body.present .range .cdot { top: 23px; }
/* on the dark stage the drag card goes dark too; the white card is a prep-side object */
body.stage .range .tag.drag { background: rgba(10, 26, 30, 0.92); border-color: rgba(255, 255, 255, 0.22); color: #F2F5F4; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
body.stage .range .tag.drag small, body.stage .range .tag.drag em { color: #8CA4A6; }

/* Listing Coach board: the Monday review owns the page ---------- */
.coachboard { display: flex; gap: 26px; align-items: center; justify-content: space-between; background: linear-gradient(120deg, var(--teal-deep), #0A3441); border-radius: 12px; padding: 22px 26px; margin-bottom: 22px; color: #fff; }
.cb-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.cb-main h2 { font-size: 22px; font-weight: 600; margin: 0 0 8px; color: #fff; }
.cb-main p { font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); margin: 0; max-width: 62ch; }
.cb-chips { display: flex; gap: 10px; flex: 0 0 auto; }
.cbchip { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 12px 14px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.85); font: inherit; font-size: 12px; cursor: pointer; transition: background 140ms ease, border-color 140ms ease; }
.cbchip b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.cbchip:hover { border-color: rgba(255, 255, 255, 0.55); }
.cbchip.on { background: #fff; border-color: #fff; color: var(--teal-deep); }
.cbchip.on b { color: var(--teal-deep); }
.cbchip.act b { color: var(--warn); }
.cbchip.act.on b { color: var(--teal-deep); }
@media (max-width: 900px) { .coachboard { display: block; } .cb-chips { margin-top: 14px; } }

/* vital signs strip: the Up Next card's label-over-value grammar, reused */
/* vital-fact ledger: numeral column, plain words, color on the numeral only */
.vfacts { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.vfscope { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0 0 3px 38px; }

/* price ladder: the comped area on one rail, subject highlighted */
.ladder { display: flex; flex-direction: column; }
.lrung { display: flex; align-items: baseline; gap: 12px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.lrung:first-child { border-top: 0; }
.lrung b { flex: 0 0 96px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.lrung .lr-label { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrung .lr-status { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }
.lrung.subject { background: var(--teal-deep, #05242E); border-radius: 8px; border-top-color: transparent; }
.lrung.subject + .lrung { border-top-color: transparent; }
.lrung.subject b, .lrung.subject .lr-label { color: #fff; }
.lrung.subject .lr-status { color: rgba(255, 255, 255, 0.75); }
.lrung.sold b, .lrung.sold .lr-label { color: var(--muted); }
.lrung.pending .lr-status { color: #8A5A00; }
.lrung.sold .lr-status { color: var(--ok); }
.pacebar { margin-top: 12px; padding: 10px 10px 12px; border-top: 1px solid var(--line); }
.pb-line { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.pb-line b { color: var(--ink); }
.pb-track { display: block; height: 6px; border-radius: 3px; background: rgba(220, 38, 38, 0.18); overflow: hidden; }
.pacebar:not(.over) .pb-track { background: var(--bg); border: 1px solid var(--line); }
.pb-track i { display: block; height: 100%; border-radius: 3px; background: var(--ok); }

/* the listing sheet: MLS facts + public remarks */
.factgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.fact small { display: block; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.fact b { font-size: 13px; font-weight: 600; color: var(--ink); }
.remarkstag { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.remarks { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 6px 0 0; }

/* price-first coach diagnosis */
.cprice { margin: 12px 0 2px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--bg); }
.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.cp-top b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.cp-chip { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; }
.cprice.attn { border-color: var(--warn); background: #FFF9EF; }
.cprice.attn .cp-chip { background: rgba(255, 149, 0, 0.16); color: #8A5A00; }
.cprice.ok .cp-chip { background: rgba(22, 163, 74, 0.1); color: #15803D; }
.cprice p { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.cprice.attn p { color: #8A5A00; }
.vf { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.vf b { flex: 0 0 28px; text-align: right; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.vf.ok b { color: var(--ok); }
.vf.warn b { color: #8A5A00; }
.vf.bad b { color: var(--bad); }
.vstat { display: block; margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 11px; color: #8A5A00; font-variant-numeric: tabular-nums; }

/* vital signs on the card: demand first, price last, provenance always */
.vitals { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.vs { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; padding: 4px 0; font-size: 12px; }
.vs .vl { margin-right: auto; color: var(--muted); white-space: nowrap; }
.spark { width: 56px; height: 18px; flex: 0 0 auto; }
.spark polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark.ok polyline { stroke: var(--ok); }
.spark.bad polyline { stroke: var(--bad); }
.vs .vv { flex: 0 0 auto; white-space: nowrap; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 12px; }
.vs .vv.ok { color: var(--ok); }
.vs .vv.warn { color: #8A5A00; }
.vs .vv.bad { color: var(--bad); }
.prov { flex: 0 0 auto; font-size: 10px; letter-spacing: 0.03em; border-radius: 5px; padding: 2px 6px; border: 1px solid var(--line); color: var(--muted); background: var(--bg); white-space: nowrap; }
.prov.auto { color: var(--ok); border-color: rgba(31, 122, 76, 0.35); }
.prov.logged { color: var(--ink); }
.prov.stale { color: #8A5A00; border-color: var(--warn); border-style: dashed; cursor: pointer; }
.asklog { background: var(--bg); border-radius: 7px; padding: 6px 8px; margin-top: 8px; }
.asklog[hidden] { display: none; }
.askchips { display: flex; gap: 6px; flex: 1; justify-content: flex-end; }
.askchips button { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 3px 11px; font: inherit; font-size: 12px; cursor: pointer; }
.askchips button:hover { border-color: var(--teal); }
.vsum { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 10px 0 0; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-align: left; }
.vsum .vcheck { color: var(--ok); font-weight: 700; }
.vsum .vmore { margin-left: auto; font-size: 11.5px; text-decoration: underline; text-underline-offset: 2px; }
.verdict { font-size: 12.5px; line-height: 1.5; margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.verdict.ok { color: var(--muted); }

/* graded verdict: the coach's call as a labeled header, evidence beside it */
.cvbox { margin: 10px 0 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.cvhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 11px 6px; border-bottom: 1px solid var(--line); }
.cvhead b { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; }
.cvhead span { font-size: 11px; color: var(--muted); text-align: right; }
.cvbox.act .cvhead { background: rgba(220, 38, 38, 0.06); }
.cvbox.act .cvhead b { color: var(--bad); }
.cvbox.watch .cvhead { background: rgba(255, 149, 0, 0.09); }
.cvbox.watch .cvhead b { color: #8A5A00; }
.cvbox.ok .cvhead { background: rgba(22, 163, 74, 0.07); }
.cvbox.ok .cvhead b { color: #15803D; }
.cvbox p { font-size: 12.5px; line-height: 1.5; margin: 0; padding: 8px 11px 9px; color: var(--ink); }
.cvbox.ok p { color: var(--muted); }
.coststat { font-size: 11.5px; line-height: 1.45; color: #8A5A00; margin: 8px 0 0; padding: 0 2px; font-variant-numeric: tabular-nums; }
.vact { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.notepreview { font-size: 14px; line-height: 1.65; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg); margin: 0 0 12px; }

/* Command-style pipeline head: phase journey + two-number income panel */
/* the phase journey wears the room's own hero treatment: deep teal, yellow counts,
   equidistant nodes on a grid with the connector drawn behind opaque circles */
.pipehead { display: flex; gap: 18px; align-items: stretch; margin-bottom: 22px; }
.phasestrip { flex: 1; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); background: linear-gradient(120deg, var(--teal-deep), #0A3441); border-radius: 12px; padding: 18px 22px 16px; }
.phasestrip::before { content: ""; position: absolute; left: 11%; right: 11%; top: 63px; height: 2px; background: rgba(255, 255, 255, 0.22); }
.phasenode { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; font: inherit; cursor: pointer; padding: 0 4px; border-radius: 10px; }
.pn-name { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.pn-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; background: #0A3441; margin: 5px 0 3px; transition: background 140ms ease, color 140ms ease, border-color 140ms ease; }
.phasenode:hover .pn-icon { border-color: #fff; }
.phasenode.on .pn-icon { background: #fff; color: var(--teal-deep); border-color: #fff; }
.phasenode.on .pn-name { color: var(--yellow); }
.pn-count { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--yellow); color: #14201F; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pn-vol { font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; margin-top: 3px; }
.pn-prob { font-size: 10.5px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.05em; }
.filterchip { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); margin: -8px 0 14px; }
.gcipanel { flex: 0 0 280px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.gci-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.gci-row b { font-size: 17px; font-variant-numeric: tabular-nums; }
.gci-row .gci-prob { color: var(--teal); }
.gci-sub { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin: 3px 0 10px; }
.gci-sub:last-child { margin-bottom: 0; }
.stagepct { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-left: auto; margin-right: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .pipehead { display: block; } .gcipanel { margin-top: 12px; } .phasestrip { overflow-x: auto; } }

/* Command card anatomy */
.pdeal { position: relative; }
.pgrip { position: absolute; top: 10px; right: 10px; color: var(--line); font-size: 13px; letter-spacing: -2px; line-height: 1; cursor: grab; user-select: none; }
.pdeal:hover .pgrip { color: var(--muted); }
.pfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line); gap: 8px; }
.mailpill { font-size: 10.5px; color: var(--muted); }
.mailpill b { color: #8A5A00; font-weight: 600; }
.mailpill.on b { color: var(--ok); }
.taskchip { font-size: 11px; border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--bg); }
.taskchip.alldone { color: var(--ok); border-color: var(--ok); }

/* closing this month, as the report table */
.closetable { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-top: 4px; }
.ct-head, .ct-row { display: grid; grid-template-columns: 2.2fr 0.7fr 1fr 1fr 1fr 1fr; gap: 10px; padding: 9px 13px; font-size: 12.5px; align-items: baseline; }
.ct-head { background: var(--teal-deep); color: #E7EEED; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.ct-row { border-top: 1px solid var(--line); }
.ct-row .num { font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .ct-head { display: none; } .ct-row { grid-template-columns: 1fr 1fr; } }

/* stage tasks + digest + closing strip */
.ptasks { font-size: 11.5px; color: var(--muted); margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.ptasks.alldone { color: var(--ok); }
.drawertag { margin: 16px 0 8px; }
.tasklist { margin-bottom: 4px; }
.taskline { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; cursor: pointer; }
.taskline:last-child { border-bottom: 0; }
.taskline input { margin-top: 2px; accent-color: var(--teal); }
.digest { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.digestline { font-size: 12.5px; padding: 5px 0 5px 16px; position: relative; border-bottom: 1px solid var(--line); }
.digestline:last-of-type { border-bottom: 0; }
.digestline::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-size: 11px; }
.closingstrip { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--card); }
.closingrow { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.closingrow:last-of-type { border-bottom: 0; }
.cr-addr { flex: 1; font-weight: 600; }
.cr-when { color: var(--muted); font-size: 12px; }
.cr-price, .cr-comm { font-variant-numeric: tabular-nums; }
.cr-comm { color: var(--muted); font-size: 12px; }
@media (max-width: 720px) { .closingrow { flex-wrap: wrap; gap: 6px 14px; } }

/* stage-weighted money: the board states what it is probably worth */
.pipeprob { font-size: 13px; color: var(--muted); margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.pipeprob b { color: var(--ink); font-variant-numeric: tabular-nums; }
.stageprob { font-size: 12px; color: var(--muted); margin: -4px 0 10px; font-variant-numeric: tabular-nums; }
.stageprob b { color: var(--ink); }

/* comp finder: the appraiser's path with the rejects left on the page */
.cffilters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fchip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; color: var(--muted); background: var(--card); }
.fchip b { color: var(--ink); font-weight: 600; }
button.fchip { cursor: pointer; }
button.fchip:hover { border-color: var(--teal); color: var(--ink); }
.cfrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.cfrow:hover .cft strong { color: var(--teal); }
.cfrow.out { opacity: 0.62; }
.cfrow.out:hover { opacity: 0.85; }
.rejectline { font-size: 13px; color: #8A5A00; background: #FFF6E8; border: 1px solid var(--warn); border-radius: 8px; padding: 9px 12px; margin: 12px 0 0; }
.modalchips { margin-top: 10px; }
.cfbody { flex: 1; min-width: 0; }
.cft { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cft .cfprice { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.cfmeta { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.cfchips { display: flex; flex-wrap: wrap; gap: 6px; }
.truth { display: inline-block; border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; font-size: 11.5px; color: var(--muted); background: var(--bg); }
.truth.warn { border-color: var(--warn); color: #8A5A00; background: #FFF6E8; }
.truth.why { border-style: dashed; }
.cfact { flex: 0 0 auto; padding-top: 2px; }

/* comp detail: the case for and against, side by side */
.ccomp.openable { cursor: pointer; }
.ccomp.openable:hover { border-color: var(--teal); }
.detailphoto { margin: -4px 0 14px; height: 210px; overflow: hidden; border-radius: 10px; }
.detailphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detailrow { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.detailmain { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 18px; margin-bottom: 2px; }
.detailmain .cprice { font-variant-numeric: tabular-nums; font-weight: 600; }
.fitcols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 4px; }
@media (max-width: 640px) { .fitcols { grid-template-columns: 1fr; } }
.fitline { font-size: 13px; line-height: 1.45; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--line); position: relative; }
.fitline:last-child { border-bottom: 0; }
.fitline::before { position: absolute; left: 0; top: 7px; font-size: 12px; }
.fitline.yes::before { content: "+"; color: var(--ok); font-weight: 700; }
.fitline.no::before { content: "\2013"; color: #8A5A00; font-weight: 700; }

/* present: the seller's pick */
body.stage .ccomp[role="button"] { cursor: pointer; }
body.stage .ccomp.picked { background: rgba(255, 255, 255, 0.08); border-bottom-color: var(--yellow); }
body.stage .ccomp.picked .crole::after { content: " · their pick"; color: var(--yellow); text-transform: none; letter-spacing: 0.02em; }
body.stage .range .cdot.picked { width: 16px; height: 16px; top: 21px; border-color: var(--yellow); border-width: 3px; }
.pickline { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #EFE9B6; }
.stagehint { display: none; }
body.stage .stagehint { display: block; font-size: 13.5px; letter-spacing: 0.04em; color: #8CA4A6; margin: -8px 0 10px; }

/* pipeline v2: sellers/buyers boards, grouped rows, draggable cards.
   Leads live on the page ground; the market group sits in its own tinted zone. */
.pipegroup { margin-bottom: 30px; }
.pipegroup-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px 2px; }
.pipegroup-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.pipegroup-desc { font-size: 12.5px; color: var(--muted); }
.pipegroup-n { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pipegroup.market .pipeline { background: #F1F2F1; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 0; }
html[data-brand="bsreg"] .pipegroup.market .pipeline { background: #EFEFEF; }
.pipeline.cols2 { grid-template-columns: repeat(2, 1fr); }
.pipeline.cols3 { grid-template-columns: repeat(3, 1fr); }
.pdeal { cursor: grab; touch-action: none; }
.pdeal.haspic { display: flex; gap: 10px; align-items: flex-start; }
.pdeal .pthumb { flex: 0 0 46px; }
.pdeal .pthumb img { width: 46px; height: 46px; object-fit: cover; border-radius: 7px; display: block; }
.pdeal .pbody2 { min-width: 0; }
.pdeal.plift { opacity: 0.35; }
.modelfit { margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.modelfit.good { color: var(--ok); }
.pghost { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -50%) scale(1.02); box-shadow: 0 14px 34px rgba(2, 14, 18, 0.22); opacity: 0.95; }
.stage.drop { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--bg); }
@media (max-width: 1000px) {
  .pipeline.cols2, .pipeline.cols3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .pipeline.cols2, .pipeline.cols3 { grid-template-columns: 1fr; }
}

/* ---------- present stage: full-screen takeover (8/31) ---------- */

body.stage { background: #0B0B0C; }
body.stage .ribbon, body.stage .sidebar, body.stage .pagehead, body.stage .tabs.pbmode,
body.stage .wrap > h1, body.stage .wrap > .sub { display: none; }
body.stage .app { display: block; }
body.stage .main { padding: 0; }
body.stage .wrap { max-width: 1040px; margin: 0 auto; padding: 64px 44px 130px; min-height: 100vh; }

body.stage .pb-sec { display: none; }
body.stage .pb-sec.on { display: block; animation: stepin 340ms cubic-bezier(0.2, 0.7, 0.3, 1); }
/* opacity only: a transform here would re-anchor the fixed ghost numeral to the
   animating section and make it jump on every step change */
@keyframes stepin { from { opacity: 0; } to { opacity: 1; } }

/* cover: full-bleed photo, gradient scrim, text lock bottom-left (BSREG doc system) */
.stage-cover { position: fixed; inset: 0; z-index: 1; }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cover-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0.42)); }
.cover-mark { position: absolute; top: 34px; right: 42px; height: 84px; width: auto; }
.cover-lock { position: absolute; left: 6vw; bottom: 15vh; max-width: 58vw; color: #fff; }
.cover-lock h2 { font-size: clamp(44px, 6.2vw, 88px); font-weight: 300; line-height: 1.02; margin: 0 0 12px; letter-spacing: 0.005em; }
.cover-rule { width: 62px; height: 2px; background: rgba(255, 255, 255, 0.85); margin: 20px 0 16px; }
.stage-folio { display: none; }
body.stage:not(.onhero) .stage-folio { display: block; position: fixed; top: 22px; left: 30px; height: 36px; width: auto; opacity: 1; z-index: 45; }

/* ghost numeral: the sanctioned giant-type technique, adapted to dark */
/* clamped to the viewport so it can never crop; parent must stay transform-free
   or fixed positioning re-anchors and the numeral drifts on step changes */
.ghostnum { display: none; position: fixed; top: 40px; right: 56px; font-weight: 300; font-size: clamp(110px, 14vw, 190px); line-height: 1; color: rgba(255, 255, 255, 0.045); pointer-events: none; user-select: none; z-index: 0; }
body.stage .pb-sec.on .ghostnum { display: block; }

/* content occupies a column, not the screen */
body.stage .pbmain .pb-sec { position: relative; z-index: 1; }
body.stage #compsec, body.stage #bandsec, body.stage #closesec { max-width: 880px; margin-left: 0; padding-top: 9vh; }

/* prep cockpit: sticky rail beside the working sections */
.pbcols { display: flex; gap: 20px; align-items: flex-start; }
.pbmain { flex: 1; min-width: 0; }
.preprail { flex: 0 0 262px; position: sticky; top: 70px; display: flex; flex-direction: column; gap: 12px; }
.railcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px 14px; }
.railcard .mtag { margin-bottom: 8px; }
.runlist { margin: 0 0 12px; padding-left: 18px; font-size: 13px; }
.runlist li { margin: 3px 0; }
.railsay { font-size: 13px; line-height: 1.55; color: #33474D; margin: 0; }
.railrole { font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.railrole:last-of-type { padding-bottom: 0; border-bottom: 0; }
.railrole b { display: block; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
#prepnotes { width: 100%; min-height: 92px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 9px; font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; background: var(--bg); color: var(--ink); }
#prepnotes:focus { outline: none; border-color: var(--teal); }
body.present .pbcols { display: block; }
@media (max-width: 1080px) {
  .pbcols { display: block; }
  .preprail { position: static; margin-bottom: 16px; }
}
.stage-eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); margin: 0 0 16px; font-weight: 500; }
.stage-hero h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 0 0 14px; font-weight: 600; letter-spacing: -0.01em; }
.stage-meta { font-size: 16px; font-style: italic; color: rgba(255, 255, 255, 0.85); margin: 0; }
.stage-for { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); margin: 0; }

/* comps on stage: the BSREG ruled table — hairlines, no boxes */
body.stage #compsec .compcards { display: block; border-top: 1px solid rgba(255, 255, 255, 0.62); margin-top: 6px; }
/* 18px side padding, not 2px: content ending exactly where a hairline ends
   reads as a CROP of a wider table (Daniel, 2026-08-31 screenshot). A rule
   that visibly runs past its content reads as deliberate structure. */
body.stage .ccomp { background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; padding: 17px 18px 15px; }
body.stage .ccomp .crole { color: rgba(255, 255, 255, 0.6) !important; }
body.stage .ccomp .cmain strong { font-weight: 400; font-size: 20px; }
body.stage .ccomp .cprice { font-size: 21px; color: var(--yellow); font-variant-numeric: tabular-nums; }
body.stage .ccomp .cmeta { display: none; }
html[data-brand="bsreg"] body.stage .ccomp .cmain strong,
html[data-brand="bsreg"] body.stage .ccomp .cprice { font-family: "Fraunces", Georgia, serif; font-weight: 300; }

/* the reveal beat: band draws in once when its step lands */
body.stage #bandsec.on .range .band { animation: bandreveal 480ms cubic-bezier(0.2, 0.7, 0.3, 1); transform-origin: left center; }
@keyframes bandreveal { from { transform: scaleX(0); } }

#stagecount { font-size: 11.5px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; margin-right: 10px; align-self: center; }
body.stage .card-head h2 { font-weight: 300; font-size: 32px; }
@media (prefers-reduced-motion: reduce) { body.stage #bandsec.on .range .band { animation: none; } }

/* de-box the stage: the room is hairlines and air, not panels (BSREG rule) */
body.stage #bandsec.card, body.stage #closesec .card { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
body.stage #closesec .card { margin-bottom: 34px; }
body.stage .card-head { margin-bottom: 18px; }
body.stage .card-head h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--yellow); margin-top: 12px; }
body.stage .bandline { background: transparent; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; padding: 14px 2px 0; margin-top: 18px; font-size: 15px; }
body.stage .bandline.over { background: transparent; border-top-color: rgba(200, 82, 76, 0.55); }
body.stage .range .scale { margin-top: 40px; }
body.stage .range .ends { letter-spacing: 0.04em; }
body.stage #closesec .card.tint { background: transparent; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 22px; }
body.stage .net-final { border-top: 1px solid rgba(255, 255, 255, 0.62); }
body.stage .net-final strong { font-size: 34px; }
html[data-brand="bsreg"] body.stage .net-final strong { font-family: "Fraunces", Georgia, serif; font-weight: 300; }

/* steps center vertically; each screen is one idea with air around it */
body.stage .pbmain .pb-sec.on:not(#stage-hero) { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 70px); padding: 0 0 90px; }

.cover-hint { margin-top: 26px; font-size: 11px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.45); }

/* pricing room dashboard */
.crumb { display: inline-block; font-size: 12.5px; color: var(--muted); text-decoration: none; margin-bottom: 6px; }
.crumb:hover { color: var(--ink); }
.roomhero { background: linear-gradient(120deg, var(--teal-deep), #0A3441); border-radius: 12px; padding: 22px 24px 18px; margin-bottom: 30px; }
html[data-brand="bsreg"] .roomhero { background: #0B0B0B; }
.rh-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
html[data-brand="bsreg"] .rh-label { color: rgba(255, 255, 255, 0.92); }
.search-row.roomstart { margin-bottom: 0; }
.search-row.roomstart .field { flex: 1; font-size: 16px; padding: 14px 16px; border: 0; }
.btn.rh-go { background: #FFFFFF; color: var(--teal-deep); font-weight: 600; padding-left: 22px; padding-right: 22px; }
.rh-sub { color: rgba(255, 255, 255, 0.6); font-size: 12.5px; margin-top: 11px; }
.rh-title { color: #FFFFFF; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; max-width: 34ch; text-wrap: balance; }
.rh-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.rh-path { color: rgba(255, 255, 255, 0.62); font-size: 12.5px; line-height: 1.5; }
.rh-path b { display: block; color: rgba(255, 255, 255, 0.95); font-weight: 600; font-size: 12.5px; margin-bottom: 1px; }
@media (max-width: 720px) { .rh-paths { grid-template-columns: 1fr; } }

/* up-next photo + earlier conversations */
.upnext-photo { flex: 0 0 236px; margin: -22px 0 -22px -24px; border-radius: var(--radius) 0 0 var(--radius); overflow: hidden; }
.upnext-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.storylist { display: flex; flex-direction: column; gap: 8px; }
.storyrow { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; }
.storyrow:hover { border-color: var(--teal); }
.storyrow img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; }
.storyrow .sr-body { flex: 1; min-width: 0; }
.storyrow .t { font-weight: 600; font-size: 14px; }
.storyrow .d { font-size: 12.5px; color: var(--muted); }
.storyrow.unstarted { opacity: 0.65; border-style: dashed; }

/* market-moved reprompt: active listings priced over a month ago */
.restale { border: 1px solid var(--warn); background: #FFF9EF; border-radius: 10px; padding: 4px 14px 12px; }
.rs-sub { font-size: 12.5px; color: #8A5A00; padding: 10px 0 4px; margin: 0; }
.rs-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(180, 83, 9, 0.14); }
.rs-row .t { font-weight: 600; font-size: 14px; }
.rs-row .d { font-size: 12.5px; color: var(--muted); }
.rs-body { flex: 1; min-width: 0; }
.rs-refresh { flex: 0 0 auto; }

/* general coach panel: the Monday read across the book */
.cmove { display: block; width: 100%; text-align: left; border: 1px solid var(--warn); background: #FFF9EF; border-radius: 10px; padding: 11px 13px; margin: 12px 0 4px; font: inherit; font-size: 13px; line-height: 1.45; color: #8A5A00; cursor: pointer; }
.cmove b { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; color: #B45309; }
.cmove:hover { border-color: #B45309; }
.cportfolio { display: flex; flex-direction: column; margin-top: 10px; }
.cprow { display: block; padding: 9px 2px 9px 14px; border-top: 1px solid var(--line); text-decoration: none; position: relative; }
.cprow::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.cprow.attn::before { background: var(--warn); }
.cprow.watch::before { background: var(--muted); }
.cprow b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cprow span { font-size: 12.5px; color: var(--muted); }
.cprow:hover b { color: var(--teal); }
.cfoot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin: 10px 0 0; }
.storyrow.unstarted:hover { opacity: 1; border-color: var(--teal); }
@media (max-width: 900px) {
  .upnext-photo { display: none; }
}

/* comp photos + lock */
.cphoto { position: relative; margin: -14px -16px 6px; height: 126px; overflow: hidden; border-radius: 12px 12px 0 0; }
.cphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cremove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(2, 14, 18, 0.72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.cremove:hover { background: var(--bad); }
button.lockbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 0; cursor: pointer; color: var(--muted); }
.lockicon { display: block; }
span.src .lockicon { display: inline; width: 12px; height: 12px; vertical-align: -1.5px; margin-right: 5px; }
button.lockbtn:hover { border-color: var(--teal); color: var(--ink); }
button.lockbtn.unlocked { border-color: var(--warn); color: #8A5A00; background: #FFF6E8; }
body.stage .cphoto { grid-row: 1 / span 3; width: 96px; height: 68px; margin: 0; border-radius: 6px; }
body.stage .ccomp.hasphoto { display: grid; grid-template-columns: 96px 1fr; column-gap: 18px; align-items: start; }
body.stage .ccomp.hasphoto .ctop, body.stage .ccomp.hasphoto .cmain, body.stage .ccomp.hasphoto .clead, body.stage .ccomp.hasphoto .ccoach { grid-column: 2; }

body.stage .card { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.12); color: #E7EEED; }
body.stage .card-head h2 { color: #F2F5F4; font-size: 24px; }
body.stage .src, body.stage .note, body.stage .sub { color: #8CA4A6; }
body.stage .src b { color: #E7EEED; }
body.stage .card.tint { background: rgba(232, 227, 110, 0.07); }

body.stage .ccomp { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.12); }
body.stage .ccomp .crole { color: var(--yellow); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
body.stage .ccomp strong, body.stage .ccomp .cprice { color: #F2F5F4; }
body.stage .ccomp .clead, body.stage .ccomp .cmeta, body.stage .ccomp .cwhen { color: #9DB2B4; }

body.stage .range .track { background: rgba(255, 255, 255, 0.16); }
body.stage .range .band { background: #5E7F88; }
body.stage .range .mark { background: #C8D6D4; }
body.stage .range .mark.drag { background: var(--yellow); }
body.stage .range .tag:not(.drag) { color: #E7EEED; }
body.stage .range .tag:not(.drag) small { color: #8CA4A6; }
body.stage .range .ends { color: #8CA4A6; }
body.stage .range .cdot { background: var(--teal-deep); border-color: #C8D6D4; }
body.stage .bandline { background: transparent; border-color: transparent; color: #D9E3E1; }
body.stage .bandline.over { border-color: rgba(232, 227, 110, 0.5); background: rgba(232, 227, 110, 0.08); color: #EFE9B6; }

body.stage .metric { border-color: rgba(255, 255, 255, 0.1); padding: 13px 0; font-size: 15px; }
body.stage .metric span { color: #9DB2B4; }
body.stage .metric .v { color: #E7EEED; }
body.stage .net-final { border-color: rgba(255, 255, 255, 0.18); }
body.stage .net-final span { color: #C6D2D0; }
body.stage .net-final strong { color: var(--yellow); font-size: 24px; }
body.stage .linkbtn { color: var(--yellow); }

body.stage .btn.ghost { border-color: rgba(255, 255, 255, 0.25); color: #E7EEED; background: transparent; }
body.stage .btn.dark { background: #FFFFFF; color: #111111; } /* red is never a field */

.stagebar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; background: rgba(2, 14, 18, 0.82); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, 0.08); z-index: 40; }
#stagedots { display: flex; gap: 8px; position: absolute; left: 50%; transform: translateX(-50%); }
#stagedots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: background 160ms, transform 160ms; }
#stagedots i.on { background: var(--yellow); transform: scale(1.25); }
.stagebtns { display: flex; gap: 10px; }
#stageback:disabled { opacity: 0.35; cursor: default; }

.stagewipe { position: fixed; inset: 0; background: var(--teal-deep); z-index: 80; animation: wipein 420ms cubic-bezier(0.6, 0, 0.2, 1); }
.stagewipe.out { opacity: 0; transition: opacity 420ms ease; }
@keyframes wipein { from { transform: translateY(100%); } to { transform: none; } }

.stagepeek { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 90vw); background: #0A2830; border-left: 1px solid rgba(255, 255, 255, 0.14); padding: 26px 24px 90px; overflow-y: auto; z-index: 50; color: #E7EEED; box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35); animation: peekin 220ms ease-out; }
@keyframes peekin { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.stagepeek .mtag { color: var(--yellow); margin-bottom: 14px; }
.peek-open { font-size: 14.5px; line-height: 1.6; color: #D9E3E1; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 16px; margin: 0 0 14px; }
.peek-row { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; }
.peek-row strong { display: block; color: #F2F5F4; margin-bottom: 4px; }
.peek-row span { color: #9DB2B4; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  body.stage .pb-sec.on, .stagewipe, .stagepeek { animation: none; }
}

/* ---------- brand layer (8/31): BSREG = the uploaded-collateral example.
   One attribute flips every token; nothing else in the sheet knows a brand. */

html[data-brand="bsreg"] {
  --teal: #111111;
  --teal-deep: #0B0B0B;
  --logo: #A61D21;
  --ink: #111111;
  --muted: #6E6E6E;
  --bg: #F2F2F2;
  --card: #FFFFFF;
  --line: #E2E2E2;
  --yellow: #A61D21;
  --yellow-ink: #FFFFFF;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html[data-brand="bsreg"] h1,
html[data-brand="bsreg"] .card-head h2,
html[data-brand="bsreg"] .cover-lock h2,
html[data-brand="bsreg"] .ghostnum,
html[data-brand="bsreg"] .upnext-addr,
html[data-brand="bsreg"] .case h1 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
}

html[data-brand="bsreg"] .brand.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  letter-spacing: 0.12em;
}

/* on the dark stage, red lifts to wine for legibility (brand memory); small accents only */
html[data-brand="bsreg"] body.stage { background: #0B0B0C; --yellow: #C8524C; }

/* Stairtop's cream accents are hardcoded; BSREG allows no beige (brand rule) */
html[data-brand="bsreg"] .ccomp.quote { background: rgba(166, 29, 33, 0.045); border-color: rgba(166, 29, 33, 0.3); }
html[data-brand="bsreg"] .ccomp.quote .crole { color: #A61D21; }
/* on stage the quote row sits in the same ruled table as its siblings; the role label alone carries the flag */
html[data-brand="bsreg"] body.stage .ccomp.quote { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.12); }
html[data-brand="bsreg"] body.stage .ccomp.quote .crole { color: var(--yellow); }
html[data-brand="bsreg"] .bandline.over { background: rgba(166, 29, 33, 0.06); border-color: rgba(166, 29, 33, 0.4); color: var(--ink); }
html[data-brand="bsreg"] body.stage .bandline.over { background: rgba(166, 29, 33, 0.14); border-color: rgba(166, 29, 33, 0.55); color: #F2D9DA; }
html[data-brand="bsreg"] .card.tint { background: rgba(166, 29, 33, 0.04); }
html[data-brand="bsreg"] body.stage .card.tint { background: rgba(166, 29, 33, 0.1); }

/* pricing rooms list: one hero room, ghosts below */
.upnext-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px 2px; }
.card.upnext { display: flex; gap: 28px; padding: 22px 24px; }
.upnext-main { flex: 1; min-width: 0; }
.upnext-side { flex: 0 0 250px; border-left: 1px solid var(--line); padding-left: 22px; }
.upnext-chips { display: flex; gap: 8px; margin-bottom: 10px; }
.upnext-addr { margin: 0 0 4px; font-size: 24px; }
.upnext-meta { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.miniband { position: relative; height: 14px; margin: 0 0 14px; }
.mb-track { position: absolute; left: 0; right: 0; top: 6px; height: 3px; border-radius: 2px; background: var(--line); }
.mb-band { position: absolute; top: 6px; height: 3px; border-radius: 2px; background: #8FA9B0; }
.mb-dot { position: absolute; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--card); box-shadow: 0 1px 4px rgba(2, 14, 18, 0.3); transform: translateX(-50%); }
.digest { display: flex; gap: 26px; margin: 0 0 18px; flex-wrap: wrap; }
.dg small { display: block; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.dg b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.upnext-actions { margin: 0; }
.card.upnext:hover { border-color: var(--teal); }
.pbcard.ghost { opacity: 0.72; }
.pbcard.ghost:hover { opacity: 1; }
@media (max-width: 900px) {
  .card.upnext { display: block; }
  .upnext-side { border-left: 0; padding-left: 0; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
}

/* brand.html: the upload concept */
.branddrop {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  background: var(--card);
  transition: border-color 160ms;
}
.branddrop:hover { border-color: var(--teal); color: var(--ink); }
.branddrop.busy { border-style: solid; color: var(--ink); animation: pulse 1.1s ease-in-out infinite; }
.branddrop.ok { border-style: solid; border-color: var(--ok); color: var(--ink); animation: none; }
@keyframes pulse { 50% { opacity: 0.55; } }
#brandlog { margin: 18px 0 0; }
.brandline-item { padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); animation: stepin 240ms ease-out; }
#branddone { display: none; margin-top: 22px; }
#branddone.show { display: block; animation: stepin 300ms ease-out; }

/* ---------- pipeline board page ---------- */

.board .stage { padding-bottom: 16px; }

.pdeal {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  margin-top: 10px;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 120ms ease;
}
.pdeal:hover { border-color: var(--teal); }
.pdeal .t { font-size: 13.5px; font-weight: 600; }
.pdeal .d { font-size: 12px; color: var(--muted); margin: 1px 0 6px; }
.pdeal .n2 { font-size: 12px; line-height: 1.45; color: #33474D; }

/* ---------- copied pages (playbooks list, coach, buyers, listings, account, pulse) ---------- */

.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.pagehead h1 { margin: 0 0 4px; }
.pagehead .sub { margin: 0; }
.pagehead .actions { display: flex; gap: 10px; flex: 0 0 auto; }

.cardgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.pbcard {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  transition: border-color 120ms ease;
}
.pbcard:hover { border-color: var(--teal); }
.pbcard svg { color: #8A8340; flex: 0 0 auto; }
.pbcard .t { font-weight: 600; font-size: 15px; }
.pbcard .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.pbcard.new {
  justify-content: center;
  background: var(--bg);
  border-style: dashed;
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  min-height: 64px;
  cursor: pointer;
}

.hero {
  background: linear-gradient(120deg, var(--teal-deep), #0A3441);
  border-radius: 14px;
  color: #E8EEF0;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 32px; line-height: 1.15; }
.hero .sub { color: #B9CDD3; font-size: 15px; }
.hero .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 16px;
}
.hero .search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 9px;
  padding: 0 14px;
  height: 48px;
  color: var(--muted);
  font-size: 14.5px;
}
.hero .search-box input { flex: 1; border: 0; outline: none; font: inherit; color: var(--ink); background: none; }
.hero .hint { font-size: 12.5px; color: #8FA9B0; margin-top: 8px; }

.coach-preview {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.coach-preview .eyebrow { margin-bottom: 2px; }
.coach-preview .rec { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.coach-preview .hl {
  background: rgba(232, 227, 110, 0.25);
  border: 1px solid rgba(232, 227, 110, 0.8);
  border-radius: 9px;
  padding: 11px 13px;
  margin-bottom: 12px;
}
.coach-preview .hl .t { font-weight: 600; font-size: 13.5px; }
.coach-preview .hl .d { font-size: 12px; color: var(--muted); }
.coach-preview .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.coach-preview .cell { background: #F4F6F6; border-radius: 8px; padding: 9px 12px; }
.coach-preview .cell small { display: block; font-size: 10.5px; color: var(--muted); }
.coach-preview .cell b { font-size: 13.5px; }

.empty {
  text-align: center;
  padding: 60px 20px 70px;
}
.empty .chip {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  background: var(--card);
}
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }
.empty .search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 9px;
  padding: 0 14px;
  height: 46px;
  color: var(--muted);
}
.empty .search-box input { flex: 1; border: 0; outline: none; font: inherit; background: none; color: var(--ink); }

.filterbar {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  outline: none;
  margin-bottom: 14px;
}
.filterbar::placeholder { color: var(--muted); }

.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.formgrid label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.formgrid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 42px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.formgrid input:focus { border-color: var(--teal); }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #C2185B;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
}

.upload {
  border: 1px dashed var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  padding: 26px 16px;
  cursor: pointer;
  background: var(--bg);
}
.upload:hover { border-color: var(--teal); color: var(--ink); }

.feature-tile .icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 30px 26px; }
  .cardgrid { grid-template-columns: 1fr; }
  .formgrid { grid-template-columns: 1fr; }
}

/* ---------- seller one-pager ---------- */

.onepage {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 22px 60px;
}
.onepage .card { margin-bottom: 14px; }
.onepage h1 { font-size: 24px; }
.onepage .brandline { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; margin-bottom: 26px; color: var(--teal); }
.onepage .agentline { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--muted); }

@media print {
  .ribbon, .toast, .noprint { display: none !important; }
  body { background: #fff; }
  .onepage { padding: 0; max-width: none; }
  .card { border: 1px solid #ddd; break-inside: avoid; }
}

@media (max-width: 720px) {
  .app { display: block; }
  .sidebar { width: auto; flex: none; flex-direction: row; overflow-x: auto; gap: 6px; padding: 10px 12px; }
  .sidebar .nav-label, .sidebar .foot, .nav-item .count { display: none; }
  .brand { padding: 0 8px 0 4px; font-size: 16px; }
  .nav-item { white-space: nowrap; font-size: 13.5px; padding: 8px 11px; }
  .main { padding: 20px 16px 56px; }
  .pipeline { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; gap: 8px 12px; }
  .row .body { flex: 1 1 100%; }
  .row .btn { margin-left: auto; }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-row .field { width: 100%; }
  .search-row .btn { width: 100%; text-align: center; }
  .range .scale { margin-bottom: 52px; }
  .range .tag { font-size: 10.5px; }
  h1 { font-size: 23px; }
  .case { padding: 34px 18px 70px; }
  .case h1 { font-size: 27px; }
}

/* ---------- minimal home (Daniel, 8/28: bar mid-page, little else) ----------
   Plain light page, no panel. .focus centers the greeting + bar vertically. */

.home-min { display: flex; flex-direction: column; }

.home-min .focus {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48vh;
  text-align: center;
}

.home-min .focus h1 { margin-bottom: 22px; }

.home-min .focus .search { margin-bottom: 0; text-align: left; }

.home-min .focus .tabs { justify-content: center; }

.home-min .focus .search-hint { text-align: center; }

.home-min .below { width: 100%; max-width: 760px; margin-top: 36px; }

/* ---------- listing photo cards + Listing Coach (Daniel, 8/28) ---------- */

.lgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.lcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}

.lcard:hover { box-shadow: 0 6px 20px rgba(2, 14, 18, 0.09); transform: translateY(-1px); }

.lphoto { position: relative; aspect-ratio: 3 / 2; background: #E8ECEC; }

.lphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lphoto .pill.float {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(251, 251, 249, 0.94);
}

.lbody { padding: 14px 16px 16px; }

.laddr { font-weight: 600; font-size: 15px; display: flex; align-items: baseline; gap: 8px; }

.lcity { font-weight: 400; font-size: 12.5px; color: var(--muted); }

.lmeta {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--muted);
  margin: 5px 0 12px;
}

.lmeta strong { font-size: 14px; color: var(--ink); font-weight: 600; }

.coach-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
}

.coach-note p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink); }

.coach-note .cv {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 2px 8px;
  margin-top: 1px;
  background: var(--card);
}

.coach-note.attn .cv { color: #8A5A00; border-color: #E8CE8E; background: #FBF3DC; }

.coach-note.ok .cv { color: #1E6B4C; border-color: #BFDCCE; background: #E9F4EE; }

.coach-pill {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 9999px;
  padding: 12px 20px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 14, 18, 0.22);
}

.coach-pill:hover { transform: translateY(-1px); }

.coach-panel {
  position: fixed;
  right: 26px;
  bottom: 78px;
  z-index: 59;
  width: min(400px, calc(100vw - 52px));
  max-height: min(600px, calc(100vh - 130px));
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(2, 14, 18, 0.22);
  padding: 16px 18px 18px;
  display: none;
}

.coach-panel.open { display: block; }

.coach-panel h3 { margin: 0 0 2px; font-size: 15px; }

.coach-panel .csub { font-size: 12px; color: var(--muted); margin: 0 0 12px; }

.coach-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.coach-chips button {
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  border-radius: 9999px;
  padding: 5px 11px;
  cursor: pointer;
}

.coach-chips button[aria-selected="true"] { background: var(--teal-deep, #05242E); color: #fff; border-color: var(--teal-deep, #05242E); }

.cvitals { border-top: 1px solid var(--line); }

.cvital {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.cvital .verdict { font-weight: 600; font-size: 12.5px; }

.cvital.ok .verdict { color: #1E6B4C; }

.cvital.attn .verdict { color: #8A5A00; }

.cfact {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}

.crec { font-size: 13px; line-height: 1.5; margin: 0 0 12px; }

.crec strong { font-weight: 600; }

.coach-panel .btn { width: 100%; justify-content: center; display: inline-flex; }

/* ---------- interior listing page (Daniel, 8/28) ---------- */

.backlink {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 14px;
}

.backlink:hover { color: var(--ink); }

.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.pagehead .sub strong { color: var(--ink); font-size: 16px; font-weight: 600; }

.ldgrid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  align-items: start;
}

.lphoto.big { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }

.lstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0 18px;
}

.lstat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lstat .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

.lstat span:not(.v) { font-size: 11.5px; color: var(--muted); }

.row .when { flex: 0 0 auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.coach-card .csub { margin-bottom: 10px; }

.coach-card .btn { margin-top: 2px; }

.reprice-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.reprice-price span { font-size: 13px; color: var(--muted); }

.reprice-price strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .ldgrid { grid-template-columns: 1fr; }
  .lstats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- market timeline (design pass, 8/28) ---------- */

.card-head .mkscope { font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }

.mtimeline { position: relative; padding: 2px 0 0 3px; }

.mtimeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

.mline { position: relative; display: flex; gap: 16px; padding: 9px 0 13px; }

.mline:last-child { padding-bottom: 2px; }

.mdot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--muted);
  box-shadow: 0 0 0 3px var(--card);
}

.mline.move .mdot { background: var(--warn); }
.mline.new .mdot { background: var(--teal); box-shadow: 0 0 0 2px var(--yellow), 0 0 0 5px var(--card); }
.mline.closed .mdot { background: var(--ok); }

.mbody { flex: 1; min-width: 0; }

.mtag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.mtag .mwhen { float: right; font-weight: 500; letter-spacing: 0.03em; }

.mt { font-size: 13.5px; line-height: 1.45; }

.mt strong { font-weight: 600; font-variant-numeric: tabular-nums; }

.md { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* ---------- coach cue: train the pill, keep the page lean ---------- */

.coach-cue { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.coach-cue .mtag { margin-bottom: 0; }

.coach-cue .cueline { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* ---------- the coach hands over the words ---------- */

.csay {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  margin: 0 0 12px;
}

.csay .mtag { margin-bottom: 4px; }

.csay p { margin: 0; font-size: 13px; line-height: 1.55; }

/* ---------- pill visibility pass (Daniel, 8/28) ---------- */

.coach-pill {
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  padding: 15px 26px;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(2, 14, 18, 0.35);
}

.coach-pill svg { color: var(--yellow); width: 18px; height: 18px; }

.coach-pill .pdot {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--warn);
  border: 2px solid var(--bg);
  animation: pdot-breathe 2.4s ease-in-out infinite;
}

@keyframes pdot-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .coach-pill .pdot { animation: none; }
}

/* ---------- pill docks top right (Daniel, 8/29: bottom corner read as afterthought) ---------- */

.coach-pill { top: 52px; bottom: auto; }

.coach-panel { top: 106px; bottom: auto; max-height: calc(100vh - 130px); }

/* ---------- playbook Prep / Present (Daniel, 8/29: teach the words, not just the data) ---------- */

body.present .prep-only { display: none !important; }

body:not(.present) .present-only { display: none !important; }

.pbmode {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  align-items: baseline;
}

.pbmode-hint { margin-left: auto; font-size: 12px; color: var(--muted); padding-bottom: 8px; }

.bandline .coachlabel { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.coachrows { margin-top: 9px; border-top: 1px dashed var(--line); padding-top: 8px; }
.crow { font-size: 13px; padding: 2px 0; color: var(--ink); }
.crow b { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 9px; }

.bandline {
  margin: 4px 0 0;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bandline.over { border-color: #E8CE8E; background: #FBF3DC; }

.compcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }

.ccomp {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ccomp.quote { background: #FBF9F0; border-color: #E4DCA9; }

.ctop { display: flex; justify-content: space-between; align-items: baseline; }

.crole {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ccomp.quote .crole { color: #8A5A00; }

.cwhen { font-size: 11.5px; color: var(--muted); }

.cmain { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

.cmain strong { font-size: 14.5px; }

.cprice { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.clead { margin: 0; font-size: 13px; line-height: 1.5; }

.cmeta { font-size: 11.5px; color: var(--muted); }

.ccoach {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
}

.cscore {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  font-size: 11.5px;
  color: var(--muted);
  border-radius: 9999px;
  padding: 3px 10px;
  cursor: pointer;
  margin-top: 2px;
}

.net-final {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 12px;
}

.net-final span { font-size: 13.5px; font-weight: 500; }

.net-final strong { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.linkbtn {
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 900px) {
  .compcards { grid-template-columns: 1fr; }
}

/* reprice coach tips + detail cue buttons */
.repricecoach { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.repricecoach p { font-size: 12.5px; line-height: 1.5; color: var(--ink); margin: 6px 0 0; padding-left: 14px; position: relative; }
.repricecoach p::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.cuerow { margin-top: 10px; }

/* agent-side sheet rows */
.agenttag { color: #8A5A00; }
.agrow { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; font-size: 12.5px; }
.agrow small { flex: 0 0 76px; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.agrow span { color: var(--ink); line-height: 1.45; }

/* ---------- quick estimate card (home) ---------- */

.btn.disabled { opacity: 0.45; cursor: not-allowed; }
.estcard { margin-bottom: 16px; }
.estnum { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 6px; }
.estnum b { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.estnum span { color: var(--muted); font-size: 14px; }
.eststrip { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; }
.estcomp { flex: 1 1 200px; min-width: 0; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--card); }
.estcomp img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.estcomp .b { min-width: 0; }
.estcomp strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.estcomp span { color: var(--muted); font-size: 12px; }

/* when a card is open below (quick estimate), the centered-greeting spacing
   collapses so the result sits right under the search */
.home-min.has-est .focus { min-height: 0; padding-top: 26px; }
.home-min.has-est .below { margin-top: 20px; }

/* stage mode: the comp price is typography, never the pipeline's boxed chip —
   .cprice's light box + stage's light text rendered invisible white pills */
body.stage .ccomp .cprice { border: 0; background: transparent; padding: 0; margin: 8px 0 2px; }
