/* Ginqersnap — design system.
   Portal modernization (2026-11-06): clean off-white workspace, crisp ink,
   hairline rules, small radii, no shadows. Serif display (Lora, same as
   the marketing site) + system sans + mono eyebrows. The community's crimson
   identity still comes from the theme; these are the neutral bones.
   Sharpening pass (2026-11-06, second round): 3px radii, darker hairlines,
   cooler/whiter workspace, tighter type, crisper buttons and focus rings. */

:root {
  --bg: #f5f5f2;
  --card: #ffffff;
  --ink: #1b1917;
  --muted: #5e625f;
  --faint: #8d8e8a;
  --primary: #2e7d46;
  --primary-dark: #205f34;
  --primary-soft: #e2f0e6;
  --line: #d9d5cd;
  --line-soft: #e7e4dd;
  --paper-deep: #eceae5;
  --danger: #b3261e;
  --danger-soft: #fbeae8;
  --warn-soft: #fbf7ec;
  --success: #0d9d6c;
  --success-dark: #0a7a55;
  --success-soft: #dcf3e8;
  --amber: #b45309;
  --amber-soft: #fbf5e8;
  --navy: #152b1e;
  --navy-2: #1e4030;
  --nav-text: #d3ddcb;
  --nav-dim: #8fa387;
  --radius: 3px;
  --shadow-sm: none;
  --shadow-md: none;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Light pages stay light: without this, phones in system dark mode let
   the browser force-darken the marketing site, login, and public pages,
   and the auto-inversion mangles hardcoded colors into unreadable text
   (reported 2026-11-15). The site is light-only — dark mode was removed
   2026-11-16 — and this rule is what keeps it that way. */
html { color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 600px; margin: 0 auto; }
.center { text-align: center; }
h1, h2.display, .display {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.14;
}
h1 { font-size: 2rem; margin: 1.2rem 0 .8rem; }
h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 2.2rem 0 .6rem; font-weight: 700; }
h3 { font-size: 1.05rem; margin: .6rem 0 .3rem; font-weight: 700; letter-spacing: -0.01em; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 42rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
code { font-family: var(--font-mono); background: var(--paper-deep); padding: 2px 7px; border-radius: 5px; font-size: .85em; }
.sr-only { position: absolute; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* !important: form rules set width:100% on text inputs (higher specificity),
   which once stretched honeypot fields 485px wide and broke mobile layout. */

/* Eyebrows: mono, small caps, letterspaced — the editorial signature */
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--primary-dark);
  margin: 0 0 .9rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.16; margin: 0 0 1.6rem;
}
.editorial { padding: 3.5rem 0; }

/* ---------- Marketing top bar ---------- */
.site-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; gap: 10px;
}
.wordmark {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
}
.site-nav { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 550; }
.site-nav a:hover { color: var(--ink); }

/* ---------- Hero: asymmetric editorial, purposeful specimen ---------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0 3rem; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero-copy { max-width: 40rem; }
.hero-specimen { min-width: 0; }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4rem); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 1.2rem; font-weight: 600;
}
.hero .lede { font-size: 1.2rem; }
.terms-line { font-family: var(--font-mono); font-size: .82rem; color: var(--primary-dark); margin-top: 1.4rem; letter-spacing: .02em; }

/* Specimen: a small, honest mock of the product — not stock */
.specimen {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.4rem 1.5rem;
}
.specimen-eyebrow { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin: 0 0 .7rem; }
.specimen-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0 0 1rem; }
.specimen-line {
  display: flex; align-items: center; gap: .7rem; padding: .65rem 0;
  border-top: 1px solid var(--line-soft); font-size: .92rem;
}
.specimen-tag {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; background: var(--primary-soft); color: var(--primary-dark);
  padding: 3px 8px; border-radius: 4px; flex: none;
}
.tag-doc { background: var(--paper-deep); color: var(--muted); }
.specimen-foot { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); margin: 1rem 0 0; }

/* ---------- Tour video: centered copy, honest 16:9 frame ---------- */
.tour { padding: 3.5rem 0; border-top: 1px solid var(--line-soft); }
.tour-inner { max-width: 46rem; margin: 0 auto; text-align: center; }
.tour-copy .eyebrow { margin-bottom: .6rem; }
.tour-copy .section-title { margin: 0 0 .8rem; }
.tour-copy .lede { margin: 0 auto 1.8rem; max-width: 36rem; }
.tour-video {
  width: 100%; aspect-ratio: 16 / 9; display: block;
  border: 1px solid var(--line); border-radius: 6px; background: #101511;
}

/* ---------- Spotlight video embeds (quote / logo studio pages) ---------- */
.spot-video-details {
  margin: 1.5rem 0; border: 1px solid var(--line-soft); border-radius: 12px;
  padding: .85rem 1rem; background: var(--card);
}
.spot-video-details summary { cursor: pointer; font-weight: 600; }
.spot-video-details summary::-webkit-details-marker { color: var(--primary); }
.spot-video {
  width: 100%; aspect-ratio: 16 / 9; display: block;
  border: 1px solid var(--line); border-radius: 10px; background: #101511;
  margin-top: .9rem;
}

/* ---------- Old way / future: two columns, one rule ---------- */
.versus-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 760px) { .versus-grid { grid-template-columns: 1fr 1fr; } .versus-new { border-left: 1px solid var(--line); padding-left: 2rem; } }
.versus-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.versus-col li { padding-left: 1.4rem; position: relative; }
.versus-old li { color: var(--faint); }
.versus-old li::before { content: "—"; position: absolute; left: 0; color: var(--line); }
.versus-new li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---------- Features: numbered editorial list, not cards ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.feature-list li {
  display: flex; gap: 1.2rem; padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.feature-n { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); padding-top: .3rem; flex: none; }
.feature-list h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 .35rem; }
.feature-list p { margin: 0; color: var(--muted); }

/* ---------- Grow band ---------- */
.grow { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grow h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 1.1rem; }

