:root {
  --gold: #C9A227; --gold-ink: #8a6d12; --gold-soft: #f7f0db; --gold-line: #e8d9a8;
  --side: #0c0c0b; --side-2: #181815; --side-text: #d9d6cd; --side-muted: #85817a; --side-line: #25241f;
  --bg: #f5f3ee; --card: #ffffff; --line: #e7e3da; --line-2: #d8d3c7;
  --text: #1b1a17; --muted: #6b675f; --faint: #9a958a;
  --good: #1f8a5a; --good-soft: #e3f3ea; --warn: #a86a0c; --warn-soft: #fbf0dc; --bad: #b8432f; --bad-soft: #f8e4df; --info: #2f63a8; --info-soft: #e5eef9;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-ink); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: 'Fraunces', Georgia, serif; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 50% 0%, #1c1b17 0, #0c0c0b 60%); }
.login-box { width: 100%; max-width: 380px; text-align: center; }
.login-box > img { height: 30px; margin: 0 auto 8px; display: block; }
.login-box .sub-brand { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 26px; }
.login-card { background: #fff; border-radius: 14px; padding: 26px 24px; text-align: left; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.login-card h1 { font-family: 'Fraunces', Georgia, serif; font-size: 24px; }
.login-card p.s { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.login-foot { color: #a29e94; font-size: 12.5px; margin-top: 18px; }
.login-foot button { background: none; border: 0; color: var(--gold); font-weight: 700; font-size: 12.5px; }

/* Shell */
.app { display: flex; min-height: 100vh; }
.side { width: 252px; flex-shrink: 0; background: var(--side); color: var(--side-text); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 14px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid var(--side-line); margin-bottom: 8px; }
.brand img { height: 24px; display: block; }
.brand span { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; border-left: 1px solid var(--side-line); padding-left: 10px; }
.nav-group { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--side-muted); padding: 16px 10px 6px; display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; font-weight: 600; text-align: left; }
.nav-group:hover { color: var(--side-text); }
.nav-group > span:first-child { display: flex; align-items: center; gap: 6px; }
.nav-group .chev { transition: transform .15s; opacity: .8; }
.nav-group.shut .chev { transform: rotate(-90deg); }
.nav-sec.shut { display: none; }
.nav-item { width: 100%; background: none; border: 0; color: var(--side-text); text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.nav-item:hover { background: var(--side-2); }
.nav-item.active { background: var(--side-2); color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.nav-item.locked { color: var(--side-muted); }
.nav-item .ico { width: 18px; text-align: center; color: var(--side-muted); font-size: 13px; flex-shrink: 0; }
.nav-item.active .ico { color: var(--gold); }
.nav-item .right { margin-left: auto; font-size: 11px; color: var(--side-muted); }
.nav-item .done { color: var(--gold); font-size: 12px; }
.badge { background: var(--gold); color: #111; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.side-user { margin-top: auto; border-top: 1px solid var(--side-line); padding: 14px 8px 4px; display: flex; gap: 10px; align-items: center; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #111; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.side-user strong { display: block; font-size: 12.5px; color: #fff; }
.side-user small { font-size: 11px; color: var(--side-muted); }
.logout { background: none; border: 0; color: var(--side-muted); font-size: 12px; padding: 8px; text-align: left; }
.logout:hover { color: #fff; }
main { flex: 1; min-width: 0; }
.topbar { display: none; }

.hero { background: var(--side); color: #fff; padding: 36px 44px 32px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -70px; width: 280px; height: 280px; border: 1px solid rgba(201,162,39,.25); border-radius: 50%; }
.hero::before { content: ''; position: absolute; right: 60px; bottom: -140px; width: 240px; height: 240px; border: 1px solid rgba(201,162,39,.14); border-radius: 50%; }
.hero .eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.hero h1 { font-family: 'Fraunces', Georgia, serif; font-size: 36px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; text-wrap: balance; max-width: 760px; }
.hero p { color: #c9c5bb; font-size: 14.5px; margin-top: 12px; max-width: 640px; line-height: 1.55; }
.hero .row { margin-top: 18px; position: relative; z-index: 1; }
.content { padding: 30px 44px 80px; max-width: 1120px; }

h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 14px; font-weight: 700; }
.sec-head { text-align: center; margin: 40px 0 18px; }
.sec-head:first-child { margin-top: 0; }
.sec-head .k { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.sec-head h2 { font-family: 'Fraunces', Georgia, serif; font-size: 26px; margin: 6px 0 4px; }
.sec-head p { color: var(--muted); font-size: 13.5px; }
.left-head { margin: 30px 0 14px; }
.left-head h2 { font-family: 'Fraunces', Georgia, serif; font-size: 22px; margin: 0; }
.left-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.sub { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.spacer { height: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
p.body { font-size: 14px; color: #3a3833; line-height: 1.65; }
.eyebrow-sm { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }

.btn { background: var(--text); color: #fff; border: 0; border-radius: 9px; padding: 10px 16px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: #000; }
.btn.gold { background: var(--gold); color: #111; }
.btn.gold:hover { filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn.wa { background: #1f9d55; color: #fff; }
.btn.wa:hover { background: #188a49; }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn.block { width: 100%; justify-content: center; padding: 12px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: #f0ede6; color: var(--muted); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.info { background: var(--info-soft); color: var(--info); }

.bar { height: 8px; background: #ece8de; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .3s; }

/* Banners */
.unlock { background: var(--side); color: #fff; border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid #2b2a24; }
.unlock .crown { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.unlock .k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.unlock h3 { font-family: 'Fraunces', Georgia, serif; font-size: 19px; margin: 2px 0; }
.unlock p { font-size: 12.5px; color: #b9b5ab; }
.unlock.locked { background: #fff; color: var(--text); border: 1px dashed var(--line-2); }
.unlock.locked .crown { border-color: var(--line-2); color: var(--faint); }
.unlock.locked p { color: var(--muted); }
.banner { border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: var(--radius); padding: 12px 16px; font-size: 13px; line-height: 1.5; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.info-box { background: #faf8f3; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.55; color: #3a3833; }
.dark-strip { background: var(--side); color: #fff; border-radius: var(--radius); padding: 16px 20px; text-align: center; font-weight: 600; font-size: 14px; }
.dark-strip span { color: var(--gold); }

/* Welcome */
.step-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.step-card:hover { border-color: var(--gold); }
.step-card.next { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.14); }
.step-card .top { display: flex; justify-content: space-between; align-items: center; }
.step-card .n { width: 26px; height: 26px; border-radius: 50%; background: var(--side); color: var(--gold); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.step-card .t { font-family: 'Fraunces', Georgia, serif; font-size: 15.5px; font-weight: 700; color: var(--text); margin-top: 6px; }
.step-card .m { font-size: 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: left; display: flex; gap: 12px; align-items: flex-start; }
.tile:hover { border-color: var(--gold); }
.ic { width: 34px; height: 34px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.tile .t { font-size: 13.5px; font-weight: 700; color: var(--text); }
.tile .m { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.person { display: flex; gap: 14px; align-items: center; }
.av-lg { width: 54px; height: 54px; border-radius: 50%; background: var(--side); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0; font-family: 'Fraunces', Georgia, serif; }
.av-lg.alt { background: var(--gold-soft); color: var(--gold-ink); }
.person .t { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 16px; }
.person .m { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.tick-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; color: var(--muted); }

/* How it works */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.part { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--gold); }
.part .n { font-size: 12px; font-weight: 800; color: var(--gold-ink); letter-spacing: .1em; }
.part h3 { font-family: 'Fraunces', Georgia, serif; font-size: 21px; margin: 6px 0 8px; }
ul.ticks { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
ul.ticks li { font-size: 13px; color: #3a3833; padding-left: 22px; position: relative; line-height: 1.45; }
ul.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--good); font-weight: 800; }
ul.ticks.big li { font-size: 14px; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); }
ul.ticks.big li:last-child { border-bottom: 0; }
ul.ticks.big li::before { top: 9px; }
ul.ticks.arrows li::before { color: var(--gold-ink); content: '→'; }
ul.dots { list-style: none; display: flex; flex-direction: column; gap: 8px; }
ul.dots li { font-size: 13px; color: #3a3833; padding-left: 16px; position: relative; line-height: 1.45; }
ul.dots li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phone-wrap { text-align: center; }
.phone { background: #111; border-radius: 26px; padding: 8px; aspect-ratio: 9 / 18.5; max-width: 200px; margin: 0 auto; box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.screen { background: #fff; border-radius: 19px; height: 100%; overflow: hidden; display: flex; flex-direction: column; font-size: 9.5px; text-align: left; }
.notch { width: 60px; height: 14px; background: #111; border-radius: 0 0 10px 10px; margin: 0 auto; flex-shrink: 0; }
.scr-pad { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; }
.fb-head { display: flex; gap: 6px; align-items: center; }
.fb-av { width: 20px; height: 20px; border-radius: 50%; background: var(--side); color: var(--gold); font-size: 7px; font-weight: 800; display: grid; place-items: center; }
.fb-head b { font-size: 9px; display: block; }
.fb-head small { font-size: 7.5px; color: #888; }
.fb-img { flex: 1; min-height: 70px; border-radius: 6px; background: linear-gradient(160deg, #e9e3d4 0%, #cfc3a5 60%, #a99263 100%); position: relative; }
.fb-img::after { content: 'Before / After'; position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 7.5px; padding: 2px 5px; border-radius: 4px; }
.fb-cta { display: flex; justify-content: space-between; align-items: center; background: #f2f2f2; border-radius: 5px; padding: 5px 6px; }
.fb-cta span { background: var(--gold); color: #111; font-weight: 700; font-size: 7.5px; padding: 3px 6px; border-radius: 4px; }
.form-top { background: var(--side); color: #fff; padding: 12px 10px; }
.form-top b { font-family: 'Fraunces', Georgia, serif; font-size: 11px; display: block; line-height: 1.25; }
.form-top small { color: var(--gold); font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; }
.f-field { border: 1px solid #ddd; border-radius: 5px; padding: 5px 6px; color: #999; font-size: 8px; }
.f-btn { background: var(--gold); color: #111; border-radius: 5px; padding: 6px; text-align: center; font-weight: 800; font-size: 8.5px; }
.chat-top { background: #1f9d55; color: #fff; padding: 9px 10px; font-weight: 700; font-size: 9px; }
.chat { background: #efe9df; flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.bub { max-width: 82%; padding: 5px 7px; border-radius: 7px; font-size: 8px; line-height: 1.35; background: #fff; }
.bub.me { align-self: flex-end; background: #d6f5c6; }
.cal-top { background: var(--side); color: #fff; padding: 9px 10px; font-size: 8.5px; }
.cal-top b { color: var(--gold); }
.slot { display: flex; gap: 6px; padding: 6px 8px; border-bottom: 1px solid #eee; font-size: 8px; color: #777; }
.slot b { color: #111; width: 26px; flex-shrink: 0; }
.slot.on { background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; border-left: 2px solid var(--gold); }
.phone-cap { margin-top: 12px; }
.phone-cap .n { font-size: 11px; color: var(--gold-ink); font-weight: 800; }
.phone-cap .t { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 15px; }
.phone-cap .m { font-size: 12px; color: var(--muted); }
.timeline3 { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 22px; }
.timeline3::before { content: ''; position: absolute; top: 9px; left: 8%; right: 8%; height: 2px; background: var(--gold-line); }
.tl { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.tl::before { content: attr(data-n); position: absolute; top: -32px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #111; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.tl .when { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.tl .t { font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.plate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plate div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.plate div::before { content: '✓'; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.need { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.need button { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-ink); border-radius: 99px; padding: 8px 16px; font-size: 12.5px; font-weight: 700; }

/* Checklist */
.check-row { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.check-row.done .tick, .tick.on { background: var(--good); border-color: var(--good); }
.check-row .t { font-size: 14px; font-weight: 600; }
.check-row .m { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.check-row .tags { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #f0ede6; color: var(--muted); }
.tag.auto { background: var(--info-soft); color: var(--info); }

/* Brief */
.brief { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.sections { position: sticky; top: 18px; padding: 16px; }
.sections .head { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.sections .bar { margin-bottom: 12px; }
.sec-btn { width: 100%; background: none; border: 0; display: flex; gap: 10px; align-items: center; text-align: left; padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--text); }
.sec-btn:hover { background: var(--bg); }
.sec-btn.on { background: var(--gold-soft); font-weight: 700; }
.sec-btn .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; font-size: 10px; color: #fff; }
.sec-btn.complete .dot { background: var(--good); border-color: var(--good); }
.sec-btn.review .dot { border-color: var(--gold); }
.form-card h2 { font-size: 22px; font-family: 'Fraunces', Georgia, serif; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.field label em { font-style: normal; font-weight: 500; color: var(--faint); font-size: 11.5px; margin-left: 6px; }
.field .hint { font-size: 12px; color: var(--faint); margin-top: -2px; }
input:not([type]), input[type=text], input[type=date], input[type=tel], input[type=url], input[type=number], input[type=search], input[type=email], input[type=password], select, textarea { background: #fbfaf7; border: 1px solid var(--line-2); color: var(--text); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 13.5px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,162,39,.18); }
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
.fgrid .wide { grid-column: 1 / -1; }
.yn { display: flex; gap: 8px; flex-wrap: wrap; }
.yn button { background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--text); }
.yn button.on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-ink); }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--gold-ink); font-size: 12px; font-weight: 700; padding: 6px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.saved { font-size: 12px; color: var(--muted); }
.saved.ok { color: var(--good); }
.saved.warn { color: var(--warn); }
.missing-box { border: 1px solid #f0c9c0; background: #fdf3f0; border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.missing-box strong { color: var(--bad); font-size: 13px; }
.missing-box button { display: block; background: none; border: 0; color: var(--bad); text-decoration: underline; font-size: 12.5px; padding: 3px 0; text-align: left; }
.review-block { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.review-block .rh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 210px 1fr; gap: 6px 16px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.kv dd.missing { color: var(--bad); font-style: italic; }
details.guide { border: 1px solid var(--line); border-radius: 10px; margin-top: 18px; background: #fbfaf7; }
details.guide > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 13px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary::after { content: '+'; color: var(--gold-ink); font-size: 16px; }
details.guide[open] > summary::after { content: '−'; }
.guide-body { padding: 0 14px 14px; }
.gstep { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.gstep .n { width: 26px; height: 26px; border-radius: 50%; background: var(--side); color: var(--gold); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.gstep .t { font-weight: 700; font-size: 13.5px; }
.mock-ui { border: 1px solid var(--line-2); border-radius: 8px; background: #fff; margin-top: 8px; overflow: hidden; font-size: 11px; max-width: 460px; }
.mock-ui .bar-top { background: #f1efe9; padding: 6px 8px; display: flex; gap: 4px; align-items: center; }
.mock-ui .bar-top i { width: 7px; height: 7px; border-radius: 50%; background: #d6d2c8; }
.mock-ui .bar-top span { margin-left: 8px; color: var(--faint); font-size: 10px; }
.mock-ui .body { display: grid; grid-template-columns: 110px 1fr; }
.mock-ui .menu { border-right: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.mock-ui .menu span.on { background: var(--gold-soft); color: var(--gold-ink); border-radius: 4px; padding: 1px 4px; font-weight: 700; }
.mock-ui .pane { padding: 8px; }
.mock-ui .addbtn { display: inline-block; background: #1a4fd6; color: #fff; padding: 3px 8px; border-radius: 4px; font-weight: 700; margin-top: 6px; }
.mock-ui .drop { border: 1px solid var(--line); border-radius: 6px; padding: 6px; margin-top: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.08); max-width: 220px; }
.mock-ui .drop div { padding: 3px 4px; border-radius: 3px; }
.mock-ui .drop div:first-child { background: var(--gold-soft); font-weight: 700; }
.copy-box { display: flex; gap: 10px; align-items: center; background: var(--side); color: var(--gold); border-radius: 9px; padding: 12px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 700; letter-spacing: .04em; margin-top: 8px; max-width: 460px; }
.assets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.assets div { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: #fff; }
.assets b { font-size: 12.5px; display: block; }
.assets span { font-size: 11.5px; color: var(--muted); }

/* Calendar */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { background: #fbfaf7; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.choice strong { font-size: 14.5px; }
.choice span { font-size: 12px; color: var(--muted); }
.choice:hover { border-color: var(--gold); }
.choice.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
ol.howto { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.55; color: #3a3833; }

/* Photos */
.folder-banner { background: var(--side); color: #fff; border-radius: var(--radius); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.folder-banner h3 { font-family: 'Fraunces', Georgia, serif; font-size: 18px; }
.folder-banner p { font-size: 12.5px; color: #b9b5ab; margin-top: 2px; }
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.icard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.icard .ic { margin-bottom: 10px; }
.icard .t { font-weight: 700; font-size: 13.5px; }
.icard .m { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.script-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.script-text { background: #faf8f3; border-radius: 8px; padding: 14px; font-size: 13.5px; line-height: 1.6; color: #3a3833; margin-top: 10px; }

/* Expectations */
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.road-col { padding: 20px 18px; border-right: 1px solid var(--line); position: relative; }
.road-col:last-child { border-right: 0; }
.road-col::before { content: ''; position: absolute; top: 37px; left: 0; right: 0; height: 2px; background: var(--gold-line); }
.road-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--side); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 13px; margin-bottom: 14px; }
.road-col .when { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.road-col .t { font-size: 15px; font-weight: 700; margin-top: 3px; }

/* Tabs and accordions */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; }
.tabs button { background: #fff; border: 1px solid var(--line-2); color: var(--muted); border-radius: 99px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; }
.tabs button.on { background: var(--side); color: #fff; border-color: var(--side); }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { width: 24px; height: 24px; border-radius: 50%; background: var(--side); color: var(--gold); display: grid; place-items: center; font-family: Inter, sans-serif; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.acc summary .meta { margin-left: auto; font-family: Inter, sans-serif; font-weight: 600; font-size: 11px; color: var(--faint); }
.acc summary::after { content: '+'; color: var(--gold-ink); font-family: Inter, sans-serif; margin-left: 8px; }
.acc summary .meta + * { margin-left: 0; }
.acc details[open] summary::after { content: '−'; }
.acc .acc-body { padding: 0 16px 16px 52px; font-size: 13.5px; color: #3a3833; line-height: 1.6; }
.do-box { background: var(--good-soft); border-radius: 8px; padding: 10px 12px; margin-top: 10px; font-size: 13px; color: #1d4d36; line-height: 1.5; }
.do-box b { color: var(--good); }
.journey { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.jcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: relative; overflow: hidden; }
.jcard .big { position: absolute; right: 8px; top: 2px; font-family: 'Fraunces', Georgia, serif; font-size: 34px; color: #f0ece2; font-weight: 700; }
.jcard .t { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 15px; position: relative; }
.jcard .q { display: block; font-size: 12px; color: var(--muted); font-style: italic; margin: 8px 0; line-height: 1.45; }
.jcard .win { font-size: 12px; color: #3a3833; line-height: 1.45; border-top: 1px solid var(--line); padding-top: 8px; }
.jcard .win b { color: var(--good); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-card .big { font-family: 'Fraunces', Georgia, serif; font-size: 32px; font-weight: 700; color: var(--gold-ink); }
.stat-card .t { font-size: 13px; font-weight: 600; margin-top: 4px; line-height: 1.45; }
.stat-card .src { font-size: 11px; color: var(--faint); margin-top: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split > div { padding: 20px; }
.split > div:first-child { background: var(--side); color: #fff; }
.split > div:first-child h3 { color: var(--gold); font-family: 'Fraunces', Georgia, serif; font-size: 17px; }
.split > div:first-child ul.ticks li { color: #ddd9cf; border-color: #2a2924; }
.split > div:first-child ul.ticks li::before { color: var(--gold); }
.split > div:last-child { background: #fff; }
.split > div:last-child h3 { font-family: 'Fraunces', Georgia, serif; font-size: 17px; }
.visit { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.vstep { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.vstep.key { border-color: var(--gold); background: #fffaf0; }
.vstep .n { width: 26px; height: 26px; border-radius: 50%; background: var(--side); color: var(--gold); display: grid; place-items: center; font-size: 11px; font-weight: 800; margin: 0 auto 8px; }
.vstep.key .n { background: var(--gold); color: #111; }
.vstep .t { font-weight: 700; font-size: 12.5px; }
.vstep .m { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.touches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.touch { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.touch.last { border-color: var(--gold); background: #fffaf0; }
.touch .d { font-size: 10.5px; color: var(--gold-ink); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.touch .t { font-weight: 700; font-size: 13px; margin-top: 3px; }
.msg { background: #fffaf0; border: 1px solid var(--gold-line); border-left: 3px solid var(--gold); border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
.msg .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.msg .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 800; }
.msg p { font-size: 13px; color: #3a3833; line-height: 1.55; margin-top: 6px; }
.methods { background: var(--side); border-radius: var(--radius); padding: 20px; }
.methods h3 { color: var(--gold); font-family: 'Fraunces', Georgia, serif; font-size: 18px; margin-bottom: 12px; }
.methods .grid > div { background: var(--side-2); border-radius: 10px; padding: 14px; color: #c9c5bb; font-size: 12px; line-height: 1.5; }
.methods b { color: #fff; font-family: 'Fraunces', Georgia, serif; font-size: 14px; display: block; }
.methods small { color: var(--gold); display: block; margin: 2px 0 6px; font-size: 11px; }
.gain { background: var(--gold-soft); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; margin-top: 12px; color: #4a3d10; line-height: 1.45; }
.gain b { color: var(--gold-ink); }
.locked-card { text-align: center; padding: 40px 24px; }
.locked-card .lk { font-size: 34px; }
.locked-card h2 { font-family: 'Fraunces', Georgia, serif; font-size: 22px; margin: 10px 0 6px; }
.calc-out { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
.calc-out .card { padding: 14px; }

/* Results */
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-size: 28px; font-weight: 800; margin-top: 6px; }
.stat .delta { font-size: 12px; color: var(--faint); margin-top: 4px; }
.list { display: flex; flex-direction: column; }
.li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.li:last-child { border-bottom: 0; }
.li .t { font-size: 13.5px; font-weight: 600; }
.li .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.guarantee { border-color: var(--gold-line); background: linear-gradient(180deg, #fffaf0, #fff); }
.g-big { font-size: 42px; font-weight: 800; }
.g-big span { color: var(--muted); font-size: 18px; font-weight: 600; }
.demo-note { font-size: 11.5px; color: var(--warn); margin-top: 8px; }
.funnel { display: flex; flex-direction: column; gap: 9px; }
.f-row { display: grid; grid-template-columns: 140px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; }
.f-row .track { height: 8px; background: #ece8de; border-radius: 99px; overflow: hidden; }
.f-row .track i { display: block; height: 100%; background: var(--gold); }
.f-row .n { text-align: right; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 820px; }
th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 11px 12px; background: #faf8f3; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .muted { color: var(--muted); font-size: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid var(--line-2); color: var(--muted); border-radius: 99px; padding: 6px 11px; font-size: 12px; font-weight: 600; }
.chip.on { border-color: var(--gold); color: var(--gold-ink); background: var(--gold-soft); }
.chip span { color: var(--faint); margin-left: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 6px 9px; font-size: 11.5px; font-weight: 600; border-right: 1px solid var(--line-2); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--gold-soft); color: var(--gold-ink); }
.seg button.on.lost { background: var(--bad-soft); color: var(--bad); }
.outcome { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.value-input { width: 110px !important; padding: 6px 8px !important; font-size: 12px !important; }
.convo { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.convo:last-child { border-bottom: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.convo .body { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.convo .time { font-size: 11px; color: var(--faint); white-space: nowrap; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10px; font-family: Inter, sans-serif; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 30; }
.toast.show { opacity: 1; }
.empty { color: var(--faint); font-size: 13px; padding: 14px 0; }

@media (max-width: 1100px) {
  .journey { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .visit, .touches { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g4, .phones { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3, .g2, .parts, .tiles, .icards, .plate, .team { grid-template-columns: 1fr 1fr; }
  .brief { grid-template-columns: 1fr; }
  .sections { position: static; }
  .roadmap { grid-template-columns: 1fr; }
  .road-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .road-col::before { display: none; }
}
@media (max-width: 760px) {
  .app { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--side); position: sticky; top: 0; z-index: 10; }
  .topbar img { height: 20px; }
  .hero { padding: 26px 16px 22px; }
  .hero h1 { font-size: 27px; }
  .content { padding: 20px 16px 60px; }
  .g4, .g3, .g2, .parts, .tiles, .icards, .plate, .team, .journey, .visit, .touches, .phones, .timeline3, .choices, .calc-out, .split, .assets { grid-template-columns: 1fr; }
  .timeline3::before, .tl::before { display: none; }
  .fgrid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dd { margin-bottom: 6px; }
  .f-row { grid-template-columns: 100px 1fr 34px; }
  .check-row { flex-wrap: wrap; }
  .acc .acc-body { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* v4 additions */
.sec-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 10px 8px 4px; }
.link-btn { display: block; background: none; border: 0; color: var(--gold-ink); text-decoration: underline; font-size: 12.5px; padding: 3px 0; text-align: left; }
.preview-switch { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--side-muted); padding: 4px 8px 0; cursor: pointer; }
.preview-switch input { accent-color: var(--gold); }
.ad-prev { aspect-ratio: 4 / 5; border-radius: 10px; background: linear-gradient(160deg, #1b1a17 0%, #3a3424 60%, #8a6d12 100%); display: grid; place-items: end start; padding: 10px; }
.ad-prev span { background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.nav-item .right svg { vertical-align: -1px; }
.lk svg { color: var(--faint); }

/* v5: CRM pages */
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #fbf7ea; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; text-align: center; background: #faf8f3; color: var(--faint); }
.day.on { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-ink); }
.day b { display: block; font-size: 11px; }
.day span { display: block; font-size: 16px; font-weight: 800; color: var(--text); }
.day em { display: block; font-style: normal; font-size: 10.5px; margin-top: 2px; }
.convo-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
.convo-list { padding: 6px; max-height: 75vh; overflow-y: auto; }
.convo-item { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: none; border: 0; border-radius: 8px; padding: 9px 8px; }
.convo-item:hover { background: var(--bg); }
.convo-item.on { background: var(--gold-soft); }
.trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; font-size: 13px; }
.thread { display: flex; flex-direction: column; min-height: 60vh; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; max-height: 64vh; overflow-y: auto; }
.bubble { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.bubble.in { background: #f0ede6; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--gold-soft); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .k { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 3px; }
.bubble .t { display: block; font-size: 10.5px; color: var(--faint); margin-top: 4px; }
.msg-call { align-self: center; font-size: 12px; color: var(--muted); background: #faf8f3; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
@media (max-width: 1100px) { .convo-wrap { grid-template-columns: 1fr; } .convo-list { max-height: 40vh; } }
@media (max-width: 760px) { .week { grid-template-columns: repeat(4, 1fr); } }

/* v6 */
.appt-stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 16px; align-items: end; }
.appt-stats .main .t { font-size: 14px; font-weight: 600; margin-top: 2px; }
.appt-stats .big2 { font-size: 26px; font-weight: 800; }
.appt-stats > div:not(.main) { border-left: 1px solid var(--line); padding-left: 16px; }
.appt { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.appt:first-of-type { border-top: 0; }
.appt .when b { display: block; font-size: 13px; }
.appt .when span { font-size: 12px; color: var(--muted); }
.appt .who .t { font-size: 14px; font-weight: 600; }
.appt .who .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 760px) { .appt-stats { grid-template-columns: 1fr 1fr; } .appt-stats > div:not(.main) { border-left: 0; padding-left: 0; } .appt { grid-template-columns: 1fr; gap: 6px; } }

/* v7 */
.leads-t { min-width: 760px; }
.leads-t td { padding: 12px; }
.leads-t td:nth-child(2) { white-space: nowrap; }
.ad-prev { aspect-ratio: 1 / 1; background-size: cover; background-position: center; display: flex; justify-content: space-between; align-items: flex-end; }
.ad-prev .st { background: rgba(0,0,0,.55); }
.ad-prev .st.on { background: #1f8a5a; }
.sub { padding: 14px 0; border-top: 1px solid var(--line); }
.sub:first-child { border-top: 0; padding-top: 0; }
.sub-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sub-h .muted { font-size: 12px; color: var(--muted); }
.sub-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin-top: 10px; font-size: 13px; }
.sub-g span { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* v7 */
.leads-t { min-width: 760px; }
.leads-t td:nth-child(2) { white-space: nowrap; }
.ad-prev { aspect-ratio: 1 / 1; background-size: cover; background-position: center; display: flex; justify-content: space-between; align-items: flex-end; }
.ad-prev .st { background: rgba(0,0,0,.55); }
.ad-prev .st.on { background: #1f8a5a; }
.sub { padding: 14px 0; border-top: 1px solid var(--line); }
.sub:first-child { border-top: 0; padding-top: 0; }
.sub-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sub-h .muted { font-size: 12px; color: var(--muted); }
.sub-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin-top: 10px; font-size: 13px; overflow-wrap: anywhere; }
.sub-g span { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.leads-t td:last-child, .leads-t td:nth-child(4) { white-space: nowrap; }

/* v8: reports + merged tabs */
.tabs.sub { justify-content: flex-start; }
.report-head .rep-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 12px; }
.rep-grid > div { padding: 6px 14px; border-left: 1px solid var(--line); }
.rep-grid > div:first-child { border-left: 0; padding-left: 0; }
.rep-grid span { display: block; font-size: 11.5px; color: var(--muted); }
.rep-grid b { display: block; font-size: 26px; font-weight: 800; margin-top: 4px; }
.rep-grid em { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
@media (max-width: 1100px) { .report-head .rep-grid { grid-template-columns: repeat(3, 1fr); row-gap: 14px; } .rep-grid > div:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 760px) { .report-head .rep-grid { grid-template-columns: 1fr 1fr; } .rep-grid > div { border-left: 0; padding-left: 0; } }
@media print { .side, .topbar, .no-print, .toast { display: none !important; } .app { display: block; } .hero { padding: 20px; } .content { padding: 16px; max-width: none; } body, html { background: #fff; } .card { break-inside: avoid; } }

/* v9: return card */
.roi { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: var(--gold-line); background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.roi > div:first-child { flex: 1 1 320px; min-width: 0; }
.roi h3 { font-size: 19px; margin: 4px 0 6px; text-wrap: balance; }
.roi-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 6px 0 6px; }
.roi-line b { font-family: 'Fraunces', Georgia, serif; font-size: 28px; color: var(--gold-ink); }
.roi-line span { font-size: 13px; color: var(--muted); }
.roi-x { text-align: center; padding: 10px 18px; border-left: 1px solid var(--gold-line); }
.roi-x b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 40px; line-height: 1; color: var(--gold-ink); }
.roi-x span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.roi.empty-roi { background: #fff; border-style: dashed; }
@media (max-width: 560px) { .roi-x { border-left: 0; border-top: 1px solid var(--gold-line); width: 100%; } }

/* v10: real login, sync status */
.form-err { color: var(--bad); font-size: 13px; margin-top: 8px; }
.privacy-note { color: #8a867b; margin-top: 16px; text-align: center; max-width: 360px; font-size: 11.5px; }
.synced { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: #9a968c; padding: 8px 14px 0; }
.synced button { background: transparent; border: 1px solid #3a382f; color: var(--gold); border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 600; cursor: pointer; }
.synced button:disabled { opacity: .5; cursor: default; }

/* v11: agency client switcher (Ben only) */
.agency-bar { margin: 0 4px 14px; padding: 10px; border: 1px solid var(--gold-line); border-radius: 10px; background: #1a1812; display: grid; gap: 6px; }
.agency-bar label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.agency-bar select { width: 100%; background: #0c0c0b; color: #fff; border: 1px solid #3a382f; border-radius: 8px; padding: 7px 8px; font-size: 13px; font-family: inherit; }
.agency-bar small { font-size: 10.5px; color: #8f8b80; line-height: 1.4; }

/* v12: foldable month cards, filter chips */
details.month > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
details.month > summary::-webkit-details-marker { display: none; }
details.month > summary h2 { margin: 0; flex: 1; }
details.month > summary .chev { color: var(--muted); display: inline-flex; transition: transform .15s; transform: rotate(-90deg); }
details.month[open] > summary .chev { transform: none; }
.nav-group .chev { display: inline-flex; }

/* v13: customer job tracker. Contractor side (inside the portal) and homeowner side (job.js). */
.link-btn { background: none; border: 0; color: var(--gold-ink); font-size: 12.5px; font-weight: 600; padding: 4px 0; cursor: pointer; }
.btn.wa { background: #1f9d55; color: #fff; }
.job-card { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.job-card:hover { border-color: var(--gold-line); }
.mini-bar { height: 6px; background: #efebe1; border-radius: 99px; overflow: hidden; margin: 10px 0 8px; }
.mini-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.fgrid.tight { grid-template-columns: 1.4fr .8fr .9fr 1.4fr; gap: 6px; }
.fgrid.tight input { padding: 7px 9px; font-size: 13px; }
.upd { border-top: 1px solid var(--line); padding: 14px 0; }
.upd:first-of-type { border-top: 0; }
.upd-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.upd-h span { color: var(--faint); font-size: 12px; }
.upd p { font-size: 14px; line-height: 1.55; white-space: pre-line; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.ph { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #efebe1; border: 0; padding: 0; cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.appr { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.appr.pending { border-color: var(--gold-line); background: var(--gold-soft); }
.appr p { font-size: 13.5px; margin-top: 6px; line-height: 1.5; }
.appr .ask { margin-top: 10px; display: grid; gap: 8px; }
.appr .ask[hidden] { display: none; }
.pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-sum span { display: block; font-size: 11.5px; color: var(--muted); }
.pay-sum b { font-size: 20px; }
.good-t { color: var(--good); }
.job-msgs { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }

/* Homeowner view */
.job { min-height: 100vh; background: var(--bg); }
.job-wrap { max-width: 760px; margin: 0 auto; padding-inline: 16px; }
.job-hero { background: var(--side); color: #fff; padding: 22px 0 26px; }
.job-hero .eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.job-hero h1 { font-family: 'Fraunces', Georgia, serif; font-size: 30px; margin-top: 8px; line-height: 1.15; text-wrap: balance; }
.job-hero .addr { color: #b9b5ab; font-size: 13.5px; margin-top: 4px; }
.job-hero .link-btn { color: #b9b5ab; }
.track-now { margin-top: 18px; background: #171612; border: 1px solid #2b2a24; border-radius: 14px; padding: 16px; }
.tn-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tn-name { font-family: 'Fraunces', Georgia, serif; font-size: 22px; margin-top: 6px; }
.track-now p { color: #b9b5ab; font-size: 13.5px; margin-top: 2px; }
.tn-bar { height: 8px; background: #2b2a24; border-radius: 99px; overflow: hidden; margin-top: 12px; }
.tn-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .4s; }
.tn-bar.light { background: #efebe1; }
.job-tabs { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 4px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.job-tabs a { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }
.job-tabs a b { background: var(--gold); color: #14130f; border-radius: 99px; padding: 0 6px; margin-left: 4px; font-size: 11px; }
.job-main { display: grid; gap: 14px; padding-top: 14px; padding-bottom: 50px; }
.job-main section { scroll-margin-top: 60px; }
.job-main h2 { font-size: 17px; margin-bottom: 10px; }
.card.needs { border-color: var(--gold-line); }
.steps { list-style: none; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 8px 0; position: relative; color: var(--faint); }
.steps li::before { content: ''; position: absolute; left: 14px; top: 34px; bottom: -8px; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps li.done::before { background: var(--gold); }
.steps .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #fff; position: relative; z-index: 1; }
.steps li.done, .steps li.now { color: var(--text); }
.steps li.done .dot { background: var(--gold); border-color: var(--gold); color: #14130f; }
.steps li.now .dot { border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 4px var(--gold-soft); }
.steps p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.steps li:not(.done):not(.now) p { color: var(--faint); }
.steps em { font-size: 11.5px; color: var(--faint); font-style: normal; }
.contact .row { gap: 8px; }
.powered { text-align: center; font-size: 11px; color: var(--faint); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 50; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; }
@media (max-width: 760px) { .fgrid.tight { grid-template-columns: 1fr 1fr; } .pay-sum b { font-size: 17px; } .job-hero h1 { font-size: 25px; } }

/* v14: campaign tracker (Domino's style), top of Home and Welcome */
.tracker { background: var(--side); color: #fff; border-radius: 16px; padding: 22px 24px; border: 1px solid #2b2a24; }
.tr-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tr-k { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tr-eta { font-size: 12.5px; color: #b9b5ab; }
.tr-stage { margin-top: 10px; }
.tr-step { font-size: 12px; color: #b9b5ab; }
.tr-stage h2 { font-family: 'Fraunces', Georgia, serif; font-size: 30px; color: #fff; margin-top: 2px; line-height: 1.15; }
.tr-bar { height: 12px; background: #2b2a24; border-radius: 99px; overflow: hidden; margin-top: 16px; position: relative; }
.tr-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #a8861c, var(--gold) 60%, #e8c547); animation: trFill 1.1s cubic-bezier(.2,.8,.2,1) both; position: relative; overflow: hidden; }
.tr-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); animation: trShine 2.6s ease-in-out 1.2s infinite; }
@keyframes trFill { from { width: 0; } to { width: var(--w); } }
@keyframes trShine { to { transform: translateX(100%); } }
.tr-segs { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.tr-segs li { font-size: 11.5px; color: #77736b; display: grid; gap: 2px; }
.tr-segs .d { width: 10px; height: 10px; border-radius: 50%; background: #2b2a24; border: 2px solid #3a382f; margin-bottom: 4px; }
.tr-segs li.done { color: #b9b5ab; } .tr-segs li.done .d { background: var(--gold); border-color: var(--gold); }
.tr-segs li.now { color: #fff; } .tr-segs li.now .d { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.25); animation: trPulse 1.8s ease-in-out infinite; }
.tr-segs em { font-style: normal; font-size: 10.5px; color: #5f5c55; }
.tr-segs li.now em { color: var(--gold); }
@keyframes trPulse { 50% { box-shadow: 0 0 0 7px rgba(201,162,39,.08); } }
.tr-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 18px; }
.tr-now, .tr-need { background: #171612; border: 1px solid #2b2a24; border-radius: 12px; padding: 14px 16px; }
.tr-now p, .tr-need p { font-size: 14px; color: #d9d6cd; line-height: 1.55; margin-top: 6px; }
.tr-last { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #2b2a24; font-size: 12.5px; color: #b9b5ab; }
.tr-last b { color: #fff; }
.tr-last p { font-size: 13.5px; margin-top: 2px; }
.tr-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; margin-top: 5px; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(47,191,113,.2); }
.tr-chip { display: block; width: 100%; text-align: left; background: #221f17; border: 1px solid #3a3424; color: #f3e6b8; border-radius: 9px; padding: 9px 12px; font-size: 13px; font-weight: 600; margin-top: 8px; cursor: pointer; }
.tr-chip:hover { border-color: var(--gold); }
.tr-more { color: var(--gold) !important; margin-top: 10px; }
.agency-card { border: 1px dashed var(--gold-line); background: #fffdf6; }
@media (max-width: 760px) { .tr-grid { grid-template-columns: 1fr; } .tr-segs { grid-template-columns: repeat(3, 1fr); row-gap: 10px; } .tr-stage h2 { font-size: 25px; } .tracker { padding: 18px 16px; } }
@media (prefers-reduced-motion: reduce) { .tr-bar i, .tr-bar i::after, .tr-segs li.now .d { animation: none; } }
.tr-next { margin-top: 12px; font-size: 13px; color: #b9b5ab; } .tr-next b { color: #fff; font-weight: 600; } .tr-next .tr-k { margin-right: 4px; }

/* v15: month navigator (Home) */
.month-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.mn-arrow { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 20px; line-height: 1; color: var(--text); cursor: pointer; }
.mn-arrow:disabled { opacity: .35; cursor: default; }
.mn-arrow:not(:disabled):hover { border-color: var(--gold); }
.mn-mid { display: grid; gap: 2px; }
.mn-mid select { width: auto; min-width: 200px; font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 700; padding: 6px 10px; background: #fff; }

/* v16: "Your week" card (top of Home) */
.week-card { border-color: var(--gold-line); }
.wk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.wk-grid > div { display: grid; gap: 2px; padding: 12px 14px; background: #faf8f3; border: 1px solid var(--line); border-radius: 10px; }
.wk-grid b { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.wk-grid span { font-size: 12.5px; color: var(--muted); }
.wk-d { font-size: 11.5px !important; color: var(--faint) !important; }
.wk-d.up { color: var(--good) !important; } .wk-d.down { color: var(--bad) !important; }
@media (max-width: 760px) { .wk-grid { grid-template-columns: 1fr 1fr; } }

/* v17: phone bottom navigation */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--side); border-top: 1px solid var(--side-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav button { background: none; border: 0; color: var(--side-muted); font-size: 10.5px; font-weight: 600; display: grid; justify-items: center; gap: 2px; padding: 4px 0; position: relative; }
  .bottom-nav button .i { font-size: 17px; line-height: 1; }
  .bottom-nav button.on { color: var(--gold); }
  .bottom-nav em { position: absolute; top: 0; left: 55%; background: var(--gold); color: #14130f; font-style: normal; font-size: 9.5px; font-weight: 800; border-radius: 99px; padding: 0 5px; }
  .content { padding-bottom: 96px; }
  .topbar #menuBtn { display: none; }
}

/* v18: Results (totals, month by month, week by week, tap to check) */
.res-hero { border-color: var(--gold-line); background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.res-big b { font-family: 'Fraunces', Georgia, serif; font-size: 40px; color: var(--gold-ink); }
.res-big span { font-size: 14px; color: var(--muted); }
.res-x { text-align: right; } .res-x b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 32px; } .res-x span { font-size: 12px; color: var(--muted); }
.res-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.res-tile { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; cursor: pointer; font: inherit; color: inherit; }
.res-tile b { font-size: 22px; font-weight: 800; } .res-tile span { font-size: 12.5px; color: var(--muted); } .res-tile em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.res-tile:hover, .res-tile.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.res-table { min-width: 760px; }
.res-cell { background: none; border: 0; padding: 4px 8px; margin: -4px -8px; border-radius: 6px; font: inherit; font-variant-numeric: tabular-nums; color: var(--text); cursor: pointer; text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
.res-cell:hover, .res-cell.on { background: var(--gold-soft); color: var(--gold-ink); text-decoration: none; }
.res-table tr.sel td { background: #fffbef; }
.res-table tr.detail-row td { background: #faf8f3; padding: 12px; }
.res-detail { box-shadow: none; }
@media (max-width: 760px) { .res-tiles { grid-template-columns: 1fr 1fr; } .res-big b { font-size: 30px; } }

/* v19: market news, the year ahead, your numbers */
.news-brief { border-color: var(--gold-line); background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.news { display: grid; }
.news-i { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); }
.news-i:first-child { border-top: 0; }
.news-i b { font-size: 14px; font-weight: 600; line-height: 1.4; }
.news-i span { font-size: 12px; color: var(--faint); }
.news-i:hover b { color: var(--gold-ink); }
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.season { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.season p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.season em { font-style: normal; font-size: 12px; color: var(--gold-ink); font-weight: 600; }
.season.now { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.num-card .big { font-size: 30px; font-weight: 800; }
.num-card .t { font-weight: 600; margin-top: 2px; }
.num-card.ok { border-left: 4px solid var(--good); } .num-card.bad { border-left: 4px solid var(--bad); }
@media (max-width: 1100px) { .seasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .seasons { grid-template-columns: 1fr; } }
.per-step { display: flex; gap: 6px; align-items: center; }
.week-card .mn-arrow { width: 34px; height: 34px; font-size: 18px; }

/* v21: ad approvals queue */
.ad-q .ad-prev { background-color: #efebe1; }
.ad-prev .st.gold { background: var(--gold); color: #14130f; }
.ad-copy { margin-top: 10px; background: #faf8f3; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.ad-copy span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.ad-copy b { font-size: 14px; } .ad-copy p { font-size: 13px; line-height: 1.55; white-space: pre-line; margin-top: 2px; }

/* v22: tracker depth */
.tr-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; padding-top: 16px; border-top: 1px solid #2b2a24; }
.tr-row { display: grid; gap: 1px; padding: 7px 0; border-bottom: 1px solid #1f1e19; }
.tr-row:last-child { border-bottom: 0; }
.tr-row b { font-size: 13px; color: #f1eee6; font-weight: 600; line-height: 1.4; }
.tr-row span { font-size: 12px; color: #8f8b80; }
@media (max-width: 900px) { .tr-cols { grid-template-columns: 1fr; } }

/* v23: line icons, type consistency */
.ico-svg { width: 17px; height: 17px; display: block; }
.nav-item .ico { display: inline-grid; place-items: center; width: 20px; opacity: .85; }
.nav-item.active .ico { opacity: 1; color: var(--gold); }
.bottom-nav .ico-svg { width: 20px; height: 20px; }
.card h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -.005em; }
.left-head h2, .sec-head h2 { font-family: 'Fraunces', Georgia, serif; font-size: 22px; letter-spacing: -.01em; }
.eyebrow-sm { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.hero h1 { letter-spacing: -.015em; text-wrap: balance; }
.note { line-height: 1.5; }

/* v24: quick log, first-login tour */
.ql, .tour { position: fixed; inset: 0; background: rgba(12,12,11,.55); z-index: 40; display: grid; place-items: center; padding: 16px; }
.ql-card, .tour-card { background: #fff; border-radius: 16px; padding: 22px; width: min(520px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.ql-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ql-btns button { border: 1px solid var(--line-2); background: #faf8f3; border-radius: 12px; padding: 16px 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }
.ql-btns button:hover { border-color: var(--gold); background: var(--gold-soft); }
.ql-btns button[data-ql="won"] { background: var(--good-soft); border-color: #bfe3cf; }
.tour { background: rgba(12,12,11,.35); place-items: end center; padding-bottom: 32px; }
.tour-card h2 { font-size: 22px; margin-top: 4px; } .tour-card p { color: var(--muted); margin-top: 6px; line-height: 1.55; }
@media (max-width: 760px) { .tour { padding-bottom: 96px; } }

/* Anything marked hidden stays hidden, whatever its layout class says. */
[hidden] { display: none !important; }

/* v25: message Ben, branded PDF report */
.msg-thread { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.msg-card textarea { flex: 1; }
.print-head { display: none; }
@media print {
  @page { margin: 14mm; }
  .print-head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid #C9A227; }
  .print-head img { height: 26px; filter: invert(1); }
  .print-head b { display: block; font-size: 18px; } .print-head span { font-size: 12px; color: #666; }
  .print-head em { margin-left: auto; font-style: normal; font-size: 11px; color: #888; }
  .tabs, .hero, .bottom-nav, .agency-bar, #toast { display: none !important; }
  main, .content { padding: 0 !important; }
  .card { box-shadow: none !important; border-color: #ddd !important; }
}

/* v26: phones. Tables become labelled cards, bigger tap targets, tighter spacing. */
@media (max-width: 760px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table.stack, .leads-t, .res-table { min-width: 0 !important; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
  table.stack tr.detail-row { padding: 0; border: 0; background: transparent; }
  table.stack td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 6px 0 !important; border: 0 !important; text-align: right; }
  table.stack td:first-child { text-align: left; font-size: 15px; padding-bottom: 8px !important; border-bottom: 1px solid var(--line) !important; margin-bottom: 4px; }
  table.stack td:first-child::before { display: none; }
  table.stack td::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; flex-shrink: 0; }
  table.stack td:empty { display: none; }
  table.stack tr.detail-row td::before { display: none; }
  .btn.sm { padding: 9px 14px; }
  .seg button { padding: 9px 11px; }
  .chip { padding: 7px 12px; }
  .hero h1 { font-size: 26px; }
  .card { padding: 16px; }
  .week-card .row { flex-wrap: wrap; }
  .res-big b { font-size: 30px; }
  .appt .outcome { flex-wrap: wrap; }
  input, select, textarea { font-size: 16px !important; } /* stops iPhones zooming in when you tap a box */
}
@media (max-width: 760px) {
  .tabs, .chips { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
  .tabs button, .chips .chip { flex-shrink: 0; }
  main, .content { overflow-x: clip; }
}

/* v27: reply to leads */
.reply-box { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.reply-box .chip { font-size: 12px; }