/* ---------- Pricing: three tiers ---------- */
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; max-width: 1180px; margin: 0 auto; text-align: left; }
@media (min-width: 1000px) { .tier-grid { grid-template-columns: 1fr 1fr 1fr; } }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; }
.tier-plus { background: var(--ink); border-color: var(--ink); color: #f2efe6; }
.tier-plus .eyebrow, .tier-plus .tier-sub, .tier-plus li, .tier-plus .tier-note { color: #c9c4b4; }
.tier-plus .eyebrow { color: #a8c3a4; }
.tier .price { font-family: var(--font-display); font-size: 3rem; font-weight: 600; letter-spacing: -0.02em; margin: .4rem 0 .1rem; color: var(--ink); }
.tier-plus .price { color: #f2efe6; }
.price span { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--muted); }
.tier-plus .price span { color: #a8b39e; }
.tier-sub { font-weight: 650; margin: 0 0 1rem; }
.tier ul { padding: 0; margin: 0 0 1.6rem; list-style: none; display: grid; gap: .6rem; }
.tier li { padding-left: 1.3rem; position: relative; }
.tier li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.tier-plus li::before { color: #a8c3a4; }
.tier-note { font-size: .92rem; margin: 0 0 1.4rem; }
.soon-badge {
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  background: #3a4a3e; color: #d8e2cf; padding: 4px 10px; border-radius: 20px; vertical-align: middle;
}
.pricing .fine { max-width: 40rem; margin: 1.6rem auto 0; }

/* ---------- FAQ: definition list with rules ---------- */
.faq dl { margin: 0; }
.faq dl > div { padding: 1.3rem 0; border-top: 1px solid var(--line); display: grid; gap: .35rem; }
@media (min-width: 760px) { .faq dl > div { grid-template-columns: 1fr 1.4fr; gap: 2rem; } }
.faq dt { font-weight: 700; letter-spacing: -0.005em; }
.faq dd { margin: 0; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: left; border-top: 1px solid var(--line); }
/* ---------- System status: a live dot, honest numbers only ----------
   2026-11-09 fix (owner): the section used class "status", which collides
   with the .status badge/pill component (monospace, uppercase,
   white-space:nowrap, inline-flex). The whole section inherited the badge
   font and nowrap, so the "runs in your browser" sentence rendered in
   monospace and ran out of the card on one unbreakable line. The section
   is now .sys-status (own class, marketing sans, normal wrapping), and
   .status-text gets min-width:0 so the flex row can shrink. */
/* System status (2026-11-12, Aric): one centered block, one font size —
   the dot sits centered against the text, and the line, sub-text, uptime
   and history all read at the same size instead of scattered sizes. */
.mk .sys-status{font-family:var(--sans);text-align:center}
.mk .sys-status .status-card{margin-left:auto;margin-right:auto;text-align:left}
.status-card {
  display: flex; gap: 1rem; align-items: center; max-width: 38rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.status-text{min-width:0}
.status-dot {
  width: .9rem; height: .9rem; border-radius: 50%; flex: none;
  background: #9aa39a; transition: background .3s;
}
.status-dot-ok { background: var(--success); box-shadow: 0 0 0 4px rgba(13,157,108,.15); }
.status-dot-warn { background: #c07f0a; box-shadow: 0 0 0 4px rgba(192,127,10,.15); }
.status-dot-down { background: #c62828; box-shadow: 0 0 0 4px rgba(198,40,40,.15); }
.status-line { margin: 0; font-size: 1rem; line-height: 1.55; font-weight: 650; letter-spacing: -0.005em; overflow-wrap: break-word; }
.status-sub { margin: .3rem 0 0; font-size: 1rem; line-height: 1.55; overflow-wrap: break-word; }
.status-uptime { margin: 1rem 0 0; font-size: 1rem; line-height: 1.55; }
.status-history { margin: .6rem 0 0; font-size: 1rem; line-height: 1.55; }
.status-history a { font-weight: 600; }
.final-cta h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 1.4rem; }

/* ---------- Buttons: flat, confident ---------- */
.btn {
  display: inline-block; min-height: 48px; line-height: 1.25;
  padding: 13px 26px; border-radius: 3px;
  border: 1px solid transparent; font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .13s ease, border-color .13s ease, box-shadow .13s ease, transform .06s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary-dark); outline-offset: 1px; border-radius: 3px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }
/* Public-surface crimson (wave26): the call-request page sits outside .mk,
   so its primary button gets the crimson scheme explicitly via .btn-crimson
   instead of the portal-green .btn-primary. Portal buttons are untouched. */
.btn-crimson { background: #9E1B2E; color: #fff; border-color: #9E1B2E; box-shadow: var(--shadow-sm); }
.btn-crimson:hover { background: #701420; border-color: #701420; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; border-color: #e0b8b4; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .88rem; }
.btn-lg { font-size: 1.05rem; padding: 15px 32px; }
.btn-block { display: block; width: 100%; }
span.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.8rem 0 0; }
.link-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: .8rem 0 1.8rem; }

/* ---------- App shell: deep-forest sidebar + warm workspace ----------
   The sidebar carries the workspace nav; the slim topbar holds search and
   the account actions. On phones the sidebar collapses to a horizontal
   strip so every section stays one tap away. */
.appshell { display: flex; min-height: 100vh; align-items: stretch; }
.side {
  width: 264px; flex: 0 0 264px; z-index: 30;
  background: linear-gradient(180deg, var(--nav-from, #1b4230) 0%, var(--nav-to, #122b20) 100%);
  color: var(--nav-text); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side-brand {
  display: block; padding: 20px 20px 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.01em; color: #fff; line-height: 1.25;
}
.side-brand small {
  display: block; margin-top: 5px; font-family: var(--font-body);
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--nav-dim);
}
.side .appnav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nav-dim); padding: 16px 12px 6px; }
.side-label:first-child { padding-top: 10px; }
/* Collapsible sidebar groups (2026-11-06): each group is a <details> whose
   summary is the group label. Chevron is a CSS border, not a glyph. On
   phones the sidebar is a horizontal strip and labels are hidden, so the
   group wrapper flattens out (display:contents) and every link stays
   reachable — a closed group must never hide links on mobile. */
.nav-group { margin: 0; }
.nav-group-head { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.nav-group-head::-webkit-details-marker { display: none; }
.nav-group-head::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--nav-dim); border-bottom: 1.5px solid var(--nav-dim); transform: rotate(-45deg); transition: transform .15s ease; margin-left: 8px; flex: none; }
.nav-group[open] .nav-group-head::after { transform: rotate(45deg); }
/* Bottom options (2026-11-12, Aric): not tabs — Plus, Add to Home Screen,
   Fundamentals, What's new sit at the bottom of the sidebar, above the
   user card. margin-top:auto works because .appnav is a flex column. */
.nav-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.side .appnav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 3px; text-decoration: none; color: var(--nav-text);
  font-weight: 550; font-size: .93rem; line-height: 1.3;
}
.side .appnav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side .appnav a.on { background: #fff; color: var(--navy); font-weight: 700; }
.side .appnav a.on:hover { background: #fff; }
/* Nav icons (2026-11-09, owner): the little line marks from the marketing
   picture. 16px, currentColor, vertically centred with the label. */
.side .appnav a svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.side .appnav a.on svg { opacity: 1; }
.nav-badge {
  margin-left: auto; min-width: 22px; text-align: center;
  font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .14); color: #fff;
  border-radius: 999px; padding: 2px 7px; flex: none;
}
.side .appnav a.on .nav-badge { background: var(--primary); color: #fff; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: #a5d6a7; margin-left: 6px; flex: none; }
.side-user {
  margin: 12px; padding: 12px; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 3px;
}
.side-avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.side-user-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.side-user-name { color: #fff; font-weight: 650; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.role-badge {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--primary-soft); color: var(--primary-dark); padding: 5px 10px; border-radius: 4px;
}
.role-badge-navy { background: rgba(255, 255, 255, .13); color: #fff; }
.appmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 10px 28px;
}
.appuser { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.appsearch { display: flex; gap: 6px; flex: 1 1 auto; max-width: 420px; }
.appsearch input[type=search] { min-height: 40px; padding: 8px 12px; font-size: .9rem; margin: 0; flex: 1; min-width: 0; }
.appsearch .btn { min-height: 40px; padding: 8px 16px; flex: none; }

.pw-wrap { display: flex; gap: 8px; align-items: center; }
.pw-wrap input { flex: 1; min-width: 0; }
/* Password visibility ("eyeball") toggle: a small square icon button, not a
   text button — the eye SVG is the whole label. (2026-11-09, owner.) */
.pw-toggle { flex: none; padding: 6px 8px; line-height: 0; }
.pw-toggle svg { display: block; }
.terms-details { margin-top: .4rem; font-size: .9em; color: var(--muted); }
.terms-details summary { cursor: pointer; display: inline-block; text-decoration: underline; }

/* ---------- Public join page + registration link ---------- */
.join-logo { max-width: 180px; max-height: 90px; border-radius: .5rem; }
.join-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.join-link {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono); font-size: .82rem; background: var(--paper-deep);
  border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px;
}

/* ---------- Breadcrumbs ---------- */
.crumbs { margin: 1.2rem 0 .2rem; }
.crumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; font-family: var(--font-mono); font-size: .74rem; color: var(--faint); flex-wrap: wrap; text-transform: uppercase; letter-spacing: .06em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary-dark); }
.crumb-sep { color: var(--line); }
.crumbs [aria-current=page] { color: var(--ink); }

/* ---------- Cards (app): quiet, flat ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 1.1rem 0; box-shadow: var(--shadow-sm); }
.card > h3:first-child { margin-top: 0; }
.empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line); background: transparent; }
.empty h3 { font-family: var(--font-display); font-size: 1.3rem; }
.empty p { color: var(--muted); max-width: 30rem; margin: .5rem auto 0; }

/* ---------- Forms ---------- */
.form label, .form legend { display: block; margin: 1rem 0; font-weight: 600; font-size: .97rem; }
.form fieldset { border: 0; padding: 0; margin: 1rem 0; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
/* Base field styling. input:not([type]) is included on purpose: an <input>
   with no type attribute defaults to a text field in HTML, but the
   input[type=text] selector does NOT match it — so typeless inputs used to
   render as tiny unstyled browser defaults (e.g. the "Full name" box on the
   "Give someone a login" form was 21px tall next to a 48px Email box).
   (2026-11-09, owner: every box and dropdown sitting next to each other
   must be exactly the same size.) */
/* Every field box is the same size (2026-11-09, owner — "all the same"): one
   rule for ALL input types. The old list named text/email/password/file/
   search/url only, so date, number, tel, and time boxes fell back to the
   browser default and sat at a different height than the text boxes next
   to them. Checkboxes/radios are reset below so they keep their own size. */
input, textarea, select {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px;
  font-size: 1rem; border: 1px solid var(--line); border-radius: 3px;
  background: #fff; font-family: inherit; min-height: 48px; color: var(--ink);
  transition: border-color .13s ease, box-shadow .13s ease;
  box-sizing: border-box;
}
input[type="checkbox"], input[type="radio"] { display: inline-block; width: auto; min-height: 0; margin-top: 0; padding: 0; }
textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--primary); }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.form-row > * { flex: 1 1 200px; min-width: 0; }
/* Alignment (2026-11-09, owner — "I want everything even"): each label is a
   column and its hint pins to the bottom, so the selects share one line and
   the hint hangs below instead of pushing the select up. */
.form-row > label { display: flex; flex-direction: column; }
.form-row > label [data-vis-hint] { margin-top: auto; }
/* "Required" checkbox next to a Type select (2026-11-11, wave25): the
   column rule above stacked the box above the word "Required" and parked
   both up at the "Type" label. A check label inside a .form-row is a row
   again — box beside its word — and centers itself on the select box. This
   covers both inline pairs: New survey (first question) and Add question.
   align-self: center alone centers the label on the whole row, which sits
   ~15px above the select's own center (the "Type" text line above the
   select), so a relative nudge of the same size finishes the alignment.
   (margin-top does not move a centered flex item's border box — the
   margin box is what gets centered — so the nudge is positional.) */
.form-row > label.check { flex-direction: row; align-items: center; align-self: center; position: relative; top: 15px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
/* min-width: 0 lets the fields shrink below their content size, so boxes
   sitting next to each other share the row exactly equally instead of one
   (the one with the longest placeholder/option) hogging width on narrow
   screens. (2026-11-09, owner: all the same size.) */
.form-inline > input, .form-inline > select, .form-inline > label { flex: 1 1 160px; min-width: 0; margin: .5rem 0; }
/* Buttons are direct children too but got no margin rule, so they sat 8px
   lower than the fields. Same margin, no flex-grow — they keep their size. */
.form-inline > button { margin: .5rem 0; }
/* File inputs render 50px tall vs the 48px field height — pin them even. */
.form-inline input[type="file"] { height: 48px; min-height: 48px; }
/* Narrow screens: a wrapped row splits unevenly (e.g. two fields on row 1,
   one field + the button on row 2), so the fields end up different widths.
   Stacking each field to its own full-width row keeps every box exactly the
   same size. (2026-11-09, owner: all the same size.) */
@media (max-width: 560px) {
  .form-inline > input, .form-inline > select, .form-inline > label,
  .form-row > * { flex: 1 1 100%; }
}
.nowrap { white-space: nowrap; }

/* ---------- Flash ---------- */
.flash { padding: 14px 18px; border-radius: var(--radius); margin: 1.1rem 0; font-weight: 600; border: 1px solid; }
.flash-ok { background: var(--success-soft); border-color: var(--success); color: var(--success-dark); }
.flash-error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

/* ---------- Checklist: numbered, editorial ---------- */
.progress { height: 8px; background: var(--line-soft); border-radius: 6px; overflow: hidden; margin-top: 1.4rem; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 6px; transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.progress-label { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-top: .6rem; text-transform: uppercase; letter-spacing: .08em; }
.steps { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-check {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--faint);
  border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.step.done .step-check { background: var(--success); border-color: var(--success); color: #fff; }
.step-body { flex: 1; }
.step-body strong { font-size: 1.02rem; }
.step-body p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.step-done-label { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--success-dark); }

/* ---------- Tables: rules, not boxes ---------- */
/* One table block (2026-11-09, owner — "all the same"): there used to be two
   competing .table blocks and the later one silently overrode the earlier
   one's padding. Everything table lives here now, one set of numbers. */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.6rem; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; border-bottom-width: 2px; }
.table thead th { background: var(--paper-deep); }
.table tbody tr:hover td { background: var(--paper-deep); }
.table .num { text-align: right; white-space: nowrap; }

/* ---------- Badges, tags, pills: soft, dotted ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; padding: 4px 11px; border-radius: 999px;
  background: var(--paper-deep); color: var(--muted); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
/* RSVP marker (2026-11-09, owner): the dashboard and the calendar both show
   your own RSVP on each event, so you can see at a glance which ones
   you're going to. Green for going, muted for maybe / waitlisted / no. */
.rsvp-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.rsvp-badge.rsvp-yes { color: var(--success-dark); }
.kind-tag {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--faint); border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 7px; margin-right: 6px;
}
.vis-public { background: var(--primary-soft); color: var(--primary-dark); }
.vis-residents { background: #e3ecdd; color: #2f5d3a; }
.vis-board { background: var(--amber-soft); color: var(--amber); }
.vis-admin { background: #ece5f2; color: #5b3a86; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; padding: 4px 11px; border-radius: 999px;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-open { background: var(--amber-soft); color: var(--amber); }
.status-in_progress { background: var(--primary-soft); color: var(--primary-dark); }
.status-resolved { background: var(--success-soft); color: var(--success-dark); }
.pri {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; padding: 4px 11px; border-radius: 999px;
  background: var(--paper-deep); color: var(--muted); white-space: nowrap;
}
.pri::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pri-urgent { background: var(--danger-soft); color: var(--danger); }
.pri-high { background: var(--amber-soft); color: var(--amber); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 1rem 0; }
.chip {
  font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 15px; border-radius: 20px; border: 1px solid var(--line);
  background: transparent; text-decoration: none; color: var(--muted); font-weight: 600;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #f2efe6; }

/* ---------- Stats ---------- */
.grid3, .grid2 { display: grid; gap: 1rem; margin: 1.6rem 0; }
.grid3 { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(3, 1fr); } .grid2 { grid-template-columns: repeat(2, 1fr); } }
.stats .stat { text-align: left; text-decoration: none; color: inherit; display: block; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.stat span { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
a.stat:hover { border-color: var(--ink); }

/* ---------- Composed home dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.2rem 0; }
/* Grid items default to min-width:auto, which lets one widget's min-content
   (e.g. the learning checklist's flex rows) stretch the whole track past the
   viewport on phones. Force tracks to respect the container instead. */
.dash-grid > * { min-width: 0; }
@media (min-width: 720px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid .dash-full { grid-column: 1 / -1; }
}
.dash-widget { margin: 0; }
/* At-a-glance stat strip (2026-11-09, owner): the four numbers from the
   marketing-page portal picture, in the same visual language. */
.dash-stats { padding: 0; border: 0; background: transparent; box-shadow: none; }
.dash-stats .portal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.dash-stats .portal-stat { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--card); text-decoration: none; }
.dash-stats .portal-stat b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.dash-stats .portal-stat span { font-size: 11.5px; color: var(--muted); font-weight: 500; line-height: 1.35; display: block; margin-top: 1px; }
@media (max-width: 720px) { .dash-stats .portal-stats { grid-template-columns: repeat(2, 1fr); } }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; }
.dash-head h2 { margin: 0; font-size: 1.05rem; flex: 1 1 auto; }
.dash-more { font-size: .85rem; white-space: nowrap; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { padding: .55rem 0; border-top: 1px solid var(--line); }
.dash-list li:first-child { border-top: 0; padding-top: 0; }
.dash-big strong { font-family: var(--font-display); font-size: 2rem; }
.dash-welcome h1 { margin-top: 0; }
.dash-banner { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); margin: 0 0 1rem; }
/* Dashboard identity header (2026-11-09, owner): the logo + banner from
   Settings at the very top of the dashboard. Banner as a wide cover, logo
   beside the community name. The prompt card (no logo/banner yet) uses the
   same card + cta-row pattern as the other dashboard nudges. */
.dash-identity { margin: 0 0 1.25rem; }
.dash-identity-banner { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); }
.dash-identity-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.dash-identity-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); padding: 6px; flex: none; }
.dash-identity-name { font-size: 1.6rem; margin: 0; line-height: 1.2; }
.dash-identity-prompt { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-identity-prompt h2 { margin: 0 0 .25rem; }
/* Group add-member typeahead (2026-11-09, owner): the suggestion list under
   the "type a member's name" box. Plain buttons, one per match. */
.suggest-list { margin: .25rem 0 .5rem; }
.suggest-list .suggest-item { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .6rem; margin-bottom: .3rem; cursor: pointer; font: inherit; }
.suggest-list .suggest-item:hover, .suggest-list .suggest-item:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.banner-preview { max-width: 100%; max-height: 120px; border-radius: 3px; border: 1px solid var(--line); }
.dash-html p:first-child { margin-top: 0; }
/* Widget icons (2026-11-06 sharpening): one big circular line-icon mark +
   a short label, lots of breathing room — the home-screen widget pattern.
   Crimson circle, crisp edges, no shadows. The mark color follows the
   community's own primary, never a borrowed brand color. */
.widget-icon, .hero-icon {
  width: 64px; height: 64px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--primary); border-radius: 50%; color: var(--primary);
}
.widget-icon svg, .hero-icon svg { width: 30px; height: 30px; display: block; }
.widget-icon-sm { width: 52px; height: 52px; }
.widget-icon-sm svg { width: 26px; height: 26px; }
.dash-head-icon {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--primary); border-radius: 50%; color: var(--primary);
}
.dash-head-icon svg { width: 20px; height: 20px; display: block; }
/* Weather widget on the home screen: big temperature beside the sun mark. */
.wx-widget { display: flex; align-items: center; gap: .9rem; margin: 1.1rem 0 0; }
.wx-temp { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
/* Member home hero: the three unavoidable actions as widget cards — one big
   circular line-icon mark, a short label, generous spacing. One column on
   phones, three across on desktop. Every card is a single link — no nested
   controls, no ambiguity about where a tap lands. */
.hero-row { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin: 0 0 1.2rem; }
.hero-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .8rem; min-height: 172px; justify-content: center;
  padding: 1.5rem 1rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.hero-card:hover { border-color: var(--primary); text-decoration: none; }
.hero-card:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 0; }
.hero-text strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.hero-text small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
@media (max-width: 900px) { .hero-row { grid-template-columns: 1fr; } }
/* Latest announcement renders in full on the home screen — no click-through
   needed to read what's new. Long bodies fall back to a teaser + link. */
.dash-announce-full { margin: .4rem 0 0; white-space: pre-wrap; line-height: 1.55; }
/* Ticket photo: big, tappable, inline on the request page. */
.ticket-photo-fig { margin: 0 0 1.2rem; }
.ticket-photo { display: block; width: 100%; max-width: 560px; border-radius: var(--radius); border: 1px solid var(--line); }
.ticket-photo-fig figcaption { margin-top: .4rem; }
/* Reply photo (in-thread): same treatment as the ticket photo, smaller. */
.reply-photo-fig { margin: .6rem 0 0; }
.reply-photo { display: block; width: 100%; max-width: 420px; border-radius: var(--radius); border: 1px solid var(--line); }
/* Activity log (ticket thread, bottom): one line per event, oldest first. */
.activity-log { border-top: 1px solid var(--line); }
.activity-row { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.activity-row-internal { background: #f2edfb; border-radius: 3px; padding: .6rem .8rem; }
/* Photo-first request form: the file input is a full-width 56px target. */
.photo-label { display: block; }
.photo-input {
  display: block; width: 100%; margin-top: .4rem; min-height: 56px; padding: .7rem;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card);
  font-size: 1rem; cursor: pointer;
}
.dash-edit-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.dash-edit-row { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .6rem; background: var(--card); }
.dash-edit-row > div:first-child { margin-bottom: .5rem; }
.dash-edit-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.dash-edit-row details { margin-top: .6rem; }
.dash-edit-row summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.tabrow { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.4rem; }

/* ---------- Lines, reports, misc ---------- */
.ok-line, .warn-line { padding: 14px 0; font-weight: 600; border-top: 1px solid var(--line); margin-top: 1.4rem; }
.ok-line { color: var(--primary-dark); }
.warn-line { color: #8a5a12; }
.report { border-radius: var(--radius); padding: 14px 18px; margin: .9rem 0; border: 1px solid; }
.report-ok { background: var(--primary-soft); border-color: var(--primary); }
.report-warn { background: var(--warn-soft); border-color: #d9a91f; }
.report ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .9rem; }
.disclaimer { background: var(--warn-soft); border: 1px solid #e3cf9a; border-radius: var(--radius); padding: 14px 18px; margin: 1.1rem 0; font-size: .92rem; }
.prose p { margin: .9rem 0; max-width: 44rem; }
.article-card { text-decoration: none; color: inherit; display: block; transition: border-color .13s ease; }
.article-card:hover { border-color: var(--ink); }
.read-more { color: var(--primary-dark); font-weight: 700; }
.site-hero { padding: 3.5rem 0 1.5rem; max-width: 44rem; }
.site-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.site-logo { max-height: 84px; border-radius: 3px; }
.doc-list { list-style: none; padding: 0; display: grid; gap: 0; }
.doc-list li { padding: .85rem 0; border-top: 1px solid var(--line-soft); }
.doc-list a { text-decoration: none; font-weight: 600; }
.doc-list a:hover { text-decoration: underline; }
.ticket-row p { margin: .2rem 0; }
.logo-preview { max-height: 80px; border-radius: 3px; border: 1px solid var(--line); }
.foot { margin-top: 4rem; padding: 1.6rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Search ---------- */
.bigsearch { display: flex; gap: 10px; margin: 1.6rem 0; max-width: 40rem; }
.bigsearch input[type=search] { flex: 1; margin: 0; font-size: 1.05rem; padding: 14px 18px; }
@media (max-width: 560px) {
  .bigsearch { flex-direction: column; }
  .bigsearch .btn { width: 100%; }
}

/* ---------- Theme picker & live preview ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
@media (max-width: 560px) { .theme-grid { grid-template-columns: 1fr; } }
.theme-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 !important;
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer; background: var(--card);
  font-weight: 600; transition: border-color .13s ease;
}
.theme-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-card:hover { border-color: var(--ink); }
.theme-card.on { border-color: var(--primary); background: var(--primary-soft); }
.swatches { display: flex; }
.swatches span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; outline: 1px solid var(--line); }
.swatches span:first-child { margin-left: 0; }
.theme-name { font-size: .9rem; }
.preview-box { margin: 1.2rem 0; }
.preview-label { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 .5rem; }
.preview-site { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: background .2s ease; }
.preview-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0 0 .4rem; }
.preview-desc { color: var(--muted); margin: 0 0 1rem; }

/* ---------- Tickets & AI assist: warm paper, editorial ---------- */
.ai-card { background: var(--primary-soft); border: 1px solid var(--line); }
.ai-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-top: .4rem; }
.draft-card { border: 1px solid var(--line); }
.draft-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-top: .4rem; }
.draft-text {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 1rem 1.2rem; white-space: pre-wrap; font-size: .95rem; line-height: 1.65;
}
.reply { border-top: 1px solid var(--line); padding: 1rem 0; margin: 0; }
.reply p { margin: .3rem 0; max-width: 44rem; }
.reply-meta { font-size: .88rem; }
.reply-ai { background: var(--primary-soft); border: 1px solid var(--line); border-radius: 3px; padding: 1rem 1.2rem; }
/* Internal (board-only) ticket entries: distinct lavender treatment in the
 * same thread. Residents never receive these rows — server-side filtered. */
.reply-internal { background: #f2edfb; border: 1px solid #d6c6f2; border-radius: 3px; padding: 1rem 1.2rem; }
.badge-internal { background: #e0d2f8; color: #5b21b6; }
.audience-choice { display: flex; flex-direction: column; gap: .45rem; margin: .9rem 0; padding: .8rem 1rem; background: var(--primary-soft); border: 1px solid var(--line); border-radius: 3px; }
.audience-choice .radio { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.approval-card { border-left: 4px solid #7c5cd6; }
.approval-tally { font-size: 1.1rem; }

/* ---------- Plus page: mock previews ---------- */
.plus-feature { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.plus-feature h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin: 0 0 .6rem; }
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 1.2rem 1.4rem; margin-top: 1.2rem; max-width: 34rem; }
.mock-eyebrow { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 .6rem; }
.mock-line { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line-soft); font-size: .92rem; margin: 0; }
.mock-tag { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; background: var(--paper-deep); color: var(--muted); padding: 3px 8px; border-radius: 4px; flex: none; }

/* ---------- Quick links ---------- */
.quicklinks { margin: 1.4rem 0; }
.quicklinks .eyebrow { margin-bottom: .7rem; }

/* ---------- Danger zone ---------- */
.danger-zone { border: 1px solid #e0b8b4; }
.danger-zone h3 { color: var(--danger); }

/* ---------- Footer ---------- */
.foot-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Public community site ---------- */
.contact-line .eyebrow { display: inline; margin-right: .5rem; }
section { margin-bottom: .4rem; }

/* ---------- Groups ---------- */
.vis-groups { background: #e6eef3; color: #1f5f8b; }
.subpick { margin: .4rem 0 1rem; padding: .9rem 1rem; border: 1px dashed var(--line); border-radius: 3px; background: var(--paper-deep); }
.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: stretch; }
/* Wave26: cards in a .two-col row stretch to the row height, so pairs match
   (Reports, group detail, and every other card pair using this grid). */
/* Reports Highlights (2026-11-09, owner): the "what needs your attention"
   summary at the top of the Reports page. */
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.hl-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.hl-item strong { display: block; font-size: 15px; line-height: 1.35; margin-bottom: 3px; }
@media (max-width: 720px) { .hl-grid { grid-template-columns: 1fr; } }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.label-like { font-size: .82rem; font-weight: 600; color: var(--muted); margin: 0 0 .4rem; }
.link-danger { background: none; border: none; padding: 0; color: var(--danger); font-size: .82rem; cursor: pointer; text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Group chat ---------- */
.chat-card { padding: 0; overflow: hidden; }
.chat-log { max-height: 26rem; overflow-y: auto; padding: 1rem 1.2rem; }
.chat-msg { border-bottom: 1px solid var(--line-soft); padding: .7rem 0; }
.chat-msg:last-child { border-bottom: none; }
.chat-photo { max-width: 100%; max-height: 22rem; border-radius: .5rem; }
.chat-photo-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; }
.chat-meta { margin: 0 0 .2rem; font-size: .9rem; }
.chat-body { margin: 0; white-space: pre-wrap; word-break: break-word; max-width: 44rem; }
.chat-form { display: flex; gap: .6rem; padding: .8rem 1rem; border-top: 1px solid var(--line); background: var(--paper-deep); }
/* Chat bar (2026-11-12, Aric): the message field is the wide one — the
   file input used to share `flex: 1` and squeeze the text box to a sliver.
   Only the message input grows; Photo and Send stay secondary. */
.chat-form input[name="body"] { flex: 1 1 auto; min-width: 0; }
.chat-form input[type="file"] { flex: 0 1 auto; max-width: 9rem; }
.chat-form .chat-photo-label, .chat-form button { flex: none; }

/* ---------- Calendar ---------- */
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 1rem; font-size: .88rem; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: .4rem; }
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.cal-dow { background: var(--paper-deep); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .55rem .6rem; }
.cal-day { background: var(--card); min-height: 6.2rem; padding: .4rem .5rem; position: relative; }
.cal-empty { background: var(--paper-deep); min-height: 6.2rem; }
.cal-num { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-today { background: var(--primary-soft); }
.cal-today .cal-num { font-weight: 700; color: var(--ink); background: var(--accent); color: #fff; border-radius: 50%; width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center; }
.cal-event { display: block; font-size: .8rem; line-height: 1.35; padding: .28rem .3rem; margin: .25rem 0; border-radius: 5px; background: var(--paper-deep); color: var(--ink); text-decoration: none; overflow: hidden; }
.cal-event:hover { background: var(--line-soft); text-decoration: none; }
.cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; }
.cal-time { color: var(--muted); font-size: .76rem; margin-right: .25rem; }
.cal-add { position: absolute; bottom: .3rem; right: .45rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--paper-deep); color: var(--muted); font-size: 1rem; line-height: 1.35rem; text-align: center; text-decoration: none; opacity: 0; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-add:hover { background: var(--accent); color: #fff; }
.swatch { position: relative; width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; margin-right: .45rem; }
.swatch input { position: absolute; opacity: 0; }
.swatch:has(input:checked) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Amenities: day picker as crisp toggles (2026-11-06) ----------
   The old screen showed bare browser-default checkboxes. Days are now
   rounded-rectangle toggles — tap to turn a day on, tap again to turn it off.
   The native checkbox stays in the label (keyboard + screen-reader friendly),
   visually hidden; :has() paints the toggle from its state. */
.day-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.day-check {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #c0392b; border-radius: 8px; padding: 8px 16px;
  cursor: pointer; font-weight: 600; font-size: .92rem; background: #fdf0ef;
  transition: border-color .13s ease, background .13s ease, color .13s ease;
}
.day-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-check:hover { border-color: var(--ink); }
.day-check:has(input:checked) { border-color: #2e7d32; background: #e8f5e9; color: #1b5e20; }
.day-check:has(input:focus-visible) { outline: 2px solid var(--primary-dark); outline-offset: 2px; }

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .cal-day { min-height: 3.4rem; }
  .cal-event { font-size: .72rem; }
}

/* ---------------- Round 3: toggles, preview banner, subnav, reports, email ---------------- */

/* Toggle switches (feature flags) — real switches, not checkboxes.
   On/off must be unmistakable at a glance (2026-11-09, owner): green = on,
   red = off. No more pale grey that reads as "white" either way. */
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.switch-row:last-of-type { border-bottom: none; }
.switch-row .hint { margin: 2px 0 0; }
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px; margin: 0;
  /* Off = neutral grey, never red (red reads as an error). The margin: 0
     matters: the global `.form label { margin: 1rem 0 }` rule used to hit
     this label too, and its 32px of vertical margin collapsed the 30px
     track to zero height — only the white knob showed (2026-11-12). */
  background: #c9c9c9; transition: background .18s ease;
}
.switch .slider::before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; transition: transform .18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked + .slider { background: #2e7d32; }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--primary-dark); outline-offset: 2px; }

/* View-as preview banner — amber, distinct, not alarming */
.preview-banner { background: #f7e8c3; border-bottom: 1px solid #e4cf9a; color: #5c4a1e; }
.preview-banner-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; font-size: .95rem; }
.preview-exit { background: #5c4a1e; color: #fff; border: none; }
.preview-exit:hover { background: #473917; }

/* Demo role banner (Maple Grove) — the role is unmistakable at a glance:
   red for board, blue for resident, with a one-tap role switch. */
.demo-role-banner { border-bottom: 2px solid; }
.demo-role-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; font-size: .95rem; }
.demo-role-board { background: #fbe9e9; border-color: #c0392b; color: #7a1f14; }
.demo-role-resident { background: #e8f1fb; border-color: #2b6cb0; color: #1c3f66; }

/* Settings sub-navigation */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 1.4rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.subnav a { padding: 9px 14px; border-radius: 6px 6px 0 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .94rem; }
.subnav a.on { background: var(--primary-soft); color: var(--primary-dark); }
.subnav a:hover { color: var(--primary-dark); }

/* Report bars — flat divs, no chart library */
.bars { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-day { width: 44px; flex: 0 0 auto; }
.bar-track { flex: 1 1 auto; background: var(--paper-deep); border-radius: 4px; height: 14px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 4px; min-width: 2px; }
.bar-n { width: 30px; text-align: right; }
.big-stat { font-family: var(--font-display); font-size: 2.6rem; margin: .4rem 0; color: var(--primary-dark); }
.rank-num { color: var(--faint); font-family: var(--font-mono); font-size: .85rem; }

/* DNS instructions */
.dns-steps { margin: .6rem 0; padding-left: 1.4rem; }
.dns-steps li { margin: .5rem 0; }
.notice-card { background: var(--warn-soft); border: 1px solid #e4cf9a; }

/* Email composer */
.ai-draft-card { background: var(--paper-deep); border: 1px solid var(--line); margin: 1rem 0; }
.ai-draft-card h4 { margin-top: 0; }
.email-preview { background: var(--card); border: 1px dashed var(--line); }
.prose p { margin: .5em 0; }
.subpick { margin: .4rem 0 .8rem 1.6rem; }

/* Folder + document group badges */
.vis-groups { background: #e8e4f2; color: #4a3a7a; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; margin: .4rem 0; }
/* Option rows (2026-11-10, wave22a): ONE system for every checkbox and
   radio label site-wide — same 18px box, same 8px gap, same first-line
   baseline. .check, .radio and .check-row are the same rule, so a box on
   the survey, the RSVP form, a group list or the email composer looks
   identical. Card pickers (theme/voice/source cards), color swatches,
   day chips and toggle switches keep their own deliberate designs. */
.check, .radio, .check-row { display: flex; align-items: flex-start; gap: 8px; font-size: .95rem; font-weight: 400; cursor: pointer; }
.check input[type="checkbox"], .check input[type="radio"],
.radio input[type="checkbox"], .radio input[type="radio"],
.check-row input[type="checkbox"], .check-row input[type="radio"] {
  flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--primary);
}
/* Card pickers (theme / banner / template / voice / migration source) and
   small inline labels carry a visible box too — same 18px, same accent. */
.source-card > input[type="radio"], .theme-card > input[type="radio"], .voice-card > input[type="radio"],
label.small > input[type="checkbox"], label.small > input[type="radio"] {
  width: 18px; height: 18px; flex: none; margin: 0 2px 0 0; padding: 0; vertical-align: -3px; accent-color: var(--primary);
}

/* ---------- Billing ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 1.1rem 0; }
.panel > h2:first-child, .panel > h3:first-child, .panel > .eyebrow:first-child { margin-top: 0; }
.panel-highlight { border-color: var(--primary); background: #edf4ea; }
.panel-warn { border-color: #c98a2e; background: #fdf6e9; }
.sub-banner { border-bottom: 1px solid var(--line); font-size: .95rem; }
.sub-banner-trial { background: var(--success-soft); border-bottom-color: #bfe6d2; color: var(--success-dark); }
.sub-banner-warn { background: #fdf6e9; border-bottom-color: #e4cf9a; color: #5c4a1e; }
.sub-banner-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.founding-callout { max-width: 880px; margin: 2rem auto 0; padding: 1.6rem 1.8rem; border: 1px dashed var(--primary); border-radius: var(--radius); background: #f1f6ee; text-align: left; }
.founding-callout .btn { margin-top: .6rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.4rem 0; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat-n { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.stat-l { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: .3rem 0 0; }
.flag { display: inline-block; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; background: #fdf6e9; border: 1px solid #e4cf9a; color: #5c4a1e; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.status-active { color: var(--success-dark); font-weight: 700; }
.status-trial, .status-extended { color: var(--primary-dark); font-weight: 700; }
.status-past_due, .status-cancelled, .status-expired { color: #a33232; font-weight: 700; }
.tier-plus .btn-ghost { color: #f2efe6; border-color: #5a574c; }
.tier-plus .btn-ghost:hover { border-color: #f2efe6; }

/* ---------- Badges: ok / warn / muted ---------- */
.badge-ok { background: var(--success-soft); color: var(--success-dark); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-muted { background: var(--paper-deep); color: var(--faint); }

/* ---------- Row actions (inline button clusters) ---------- */
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }

/* ---------- Landing designer ---------- */
.lp-status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-two-col { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 1rem; }
@media (min-width: 720px) { .lp-two-col { grid-template-columns: 1fr 1fr; } }
.lp-thumb { display: block; max-width: 100%; width: 340px; border-radius: var(--radius); margin: .8rem 0; }
.lp-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 1rem; }
.lp-gal-row { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.lp-gal-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lp-gal-row .row-actions { padding: 8px; justify-content: center; }
.lp-amen-edit { list-style: none; margin: 1rem 0 0; padding: 0; }
.lp-amen-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.lp-amen-row:last-child { border-bottom: 0; }

/* ---------- Public landing page ---------- */
.lp { background: #fffdf8; color: #23211a; font-size: 1.02rem; line-height: 1.65; }
.lp-wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.lp-top { border-bottom: 1px solid #ece3cf; background: #fffdf8; padding: 14px 0; }
.lp-top .lp-wrap { display: flex; justify-content: space-between; align-items: baseline; }
.lp-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.lp-logo { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.lp-est { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.lp-preview-banner { background: #23211a; color: #f5f1e4; font-size: .88rem; padding: 10px 0; }
.lp-preview-banner .lp-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-preview-banner a { color: #ffd98a; }
.lp .eyebrow { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--faint); margin: 0 0 .6rem; }
.lp h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem; }
.lp .lede { font-size: 1.18rem; color: #57534a; max-width: 44rem; }
.lp .section-title { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.01em; margin: 0 0 1.2rem; }
.lp-section { padding: 3.2rem 0; border-top: 1px solid #efe7d2; }
.lp-section:first-of-type { border-top: 0; }
.lp-prose p { margin: 0 0 1rem; max-width: 46rem; }
.lp-hero-media, .lp-hero-wide { display: block; width: 100%; border-radius: var(--radius); }
.lp-hero-wide { max-height: 480px; object-fit: cover; margin-bottom: 2.2rem; }
.lp-media-empty { border: 2px dashed #d8cdae; border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: var(--faint); }
/* classic */
.lp-classic .lp-hero-center { text-align: center; padding: 4.5rem 0 3.2rem; }
.lp-classic .lp-hero-center .lede { margin-left: auto; margin-right: auto; }
.lp-classic .lp-hero-media-wrap { margin-top: 2.4rem; }
.lp-classic .lp-hero-media { max-height: 520px; object-fit: cover; }
.lp-classic .section-title { text-align: center; }
.lp-classic .eyebrow { color: #2e6b34; }
/* modern */
.lp-modern .lp-hero-split { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 4rem 0 3rem; align-items: center; }
@media (min-width: 860px) { .lp-modern .lp-hero-split { grid-template-columns: 1.05fr .95fr; } }
.lp-modern .lp-hero-media-wrap .lp-hero-media { max-height: 460px; object-fit: cover; }
.lp-modern .eyebrow { color: #1f5f8b; }
.lp-modern .section-title { border-left: 4px solid #1f5f8b; padding-left: 14px; }
/* countryside */
.lp-countryside { background: #faf5e9; }
.lp-countryside .lp-top { background: #faf5e9; }
.lp-countryside .lp-hero-country { padding: 0 0 3rem; }
.lp-countryside .lp-hero-country h1 { font-style: italic; }
.lp-countryside .eyebrow { color: #8a5a12; }
.lp-countryside .section-title { color: #6b4a12; }
/* gallery / amenities / facts */
.lp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lp-gallery figure { margin: 0; }
.lp-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.lp-gallery figcaption { font-size: .85rem; color: var(--faint); margin-top: 6px; }
.lp-amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px 28px; }
@media (min-width: 720px) { .lp-amenities { grid-template-columns: 1fr 1fr; } }
.lp-amenities li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid #f0e8d3; }
.lp-amenities li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px; border-left: 3px solid #2e6b34; border-bottom: 3px solid #2e6b34; transform: rotate(-45deg) translateY(-4px); }
.lp-amenities li span { display: block; color: var(--faint); font-size: .92rem; }
.lp-facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
@media (min-width: 720px) { .lp-facts { grid-template-columns: 1fr 1fr; gap: 0 32px; } }
.lp-facts > div { padding: 12px 0; border-bottom: 1px solid #f0e8d3; }
.lp-facts dt { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.lp-facts dd { margin: 2px 0 0; font-weight: 600; }
.lp-move { background: #f7f3e6; border-radius: var(--radius); padding-left: 24px; padding-right: 24px; }
.lp-move-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) { .lp-move-grid { grid-template-columns: 1fr 1fr; } }
.lp-form { background: #fff; border: 1px solid #e7dcc2; border-radius: var(--radius); padding: 1.6rem; }
.lp-form label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: .92rem; }
.lp-form input[type="text"], .lp-form input[type="email"], .lp-form textarea { width: 100%; margin-top: 6px; }
.lp-form .fine { font-size: .82rem; color: var(--faint); margin: .8rem 0 0; }
.lp-sent { background: #eef4e8; border: 1px solid #cfe0bd; border-radius: var(--radius); padding: 1.6rem; }
.lp-sent h3 { margin-top: 0; }
.lp-foot { border-top: 1px solid #ece3cf; padding: 1.6rem 0 2.2rem; margin-top: 1rem; }
.lp-foot .lp-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.lp-foot a { color: inherit; }

/* ---------- Surveys ---------- */
.sv-list .sv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.sv-list .sv-row:last-child { border-bottom: 0; }
.sv-voted { color: var(--success-dark); font-weight: 600; }
.sv-form { max-width: 720px; }
.sv-q { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 1.2rem 1.3rem; margin: 0 0 1.1rem; }
.sv-q legend { font-weight: 700; padding: 0 6px; }
.sv-qnum { color: var(--faint); font-weight: 400; margin-right: 4px; }
.sv-req { color: #a33232; font-weight: 700; }
.sv-q textarea { width: 100%; }
/* Scale answers: equal-width pills in even rows. The old flex-wrap let the
   pills wrap into ragged rows ("10" wider than "1", a short second row on
   a phone) — that read as uneven boxes. A 5-column grid keeps every pill
   the same size: scale 1–5 is one even row, scale 1–10 is two even rows. */
.sv-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: .4rem; }
.sv-scale-opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 20px; padding: 6px 8px; cursor: pointer; font-weight: 600; min-height: 44px; }
.sv-scale-opt input { accent-color: var(--primary); }
/* Clickable answer buttons (2026-11-09): every choice option is a big
   tappable card — the label wraps the input, so the whole card is the
   target. :has() highlights the picked card. (2026-11-16: even rhythm —
   the old top-aligned radio sat high on wrapped options while one-line
   options stayed short, so the cards read uneven. A shared min-height
   and a vertically centered radio keep every card the same presence.) */
.sv-opts { display: grid; gap: 8px; margin-top: .4rem; }
.sv-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: .4rem; }
.sv-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; background: var(--card); min-height: 48px; }
.sv-opt input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.sv-opt-yn { justify-content: center; font-size: 1.05rem; padding: 16px 14px; }
.sv-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft, #f6ecec); }
.sv-scale-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--faint); margin-top: 6px; }
.sv-qlist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.sv-qrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
/* Two-part questions (2026-11-16): the follow-up sits inside the same
   question card, set apart by a hairline and a "Follow-up" badge so the
   two parts read as one question with two steps, never one list. */
.sv-part { border-top: 1px dashed var(--line); margin-top: 1rem; padding-top: 1rem; }
.sv-part-label { font-weight: 700; margin: 0 0 .4rem; }
.sv-followup { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0; }
.sv-followup legend { font-weight: 700; padding: 0 6px; }
.sv-qrow:last-child { border-bottom: 0; }
.sv-addq { border-top: 1px dashed var(--line); padding-top: 1.2rem; margin-top: .4rem; }
.sv-bar-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 90px; gap: 10px; align-items: center; padding: 7px 0; }
.sv-bar-label { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.sv-bar { background: var(--paper-deep); border-radius: 5px; height: 10px; overflow: hidden; }
.sv-bar span { display: block; height: 100%; background: var(--primary); border-radius: 5px; }
.sv-bar-num { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); text-align: right; white-space: nowrap; }
.sv-avg { font-size: 1.05rem; }
.sv-texts { list-style: none; margin: .4rem 0 0; padding: 0; }
.sv-texts li { border-left: 3px solid var(--primary-soft); padding: 6px 0 6px 12px; margin-bottom: 10px; font-style: italic; color: #4a463c; }
.sv-result h3 { margin-bottom: 2px; }

/* --- "Make it theirs" bundle: folders, logo studio, brand colors, stock, calendar --- */
.folder-glyph { width: 1.1em; height: 1.1em; vertical-align: -0.15em; color: var(--primary); }
.folder-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 12px 0; }
.folder-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); text-decoration: none; color: inherit; }
.folder-card:hover { border-color: var(--primary); }
.folder-card .folder-glyph { width: 1.6em; height: 1.6em; }
.folder-card-name { font-weight: 600; flex: 1; }
/* Folder card "Who can see it" badge (2026-11-09, owner): the badge reads at
   the same size as the folder name, on the same line — no more tiny pill
   next to a big bold name. Normal case (not shouty uppercase) at this size. */
.folder-card .badge { font-size: 1rem; font-family: inherit; text-transform: none; letter-spacing: 0; }
/* Drag-and-drop upload zone (2026-11-09, owner): the Documents library
   takes files straight from the computer — drop them on the zone. */
.dropzone { border: 2px dashed var(--line); border-radius: 6px; padding: 18px 16px; text-align: center; background: var(--paper); transition: border-color .15s, background .15s; }
.dropzone.drag-over { border-color: var(--primary); background: var(--paper-deep); }
.dropzone input[type="file"] { display: block; margin: 10px auto 0; }
.folder-tree { list-style: none; margin: 10px 0 0; padding: 0; }
.folder-tree li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.tree-branch { color: var(--faint); }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.logo-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); text-decoration: none; color: inherit; text-align: center; }
.logo-card:hover { border-color: var(--primary); }
.logo-card-btn { cursor: pointer; font: inherit; width: 100%; }
.logo-preview-lg { width: 110px; height: 110px; }
.logo-preview-lg svg { width: 100%; height: 100%; }
.logo-card-name { font-weight: 600; }
.logo-preview-sm { width: 56px; height: 56px; flex: none; }
.logo-preview-sm svg { width: 100%; height: 100%; }
.logo-picked { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; background: var(--card); margin: 0 0 18px; }
.logo-teaser { border: 1px dashed var(--line); border-radius: 3px; padding: 12px 14px; margin: 0 0 18px; }

.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 10px; }
.stock-card { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--card); }
.stock-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.stock-label { font-weight: 600; font-size: .85rem; padding: 8px 10px 0; }
.stock-card .row-actions { padding: 8px 10px 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.swatch-field { border: 0; padding: 0; margin: 0 0 12px; }
.swatch-field legend { font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch-auto { width: auto; height: 34px; border-radius: 17px; padding: 0 14px; border: 2px dashed var(--line); font-size: .8rem; font-weight: 600; color: var(--muted); background: none; }
.swatch-auto.on { border-color: var(--ink); color: var(--ink); box-shadow: none; }

.mono { font-family: var(--font-mono, monospace); }
.cat-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; vertical-align: baseline; }

/* ---------------- Help center ---------------- */

/* Large-text mode: one tap in the Help center bumps everything ~125%.
   Set by an inline <script> in <head> from the sh_large_text cookie. */
html.large-text { font-size: 125%; }
html.large-text body { font-size: 21px; }

.help-card h2 { margin-top: 0; }
.faq-search { display: flex; gap: 8px; margin: 0 0 12px; }
.faq-search input[type="search"] { flex: 1; }
.faq-list { list-style: none; padding: 0; margin: 0 0 8px; }
.faq-list li { margin: 0 0 6px; }
.faq-list a { font-weight: 550; }

details.faq {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin: 0 0 10px;
}
details.faq summary {
  cursor: pointer; font-weight: 650; padding: 14px 16px; list-style: none;
  display: flex; align-items: center; gap: 10px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; font-weight: 800; color: var(--primary); flex: none; }
details.faq[open] summary::before { content: "–"; }
details.faq .faq-a { padding: 0 16px 16px 36px; color: var(--ink); line-height: 1.65; }
.faq-wrap { margin-top: 18px; }
/* Permissions hub: condensed toggle lists inside each collapsible group. */
ul.tight { margin: .4rem 0 .2rem; padding-left: 1.2rem; }
ul.tight li { margin: .35rem 0; line-height: 1.5; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 18px; }
.video-card video { width: 100%; border-radius: 3px; background: #111; display: block; margin-bottom: 12px; aspect-ratio: 16/10; }
.video-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.video-card details.faq { margin-top: 10px; }

/* Recorded demo experience */
.demo-step .eyebrow { margin-bottom: 8px; }
.demo-next { margin-top: 28px; padding: 24px; }
.demo-next h2 { margin-top: 0; }
.demo-banner { background: #fff8e6; border-bottom: 2px solid #e8c547; padding: 12px 0; }
.demo-banner p { max-width: 72rem; margin: 0 auto; padding: 0 20px; font-size: .95rem; }
.demo-banner a { font-weight: 600; }
.demo-tag { display: inline-block; background: #e8c547; color: #3a2f00; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-right: 6px; }

.faq-admin-row { margin-bottom: 14px; }
.faq-admin-form label { display: block; margin: 0 0 10px; font-weight: 600; font-size: .9rem; }
.faq-admin-form input[type="text"], .faq-admin-form textarea { width: 100%; margin-top: 4px; }
.faq-admin-tools { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

/* ---------------- Guided tour ---------------- */

.tour-veil {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 26, 20, .55);
}
.tour-spot {
  position: fixed; z-index: 101; border-radius: 3px; pointer-events: none;
  box-shadow: 0 0 0 4px var(--primary), 0 0 0 9999px rgba(20, 26, 20, .55);
  transition: all .25s ease;
}
.tour-tip {
  position: fixed; z-index: 102; max-width: 330px;
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 14px 44px rgba(0,0,0,.28); padding: 18px;
}
.tour-tip h3 { margin: 0 0 6px; font-size: 1.05rem; }
.tour-tip p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.tour-step { font-size: .75rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.tour-actions { display: flex; gap: 8px; align-items: center; }
.tour-skip { margin-left: auto; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .9rem; }
html.large-text .tour-tip { max-width: 400px; }

/* Instant quote form */
.quote-plans { display: grid; gap: 12px; }
.quote-plan { display: block; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 16px 18px; cursor: pointer; background: #fff; }
.quote-plan:hover { border-color: var(--primary, #2e7d32); }
.quote-plan.selected { border-color: var(--primary, #2e7d32); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary, #2e7d32) 25%, transparent); }
.quote-plan input[type="radio"] { accent-color: var(--primary, #2e7d32); margin-right: 8px; }
.quote-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.quote-plan-head strong { font-size: 1.15rem; }
.quote-price { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark, #1b5e20); }
.quote-price span { font-size: .85rem; font-weight: 400; color: var(--muted, #6b7280); }
.quote-plan ul { margin: 10px 0 0; padding-left: 20px; font-size: .92rem; color: var(--ink, #1f2937); }
.quote-plan li { margin: 3px 0; }

/* Quote page: learn-at-your-own-pace cards + evaluation checklist */
.quote-learn { margin: 3rem 0 0; }
.quote-learn h2 { margin-bottom: .25rem; }
.learn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 1rem; }
.learn-card { display: block; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 18px; background: #fff; text-decoration: none; color: inherit; }
.learn-card:hover { border-color: var(--primary, #2e7d32); text-decoration: none; }
.learn-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.learn-card p { margin: 0 0 .6rem; font-size: .92rem; }
.learn-go { font-weight: 700; color: var(--primary-dark, #1b5e20); font-size: .92rem; }
.checklist { margin: 2.5rem 0 0; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 20px 22px; background: #fafdf9; }
.checklist-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.checklist-head h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.checklist-head p { margin: 0; }
.checklist-items { list-style: none; margin: 1rem 0; padding: 0; }
.checklist-items li { margin: .55rem 0; }
.checklist-items label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1rem; }
.checklist-items input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--primary, #2e7d32); flex: none; }
.checklist-items input[type="checkbox"]:checked + span { color: var(--muted, #6b7280); text-decoration: line-through; }
.checklist-items a { color: inherit; }

/* "My learning" member checklist: reuses the .steps language from the setup checklist. */
.learn-card { margin: 1.5rem 0; }
.learn-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.learn-head h2 { margin: 0; }
.learn-steps { margin-top: 1rem; }
.learn-step .step-body a { color: inherit; text-decoration: none; }
.learn-step .step-body a:hover { text-decoration: underline; }
.step-check.step-todo { color: var(--muted, #6b7280); }
.learn-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.learn-check { display: inline-flex; align-items: center; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.learn-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.learn-check span { color: var(--muted, #6b7280); }
.learn-check input:focus-visible + span { outline: 2px solid var(--success, #0d9d6c); outline-offset: 2px; border-radius: 4px; }
.learn-check input:checked + span { color: var(--success, #0d9d6c); }
.learn-x { border: 0; background: none; color: var(--muted, #9ca3af); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 3px; }
.learn-x:hover { color: #b91c1c; background: #fef2f2; }

/* --- Ask by voice --- */
.voice-wrap { max-width: 34rem; margin: 0 auto; text-align: center; }
.voice-examples { margin-top: -0.4rem; }
.voice-btn {
  width: 11rem; height: 11rem; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  font-size: 1.05rem; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  margin: 1.2rem 0;
}
.voice-btn:hover { background: var(--primary-dark); }
.voice-btn:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 4px; }
.voice-mic svg { width: 3rem; height: 3rem; display: block; }
.voice-btn[data-state="listening"] { animation: voice-pulse 1.4s ease-in-out infinite; }
@keyframes voice-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.voice-btn[data-state="thinking"] { opacity: 0.75; cursor: wait; }
.voice-btn[data-state="unsupported"] { background: #9aa3a8; cursor: default; }
.voice-status { min-height: 1.6em; font-weight: 600; }
.voice-bubble { text-align: left; border-radius: 1rem; padding: 0.9rem 1.1rem; margin: 0.8rem 0; line-height: 1.5; }
.voice-you { background: var(--primary-soft); }
.voice-a { background: var(--card); border: 1px solid var(--line); }
.voice-actions { margin: 0.8rem 0; }
.voice-actions .btn { margin-bottom: 0.4rem; }
/* Porch follow-up options (2026-11-09): tappable chips under the answer. */
.voice-suggestions { margin-top: 0.9rem; }
.voice-suggestions .muted { margin-bottom: 0.4rem; }
.voice-suggestion { margin: 0 0.4rem 0.4rem 0; }
.voice-text-form { margin-top: 1.4rem; text-align: left; }
.voice-text-form label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.voice-text-row { display: flex; gap: 0.5rem; }
.voice-text-row input { flex: 1; min-width: 0; }
.voice-note { margin-top: 1.2rem; font-size: 0.92rem; }
.voice-dash { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.voice-dash h2 { margin: 0 0 0.2rem; }
.voice-dash p { margin: 0; }
.voice-card { border-left: 4px solid var(--primary); }
/* Ask Porch home widget: the community's front door to answers. */
.dash-porch { border-left: 4px solid var(--primary); }
.porch-widget-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.porch-widget-in h2 { margin: 0 0 0.2rem; }
.porch-widget-in p { margin: 0; }
.porch-widget-in > div { flex: 1 1 0; min-width: 0; }
.porch-widget-form { display: flex; gap: 0.5rem; flex: 1 1 0; max-width: 26rem; min-width: 0; }
.porch-widget-form input { flex: 1; min-width: 0; }
.porch-widget-form .btn { flex: none; white-space: nowrap; }
html.large-text .voice-btn { width: 13rem; height: 13rem; font-size: 1.25rem; }
html.large-text .voice-status, html.large-text .voice-bubble { font-size: 1.2rem; }
@media (max-width: 560px) {
  .voice-dash { flex-direction: column; align-items: stretch; text-align: left; }
  .porch-widget-in { flex-direction: column; align-items: stretch; }
  .porch-widget-in .widget-icon { align-self: center; }
  .porch-widget-form { max-width: none; }
}

/* ---- Plan-finder quiz + feature guide (public funnel) ---- */
.quiz-q { border: 0; padding: 0; margin: 0 0 1.6rem; }
.quiz-q legend { font-weight: 700; font-size: 1.08rem; padding: 0; margin-bottom: 0.15rem; }
.quiz-hint { margin: 0 0 0.6rem; }
.quiz-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-opt { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line, #e5e7eb); border-radius: 999px; padding: 10px 20px; cursor: pointer; background: #fff; font-weight: 600; }
.quiz-opt:hover { border-color: var(--primary, #2e7d32); }
.quiz-opt.selected { border-color: var(--primary, #2e7d32); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary, #2e7d32) 25%, transparent); }
.quiz-opt input[type="radio"] { accent-color: var(--primary, #2e7d32); }
.why-list { font-size: 1.05rem; }
.why-list li { margin-bottom: 0.4rem; }
.quiz-honest { background: var(--primary-soft, #eef6ee); border-radius: 10px; padding: 12px 16px; }
.cmp th, .cmp td { text-align: left; }
.cmp td.center, .cmp th.center { text-align: center; }
.cmp-yes { color: var(--primary, #2e7d32); font-weight: 700; font-size: 1.2rem; }
.cmp-no { color: var(--muted, #9aa0a6); }
.cmp-group td { font-weight: 700; background: var(--primary-soft, #eef3f8); }
.plan-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.plan-simple { background: var(--success-soft); color: var(--success-dark); }
.plan-plus { background: #e2eee2; color: #205f34; }
.plan-porch_plus { background: #f3e8fd; color: #5b21b6; }
.feat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2rem 0 2rem; }
.feat-nav a { border: 1px solid var(--line, #e5e7eb); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.feat-nav a:hover { border-color: var(--primary, #2e7d32); }
.feat-group { margin-bottom: 2.5rem; }
.feat-group > h2 { margin-bottom: 0.2rem; }
.feat { border-top: 1px solid var(--line, #e5e7eb); padding: 1.1rem 0; }
.feat h3 { margin: 0 0 0.5rem; font-size: 1.12rem; }
.feat p { margin: 0.35rem 0; }
.feat-limit { background: #fdf6ec; border-radius: 8px; padding: 8px 12px; display: inline-block; }
.feat-close { text-align: center; margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line, #e5e7eb); }
@media (max-width: 560px) {
  .quiz-opt { flex: 1 1 40%; justify-content: center; }
}

/* --- Prospect contact system: floating widget + chat --- */
.cw { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; }
.cw-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #9E1B2E; color: #fff; border: none; cursor: pointer;
  font-weight: 600; font-size: 0.98rem; padding: 0.8rem 1.2rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); min-height: 44px;
}
.cw-btn:hover { background: #701420; }
.cw-btn:focus-visible { outline: 3px solid #701420; outline-offset: 3px; }
.cw-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #7CFC9A; display: inline-block; }
.cw-panel {
  position: absolute; right: 0; bottom: 3.6rem; width: min(22rem, calc(100vw - 2rem));
  background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25); overflow: hidden;
}
.cw-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line, #e5e7eb); }
.cw-close { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted, #9ca3af); padding: 0.2rem 0.5rem; }
.cw-close:hover { color: #111; }
.cw-disclosure { font-size: 0.82rem; color: var(--muted, #6b7280); padding: 0.7rem 1rem 0; margin: 0; }
.cw-alt { font-size: 0.82rem; padding: 0.6rem 1rem 0.9rem; margin: 0; color: var(--muted, #6b7280); }
.contact-chat { padding: 0.7rem 1rem 0; }
.cc-msgs { max-height: 16rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.cc-msg { border-radius: 0.9rem; padding: 0.65rem 0.9rem; line-height: 1.45; font-size: 0.95rem; max-width: 92%; }
.cc-msg p { margin: 0; }
.cc-a { background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); align-self: flex-start; }
.cc-u { background: var(--primary-soft); align-self: flex-end; }
.cc-msg.cc-thinking { opacity: 0.65; font-style: italic; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.cc-chip {
  border: 1px solid var(--line, #e5e7eb); background: transparent; border-radius: 999px;
  padding: 0.35rem 0.75rem; font-size: 0.82rem; cursor: pointer; color: var(--primary-dark);
  min-height: 44px; display: inline-flex; align-items: center;
}
.cc-chip:hover { background: var(--primary-soft); }
.cc-form { display: flex; gap: 0.5rem; padding: 0.4rem 0 0.8rem; }
.cc-form input[data-cc-input] { flex: 1; min-width: 0; }
.cc-action { margin: 0.4rem 0; }
.cc-followup { border-top: 1px dashed var(--line, #e5e7eb); padding: 0.7rem 0 0.9rem; font-size: 0.9rem; }
.cc-followup .row2 { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.cc-followup .row2 input { flex: 1; min-width: 0; }
.contact-ai-note {
  background: var(--primary-soft); border-radius: 0.9rem; padding: 0.9rem 1.1rem; margin: 1rem 0 1.4rem;
}
.contact-ai-note p { margin: 0; }
.kind-handoff { background: #fef3c7; color: #92400e; }
.kind-call_request { background: #e2ecdd; color: #2f5d3a; }
.kind-message { background: #ece5f2; color: #5b3a86; }
@media (max-width: 560px) {
  .cw { right: 0.75rem; bottom: 0.75rem; }
  .cw-btn { padding: 0.7rem 1rem; font-size: 0.9rem; }
}

/* ============================================================
   Mobile pass — 390px-first refinements + PWA chrome.
   Additive: desktop is unchanged except the overflow guards and
   touch-only rules below. Everything was checked at 390x844.
   ============================================================ */

/* Overflow guards: no element may force a horizontal scrollbar. */
img, video, svg, iframe { max-width: 100%; }
img, video { height: auto; }
pre { overflow-x: auto; max-width: 100%; }
code { overflow-wrap: break-word; }

/* Notched phones: respect the safe area around the whole page. */
body {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Sticky action bar: keeps the primary action reachable on long forms
   (survey responses, checkout). Safe-area aware. */
.sticky-bar {
  position: sticky; bottom: 0; z-index: 20;
  background: var(--bg);
  border-top: 1px solid var(--line);
  margin: 1.6rem -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.sticky-bar .btn { width: 100%; }
.sticky-bar .hint { display: block; text-align: center; margin-top: 8px; }

/* Install prompt pill (injected by app.js only when the browser reports
   the app installable; dismissible forever). Bottom-left, out of the
   help button's way. */
.install-pill {
  position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #f2efe6; border-radius: 999px;
  padding: 8px 8px 8px 18px; font-size: .92rem; font-weight: 550;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100vw - 28px);
}
.install-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-pill .btn-sm { min-height: 44px; display: inline-flex; align-items: center; }
.install-dismiss {
  border: 0; background: none; color: #b9b4a4; font-size: 1.5rem; line-height: 1;
  min-width: 44px; min-height: 44px; border-radius: 50%; cursor: pointer; flex: none;
}
.install-dismiss:hover { color: #fff; }

/* Add to Home Screen page (Settings): numbered steps for the device. */
.install-steps { margin-top: 1rem; }
.install-steps ol { margin: .5rem 0 0 1.2rem; }
.install-steps li { margin: .35rem 0; }

/* External-link arrow glued to its label: the nbsp keeps it attached and the
   span can never wrap alone onto the next line. */
.ext-arrow { white-space: nowrap; }

/* While the install pill is visible, reserve room at the page bottom so the
   fixed pill can never cover the page's own primary actions. The pill itself
   is only injected on mobile viewports (see app.js). */
@media (max-width: 760px) {
  body.install-pill-visible { padding-bottom: 88px; }
}

/* Hover-only affordances are dead weight on touch — remove them. */
@media (hover: none) {
  .cal-add { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.65rem; }
  .hero { padding: 2.6rem 0 2rem; gap: 1.8rem; }
  .editorial { padding: 2.4rem 0; }
  .card { padding: 1.2rem; }

  /* App shell: the sidebar collapses to a sticky top strip; the user
     card hides because its actions already live in the topbar. */
  .appshell { flex-direction: column; }
  .side { width: 100%; flex: none; height: auto; position: sticky; top: 0; }
  .side-brand { padding: 12px 16px 2px; font-size: 1.05rem; }
  .side-brand small { display: none; }
  .side .appnav {
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding: 6px 12px 10px; scrollbar-width: none;
  }
  .side .appnav::-webkit-scrollbar { display: none; }
  .side-label { display: none; }
  /* Collapsible nav groups on phones (wave26): the old approach tried to
     flatten the <details> wrappers with display:contents so every link
     joined the horizontal strip. That does NOT work in Chromium — a
     <details> keeps its links in its own narrow vertical box (24px-wide
     columns) even when it computes to display:contents, so the board nav
     rendered as cramped stacked columns. The phone nav is now a separate
     flat strip (.appnav-phone, built in views.js appNav) and the grouped
     sidebar is hidden at this width instead. */
  .side .appnav { display: none; }
  .side .appnav a {
    white-space: nowrap; flex: none; min-height: 44px; align-items: center;
    /* Full labels must always show: never let a pill truncate or ellipsize
       ("Announcemen…") — the strip scrolls horizontally instead. */
    max-width: none; overflow: visible; text-overflow: clip;
  }
  .side-user { display: none; }
  .topbar-in { padding: 8px 16px; gap: 8px; }
  .appsearch { order: 3; flex: 1 1 100%; max-width: none; }
  .appsearch input[type=search] { min-height: 44px; font-size: 16px; }
  .appsearch .btn { min-height: 44px; }
  .appuser { margin-left: 0; }
  /* The nav strip is the pinned chrome on phones: the utility topbar
     scrolls with the page instead of sliding underneath the strip
     (both were sticky at top:0 and the strip painted over Search,
     View site, and Log out after scrolling). */
  .topbar { position: static; }

  /* 44px minimum tap targets on real controls. */
  .btn-sm { min-height: 44px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; }
  .chip { min-height: 44px; display: inline-flex; align-items: center; }
  .quiz-opt { min-height: 44px; }
  .sv-scale-opt { min-height: 44px; padding: 10px 16px; }
  .cw-close { min-width: 44px; min-height: 44px; }
  .learn-x { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .tour-skip { min-height: 44px; }

  /* Denser tables on small screens; .table-wrap already scrolls. */
  .table { font-size: .88rem; }
  .table th, .table td { padding: 10px 6px; }
  /* Lifecycle email table: the recipient column is noise on a phone — the
     admin already knows these go to the billing contact. */
  .table .hide-sm { display: none; }
  /* Lifecycle table becomes stacked cards on phones so it can never force
     the page wider than the viewport. */
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table-stack td { border: 0; padding: 2px 0; }
  .table-stack td.nowrap { white-space: normal; }

  /* Survey result bars: give the bar itself room. */
  .sv-bar-row { grid-template-columns: minmax(84px, 1fr) 1fr 64px; gap: 8px; }

  /* Floating chrome clears the home indicator. */
  .cw { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

  /* Guided tour + chat panel never overflow the viewport. */
  .tour-tip { max-width: calc(100vw - 32px); }
  .cw-panel { width: calc(100vw - 24px); }

  /* Marketing nav: comfortable wrap, no crowding. */
  .site-nav { gap: .4rem 1.1rem; }
  .site-nav a { padding: 10px 0; }

  /* Long admin pages: keep breathing room above the footer. */
  .foot { margin-top: 2.5rem; }
}

.nav-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); margin-left: 4px; vertical-align: 2px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  background: var(--paper-deep); color: var(--ink);
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-new { background: var(--amber-soft); color: var(--amber); }
.status-under_review { background: var(--primary-soft); color: var(--primary-dark); }
.status-planned { background: #ece5f2; color: #5b3a86; }
.status-shipped { background: var(--success-soft); color: var(--success-dark); }
.status-declined { background: #f1ede6; color: #6b655f; } /* text was #8a8478: 3.18:1 on the chip; #6b655f is 4.93:1 (2026-11-16) */
.fb-item { margin-bottom: 14px; }
.fb-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.fb-publish, .fb-note { margin-top: 10px; }
.fb-publish summary, .fb-note summary { cursor: pointer; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--border, #e3e7df); color: var(--ink); font-size: .9rem;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.changelog-month { margin: 2rem 0 1rem; }
.changelog-entry h3 { margin: 4px 0 8px; }
.fb-text { max-width: 420px; }

/* ---------- Launch roadmap: five Porch-guided stages ---------- */
.roadmap-stages { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.rstage { border: 1px solid var(--line); border-radius: 3px; padding: 16px 18px; background: #fff; }
.rstage-head { display: flex; gap: 14px; align-items: center; }
.rstage-num {
  font-family: var(--font-mono); font-size: .85rem; font-weight: 700;
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--faint); background: #fbf9f3;
}
.rstage-titles { flex: 1; min-width: 0; }
.rstage-titles strong { font-size: 1.08rem; }
.rstage-titles p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.rstage-state { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); flex: none; }
.rstage-done .rstage-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.rstage-done .rstage-state { color: var(--primary-dark); }
.rstage-current { border: 2px solid var(--primary); }
.rstage-current .rstage-num { border-color: var(--primary); color: var(--primary-dark); }
.rstage-current .rstage-state { color: var(--primary-dark); font-weight: 700; }
.rstage-todo { opacity: .78; }
.rstage-items { margin: .6rem 0 .2rem; }
.rstage-items .step { padding: .8rem 0; }
.celebrate {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--success-soft); border: 1px solid #a9dfc3; border-radius: 14px;
  padding: 16px 18px; margin-bottom: 18px;
}
.celebrate-emoji { font-size: 1.9rem; line-height: 1; }
.celebrate strong { font-size: 1.05rem; }

/* ---------- Guided migration flow ---------- */
.migrate-progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 1.2rem 0 2rem; flex-wrap: wrap; }
.migrate-progress li { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.migrate-progress li.done { color: var(--primary-dark); border-color: var(--primary); }
.migrate-progress li.current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.source-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.2rem 0 1.8rem; }
.source-card { display: block; border: 1px solid var(--line); border-radius: 3px; padding: 18px; cursor: pointer; background: #fff; transition: border-color .15s; }
.source-card:hover { border-color: var(--primary); }
.source-card input { margin-right: 8px; }
.source-card strong { display: block; font-size: 1.02rem; margin-bottom: .3rem; }
.source-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.request-list { list-style: none; padding: 0; margin: 1rem 0; }
.request-list li { padding: .7rem 0; border-top: 1px solid var(--line); display: flex; gap: .8rem; align-items: flex-start; }
.request-list li:last-child { border-bottom: 1px solid var(--line); }
.request-list .step-check { width: 28px; height: 28px; font-size: .72rem; }
.drop-hint { border: 2px dashed var(--line); border-radius: 3px; padding: 22px; text-align: center; color: var(--muted); margin: 1rem 0; }
.mapping-table td select, .mapping-table td input { width: 100%; }
.preview-chip { display: inline-block; font-family: var(--font-mono); font-size: .72rem; background: #fbf9f3; border: 1px solid var(--line-soft); border-radius: 3px; padding: 2px 8px; margin: 2px 4px 2px 0; }

/* ---------- Owner CRM ---------- */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.panel-head h2 { margin: 0; }
.form-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid label, form > label { display: block; margin-bottom: .8rem; font-weight: 600; font-size: .92rem; }
.form-grid input, form > label input, form > label select, form > label textarea,
.panel label input, .panel label select, .panel label textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .6rem .7rem;
  border: 1px solid var(--line); border-radius: 3px; font: inherit; font-weight: 400;
}
.crm-board { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0 2rem; }
@media (min-width: 720px) { .crm-board { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .crm-board { grid-template-columns: repeat(3, 1fr); } }
.crm-stage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.crm-stage h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.crm-stage .count { display: inline-block; min-width: 1.6em; text-align: center; background: var(--primary); color: #fff; border-radius: 999px; font-size: .8rem; padding: .1em .4em; margin-left: .4em; }
.crm-card { display: block; border: 1px solid var(--line-soft); border-radius: 3px; padding: .6rem .7rem; margin: .5rem 0; color: inherit; text-decoration: none; background: #fff; }
.crm-card:hover { border-color: var(--primary); }
.crm-card strong { display: block; }

/* Trust band (marketing): uptime, reviews, retention — real numbers only. */
.trustband { padding: 2rem 0 0; }
.trustband-inner { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.trust-stat { text-align: center; }
.trust-n { font-size: 1.9rem; font-weight: 700; margin: 0; color: var(--ink); }
.trust-l { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.trust-fine { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 1rem; }

/* Churn survey radio cards */
.radio-card { display: inline-block; border: 1px solid var(--line-soft); border-radius: 3px; padding: .8rem 1rem; margin: 0 .6rem .6rem 0; cursor: pointer; background: #fff; }
.radio-card:hover { border-color: var(--primary); }
.radio-card input { margin-right: .4rem; }

/* Two-factor backup codes */
.backup-codes { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .08em; background: var(--bg-soft, #f6f7f4); border: 1px dashed var(--line-soft); border-radius: 3px; padding: .9rem 1.1rem; line-height: 1.9; }

/* Porch Librarian: portal widget, nudges, quarantine evidence, calibration */
.porch-portal { background: #f4f1ea; border-bottom: 1px solid #e2dccf; }
.porch-portal-in { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 1rem; font-size: 0.85rem; }
.pp-title { font-weight: 700; white-space: nowrap; }
.pp-stats { flex: 1; color: #555; }
.pp-warn { color: #92400e; font-weight: 600; }
.pp-link { white-space: nowrap; font-weight: 600; }
.porch-nudge { display: flex; align-items: center; gap: 1rem; background: #f0f7ee; border: 1px solid #cfe3c8; border-radius: 10px; padding: 0.6rem 0.9rem; margin-bottom: 1rem; }
.porch-nudge p { margin: 0; flex: 1; }
.quar-card { border-left: 4px solid #b45309; }
.quar-text { background: #faf7f2; border: 1px solid #e2dccf; border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.9rem; white-space: pre-wrap; }
.warn-card { border-left: 4px solid #b45309; }
.chunk-prev { margin-bottom: 0.75rem; }
.def-list { display: grid; grid-template-columns: 9rem 1fr; gap: 0.35rem 1rem; margin: 0; }
.def-list dt { font-weight: 600; color: #555; }
.def-list dd { margin: 0; }

/* ---------- Community landing: the public front door ----------
   Static, beautiful, no JavaScript. Built for outsiders — prospective
   buyers, realtors, anyone googling the community — including older
   folks. Big type, high contrast, generous tap targets. */
main.fluid { max-width: none; padding: 0; }
.cs-top { background: var(--card); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 20; }
.cs-top-in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-brand img { height: 34px; border-radius: 3px; }
.cs-brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-top-in .btn { flex: none; }
.cs-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; background: #24352c; overflow: hidden; }
.cs-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,15,11,.04) 35%, rgba(8,15,11,.74) 100%); }
.cs-hero-copy { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 5rem 24px 3.2rem; }
.cs-hero .eyebrow { color: rgba(255,255,255,.88); margin-bottom: .6rem; }
.cs-hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.05; margin: 0 0 .9rem; text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.cs-tagline { color: rgba(255,255,255,.94); font-size: 1.2rem; line-height: 1.55; max-width: 38rem; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.cs-body { max-width: 1120px; margin: 0 auto; padding: 0 24px 1rem; }
.cs-quick { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1.9rem; margin: -2.6rem 0 2.2rem; position: relative; z-index: 2; }
.cs-quick h2 { margin: 0 0 1.2rem; font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; }
.cs-facts { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cs-facts { grid-template-columns: repeat(3, 1fr); } }
.cs-fact h3 { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .5rem; }
.cs-fact p { margin: 0; }
.cs-fact .link-btns { margin: .2rem 0 0; }
.cs-drop { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1rem; box-shadow: var(--shadow-sm); }
.cs-drop summary { cursor: pointer; padding: 1.25rem 1.5rem; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; }
.cs-drop summary::-webkit-details-marker { display: none; }
.cs-drop summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); font-weight: 400; flex: none; }
.cs-drop[open] summary::after { content: "\2013"; }
.cs-drop-body { padding: .4rem 1.5rem 1.6rem; border-top: 1px solid var(--line-soft); }
.cs-ann { padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.cs-ann:last-child { border-bottom: 0; }
.cs-ann h4 { margin: 0 0 .15rem; font-size: 1.02rem; }
.cs-ann time { font-size: .82rem; color: var(--faint); }
.cs-ann p { margin: .5rem 0 0; }
.cs-foot { margin-top: 3rem; padding: 2.2rem 24px; text-align: center; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line-soft); }
.cs-foot a { color: var(--muted); }
.cs-section { margin: 0 0 2.4rem; }
.cs-section h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
.cs-section p { max-width: 46rem; line-height: 1.65; }
.cs-buyer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.7rem 1.8rem; margin: 0 0 2.4rem; }
.cs-buyer h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.cs-buyer > p { max-width: 46rem; line-height: 1.65; margin: 0 0 1.2rem; }
.cs-buyer .cs-drop { margin: 0; box-shadow: none; }
.cs-tour-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 720px) { .cs-tour-grid { grid-template-columns: repeat(4, 1fr); } }
.cs-tour-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; display: block; }
.cs-imp { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
@media (min-width: 720px) { .cs-imp { grid-template-columns: repeat(2, 1fr); } }
.cs-imp li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .85rem 1.1rem; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.cs-imp li a { font-weight: 600; }
.cs-facts > * { min-width: 0; }

/* ---------- Crimson marketing header (approved mock design language) ---------- */
/* Refined 2026-10-29: slimmer, deeper crimson, pinned; one shared header on every
   marketing page. The nav-link color rule must never override the button text
   color — the scoped a.btn-primary rule below wins that specificity fight. */
.site-top {
  background: linear-gradient(120deg, #A11D2D, #701420);
  border-bottom: 1px solid rgba(0,0,0,.18);
  padding: .65rem 1.25rem;
  position: sticky; top: 0; z-index: 50;
}
.site-top .wordmark {
  font-family: 'Brush Script MT', 'Segoe Script', 'Apple Chancery', cursive;
  font-size: 2.1rem; font-weight: 400; letter-spacing: 0; color: #fff;
}
.site-top .site-nav a { color: rgba(255,255,255,.92); }
.site-top .site-nav a:hover { color: #fff; }
.site-top .btn-primary { background: #fff; color: #701420; box-shadow: none; }
.site-top .site-nav a.btn-primary { background: #fff; color: #701420; box-shadow: none; }
.site-top .btn-primary:hover, .site-top .site-nav a.btn-primary:hover { background: #FBF7F4; color: #701420; box-shadow: none; }

/* ---------- Mock hero (landing page) ---------- */
.hero-mock { text-align: center; padding: 4rem 1.5rem 2rem; }
.hero-mock h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 2.9rem);
  line-height: 1.15; color: #33302E; margin: 0 0 1.1rem; font-weight: 600;
}
.hero-mock h1 em { color: #B91C2E; font-style: normal; }
.hero-mock > p { margin: 0 auto; max-width: 640px; font-size: 1.19rem; color: #6B655F; line-height: 1.5; }
.mock-cta { margin-top: 1.75rem; }
.mock-cta a {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  text-decoration: none; font-weight: bold; font-size: 1rem;
}
.mock-cta a:hover { text-decoration: none; opacity: .92; }
.mock-cta-primary { background: #B91C2E; color: #fff; }
.mock-cta-ghost { border: 2px solid #B91C2E; color: #B91C2E; margin-left: 12px; }

/* ---------- Budget preview (coming soon — tool is NOT built, no actions) ---------- */
.budget-preview { margin: 0 auto 4rem; max-width: 1080px; text-align: center; padding: 0 1rem; }
.preview-badge {
  display: inline-block; background: #33302E; color: #fff; font-weight: 700;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.plan-badge {
  display: inline-block; background: #F0F7EE; color: #1F3D1A; font-weight: 700;
  font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-left: .5rem;
}
.budget-preview h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #33302E; margin: 1rem 0 .6rem; }
.budget-preview-sub { color: #6B655F; max-width: 42rem; margin: 0 auto 1.5rem; }
.budget-card {
  max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 1.5rem 1.75rem; text-align: left;
}
.budget-card-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0 0 1rem; }
.budget-lines { list-style: none; margin: 0; padding: 0; }
.budget-lines li {
  display: flex; justify-content: space-between; padding: .55rem 0;
  border-top: 1px solid var(--line-soft); font-size: .95rem;
}
.budget-total {
  display: flex; justify-content: space-between; border-top: 2px solid var(--ink);
  padding-top: .8rem; margin-top: .4rem; font-weight: 700; font-size: 1.05rem;
}
.budget-card-foot { color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }

/* ---------- Landing hero restyle (2026-10-30, approved mock) ----------
   Black starfield hero with the portal dashboard as the background-ish
   visual, wrapped in a futuristic HUD layer. Borders only, no shadows
   (house style); radii stay at or under 6px. Animations are subtle and
   disabled under prefers-reduced-motion. */
.hero-future { position: relative; overflow: hidden; background: #07070B; color: #fff; padding: 3.5rem 1.5rem 3rem; }
.hero-future-bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 12% 22%, rgba(255,255,255,.95) 0 1px, transparent 1.6px),
  radial-gradient(circle at 28% 68%, rgba(255,255,255,.7) 0 1px, transparent 1.6px),
  radial-gradient(circle at 44% 14%, rgba(255,255,255,.85) 0 1.5px, transparent 2.2px),
  radial-gradient(circle at 61% 30%, rgba(255,255,255,.6) 0 1px, transparent 1.6px),
  radial-gradient(circle at 74% 62%, rgba(255,255,255,.9) 0 1px, transparent 1.6px),
  radial-gradient(circle at 88% 18%, rgba(255,255,255,.75) 0 1.5px, transparent 2.2px),
  radial-gradient(circle at 95% 74%, rgba(255,255,255,.6) 0 1px, transparent 1.6px),
  radial-gradient(circle at 6% 84%, rgba(255,255,255,.65) 0 1px, transparent 1.6px),
  radial-gradient(circle at 52% 88%, rgba(255,255,255,.8) 0 1px, transparent 1.6px),
  radial-gradient(circle at 36% 44%, rgba(255,255,255,.55) 0 1px, transparent 1.6px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 56px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 56px),
  radial-gradient(640px 320px at 82% -10%, rgba(161,29,45,.45), transparent 70%); }
.hero-future-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 40%, rgba(255,255,255,.8) 0 1px, transparent 1.6px),
  radial-gradient(circle at 68% 12%, rgba(255,255,255,.7) 0 1px, transparent 1.6px),
  radial-gradient(circle at 82% 48%, rgba(255,255,255,.85) 0 1.5px, transparent 2.2px),
  radial-gradient(circle at 38% 78%, rgba(255,255,255,.6) 0 1px, transparent 1.6px),
  radial-gradient(circle at 93% 36%, rgba(255,255,255,.75) 0 1px, transparent 1.6px);
  animation: hero-twinkle 5s ease-in-out infinite alternate; }
@keyframes hero-twinkle { from { opacity: .25; } to { opacity: 1; } }
.hero-scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); opacity: .5; animation: hero-scan 11s linear infinite; }
@keyframes hero-scan { from { top: -2px; } to { top: 100%; } }
.hero-future-inner { position: relative; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: center; }
.hero-hud { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0 0 1rem; }
.hero-future-copy h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.08; margin: 0 0 1rem; }
.hero-future-copy h1 em { color: #F2A7AE; font-style: normal; }
.hero-lede { color: rgba(255,255,255,.82); font-size: 1.15rem; line-height: 1.55; max-width: 34rem; margin: 0 0 1.75rem; }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-cta-ghost { border: 2px solid rgba(255,255,255,.65); color: #fff; background: transparent; }
.hero-cta-ghost:hover { border-color: #fff; color: #fff; text-decoration: none; }
.hero-dash-wrap { position: relative; padding: 26px 0 26px; }
.hero-hudlabel { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hero-hudlabel-top { position: absolute; top: 0; left: 10px; }
.hero-hudlabel-bottom { position: absolute; bottom: 0; right: 10px; }
.hero-dash { position: relative; display: flex; background: #13131C; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; overflow: hidden; text-align: left; }
.hero-corner { position: absolute; width: 20px; height: 20px; border: 0 solid rgba(255,255,255,.55); z-index: 2; }
.hero-corner-tl { top: -9px; left: -9px; border-top-width: 2px; border-left-width: 2px; }
.hero-corner-tr { top: -9px; right: -9px; border-top-width: 2px; border-right-width: 2px; }
.hero-corner-bl { bottom: -9px; left: -9px; border-bottom-width: 2px; border-left-width: 2px; }
.hero-corner-br { bottom: -9px; right: -9px; border-bottom-width: 2px; border-right-width: 2px; }
.hero-dash-side { flex: 0 0 168px; background: linear-gradient(160deg, #A11D2D, #701420); padding: 1rem .8rem; }
.hero-dash-brand { font-family: 'Brush Script MT', 'Segoe Script', 'Apple Chancery', cursive; font-size: 1.45rem; color: #fff; margin: 0 0 .9rem; }
.hero-dash-side ul { list-style: none; margin: 0; padding: 0; }
.hero-dash-side li { padding: .42rem .6rem; font-size: .88rem; color: rgba(255,255,255,.88); border-radius: 4px; margin-bottom: 2px; }
.hero-dash-side li.on { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.hero-badge { float: right; background: #fff; color: #701420; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 6px; }
.hero-dash-main { flex: 1; padding: 1.15rem 1.15rem 1.25rem; min-width: 0; }
.hero-dash-greet { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0; }
.hero-dash-sub { color: rgba(255,255,255,.65); font-size: .9rem; margin: .15rem 0 1rem; }
.hero-ask { display: flex; align-items: center; gap: .75rem; background: #1E1E28; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; padding: .65rem .9rem; color: #fff; text-decoration: none; margin-bottom: 1rem; }
.hero-ask:hover { text-decoration: none; border-color: rgba(255,255,255,.35); }
.hero-ask-label { font-weight: 650; white-space: nowrap; }
.hero-ask-hint { color: rgba(255,255,255,.55); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-ask-go { margin-left: auto; color: #F2A7AE; }
.hero-dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.hero-dash-cards a { display: block; background: #1E1E28; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: .65rem .7rem; color: #fff; text-decoration: none; }
.hero-dash-cards a:hover { text-decoration: none; border-color: rgba(255,255,255,.35); }
.hero-dash-cards strong { display: block; font-size: .85rem; line-height: 1.25; }
.hero-dash-cards small { display: block; color: rgba(255,255,255,.6); font-size: .76rem; line-height: 1.35; margin-top: .2rem; }
.hero-callout { position: absolute; background: #FBF7F4; color: #1B1B22; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; padding: .4rem .7rem; font-size: .8rem; font-weight: 600; z-index: 3; }
.hero-callout-1 { top: 6px; right: -6px; transform: rotate(1.5deg); }
.hero-callout-2 { bottom: 52px; left: -10px; transform: rotate(-1.5deg); }
.hero-dash-cap { text-align: center; color: rgba(255,255,255,.6); font-size: .82rem; margin: .9rem 0 0; }
.hero-dash-cap a { color: #fff; text-decoration: underline; }
/* Dark star accent strip under the shared crimson header, on every
   public page (it rides inside marketingTop, so it scrolls away while
   the pinned header stays). */
.star-strip { height: 34px; background-color: #07070B; background-image:
  radial-gradient(circle at 8% 50%, rgba(255,255,255,.9) 0 1px, transparent 1.6px),
  radial-gradient(circle at 26% 30%, rgba(255,255,255,.6) 0 1px, transparent 1.6px),
  radial-gradient(circle at 47% 62%, rgba(255,255,255,.8) 0 1px, transparent 1.6px),
  radial-gradient(circle at 63% 28%, rgba(255,255,255,.65) 0 1px, transparent 1.6px),
  radial-gradient(circle at 81% 58%, rgba(255,255,255,.9) 0 1px, transparent 1.6px),
  radial-gradient(circle at 94% 32%, rgba(255,255,255,.6) 0 1px, transparent 1.6px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 42px);
  border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 900px) {
  .hero-future-inner { grid-template-columns: 1fr; }
  .hero-callout, .hero-hudlabel { display: none; }
  .hero-dash-wrap { padding: 0; }
  .hero-future { padding: 2.5rem 1.25rem 2.25rem; }
}
@media (max-width: 600px) {
  .hero-dash { flex-direction: column; }
  .hero-dash-side { flex: none; }
  .hero-dash-side ul { display: flex; flex-wrap: wrap; gap: 2px; }
  .hero-dash-side li { flex: 1 1 auto; text-align: center; }
  .hero-dash-cards { grid-template-columns: 1fr; }
  .hero-corner { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-future-bg::after, .hero-scan { animation: none; }
}
/* Amenity photo tour: gallery strip on the resident card, thumbs on manage. */
.amenity-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.amenity-photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 3px; border: 1px solid #e5e0da; }
.amenity-photos .photo-thumb { display: inline-block; text-align: center; }
/* Amenities redesign (2026-11-06): big-photo option cards on the list page,
   hero gallery + 14-day availability strip on the detail page. */
.amenity-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .amenity-grid { grid-template-columns: 1fr 1fr; } }
a.amenity-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; text-decoration: none; color: inherit; }
a.amenity-card:hover { border-color: #b9b4aa; }
.amenity-card-photo { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--paper-deep); }
.amenity-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amenity-card-photo--empty { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: .9rem; }
.amenity-card-count { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .65); color: #fff; font-size: .75rem; padding: .15rem .5rem; border-radius: 3px; }
.amenity-card-body { display: block; padding: .9rem 1rem 1rem; }
.amenity-card-name { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: .15rem; }
.amenity-hero { margin: 1rem 0 .5rem; }
.amenity-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 3px; border: 1px solid var(--line); }
.amenity-hero--empty { display: flex; align-items: center; justify-content: center; min-height: 180px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 3px; color: var(--faint); font-size: .95rem; padding: 1rem; text-align: center; }
.terms-list { margin: .4rem 0 1rem; padding-left: 1.2rem; }
.terms-list li { margin-bottom: .3rem; }
.avail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 720px) { .avail-grid { grid-template-columns: repeat(7, 1fr); } }
.avail-day { border: 1px solid var(--line); border-radius: 3px; padding: .6rem .55rem; background: var(--card); }
.avail-day--available { background: var(--success-soft); border-color: #bfe3cf; }
.avail-day--booked { background: var(--amber-soft); border-color: #ecd9a8; }
.avail-day--closed { background: var(--paper-deep); }
.avail-label { font-weight: 700; }
.avail-date { margin-bottom: .35rem; }
.avail-status { font-size: .85rem; font-weight: 700; }
.avail-day--available .avail-status { color: var(--success-dark); }
.avail-day--booked .avail-status { color: var(--amber); }
.avail-detail { margin-top: .15rem; }

/* Calendar day numbers are links to the day view; keep their muted look. */
a.cal-num { text-decoration: none; }

/* Uniform document boxes (Documents tab): folder cards stretch to one shared
   height per row, and long folder names truncate instead of stretching
   their card taller than its neighbors. */
/* Folder-card wrap (2026-11-11, wave25): the audience badge reads at 1rem,
   so at the old 180px grid minimum the badge + item count squeezed the
   folder name to nothing and the badge itself clipped mid-word ("Owne").
   The card now wraps: the badge drops to a second line when it does not
   fit, and the name keeps a 120px flex basis so it is never squeezed to
   zero before the badge wraps. The badge keeps flex-shrink: 0 on purpose —
   it wraps instead of clipping. */
.folder-cards { align-items: stretch; }
.folder-card { align-self: stretch; min-width: 0; overflow: hidden; flex-wrap: wrap; }
.folder-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 120px; }
.folder-card > :not(.folder-card-name) { flex-shrink: 0; }

/* Mobile fit fix (2026-10-30): the Ask Porch hint is a flex item — without
   min-width: 0 it refuses to shrink below its full text width, so on phones
   the row ran wider than the panel and the words ran off the edge. Now the
   ellipsis engages and the line fits. */
.hero-ask-hint { min-width: 0; }


/* ================= New-look marketing (2026-11-06) =================
   Ported from the approved landing mock. All rules are namespaced
   under .mk so they cannot collide with the app theme or portal
   classes; only the site-wide header/announce rules are unprefixed
   (they are unique to the new marketingTop()). The hero carries
   /hero-neighborhood.webp under a dark scrim. ================= */
.mk, header.site, .announce{
    --bg:#FFFFFF;
    --bg-soft:#FAF6F1;
    --bg-tint:#FBF1F2;
    --card:#FFFFFF;
    --ink:#211D19;
    --ink-soft:#3B352F;
    --muted:#6B6259;
    --faint:#9A8E81;
    --crimson:#9E1B2E;
    --crimson-deep:#7C1322;
    --accent:#9E1B2E;
    --line:#E7DFD5;
    --line-soft:#F0E9E0;
    --sage:#2F7A24;
    --sage-bg:#F2F6EE;
    --sage-ink:#223D1C;
    --sage-muted:#5C6C57;
    --sage-line:#D8E2D2;
    --check-bg:#FDFBF8;
    --head-bg:rgba(255,255,255,.92);
    --dark-band:#221C19;
    --serif:"Lora",Georgia,"Times New Roman",serif;
    --script:"Pinyon Script","Brush Script MT","Segoe Script","Apple Chancery","Snell Roundhand",cursive;
    --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;
  }
.mk *{box-sizing:border-box}
html{scroll-behavior:smooth}
.mk a{color:inherit}
::selection{background:#F3D9DC}
/* Header */
header.site{position:static;background:var(--head-bg);border-bottom:1px solid var(--line)}
.header-inner{max-width:1180px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:0}
header.site .wordmark{font-family:var(--script);font-size:38px;line-height:1;color:var(--accent);white-space:nowrap}
.brand small{font-size:9px;letter-spacing:.3em;text-transform:uppercase;color:var(--faint);font-weight:600;white-space:nowrap}
nav.main{display:flex;flex-wrap:wrap;gap:2px;align-items:center}
nav.main a{text-decoration:none;font-size:14px;font-weight:500;color:var(--ink-soft);padding:8px 11px;border-radius:999px}
nav.main a:hover{background:var(--bg-soft);color:var(--ink)}
nav.main a.login{background:var(--crimson);color:#fff;font-weight:600;margin-left:8px;padding:9px 18px}
nav.main a.login:hover{background:var(--crimson-deep);color:#fff}
/* Announcement line */
.announce{background:var(--bg-tint);color:var(--ink-soft);border-bottom:1px solid var(--line);text-align:center;padding:10px 16px;font-size:13.5px;line-height:1.5}
.announce a{font-weight:600;text-decoration:none;color:var(--accent);border-bottom:1px solid currentColor;padding-bottom:1px;margin-left:6px;white-space:nowrap}
/* Buttons */
.mk .btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 26px;border-radius:999px;text-decoration:none;font-weight:600;font-size:14.5px;border:1px solid var(--crimson);cursor:pointer;background:transparent;font-family:var(--sans);transition:background .15s ease,color .15s ease,border-color .15s ease}
.mk .btn.primary{background:var(--crimson);color:#fff}
.mk .btn.primary:hover{background:var(--crimson-deep);border-color:var(--crimson-deep)}
.mk .btn.ghost{background:transparent;color:var(--accent);border-color:var(--line)}
.mk .btn.ghost:hover{border-color:var(--accent)}
.mk .btn.white{background:#fff;color:var(--crimson-deep);border-color:#fff}
.mk .btn.white:hover{background:#F7E9EA}
/* Public-surface crimson (wave26): .btn-primary is portal green, and inside
   .mk the .btn rule above resets its background to transparent — which left
   the contact-chat Send button a blank oval (white text on transparent).
   Scoped to the public surfaces only (.mk, the floating widget, the chat):
   crimson fill + white text, winning over .mk .btn by coming later at equal
   specificity. --primary and the member portal are untouched. */
.mk .btn-primary, .cw .btn-primary, .contact-chat .btn-primary{background:#9E1B2E;color:#fff;border-color:#9E1B2E}
.mk .btn-primary:hover, .cw .btn-primary:hover, .contact-chat .btn-primary:hover{background:#701420;border-color:#701420}
/* Hero */
.mk .hero{position:relative;max-width:none;margin:0;padding:96px 20px 84px;text-align:center;color:#fff;background-image:linear-gradient(rgba(18,22,38,.66),rgba(18,22,38,.60)),url(/hero-neighborhood.webp);background-size:cover;background-position:center 38%}
.mk .pill{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--accent);background:var(--bg-tint);border:1px solid var(--line);border-radius:999px;padding:7px 14px}
.mk .pill::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--crimson)}
.mk .hero h1{font-size:clamp(38px,6vw,58px);line-height:1.08;letter-spacing:-.022em;color:var(--ink);margin:26px 0 0;font-weight:700}
.mk .hero h1 em{font-family:var(--serif);font-style:italic;font-weight:500;color:var(--accent);letter-spacing:0}
.mk .hero p.sub{margin:22px auto 0;max-width:640px;font-size:clamp(16.5px,2.3vw,18.5px);color:var(--muted);line-height:1.65}
.mk .cta{margin-top:32px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.mk .trust-row{list-style:none;margin:34px auto 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px}
.mk .trust-row li{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:500;color:var(--ink-soft)}
.mk .trust-row svg{color:var(--sage);flex:0 0 auto}
/* Product preview */
.mk .frame-bar{display:flex;align-items:center;gap:10px;padding:11px 16px;border-bottom:1px solid var(--line);background:var(--bg-soft)}
.mk .frame-bar .dot{width:10px;height:10px;border-radius:50%;background:var(--line)}
.mk .frame-url{margin-left:8px;font-size:12px;color:var(--muted);background:var(--card);border:1px solid var(--line);border-radius:999px;padding:4px 14px}
.mk .req{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line-soft);font-size:14px}
.mk .req:last-child{border-bottom:none;padding-bottom:2px}
.mk .req span:first-child{color:var(--ink-soft)}
.mk .status{font-size:11px;font-weight:700;letter-spacing:.06em;padding:4px 10px;border-radius:999px;background:var(--sage-bg);color:var(--sage-ink);white-space:nowrap}
.mk .status.open{background:var(--bg-tint);color:var(--accent)}
.mk .preview-cap{text-align:center;margin:16px auto 0;font-size:13.5px;color:var(--faint)}
/* Insider proof band */
.mk .insider-band{margin:64px auto 0;background:var(--dark-band);border-radius:20px;padding:52px 44px 44px;color:#EDE6E1;text-align:center}
.mk .insider-band .insider-kicker{font-size:11.5px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:#E8A8B0;margin-bottom:16px}
.mk .insider-band h2{margin:0 auto;font-size:clamp(28px,4.4vw,38px);font-weight:700;letter-spacing:-.02em;line-height:1.18;max-width:680px;color:#fff}
.mk .insider-band h2 em{font-family:var(--serif);font-style:italic;font-weight:500;color:#F0C4C9;letter-spacing:0}
.mk .insider-band p{margin:18px auto 0;max-width:640px;font-size:16.5px;line-height:1.7;color:#DCD2C8}
.mk .insider-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:38px auto 0;max-width:820px;border-top:1px solid rgba(255,255,255,.14);padding-top:32px}
.mk .insider-stat{padding:0 20px}
.mk .insider-stat + .insider-stat{border-left:1px solid rgba(255,255,255,.14)}
.mk .insider-stat b{display:block;font-family:var(--serif);font-size:40px;font-weight:600;line-height:1;color:#fff;letter-spacing:-.01em}
.mk .insider-stat span{display:block;margin-top:10px;font-size:13.5px;line-height:1.55;color:#C9BBAE}
/* Sections */
.mk .wrap{max-width:1060px;margin:0 auto;padding:0 20px}
.mk .wrap-wide{max-width:1180px;margin:0 auto;padding:0 20px}
.mk section{scroll-margin-top:90px}
.mk .section{margin:96px auto 0}
.mk .section-head{max-width:680px;margin:0 auto;text-align:center}
.mk .section-head.left{margin:0;text-align:left}
.mk .section-head h2{font-size:clamp(28px,4.4vw,38px);font-weight:700;letter-spacing:-.02em;line-height:1.15;margin:0;color:var(--ink)}
.mk .section-head p{color:var(--muted);font-size:16.5px;line-height:1.65;margin:14px auto 0}
.mk .section-head.left p{margin-left:0}
.mk .kicker{font-size:11.5px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.mk .alt{background:var(--bg-soft);border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);margin-top:96px;padding:88px 0}
.mk .alt .section{margin-top:0}
/* Pillars */
.mk .pillar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:40px}
.mk .pillar{border:1px solid var(--line);border-radius:16px;padding:28px 26px;background:var(--card)}
.mk .pillar .p-label{font-size:11px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);margin-bottom:16px}
.mk .pillar h3{margin:0 0 10px;font-size:20px;font-weight:700;letter-spacing:-.01em;line-height:1.3;color:var(--ink)}
.mk .pillar p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.65}
/* Features */
.mk .feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:40px}
.mk .feat{border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--card)}
.mk .feat h3{margin:0 0 8px;font-size:16.5px;font-weight:700;line-height:1.35;color:var(--ink)}
.mk .feat p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.mk .mark{color:var(--accent);margin-bottom:14px}
.mk .mark svg{display:block}
/* How it works */
.mk .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:40px}
.mk .step{border:1px solid var(--line);border-radius:16px;padding:28px 26px;background:var(--card)}
/* How it works — step numbers (2026-11-09, owner): the filled crimson circle
   around each number read as a "weird oval", so the number is now a plain
   large serif numeral in crimson with a short hairline beneath it — same
   elegant-serif + hairline-rule language as the rest of the site, no
   container, no circle. */
.mk .step-num{font-family:'Lora',Georgia,serif;font-size:30px;font-weight:600;color:var(--crimson);line-height:1;margin-bottom:14px}
.mk .step-num::after{content:"";display:block;width:28px;height:1px;background:var(--crimson);margin-top:10px;opacity:.45}
.mk .step h3{margin:0 0 9px;font-size:18px;font-weight:700;color:var(--ink);line-height:1.3}
.mk .step p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.65}
/* Roles */
.mk .role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:40px}
.mk .role{border:1px solid var(--line);border-radius:16px;padding:28px 26px;background:var(--card)}
.mk .role h3{margin:0 0 16px;font-size:18px;font-weight:700;color:var(--ink)}
.mk .role ul{list-style:none;margin:0;padding:0}
.mk .role li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;font-size:14.5px;line-height:1.55;color:var(--ink-soft)}
.mk .role li svg{color:var(--sage);flex:0 0 auto;margin-top:3px}
/* Roadmap — a journey, not four cards (2026-11-12, Aric): the phases run
   left to right joined by sage chevrons; on a phone they stack with the
   arrows pointing down. The Done phase reads as finished, not pending. */
.mk .roadmap-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:34px 34px;margin-top:40px}
.mk .phase{position:relative;border:1px solid var(--line);border-radius:16px;padding:24px 22px;background:var(--card);box-shadow:0 12px 30px -22px rgba(33,29,25,.35)}
.mk .phase::before{content:"";position:absolute;top:0;left:22px;right:22px;height:3px;border-radius:0 0 3px 3px;background:linear-gradient(90deg,var(--sage),var(--accent))}
.mk .phase:not(:last-child)::after{content:"";position:absolute;right:-24px;top:50%;width:0;height:0;margin-top:-9px;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:14px solid var(--sage)}
.mk .phase.done{background:var(--sage-bg)}
.mk .phase.done .phase-status{background:var(--sage);color:#fff}
.mk .phase-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.mk .phase-num{font-size:12px;font-weight:600;color:var(--faint)}
.mk .phase-status{font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);background:var(--bg-tint);border-radius:999px;padding:4px 10px;white-space:nowrap}
.mk .phase h3{margin:0 0 9px;font-size:17px;font-weight:700;color:var(--ink);line-height:1.3}
.mk .phase p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.65}
.mk .roadmap-close{max-width:680px;margin:30px auto 0;text-align:center;font-size:15.5px;line-height:1.75;color:var(--muted)}
.mk .roadmap-close strong{font-weight:700;color:var(--ink)}
.mk .label-line{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:20px}
.mk .label-line::before, .mk .label-line::after{content:"";height:1px;width:56px;background:var(--sage);opacity:.5}
.mk .label-line span{font-size:11px;font-weight:700;letter-spacing:.26em;text-transform:uppercase;color:var(--sage-ink)}
/* Product previews gallery */
.mk .shot-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:40px;text-align:left}
.mk .shot{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--card);box-shadow:0 16px 40px -24px rgba(33,29,25,.20)}
.mk .shot .frame-bar{padding:9px 14px}
.mk .shot-body{padding:18px 20px 20px;min-height:196px}
.mk .shot-body h3{margin:0 0 4px;font-size:16.5px;font-weight:700;color:var(--ink)}
.mk .shot-body .shot-sub{margin:0 0 12px;font-size:12.5px;color:var(--muted)}
.mk .shot-cap{padding:14px 20px 16px;border-top:1px solid var(--line-soft)}
.mk .shot-cap b{display:block;font-size:14.5px;color:var(--ink)}
.mk .shot-cap span{display:block;margin-top:3px;font-size:13px;line-height:1.55;color:var(--muted)}
.mk .mini-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line-soft);font-size:13.5px;color:var(--ink-soft)}
.mk .mini-row:last-child{border-bottom:none}
.mk .amen{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:11px 13px;margin-top:9px;font-size:13.5px}
.mk .amen b{color:var(--ink);font-weight:600}
.mk .amen span{color:var(--muted);font-size:12.5px;display:block;margin-top:1px}
.mk .amen .open-slot{font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--sage-ink);background:var(--sage-bg);border-radius:999px;padding:4px 10px;white-space:nowrap}
.mk .chat-q{background:#fff;border:1px solid var(--line);border-radius:12px 12px 12px 3px;padding:11px 13px;font-size:13.5px;color:var(--ink-soft);line-height:1.55}
.mk .chat-a{margin-top:9px;border:1px solid var(--line);border-radius:12px 12px 3px 12px;padding:11px 13px;font-size:13.5px;color:var(--ink-soft);line-height:1.55}
.mk .src-chip{display:inline-block;margin-top:9px;font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--accent);background:var(--bg-tint);border-radius:999px;padding:4px 10px}
/* Preview calendar rows (2026-11-12, Aric): modernize — no dated gray fills.
   The app .cal-event background (paper-deep) leaked into these rows because
   the marketing rule never overrode background; kill it here and give each
   event a small date chip instead of a gray box. */
.mk .cal-event{display:flex;gap:12px;padding:9px 0;border-bottom:1px solid var(--line-soft);font-size:13.5px;color:var(--ink-soft);align-items:center;background:transparent}
.mk .cal-event:last-child{border-bottom:none}
.mk .cal-event b{flex:0 0 auto;background:var(--sage-bg);color:var(--sage-ink);border:1px solid var(--sage-line);border-radius:8px;padding:4px 8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
/* Whole portal preview — full left navigation + dashboard */
/* Stage: a contrasting panel that fences the full-portal preview off from
     the page around it, so its sidebar reads as part of the product window */
.mk .portal-stage{margin-top:40px;background:#F2EBE0;border:1px solid #DECFB8;border-radius:24px;padding:clamp(14px,3.2vw,28px);text-align:left}
.mk .portal-stage-head{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;margin-bottom:16px;padding:0 2px}
.mk .portal-stage-tag{display:inline-flex;align-items:center;gap:8px;font-size:10.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#fff;background:var(--crimson);border-radius:999px;padding:7px 13px;white-space:nowrap}
.mk .portal-stage-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:#fff;flex:0 0 auto}
.mk .portal-stage-note{font-size:13px;font-weight:500;color:var(--ink-soft);line-height:1.5}
.mk .portal-shot{border:1.5px solid #C4B294;border-radius:16px;overflow:hidden;background:var(--card);box-shadow:0 32px 64px -24px rgba(33,29,25,.38),0 0 0 6px rgba(255,255,255,.5);margin-top:0;text-align:left}
.mk .portal-shot .frame-bar{background:#EFE7DA;border-bottom:1.5px solid #C4B294}
.mk .frame-tag{margin-left:auto;font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);background:#fff;border:1px solid #C4B294;border-radius:999px;padding:4px 11px;white-space:nowrap}
.mk .closer-head{display:flex;align-items:center;gap:16px;margin-top:48px;text-align:left}
.mk .closer-head::after{content:"";flex:1;height:1px;background:var(--line)}
.mk .closer-head span{font-size:11px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.mk .closer-head + .shot-grid{margin-top:20px}
@media (max-width:560px){.mk .portal-shot .frame-tag{display:none}
.mk .portal-stage-head{margin-bottom:12px}}
.mk .portal-layout{display:grid;grid-template-columns:238px 1fr;min-height:520px}
.mk .portal-side{background:var(--crimson-deep);color:#F7E9EA;display:flex;flex-direction:column;padding:20px 14px 16px}
.mk .portal-side .side-mark{font-family:var(--script);font-size:30px;color:#fff;line-height:1;padding:0 10px}
.mk .portal-community{margin:14px 4px 4px;padding:11px 10px;border:1px solid rgba(255,255,255,.22);border-radius:10px}
.mk .portal-community b{display:block;font-size:13.5px;font-weight:700;color:#fff;line-height:1.3}
.mk .portal-community span{display:block;margin-top:2px;font-size:11.5px;color:#EFC9CE}
.mk .portal-nav{margin-top:14px;display:flex;flex-direction:column;gap:1px}
.mk .portal-nav .nav-label{font-size:10px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#E3A6AE;padding:13px 10px 6px}
.mk .portal-nav a{display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:500;color:#F3D9DC;text-decoration:none;padding:8px 10px;border-radius:8px;line-height:1.25}
.mk .portal-nav a svg{flex:0 0 auto;opacity:.85}
.mk .portal-nav a.on{background:#fff;color:var(--crimson-deep);font-weight:700}
.mk .portal-nav a.on svg{opacity:1}
.mk .portal-nav .nav-badge{margin-left:auto;font-size:10.5px;font-weight:700;background:var(--crimson);color:#fff;border-radius:999px;padding:2px 8px;line-height:1.4}
.mk .portal-nav a.on .nav-badge{background:var(--crimson);color:#fff}
.mk .portal-user{margin-top:auto;padding:14px 10px 2px;border-top:1px solid rgba(255,255,255,.18);display:flex;align-items:center;gap:10px}
.mk .portal-user .avatar{width:32px;height:32px;border-radius:50%;background:#fff;color:var(--crimson-deep);display:grid;place-items:center;font-size:12px;font-weight:700;flex:0 0 auto}
.mk .portal-user b{display:block;font-size:13px;color:#fff;line-height:1.25}
.mk .portal-user span{display:block;font-size:11.5px;color:#EFC9CE}
.mk .portal-main{padding:24px 26px 26px;min-width:0}
.mk .portal-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.mk .portal-top h3{margin:0;font-size:21px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.mk .portal-top p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.mk .portal-search{font-size:12.5px;color:var(--faint);border:1px solid var(--line);border-radius:999px;padding:8px 16px;background:var(--bg-soft);white-space:nowrap}
.mk .portal-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}
.mk .portal-stat{border:1px solid var(--line);border-radius:10px;padding:12px 14px}
.mk .portal-stat b{display:block;font-size:19px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.mk .portal-stat span{font-size:11.5px;color:var(--muted);font-weight:500;line-height:1.35;display:block;margin-top:1px}
.mk .portal-cols{display:grid;grid-template-columns:1.25fr .85fr;gap:12px;margin-top:12px;align-items:start}
.mk .portal-card{border:1px solid var(--line);border-radius:12px;padding:15px 17px;margin-top:0}
.mk .portal-card + .portal-card{margin-top:12px}
.mk .portal-card .dc-label{font-size:10.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);margin-bottom:7px}
.mk .portal-card p{margin:0;font-size:13.5px;line-height:1.55;color:var(--ink-soft)}
.mk .portal-card p + p{margin-top:4px}
.mk .portal-shot + .shot-grid{margin-top:18px}
@media (max-width:960px){.mk .portal-layout{grid-template-columns:208px 1fr}
.mk .portal-stats{grid-template-columns:repeat(2,1fr)}
.mk .portal-cols{grid-template-columns:1fr}}
@media (max-width:760px){.mk .portal-layout{grid-template-columns:1fr;min-height:0}
.mk .portal-side{padding:16px 12px 12px}
.mk .portal-nav{display:grid;grid-template-columns:1fr 1fr;gap:1px 6px}
.mk .portal-nav .nav-label{grid-column:1/-1}
.mk .portal-nav .nav-badge{margin-left:6px}
.mk .portal-user{margin-top:14px}
.mk .portal-main{padding:18px 16px 20px}
.mk .portal-search{display:none}}
/* Budget tool (content kept, restyled) */
.mk .budget{margin:96px auto 0;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:48px 40px 36px}
.mk .budget-head{text-align:center}
.mk .budget-head .label-line::before, .mk .budget-head .label-line::after{background:var(--crimson)}
.mk .budget-head .label-line span{color:var(--accent)}
.mk .section-head .label-line::before, .mk .section-head .label-line::after{background:var(--crimson)}
.mk .section-head .label-line span{color:var(--accent)}
.mk .budget-head h2{font-size:clamp(26px,4.2vw,34px);font-weight:700;letter-spacing:-.018em;color:var(--ink);margin:0 auto 12px;line-height:1.22}
.mk .budget-head p{color:var(--muted);font-size:16.5px;line-height:1.65;max-width:600px;margin:0 auto}
.mk .badge-plan{display:inline-block;margin-top:20px;color:var(--accent);background:var(--bg-tint);font-size:11.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;border-radius:999px;padding:9px 16px}
.mk .flow{display:grid;grid-template-columns:1fr 32px .92fr 32px 1.15fr;gap:8px;align-items:stretch;margin-top:36px;text-align:left}
/* Budget flow — all three steps get the identical card treatment (2026-11-12,
   Aric): same border, background, padding, and height. Equal heights come
   from the grid's align-items:stretch; the green drop-zone stays INSIDE step
   one's card as its content. */
.mk .drop-card,.mk .check-card,.mk .budget-card{border:1px solid var(--line);border-radius:14px;padding:22px;display:flex;flex-direction:column;background:var(--card)}
.mk .check-icon{color:var(--accent);margin-bottom:14px}
.mk .check-card h3{margin:0;font-size:19px;font-weight:700;color:var(--ink);line-height:1.3}
.mk .check-card p{margin:9px 0 0;color:var(--muted);font-size:14px;line-height:1.65}
.mk .check-card p.check-note{margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft);font-size:13.5px}
.mk .drop-label{font-size:10.5px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--faint);margin-bottom:14px}
.mk .drop-zone{flex:1;border:1.5px dashed var(--sage-line);background:var(--sage-bg);border-radius:12px;padding:30px 18px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:196px}
.mk .drop-icon{color:var(--sage);margin-bottom:14px}
.mk .drop-zone h3{margin:0;font-size:21px;font-weight:700;color:var(--sage-ink)}
.mk .drop-zone p{margin:9px 0 0;color:var(--sage-muted);font-size:14px;line-height:1.6;max-width:300px}
.mk .file-types{margin-top:16px;display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.mk .file-types span{color:var(--sage-ink);font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.mk .file-types span + span::before{content:"·";margin-right:14px;color:var(--sage);font-weight:400}
.mk .drop-foot{margin:16px 0 0;font-size:13px;color:var(--muted);line-height:1.6;text-align:center}
.mk .flow-arrow{display:grid;place-items:center;color:var(--sage)}
.mk .budget-card-head{padding:0 0 14px;border-bottom:1px solid var(--sage-line)}
.mk .budget-card-head h3{margin:0;font-size:19px;font-weight:700;color:var(--sage-ink);line-height:1.3}
.mk .budget-card-head p{margin:5px 0 0;font-size:12.5px;color:var(--sage-muted)}
.mk .budget-body{padding:8px 0 16px;flex:1}
.mk .row{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--line-soft);font-size:14.5px}
.mk .row span:last-child{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
.mk .row.group{border-bottom:none;padding-bottom:2px;margin-top:10px}
.mk .row.group span{font-size:10.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--faint)}
.mk .row.total{border-top:1px solid var(--ink);border-bottom:none;margin-top:8px;padding-top:12px;font-weight:700;font-size:15px}
.mk .row.income span:last-child{color:var(--sage)}
.mk .budget-actions{display:flex;gap:10px;flex-wrap:wrap;padding:4px 0 0}
.mk .budget-actions .btn{flex:1;min-width:150px;padding:12px 16px;font-size:13.5px}
.mk .btn.save{background:var(--crimson);color:#fff}
.mk .btn.save:hover{background:var(--crimson-deep)}
.mk .btn.share{background:var(--card);color:var(--sage-ink);border-color:var(--sage)}
.mk .btn.share:hover{border-color:var(--sage-ink)}
.mk .budget-small{margin:24px auto 0;text-align:center;font-size:14px;color:var(--muted);line-height:1.7;max-width:620px}
.mk .also{margin:24px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.mk .also div{border:1px solid var(--line);border-radius:16px;padding:24px 26px;background:var(--card)}
.mk .also h4{margin:0 0 7px;font-size:16px;font-weight:700;color:var(--ink)}
.mk .also p{margin:0;font-size:13.5px;color:var(--muted);line-height:1.6}
/* Pricing */
.mk .pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:40px;align-items:stretch}
.mk .price-card{border:1px solid var(--line);border-radius:20px;padding:30px 28px 32px;display:flex;flex-direction:column;text-align:left;background:var(--card)}
.mk .price-card.featured{border:2px solid var(--crimson);padding:29px 27px 31px}
.mk .price-card .plan{font-size:11.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
.mk .price-card.featured .plan{color:var(--accent)}
.mk .price{font-size:44px;font-weight:700;letter-spacing:-.02em;margin:14px 0 2px;color:var(--ink)}
.mk .price small{font-size:15px;font-weight:500;color:var(--muted)}
.mk .price-card p.desc{color:var(--muted);font-size:14.5px;line-height:1.6;margin:10px 0 18px}
.mk .price-card ul{list-style:none;margin:0 0 26px;padding:0}
.mk .price-card li{display:flex;gap:10px;align-items:flex-start;padding:6px 0;font-size:14px;line-height:1.5;color:var(--ink-soft)}
.mk .price-card li svg{color:var(--sage);flex:0 0 auto;margin-top:3px}
.mk .price-card .btn{width:100%;padding:12px 16px;font-size:14px;margin-top:auto}
.mk .pricing-note{text-align:center;margin-top:24px;color:var(--muted);font-size:14px;line-height:1.7}
.mk .pricing-note a{color:var(--accent);font-weight:600;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:1px}
/* Founder */
.mk .founder-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:34px;margin-top:40px;align-items:center;text-align:left}
.mk .founder-copy p{color:var(--muted);font-size:16.5px;line-height:1.75;margin:0 0 16px}
.mk .founder-copy p:first-child{font-family:var(--serif);font-style:italic;font-size:19px;color:var(--ink-soft)}
/* FAQ */
.mk .faq-list{max-width:800px;margin:36px auto 0;text-align:left;border-top:1px solid var(--line)}
.mk .faq-item{padding:24px 4px 26px;border-bottom:1px solid var(--line)}
.mk .faq-item h3{margin:0 0 9px;font-size:17.5px;font-weight:700;color:var(--ink)}
.mk .faq-item p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.7}
/* Final CTA */
.mk .final-cta{margin:96px auto 0;background:linear-gradient(115deg,#A31626,var(--crimson-deep));border-radius:20px;padding:56px 40px;text-align:center;color:#fff}
.mk .final-cta h2{margin:0 auto;font-size:clamp(27px,4.4vw,38px);font-weight:700;letter-spacing:-.02em;line-height:1.2;max-width:640px}
/* Crimson breaks (2026-11-12, Aric): the final-CTA red box, reused as
   attention grabbers on four major sections — features, Architectural
   Review, roadmap, founder. Rhythm is deliberate: crimson, then a light
   section, then crimson again, so it stays striking instead of numbing.
   Inner cards stay white; only the section shell and its own text go red. */
.mk .crimson-break{margin:96px auto 0;background:linear-gradient(115deg,#A31626,var(--crimson-deep));border-radius:20px;padding:56px 40px;color:#fff}
.mk .crimson-break .kicker{color:#F3D9DC}
.mk .crimson-break .section-head h2{color:#fff}
.mk .crimson-break .section-head p{color:#F3D9DC}
.mk .crimson-break .roadmap-close{color:#F3D9DC}
.mk .crimson-break .roadmap-close strong{color:#fff}
.mk .crimson-break .founder-copy p{color:#F3D9DC}
.mk .crimson-break .phase:not(:last-child)::after{border-left-color:#F3D9DC}
.mk .final-cta p{margin:16px auto 0;max-width:540px;font-size:16.5px;line-height:1.65;color:#F3D9DC}
.mk .final-cta .cta{margin-top:30px}
/* Contact */
.mk .contact-card{border:1px solid var(--line);border-radius:20px;padding:38px 36px;margin-top:40px;text-align:left;background:var(--card)}
.mk .contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px}
.mk .contact-grid h3{margin:0 0 12px;font-size:22px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.mk .contact-grid p{color:var(--muted);line-height:1.7;font-size:15px;margin:0 0 14px}
.mk .mock-form{display:grid;gap:16px}
.mk .mock-form label{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft)}
.mk .mock-form input, .mk .mock-form textarea{display:block;width:100%;margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:12px 14px;font:inherit;font-size:15px;letter-spacing:0;text-transform:none;background:var(--bg-soft);color:var(--ink)}
.mk .mock-form input:focus, .mk .mock-form textarea:focus{outline:none;border-color:var(--crimson)}
.mk .mock-form textarea{min-height:110px;resize:vertical}
.mk .form-note{font-size:13px;color:var(--faint);line-height:1.6}
/* Footer */
.mk footer{margin-top:96px;background:var(--dark-band);color:#EDE6E1}
.mk .footer-inner{max-width:1060px;margin:0 auto;padding:48px 20px 42px;text-align:center}
.mk .footer-inner .fmark{font-family:var(--script);font-size:40px;color:#fff;line-height:1}
.mk .footer-inner p{margin:12px 0 0;font-size:13.5px;color:#C9BBAE;line-height:1.7}
.mk .footer-nav{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:20px 0 8px}
.mk .footer-nav a{color:#fff;text-decoration:none;font-size:13px;letter-spacing:.04em;padding:6px 10px;opacity:.9}
.mk .footer-nav a:hover{text-decoration:underline;text-underline-offset:4px}
.mk .footer-nav span{color:#6E6157;align-self:center}
.mk .footer-inner p.owned{font-family:var(--serif);font-style:italic;font-size:15px;color:#EDE6E1}
/* Feature guide view */
.mk .guide-view{max-width:1060px;margin:0 auto;padding:56px 20px 0}
.mk .guide-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:34px}
.mk .back-link{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px}
.mk .back-link:hover{color:var(--crimson-deep)}
.mk .guide-head{text-align:center;max-width:720px;margin:0 auto}
.mk .guide-head h2{font-size:clamp(30px,4.6vw,40px);font-weight:700;letter-spacing:-.02em;line-height:1.18;margin:0;color:var(--ink)}
.mk .guide-head p{color:var(--muted);font-size:16.5px;line-height:1.7;margin:16px auto 0}
.mk .guide-rule{max-width:760px;margin:28px auto 0;text-align:center;font-family:var(--serif);font-style:italic;font-size:16px;line-height:1.65;color:var(--ink-soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 10px}
.mk .guide-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:28px auto 0}
.mk .checklist-wrap{margin:36px auto 0;border-top:1px solid var(--line)}
.mk .checklist-table{width:100%;border-collapse:collapse;font-size:15px}
.mk .checklist-table thead th{font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);text-align:center;padding:16px 10px 14px;border-bottom:1px solid var(--ink);vertical-align:bottom}
.mk .checklist-table thead th:first-child{text-align:left;padding-left:4px;letter-spacing:.12em}
.mk .checklist-table thead th .plan-price{display:block;font-size:19px;font-weight:700;letter-spacing:-.01em;text-transform:none;color:var(--ink);margin-top:6px;white-space:nowrap}
.mk .checklist-table thead th .plan-price small{font-family:var(--sans);font-size:12px;color:var(--muted);font-weight:400}
.mk .checklist-table tbody td{padding:11px 10px;border-bottom:1px solid var(--line-soft);color:var(--ink-soft);line-height:1.45;text-align:center;vertical-align:middle}
.mk .checklist-table tbody td:first-child{text-align:left;padding-left:4px;font-weight:500}
.mk .checklist-table tr.group-row td{padding:22px 4px 9px;text-align:left;border-bottom:1px solid var(--line);font-size:11px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--accent)}
.mk .checklist-table tr.group-row:first-child td{padding-top:16px}
.mk .check-cell{color:var(--accent)}
.mk .check-cell svg{display:inline-block;vertical-align:middle}
.mk .checklist-table span.dash{color:var(--faint);font-weight:300}
.mk .feature-name{display:block}
.mk .read-toggle{background:none;border:none;padding:0;margin-top:7px;display:inline-flex;align-items:center;gap:5px;font-family:var(--sans);font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);cursor:pointer;line-height:1.4}
.mk .read-toggle:hover{color:var(--crimson-deep)}
.mk .read-toggle:focus-visible{outline:1px solid var(--crimson);outline-offset:3px}
.mk .read-toggle .chev{display:inline-flex;transition:transform .22s ease}
.mk .read-toggle[aria-expanded="true"] .chev{transform:rotate(180deg)}
.mk .detail-row td{text-align:left !important;padding:2px 4px 18px !important;border-bottom:1px solid var(--line) !important;vertical-align:top}
.mk .detail-inner{max-width:640px;border-top:1px solid var(--line-soft);padding-top:12px}
.mk .detail-text{margin:0;font-size:14px;line-height:1.65;color:var(--muted)}
.mk .detail-caption{margin:8px 0 0;font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);line-height:1.5}
.mk .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mk .tier-note{max-width:760px;margin:28px auto 0;font-size:14.5px;line-height:1.75;color:var(--muted);text-align:left;border-top:1px solid var(--line);padding-top:20px}
.mk .tier-note strong{font-weight:700;color:var(--ink-soft)}
.mk .guide-foot{text-align:center;margin:36px auto 0;padding-bottom:8px}
.mk .print-header{display:none}
@media (max-width:760px){.mk .guide-view{padding:40px 14px 0}
.mk .checklist-table{font-size:13.5px}
.mk .checklist-table thead th{padding:12px 4px 10px;letter-spacing:.08em;font-size:10px}
.mk .checklist-table thead th:first-child{padding-left:2px}
.mk .checklist-table thead th .plan-price{font-size:15px}
.mk .checklist-table tbody td{padding:10px 4px}
.mk .checklist-table tbody td:first-child{padding-left:2px}
.mk .checklist-table .plan-col{width:17%}
.mk .guide-actions .btn{width:100%;max-width:340px}
.mk .detail-row td{padding-left:2px !important;padding-bottom:16px !important}
.mk .detail-text{font-size:13.5px}}
@media print{@page{size:letter;margin:0.55in 0.6in}
header.site, .announce, .mk footer, .mk .no-print{display:none !important}
.mk .guide-view{display:block !important;max-width:none;margin:0;padding:0}
.mk .print-header{display:block;text-align:center;margin-bottom:18px}
.mk .print-header .pmark{font-family:var(--script);font-size:38px;line-height:1;color:#6E1220}
.mk .print-header h1{font-family:var(--serif);font-size:22px;font-weight:500;margin:10px 0 4px;color:#28231F}
.mk .print-header p{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#71685E;margin:0}
.mk .guide-head, .mk .guide-rule{display:none !important}
.mk .read-toggle, .mk .detail-row{display:none !important}
.mk .checklist-wrap{margin:0;border-top:none}
.mk .checklist-table{font-size:10.5pt}
.mk .checklist-table thead th{padding:8px 6px 7px;border-bottom:1.2pt solid #28231F;color:#28231F}
.mk .checklist-table thead th .plan-price{font-size:13pt;margin-top:3px;color:#28231F}
.mk .checklist-table tbody td{padding:5.5px 6px;border-bottom:0.5pt solid #EDE6DC;color:#28231F}
.mk .checklist-table tr.group-row td{padding:11px 2px 4px;border-bottom:0.5pt solid #E2D9CF;color:#6E1220}
.mk .tier-note{max-width:none;margin-top:14px;padding-top:10px;border-top:0.7pt solid #28231F;font-size:9.5pt;line-height:1.55;color:#28231F}
.mk a{text-decoration:none;color:inherit}}
@media (max-width:960px){.mk .roadmap-grid{grid-template-columns:repeat(2,1fr)}
.mk .phase:not(:last-child)::after{display:none}}
@media (max-width:860px){.mk .feat-grid, .mk .pillar-grid, .mk .role-grid, .mk .steps, .mk .pricing-grid{grid-template-columns:1fr}
.mk .also{grid-template-columns:1fr}}
@media (max-width:760px){.header-inner{padding:12px 14px;justify-content:center;text-align:center;flex-wrap:wrap}
.brand{width:100%;justify-content:center}
header.site .wordmark{font-size:34px}
.brand small{display:none}
nav.main{justify-content:center}
nav.main a{font-size:13px;padding:7px 8px}
nav.main a.login{margin-left:4px}
.mk .hero{padding:52px 16px 56px}
.mk .wrap, .mk .wrap-wide{padding-left:14px;padding-right:14px}
.mk .section{margin-top:72px}
.mk .alt{margin-top:72px;padding:64px 0}
.mk .budget{padding:34px 18px 26px;margin-top:72px}
.mk .shot-grid{grid-template-columns:1fr}
.mk .shot-body{min-height:0}
.mk .insider-band{padding:38px 22px 32px;margin-top:48px}
.mk .insider-stats{grid-template-columns:1fr;gap:24px;padding-top:28px}
.mk .insider-stat{padding:0}
.mk .insider-stat + .insider-stat{border-left:none;border-top:1px solid rgba(255,255,255,.14);padding-top:24px}
.mk .flow{grid-template-columns:1fr}
.mk .flow-arrow{transform:rotate(90deg);padding:2px 0}
.mk .founder-grid, .mk .contact-grid{grid-template-columns:1fr}
.mk .contact-card{padding:26px 18px}
.mk .final-cta{padding:40px 22px;margin-top:72px}
.mk .crimson-break{padding:40px 22px;margin-top:72px}
.mk .crimson-break .phase:not(:last-child)::after{border-top-color:#F3D9DC;border-left-color:transparent}
.mk .cta .btn{width:100%;max-width:340px}
.mk .label-line::before, .mk .label-line::after{width:30px}
.mk .roadmap-grid{grid-template-columns:1fr;gap:34px}
.mk .phase:not(:last-child)::after{display:block;right:auto;left:50%;top:auto;bottom:-27px;margin:0 0 0 -9px;border-left:9px solid transparent;border-right:9px solid transparent;border-top:14px solid var(--sage);border-bottom:none}
.mk footer{margin-top:72px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}
.mk .read-toggle .chev{transition:none}
.mk .btn{transition:none}}
/* ---- Port additions: hero content over the photo ---- */
.mk .hero-inner{max-width:860px;margin:0 auto}
.mk .hero .pill{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.38);color:#fff}
.mk .hero .pill::before{background:#fff}
.mk .hero h1{color:#fff}
.mk .hero h1 em{color:#F0C4C9}
.mk .hero p.sub{color:rgba(255,255,255,.9)}
.mk .hero .trust-row li{color:rgba(255,255,255,.95)}
.mk .hero .trust-row svg{color:#BFE3B4}
.mk .hero .cta .btn.ghost{color:#fff;border-color:rgba(255,255,255,.65)}
.mk .hero .cta .btn.ghost:hover{border-color:#fff;color:#fff}

/* ---- Port additions: base, founder video, contact extras ---- */
.mk{background:var(--bg);color:var(--ink);font-family:var(--sans);font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.mk video.tour-video{width:100%;border-radius:16px;display:block;background:#241E1B}
/* Founder still (wave26): the choppy founder video was replaced by a still
   picture in the same slot — same size, same rounded frame. */
.mk img.tour-video{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:16px;display:block;background:#241E1B}
.mk .center{text-align:center}
.mk .contact-ai{margin-top:44px}
.mk .contact-ai h3{margin:0 0 10px;font-size:19px;font-weight:700;color:var(--ink)}
.mk .contact-ai p{color:var(--muted);font-size:14.5px;line-height:1.65}
.mk .contact-ai a{color:var(--accent)}
.mk .contact-call{margin-top:18px}
.mk .footer-sub{margin-top:2px}

/* ---------- Compact login card (2026-11-07) ---------- */
/* Marketing-matched auth pages: white page, crimson accents, narrow card in
   the Condo Control feel. The :root overrides come from loginHead() in
   views.js (extraHead), which runs after layout()'s theme <style>. The
   wordmark uses the same script stack as the marketing header. */
.login-page{padding:44px 0 64px}
.login-wordmark{font-family:"Pinyon Script","Brush Script MT","Segoe Script","Apple Chancery","Snell Roundhand",cursive;font-size:46px;line-height:1.05;color:#9E1B2E;text-align:center}
.login-tagline{text-align:center;font-size:9px;letter-spacing:.3em;text-transform:uppercase;color:#9A8E81;font-weight:600;margin:4px 0 0}
.login-card{max-width:400px;margin:30px auto 0;background:#fff;border:1px solid #E7DFD5;border-radius:3px;padding:26px 26px 20px}
.login-card .form label{margin:.85rem 0;font-size:.93rem}
.login-card .form input{margin-top:6px}
.login-card .forgot{text-align:center;margin:1.1rem 0 0}
.login-card .forgot a{color:#7C1322}

/* Split login (2026-11-10): crimson photo panel + form panel. */
.login-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100vh}
.login-side{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:48px;padding:44px 44px 30px;color:#fff;background:#7C1322 url('/images/login-neighborhood-v1.webp') center/cover no-repeat;overflow:hidden}
.login-side::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(124,19,34,.82),rgba(124,19,34,.70) 55%,rgba(124,19,34,.90))}
.login-side>*{position:relative}
.login-side-wordmark{font-family:"Pinyon Script","Brush Script MT","Segoe Script","Apple Chancery","Snell Roundhand",cursive;font-size:52px;line-height:1.05;color:#fff}
.login-side-line{font-family:var(--font-display);font-size:19px;line-height:1.45;color:#F7EDEA;margin:14px 0 0;max-width:340px}
.login-side-points{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.login-side-points li{position:relative;padding-left:30px;font-size:15px;line-height:1.5;color:#FDF6F3}
.login-side-points li::before{content:'✓';position:absolute;left:0;top:1px;width:19px;height:19px;border:1px solid rgba(255,255,255,.65);border-radius:50%;font-size:11px;line-height:18px;text-align:center;color:#fff}
.login-side-trust{font-size:11.5px;letter-spacing:.02em;color:rgba(255,255,255,.80);border-top:1px solid rgba(255,255,255,.28);padding-top:14px;margin:0}
.login-main{display:flex;align-items:center;justify-content:center;padding:48px 32px;background:#FFFCF9}
.login-form-col{width:100%;max-width:400px}
.login-hello{font-family:var(--font-display);font-size:32px;font-weight:600;color:#231A17;margin:0 0 6px}
.login-sub{color:#6B5D55;font-size:15px;margin:0 0 28px}
.form label.login-field-label{display:block;font-size:13.5px;font-weight:600;color:#3A2E28;margin:0 0 16px}
.login-input-wrap{position:relative;display:block;margin-top:7px}
.login-input-wrap input{margin-top:0;padding-left:38px}
.login-input-wrap.pw input{padding-right:42px}
.login-input-wrap .login-input-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9A8E81;display:flex;pointer-events:none}
.login-input-wrap .pw-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;background:none;color:#9A8E81}
.login-input-wrap .pw-toggle:hover{color:#7C1322}
.login-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 20px;font-size:13.5px}
.login-row .login-remember{display:flex;align-items:center;gap:7px;color:#3A2E28;cursor:pointer;margin:0;font-weight:400}
.login-row .login-remember input{accent-color:#9E1B2E}
.login-row a{color:#7C1322}
.login-submit{box-shadow:none}
.login-new{text-align:center;font-size:13.5px;color:#6B5D55;margin:18px 0 0}
.login-new a{color:#7C1322}
@media (max-width:760px){
  .login-split{grid-template-columns:1fr;min-height:0}
  .login-side{padding:36px 24px 28px;gap:28px}
  .login-side-wordmark{font-size:44px}
  .login-main{padding:36px 20px 48px}
}

/* Invoice (2026-11-11, wave24): print-friendly, crimson/cream, logo top-left. */
.invoice{background:#fffdf8;border:1px solid #e8ddd2;border-radius:10px;padding:28px 32px;max-width:760px;margin:0 auto}
.invoice-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:3px solid #9E1B2E;padding-bottom:16px;margin-bottom:20px}
.invoice-brand{display:flex;gap:16px;align-items:flex-start}
.invoice-logo{height:64px;width:auto;display:block}
.invoice-head h1{font-size:26px;margin:0 0 6px}
.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.invoice-parties h3{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#7C1322;margin:0 0 6px}
.invoice-parties p{margin:0}
.invoice-pay{margin:20px 0;padding:16px;background:#fdf6ec;border:1px solid #e8ddd2;border-radius:8px;text-align:center}
.invoice-pay p{margin:10px 0 0;word-break:break-all}
.invoice-terms{border-top:1px solid #e8ddd2;padding-top:12px;color:#666;font-size:13px}
.invoice-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;align-items:center}
.stamp{display:inline-block;border:3px solid #1a7a3a;color:#1a7a3a;border-radius:6px;padding:6px 14px;font-weight:700;letter-spacing:.15em;transform:rotate(-4deg)}
.stamp-void{border-color:#9E1B2E;color:#9E1B2E}
@media print{.invoice{border:0;padding:0;max-width:100%}}
/* Member directory print (2026-11-16, Aric): the Print button prints a
   clean table — no sidebar, topbar, crumbs, buttons, or footer. */
@media print{
  .topbar, .side, .crumbs, .btn, .no-print, footer.foot, .preview-banner, .flash { display: none !important; }
  body { background: #fff; }
  .appshell { display: block; }
  main.wrap, .wrap { max-width: none; margin: 0; padding: 0; }
  .page-head h1 { font-size: 18pt; }
  .dir-table { font-size: 11pt; width: 100%; border-collapse: collapse; }
  .dir-table th { text-align: left; border-bottom: 1.5pt solid #28231F; padding: 6px 8px; color: #28231F; }
  .dir-table td { border-bottom: 0.5pt solid #ddd; padding: 6px 8px; color: #28231F; }
  .dir-table td a { color: #28231F; text-decoration: none; }
  .dir-card { border: none; box-shadow: none; padding: 0; }
  /* Calendar print (2026-11-19, Aric): the month prints as a grid — the
     "+" add links stay on screen only, day cells shrink to fit a page. */
  .cal-add { display: none !important; }
  .cal-day { min-height: 4.2rem; }
  .cal-event { color: #28231F; }
}
@media (max-width:640px){.invoice{padding:20px}.invoice-parties{grid-template-columns:1fr}.invoice-logo{height:48px}}

/* ================= Wave26: responsive portal (phone + tablet) =================
   Live phone check (2026-11-11, 390px) found page-wide horizontal overflow
   (calendar 418px, board members 459px, dashboard 803px at 768px, finances
   844px at 768px) plus floating buttons covering content and a nav that
   clipped. Root causes, all fixed here:
   - Flex/grid items default to min-width:auto, so one wide child (calendar
     grid, members table, dash grid, finances grid3) forced <main> — a flex
     item of .appmain — wider than the viewport, and the page swiped
     sideways. The fix is min-width:0 on the flex/grid items below, so wide
     content scrolls INSIDE its own card instead of widening the page.
   - The calendar's repeat(7, 1fr) tracks have an auto minimum (min-content),
     so one long event word widened a whole day column. minmax(0, 1fr) lets
     tracks shrink; long words break inside the cell.
   - <details> cannot be flattened with display:contents in Chromium (its
     links stay in a narrow vertical box), so the phone nav is a separate
     flat strip (.appnav-phone) — see views.js appNav.
   - The floating Help/Feedback pills sat fixed over content at every width.
     They are gone: Help + Feedback now live as quiet links at the bottom of
     the sidebar (.side-help, always visible on tablet/desktop), and are
     hidden at phone widths where Help is already in the nav strip and
     Feedback is one tap away from the Help center / What's new pages. */

/* STAY STEADY: no horizontal rubber-banding on the page itself, and no
   scroll chaining out of an inner horizontal scroller (nav strip, table)
   into the page. */
html, body { overscroll-behavior-x: none; }
.table-wrap, .appnav-phone, .side .appnav { overscroll-behavior-x: contain; }

/* Root flex/grid min-width fixes: wide content must never widen the page. */
.appmain > main { min-width: 0; width: 100%; }
/* Wave26: .wrap sets margin: 0 auto, and auto cross-margins make a column
   flex item size to its content instead of stretching — so a wide table
   (members, 427px min-content) stretched main to 459px on a 390px phone
   even with min-width: 0. A definite width: 100% pins main to its
   container; .wrap's max-width: 1040px still caps it on desktop. */
.grid3 > *, .grid2 > *, .dash-grid > * { min-width: 0; }
.card { min-width: 0; }
.table-wrap { min-width: 0; }
.portal-stat { min-width: 0; }
.portal-stat b, .portal-stat span { overflow-wrap: break-word; }

/* Tables: long tokens break inside cells; wide tables scroll in their card. */
.table td, .table th { overflow-wrap: break-word; }

/* Calendar: tracks shrink below min-content; day cells clip nothing else. */
.cal-day, .cal-dow { min-width: 0; }
.cal-day { overflow: hidden; }
.cal-dow { padding: .55rem .3rem; }
.cal-event { overflow-wrap: anywhere; }

/* Calendar dots (<=900px): month cells are too narrow for event titles, so
   each event shows as one coloured dot (its category colour) instead of
   text clipped mid-word. At 768px the sidebar leaves ~65px per day column —
   titles wrap letter-by-letter there, which looks broken; dots are cleaner.
   The day number still opens the day view with full titles, and each dot
   still links to its event (title attribute). */
@media (max-width: 900px) {
  .cal-event {
    font-size: 0; line-height: 0; padding: 2px 0; margin: 3px 0;
    display: flex; flex-wrap: wrap; gap: 4px; background: transparent;
  }
  .cal-event .cal-dot { width: 9px; height: 9px; margin: 0; flex: none; }
  .cal-event .cal-time, .cal-event .rsvp-badge { display: none; }
}

/* Help + Feedback, docked at the bottom of the sidebar (wave26 — replaces
   the floating pills, which covered content at every width). In-flow, so
   they can never cover anything; the sidebar is sticky full-height, so
   they stay one tap away on tablet/desktop. Hidden at phone widths: Help
   is already in the phone nav strip, and Feedback is linked from the Help
   center / What's new pages. */
.side-help {
  display: flex; gap: 6px; padding: 0 12px 14px;
}
.side-help-link {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 8px; min-height: 44px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 3px;
  color: var(--nav-dim); text-decoration: none;
  font-weight: 600; font-size: .88rem; line-height: 1.2;
}
.side-help-link span[aria-hidden="true"] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: .95rem; font-weight: 800; flex: none;
}
.side-help-link:hover { background: rgba(255,255,255,.07); color: #fff; }
@media (max-width: 900px) {
  .side-help { display: none; }
}

/* Phone nav strip (<=560px): the grouped sidebar is hidden; the flat
   .appnav-phone strip (views.js appNav) takes its place. One row, full
   labels, snap-to-item so the strip always rests on whole links, and a
   right-edge fade so the next item reads as "more" instead of a word
   sliced mid-letter. The active link is scrolled into view on load. */
.appnav-phone { display: none; }
@media (max-width: 560px) {
  .appnav-phone {
    display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding: 6px 12px 10px; gap: 2px; scrollbar-width: none;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, #000 82%, transparent 100%);
  }
  .appnav-phone::-webkit-scrollbar { display: none; }
  .appnav-phone a {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px;
    border-radius: 3px; text-decoration: none; color: var(--nav-text);
    font-weight: 550; font-size: .93rem; line-height: 1.3;
    white-space: nowrap; flex: none; min-height: 44px;
    scroll-snap-align: start;
  }
  .appnav-phone a svg { width: 16px; height: 16px; flex: none; opacity: .85; }
  .appnav-phone a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .appnav-phone a.on { background: #fff; color: var(--navy); font-weight: 700; }
  .appnav-phone a.on svg { opacity: 1; }
  .appnav-phone .nav-badge {
    margin-left: auto; min-width: 22px; text-align: center;
    font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
    background: rgba(255,255,255,.14); color: #fff;
    border-radius: 999px; padding: 2px 7px; flex: none;
  }
  .appnav-phone a.on .nav-badge { background: var(--primary); color: #fff; }
}

/* Tablet (<=900px): three-column card grids and the four-up stat strip are
   too cramped in the 448px content column (they forced the finances and
   dashboard pages wider than the viewport). One full-width column for
   grid3, two-up stats. */
@media (max-width: 900px) {
  .grid3 { grid-template-columns: 1fr; }
  .dash-stats .portal-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Wave26: Reports — the per-day bar chart is capped by weekly aggregation in
   views.js; the track itself is a thin hairline now, not a tall gray block,
   so low-count days no longer leave a big empty gray expanse. */
.bar-track { height: 8px; background: var(--line-soft); }

/* Wave26: Reports — stat boxes (.stats) and Highlights (.hl-grid) use equal
   row heights, so every box in the grid matches even when labels wrap. */
.stats, .hl-grid { grid-auto-rows: 1fr; }

/* Wave26: group member roster — initials avatar, prominent name, role badge.
   Same fine-line family as the nav icons; no emoji. */
.member-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.member-row:last-child { border-bottom: none; }
.member-avatar { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  border: 1px solid var(--line); display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .85rem; }
.member-main { flex: 1 1 160px; min-width: 0; display: flex;
  flex-direction: column; gap: 3px; }
.member-name { font-weight: 650; overflow-wrap: anywhere; }
.member-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.member-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }

/* Wave26: group detail — the two columns are flex columns whose cards grow
   to fill, so Group chat and Members end up exactly equal height. */
.group-detail-cols > div { display: flex; flex-direction: column; }
.group-detail-cols > div > .card { flex: 1; }

/* Wave26: equal-height .two-col rows — cards must not carry their own
   vertical margins inside the grid (a card's 1.1rem top+bottom margins made
   its border box 35px shorter than its stretched row, so the Reports chart
   row looked uneven). The grid carries the rhythm instead. */
.two-col { margin: 1.1rem 0; }
.two-col > .card { margin-top: 0; margin-bottom: 0; }
/* Wave26: the Reports "By status / By category" stack — a flex column whose
   two cards spread to fill the row, so their outer edges align with the
   chart card next to them. */
.stack-col { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.stack-col > .card { margin-top: 0; margin-bottom: 0; }
/* Wave26: dashboard widget headers — at 768px the two-column dash grid
   leaves ~170px for a header, and a long title + nowrap "View all" link
   pushed the link 35px past the viewport. Let the header wrap. */
.dash-head { flex-wrap: wrap; }
.dash-head h2 { min-width: 0; }

/* Wave26: .stats is 4 columns from 720px up, but at 768px the content
   column is only ~456px (sidebar on the left) and a 1fr track's minimum is
   its item's min-content — the long uppercase mono labels ("ANNOUNCEMENTS
   POSTED") forced the tracks wider than the container, 12px past the
   viewport on Reports. Two columns to 900px (same as the portal stats),
   and let stat labels break rather than force a track wider. */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
.stat { min-width: 0; }
.stat-l { overflow-wrap: anywhere; }

/* Hub dashboard — Recent activity (2026-11-12, Aric): a collapsible
   section near the top, collapsed by default, count in the header.
   Native <details> — no JS, expands in place. */
.hub-activity{margin:1.6rem 0}
.hub-activity summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:.5rem}
.hub-activity summary::-webkit-details-marker{display:none}
.hub-activity-title{font-size:1.25rem;letter-spacing:-.02em;font-weight:700}
.hub-activity-chev{color:var(--muted);transition:transform .15s ease}
.hub-activity[open ] .hub-activity-chev{transform:rotate(90deg)}
.hub-activity .table-wrap{margin-top:.6rem}

/* --- Agent side chat (2026-11-25): floating icon + side panel. The
   agent's own colour rides on --agent-color (set inline from the server),
   so one rule serves all five agents. --- */
.agent-chat-btn { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 2px solid #fff; background: var(--agent-color, #a6192e); color: #fff; font-size: 1.5rem; font-weight: 700; font-family: Lora, Georgia, serif; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; padding: 0; }
.agent-chat-btn:hover { filter: brightness(1.08); }
.agent-chat-btn:focus-visible { outline: 3px solid var(--agent-color, #a6192e); outline-offset: 3px; }
.agent-chat-panel { position: fixed; right: 1.1rem; bottom: 5.2rem; z-index: 60; width: 22rem; max-width: calc(100vw - 2.2rem); background: #fff; border: 1px solid #e7dfd5; border-radius: 0.75rem; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); padding: 1rem; }
.agent-chat-head { display: flex; align-items: center; gap: 0.6rem; border-bottom: 3px solid var(--agent-color, #a6192e); padding-bottom: 0.6rem; margin-bottom: 0.6rem; }
.agent-chat-dot { width: 2rem; height: 2rem; border-radius: 50%; background: var(--agent-color, #a6192e); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.agent-chat-who { flex: 1; min-width: 0; }
.agent-chat-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #666; padding: 0.25rem 0.4rem; }
.agent-chat-context { font-weight: 600; margin: 0 0 0.4rem; }
.agent-chat-greeting { margin: 0 0 0.6rem; }
.agent-chat-answer { white-space: pre-wrap; margin-bottom: 0.6rem; }
.agent-chat-answer:empty { display: none; }
.agent-chat-actions { margin-bottom: 0.6rem; }
.agent-chat-actions:empty { display: none; }
.agent-chat-form { display: flex; gap: 0.5rem; }
.agent-chat-form input { flex: 1; min-width: 0; }
.agent-helpers { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.agent-helpers li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-top: 1px solid #f0ebe4; }
.agent-helper-dot { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--agent-color, #a6192e); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.agent-helper-who { flex: 1; min-width: 0; }
