/* HOA Guardian, "neon 4D" (2026-10-29, Wiz): deep-space dark by default, light when the device asks for it.
   Every color below is a token; components use tokens or color-mix() of them, never raw colors. */
:root {
  color-scheme: dark;
  --page: #070B14;
  --surface-1: #0F1729;
  --surface-2: #16213A;
  --surface-3: #1D2A47;
  --text-primary: #E6F1FF;
  --text-secondary: #B4C3D9;
  --text-muted: #93A6C2;
  --grid: #1B2742;
  --axis: #2C3B5C;
  --border: rgba(120, 200, 255, 0.16);
  --accent: #4FD8FF;            /* neon cyan: buttons, links, the grid */
  --accent-ink: #04121F;        /* text on accent buttons */
  --coral: #FF7A59;             /* sparks and the second map series only */
  --gold: var(--accent);        /* old name, kept so existing rules follow the new accent */
  --gold-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --series-1: var(--accent);
  --series-2: var(--coral);
  --good: #5FD49A;
  --seq-1: #0E2A3D; --seq-2: #13506E; --seq-3: #1C7FA5; --seq-4: #36B3D9; --seq-5: #8BE6FF;
  --glow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  --radius: 12px;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --page: #F3F7FB; --surface-1: #FFFFFF; --surface-2: #EAF1F8; --surface-3: #DDE7F2;
    --text-primary: #0B1626; --text-secondary: #2E3E55; --text-muted: #4A5B73;
    --grid: #DCE5EF; --axis: #B7C6D8; --border: rgba(11, 22, 38, 0.12);
    --accent: #006E9C; --accent-ink: #FFFFFF; --coral: #D9542F; --good: #1E8A4F;
    --seq-1: #D6F1FB; --seq-2: #9ED9F0; --seq-3: #4DB3DB; --seq-4: #1A86B5; --seq-5: #0A5A80;
    --glow: 0 0 0 transparent;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #F3F7FB; --surface-1: #FFFFFF; --surface-2: #EAF1F8; --surface-3: #DDE7F2;
  --text-primary: #0B1626; --text-secondary: #2E3E55; --text-muted: #4A5B73;
  --grid: #DCE5EF; --axis: #B7C6D8; --border: rgba(11, 22, 38, 0.12);
  --accent: #006E9C; --accent-ink: #FFFFFF; --coral: #D9542F; --good: #1E8A4F;
  --seq-1: #D6F1FB; --seq-2: #9ED9F0; --seq-3: #4DB3DB; --seq-4: #1A86B5; --seq-5: #0A5A80;
  --glow: 0 0 0 transparent;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text-primary); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--page) 82%, transparent); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1100; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--text-primary); }
.brand span { color: var(--text-muted); font-weight: 500; }
nav a { margin-left: 18px; text-decoration: none; color: var(--text-secondary); font-size: 14px; }
nav a.cta, .btn { background: var(--accent); color: var(--accent-ink); padding: 9px 16px; border-radius: 999px; font-weight: 600; border: 0; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; margin: 32px 0 12px; letter-spacing: -0.025em; font-weight: 700; }
.lede { color: var(--text-secondary); max-width: 720px; margin: 0 0 20px; font-size: 16px; }
h2 { font-size: 18px; margin: 0 0 4px; }
.sub { color: var(--text-muted); font-size: 13px; margin: 0 0 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; padding: 14px 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--text-secondary); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--text-primary); color: var(--page); font-weight: 600; }
.ctl label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ctl output { font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ctl input[type=range] { width: 170px; accent-color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.tile .k { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.tile .v { font-size: 28px; font-weight: 700; margin-top: 4px; }
.tile .d { font-size: 12px; color: var(--text-secondary); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.grid .span2 { grid-column: 1 / -1; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }

#map { height: 520px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
@media (max-width: 600px) { #map { height: 380px; } }
.legend-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-secondary); margin-top: 10px; align-items: center; }
.legend-row i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.leaflet-popup-content { font: 13px/1.45 system-ui, sans-serif; }

/* bar chart */
.bars { width: 100%; }
.bars .row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; align-items: center; height: 30px; cursor: pointer; border-radius: 6px; padding: 0 4px; }
.bars .row:hover, .bars .row.sel { background: var(--surface-2); }
.bars .lbl { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.bars .track { position: relative; height: 14px; border-left: 1px solid var(--axis); }
.bars .bar { height: 14px; background: var(--series-1); border-radius: 0 4px 4px 0; }
.bars .val { position: absolute; top: -2px; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; padding-left: 6px; white-space: nowrap; }
.tip { position: fixed; pointer-events: none; background: var(--text-primary); color: var(--page); font-size: 12px; padding: 8px 10px; border-radius: 8px; z-index: 2000; max-width: 260px; display: none; }
.view-toggle { font-size: 12px; margin-top: 8px; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--grid); }
th { color: var(--text-muted); font-weight: 600; font-size: 12px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface-2); }
.table-scroll { max-height: 440px; overflow: auto; }
input[type=search], input[type=text], input[type=email] { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font-size: 15px; }

.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(520px, 100%); background: var(--surface-1); border-left: 1px solid var(--border); z-index: 1500; transform: translateX(100%); transition: transform .2s; overflow: auto; padding: 20px; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
.drawer.open { transform: none; }
.drawer .x { float: right; }

.cta-band { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 16px 0 40px; }
.note { font-size: 12px; color: var(--text-muted); }
footer { border-top: 1px solid var(--border); padding: 20px 0 40px; color: var(--text-muted); font-size: 12px; }

/* report page */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 820px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.suggest { border: 1px solid var(--border); border-radius: 8px; margin-top: 6px; max-height: 260px; overflow: auto; }
.suggest div { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--grid); font-size: 14px; }
.suggest div:hover, .suggest div.sel { background: var(--surface-2); }
.suggest small { color: var(--text-muted); display: block; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; background: var(--surface-1); position: relative; }
.plan[aria-checked="true"] { outline: 2px solid var(--accent); }
.plan .price { font-size: 26px; font-weight: 700; }
.plan .cr { font-size: 12px; color: var(--text-muted); }
.plan ul { padding-left: 18px; margin: 10px 0 0; font-size: 13px; color: var(--text-secondary); }
.badge { position: absolute; top: -10px; right: 12px; background: var(--accent); color: var(--accent-ink); font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.locked { position: relative; filter: blur(5px); user-select: none; pointer-events: none; }
.banner { padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; margin-bottom: 12px; }
.report h2 { margin-top: 22px; border-bottom: 1px solid var(--grid); padding-bottom: 6px; }
.report dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.report dt { color: var(--text-muted); }
.report .letter { white-space: pre-wrap; font-family: ui-serif, Georgia, serif; background: var(--surface-2); padding: 16px; border-radius: 8px; font-size: 14px; }
@media print {
  header.top, footer, .no-print { display: none !important; }
  body, .card { background: #fff; color: #000; border: 0; }
}
@media (max-width: 600px) {
  /* Only the top header's links (2026-11-05: unscoped, this also hid the workspace and tool-page breadcrumbs on phones). */
  /* "Sign in" stays (2026-11-05: phones had no way in for existing members). */
  :where(.top) nav a:not(.cta):not(#signin-link):not(.hdr-tab) { display: none; }
  .brand span:not(b span) { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile .v { font-size: 22px; }
}

/* home hero + teaser */
.hero { padding: 8px 0 4px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); }
.search { display: grid; grid-template-columns: 2.2fr 1fr 0.6fr auto; gap: 8px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.search input { border: 0; background: var(--surface-2); padding: 14px; border-radius: 10px; font-size: 16px; color: var(--text-primary); min-width: 0; }
.search .btn { padding: 14px 22px; font-size: 16px; border-radius: 10px; }
@media (max-width: 700px) { .search { grid-template-columns: 1fr 1fr; } .search input:first-child, .search .btn { grid-column: 1 / -1; } }
.teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }
.teaser #t-map { height: 320px; border-radius: 10px; }
.gate { position: relative; }
.gate .locked { filter: blur(6px); }
.gate .unlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 16px; background: linear-gradient(transparent, var(--surface-1) 45%); }
.big { font-size: 34px; font-weight: 700; line-height: 1; }

/* ---------- brand marketing layout ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -0.01em; }
.brand .logo { width: 26px; height: 26px; color: var(--gold); }
.brand b { font-weight: 600; }
nav a { color: var(--text-secondary); }
nav a:hover { color: var(--text-primary); }
nav a.cta, .btn { background: var(--gold); color: var(--accent-ink); border-radius: 10px; font-weight: 600; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn.ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.gold { color: var(--gold); }
.good { color: var(--good); }
.display { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 22px; max-width: 820px; font-weight: 700; }

.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: radial-gradient(1200px 600px at 78% 40%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%), var(--page); }
#glow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .95; }
.hero { position: relative; padding: 72px 16px 64px; max-width: 1200px; }
.hero h1 { max-width: 760px; margin-top: 0; }
.hero .lede { max-width: 620px; font-size: 17px; color: var(--text-secondary); }
.hero .search { max-width: 760px; background: color-mix(in srgb, var(--surface-1) 86%, transparent); backdrop-filter: blur(10px); }
.hero .note { max-width: 620px; }
@media (max-width: 700px) { .hero { padding: 44px 16px 40px; } #glow { opacity: .45; } }

.section { padding: 72px 0 8px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.feature { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.feature h3 { margin: 10px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.feature .num { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .1em; }
.feature svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.sample { background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.sample-head { display: grid; gap: 4px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.sample-head b { font-size: 22px; letter-spacing: -0.01em; }
.metric { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grid); font-size: 14px; color: var(--text-secondary); }
.metric:last-child { border-bottom: 0; }
.metric b { font-size: 22px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.metric i { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--w); background: var(--gold); border-radius: 2px; }

.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 72px 0 0; }
.statband div { background: var(--surface-1); padding: 22px; display: grid; gap: 4px; }
.statband b { font-size: 30px; letter-spacing: -0.02em; }
.statband span { color: var(--text-muted); font-size: 13px; }
@media (max-width: 700px) { .statband { grid-template-columns: 1fr 1fr; } }
.cta-band.final { background: radial-gradient(600px 200px at 85% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent), var(--surface-1); padding: 34px; margin-top: 72px; }
.filters, .card, .tile { background: var(--surface-1); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--accent-ink); }
.search input::placeholder { color: var(--text-muted); }
.leaflet-container { background: var(--surface-2); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface-2); color: var(--text-primary); }
.leaflet-popup-content a { color: var(--gold); }
.tip { background: var(--surface-3); color: var(--text-primary); border: 1px solid var(--border); }

/* ---------- Guardian mascot ---------- */
.hero-art { position: absolute; right: 16px; top: 54px; width: min(34vw, 380px); pointer-events: none; }
.mascot { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.bubble { position: absolute; top: -6px; left: -24%; max-width: 210px; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text-primary); font-size: 14px; padding: 10px 14px; border-radius: 14px 14px 4px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: m-pop 6s ease-in-out infinite; }
.hero h1, .hero .lede, .hero .search, .hero .note { position: relative; z-index: 1; }
@media (max-width: 1100px) { .hero-art { width: 30vw; top: 90px; } .bubble { display: none; } }
@media (max-width: 860px) { .hero-art { position: relative; right: auto; top: auto; width: 170px; margin: 0 0 8px auto; } }
.m-body { animation: m-bob 3.2s ease-in-out infinite; transform-origin: 160px 300px; }
.m-shadow { animation: m-shadow 3.2s ease-in-out infinite; transform-origin: 160px 322px; }
.m-wave { animation: m-wave 2.4s ease-in-out infinite; transform-origin: 78px 196px; }
.m-glass { animation: m-glass 4s ease-in-out infinite; transform-origin: 282px 240px; }
.m-glint { animation: m-glint 4s ease-in-out infinite; }
.m-lid { animation: m-blink 5s infinite; }
.m-pupils { animation: m-look 7s ease-in-out infinite; }
.m-hat { animation: m-tip 6s ease-in-out infinite; transform-origin: 160px 96px; }
@keyframes m-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes m-shadow { 0%,100% { transform: scaleX(1); opacity: .35; } 50% { transform: scaleX(.86); opacity: .22; } }
@keyframes m-wave { 0%,100% { transform: rotate(0); } 15% { transform: rotate(-16deg); } 30% { transform: rotate(8deg); } 45% { transform: rotate(-14deg); } 60% { transform: rotate(0); } }
@keyframes m-glass { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-8deg); } }
@keyframes m-glint { 0%,70%,100% { opacity: .2; } 80% { opacity: 1; } }
@keyframes m-blink { 0%,92%,100% { height: 0; } 95% { height: 46px; } }
@keyframes m-look { 0%,30%,100% { transform: translate(0,0); } 40%,55% { transform: translate(-7px,1px); } 65%,80% { transform: translate(4px,-2px); } }
@keyframes m-tip { 0%,80%,100% { transform: rotate(0); } 86% { transform: rotate(-7deg) translateY(-6px); } 92% { transform: rotate(0); } }
@keyframes m-pop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .mascot *, .bubble { animation: none !important; } }

/* ---------- American spirit ---------- */
:root { --red: #c9453d; --blue: #3b5ea8; --white: #f3efe6; }
header.top::after, footer::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--white) 33.3% 66.6%, var(--blue) 66.6% 100%); }
header.top { border-bottom: 0; }
footer::before { margin: -20px 0 20px; opacity: .85; }
.star { color: var(--red); margin-right: 4px; }
.eyebrow .star { font-size: 13px; }
.hero-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, var(--white), transparent), radial-gradient(1px 1px at 28% 62%, var(--white), transparent),
    radial-gradient(1.4px 1.4px at 44% 12%, var(--white), transparent), radial-gradient(1px 1px at 8% 80%, var(--white), transparent),
    radial-gradient(1.2px 1.2px at 36% 88%, var(--white), transparent), radial-gradient(1px 1px at 52% 40%, var(--white), transparent);
  animation: twinkle 6s ease-in-out infinite alternate; }
.hero-band { background: radial-gradient(900px 500px at 82% 35%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(59,94,168,.16), transparent 60%), radial-gradient(600px 360px at 100% 0%, rgba(201,69,61,.10), transparent 60%), var(--page); }
@keyframes twinkle { from { opacity: .25; } to { opacity: .6; } }
.m-flag { animation: m-flag 2.6s ease-in-out infinite; transform-origin: 92px 51px; }
@keyframes m-flag { 0%,100% { transform: skewY(0) scaleX(1); } 25% { transform: skewY(-4deg) scaleX(.96); } 50% { transform: skewY(2deg) scaleX(1); } 75% { transform: skewY(-2deg) scaleX(.97); } }
.liberty { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 72px; padding: 30px; border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59,94,168,.20), transparent 45%), linear-gradient(315deg, rgba(201,69,61,.16), transparent 45%), var(--surface-1); }
.liberty-flag { width: 92px; height: auto; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: m-flag 3.4s ease-in-out infinite; transform-origin: left center; }
@media (max-width: 860px) { .liberty { grid-template-columns: 1fr; } }
.statband { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--red), var(--white), var(--blue)) 1; }
.proud { color: var(--text-secondary); font-size: 13px; margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .hero-band::before, .liberty-flag { animation: none !important; } }

/* search bar: street, city, state, ZIP, button */
.search { grid-template-columns: 2.2fr 1fr .62fr .62fr auto; }
.search select, .ctl select, .field select { border: 0; background: var(--surface-2); color: var(--text-primary); padding: 14px 10px; border-radius: 10px; font-size: 16px; font-family: inherit; min-width: 0; width: 100%; }
.ctl select, .field select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; }
@media (max-width: 700px) { .search { grid-template-columns: 1.4fr .8fr .8fr; } .search input:first-child, .search .btn { grid-column: 1 / -1; } }
.row3 { display: grid; grid-template-columns: 2fr .8fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 .field:first-child { grid-column: 1 / -1; } }

/* ---------- State tab (header) ---------- */
nav { display: flex; align-items: center; gap: 0; }
.state-pick { margin-left: 18px; background: var(--surface-2); color: var(--text-primary); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 30px 8px 12px; font: 600 13px/1 "Geist", system-ui, sans-serif; cursor: pointer; max-width: 170px;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.state-pick:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
nav a.cta { margin-left: 10px; }
@media (max-width: 600px) { .state-pick { margin-left: 0; max-width: 92px; padding: 8px 24px 8px 10px; } }
.state-banner { background: linear-gradient(90deg, rgba(59,94,168,.22), rgba(201,69,61,.16)); border-bottom: 1px solid var(--border); }
.state-banner .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.state-banner .btn { padding: 8px 14px; font-size: 13px; }

/* Check-all-that-apply groups, account page, bulletin board */
fieldset.checks { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px 4px; margin: 0 0 14px; min-width: 0; }
fieldset.checks legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 0 0 8px; font-weight: 400; cursor: pointer; }
label.check input { margin-top: 3px; flex: none; }
.acct { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .acct { grid-template-columns: minmax(0, 1fr); } }
.post { border-top: 1px solid var(--border); padding: 12px 0; }
.post:first-of-type { border-top: 0; }
.post h3 { margin: 4px 0 6px; font-size: 16px; overflow-wrap: anywhere; }
.post p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 6px; font-size: 14px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.tag.meeting { color: #ffd23f; border-color: rgba(255,210,63,.4); }
.acct textarea, .acct select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; font-size: 15px; box-sizing: border-box; }

/* Member menu (signed in): a bar under the header; one "My menu" button on phones */
.member-bar { background: var(--surface-1); border-bottom: 1px solid var(--border); position: sticky; top: 63px; z-index: 1050; }
.member-bar .wrap { display: flex; align-items: center; min-height: 46px; }
.member-links { display: flex; gap: 4px; flex-wrap: wrap; }
.member-links a, .member-links button, .member-menu a, .member-menu button { color: var(--text-muted); text-decoration: none; font: inherit; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; text-align: left; }
.member-links a:hover, .member-links button:hover, .member-menu a:hover { color: var(--text-primary); background: var(--surface-2); }
.member-bar a.on { color: var(--accent-ink); background: var(--gold); }
.member-links button { margin-left: auto; }
.member-menu { display: none; width: 100%; }
.member-menu summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 0; list-style: none; }
.member-menu summary::after { content: " ▾"; color: var(--gold); }
.member-menu > div { display: grid; padding: 0 0 10px; }
@media (max-width: 900px) { .member-links { display: none; } .member-menu { display: block; } }
/* Dashboard tabs */
.tab { display: none; } .tab.on { display: block; }
.dash { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: start; }
.dash .wide { grid-column: 1 / -1; }
.stat { font-size: 26px; font-weight: 700; margin: 2px 0; overflow-wrap: anywhere; }
/* Grids shrink their columns to fit screens narrower than the column's usual width (2026-11-20: Florida's value tiles
   ran past the edge under 300 px). Every repeat(auto-fit|auto-fill, minmax(N px, 1fr)) uses min(N px, 100%). */
.locked-card { border: 1px dashed var(--gold); }
.rates td, .rates th { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.rates { width: 100%; border-collapse: collapse; }

/* Header corner: Sign out sits beside "Hi, <name>" on every page, phones included. */
.hdr-out { margin-left: 8px; background: transparent; color: var(--text-primary); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.hdr-out:hover { background: var(--surface-2); }
nav a.cta { white-space: nowrap; }
@media (max-width: 600px) { nav a.cta { margin-left: 6px; padding: 8px 10px; font-size: 13px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; } .hdr-out { margin-left: 6px; padding: 7px 8px; font-size: 13px; } nav .state-pick { max-width: 70px; } }
@media (max-width: 360px) { nav .state-pick { display: none; } }

/* My Profile: photo + "Hi, <name>" header, card grid */
.prof-head { display: flex; align-items: center; gap: 18px; margin: 8px 0 18px; }
.prof-head h1 { margin: 0 0 4px; }
.prof-head .sub { margin: 0; font-size: 14px; }
.avatar { width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 30px; font-weight: 700; border: 2px solid var(--gold); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 60px; height: 60px; font-size: 22px; border-width: 1px; }
.prof-grid { columns: 2; column-gap: 16px; }
.prof-grid > .card { break-inside: avoid; margin: 0 0 16px; display: inline-block; width: 100%; box-sizing: border-box; }
.prof-grid .card h2 { margin: 0 0 14px; font-size: 18px; }
.prof-grid input[type=text], .prof-grid input[type=tel], .prof-grid input[type=number], .prof-grid input[type=password], .prof-grid input[type=date], .prof-grid select { width: 100%; box-sizing: border-box; }
.prof-grid select { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; font-size: 15px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0 0 16px; font-size: 14px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.consent span { font-size: 13px; color: var(--text-secondary); }
.tag.ok { color: #7fd1a0; border-color: rgba(127,209,160,.4); }
.banner.cheer { background: var(--gold-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 600; }
.photo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.photo-row > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { cursor: pointer; }
.prof-grid details summary { cursor: pointer; font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .prof-grid { columns: auto; } .avatar { width: 64px; height: 64px; font-size: 24px; } .prof-head { gap: 14px; } }
.photo-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.photo-pick[hidden], .cam[hidden] { display: none; }
.cam { margin: 0 0 14px; }
.cam video { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto 4px; background: #000; border: 2px solid var(--gold); }
.cam video.mirror { transform: scaleX(-1); }
.cam .actions { justify-content: center; }
.cam .note { text-align: center; }

/* Header "Hi, <name>" button with the member's photo bubble */
nav a.cta.with-ava { display: inline-flex; align-items: center; gap: 8px; padding-left: 6px; }
.hdr-ava { width: 28px; height: 28px; flex: none; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--accent-ink); color: var(--gold); font-size: 11px; font-weight: 700; border: 1.5px solid var(--accent-ink); }
.hdr-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
nav a.cta.with-ava .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 600px) { nav a.cta.with-ava { padding-left: 4px; gap: 6px; max-width: 104px; } .hdr-ava { width: 24px; height: 24px; font-size: 10px; } }
@media (max-width: 420px) { nav:has(.with-ava) .state-pick { display: none; } } /* signed-in phones: room for the photo bubble */
/* Dashboard "Hi, <name>" heading with the same photo bubble as My Profile */
.hello-row { display: flex; align-items: center; gap: 14px; }
.hello-row .avatar { width: 56px; height: 56px; font-size: 20px; }

/* My Profile: HOA management company contact card */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; cursor: pointer; text-align: left; }
.mgmt-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: -6px 0 16px; }
.mgmt-card[hidden] { display: none; }
.mgmt-title { font-weight: 700; margin: 0 0 8px; }
.mgmt-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }

/* Dashboard: feed + "Sponsored" column on computers (like social media); the column hides on phones (ads stay in the feed) */
.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.rail { position: sticky; top: 124px; display: grid; gap: 16px; }
@media (max-width: 1000px) { .dash-layout { grid-template-columns: minmax(0, 1fr); } .rail { display: none; } }
.ad { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface-1); }
.ad.feed { margin: 12px 0; background: var(--surface-2); }
.ad h3 { margin: 6px 0; font-size: 16px; }
.ad p { font-size: 14px; margin: 0 0 10px; }
.ad-top { font-size: 12px; color: var(--text-muted); margin: 0; }
.ad-label { font-weight: 700; letter-spacing: .03em; }
.ad-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin: 8px 0 4px; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Neighbor board */
.nb-compose { border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: var(--surface-2); }
.nb-compose textarea { width: 100%; box-sizing: border-box; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 15px; resize: vertical; }
.nb-compose textarea:focus { outline: none; }
.nb-row { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.nb-row select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); font: inherit; font-size: 14px; }
.nb-head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.nb-head .tag { margin-left: auto; }
.nb-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-weight: 700; flex: none; }
.nb-post.held { opacity: .6; }
.nb-actions a { color: var(--text-muted); }
.tag.safety { color: #ff8a7a; border-color: rgba(255,138,122,.4); }

/* Home Vendors */
.v-filters { margin-top: 0; }
.v-filters input[type=search] { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; }
.v-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; margin-bottom: 8px; }
.v-groups h3 { margin: 0 0 8px; font-size: 15px; }
.v-groups p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-block; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); text-decoration: none; }
.chip:hover { border-color: var(--gold); color: var(--text-primary); }
.v-count { font-size: 18px; margin: 18px 0 10px; }
.v-list { display: grid; gap: 12px; margin-bottom: 16px; }
.vendor h3 { margin: 0; font-size: 18px; }
.v-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-rated { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--gold); padding: 3px 10px; border-radius: 999px; }
.stars { color: var(--gold); letter-spacing: 1px; }
.v-rating, .v-tags, .v-lic, .v-contact, .v-ask { margin: 6px 0; }
.v-reviews summary { cursor: pointer; font-weight: 600; font-size: 14px; margin-top: 6px; }
.rev { border-top: 1px solid var(--border); padding: 8px 0; }
.rev p { margin: 0 0 4px; font-size: 14px; }
.rev-form { border-top: 1px solid var(--border); padding-top: 10px; }
.rev-form textarea { width: 100%; box-sizing: border-box; margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; }
.star-pick button { background: none; border: 0; color: var(--gold); font-size: 26px; cursor: pointer; padding: 0 2px; }
#v-rec summary { cursor: pointer; }
#v-rec select, #v-rec textarea, #v-rec input[type=text], #v-rec input[type=tel], #v-rec input[type=email] { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; }

/* Home Docs Library */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.subtabs button { background: var(--surface-1); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.subtabs button.on { background: var(--gold); color: var(--accent-ink); border-color: var(--gold); font-weight: 600; }
.subtabs .count { margin-left: 6px; font-size: 12px; opacity: .75; }
.subtabs button.has-new .count { background: var(--gold); color: var(--accent-ink); opacity: 1; border-radius: 999px; padding: 0 7px; font-weight: 700; }
.subtabs button.on.has-new .count { background: var(--accent-ink); color: var(--gold); }
.shared-pointer { margin: 12px 0; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.upload { margin-bottom: 12px; }
.upload summary { cursor: pointer; }
.upload select, .upload textarea, .upload input[type=text] { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; }
.meter { display: inline-block; width: 120px; height: 6px; border-radius: 3px; background: var(--surface-2); vertical-align: middle; overflow: hidden; margin: 0 4px; }
.meter span { display: block; height: 100%; background: var(--gold); }
.doc-list { display: grid; gap: 12px; }
.doc { display: flex; gap: 14px; align-items: flex-start; }
.doc-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
.doc-icon { width: 64px; height: 64px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 30px; flex: none; }
.doc-body { min-width: 0; flex: 1; }
.doc-body h3 { margin: 0 0 4px; font-size: 16px; overflow-wrap: anywhere; }
.doc-desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.doc-body input, .doc-body select, .doc-body textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; }
@media (max-width: 560px) { .doc { flex-direction: column; } .doc-thumb { width: 100%; height: 180px; } }
/* Vendor application */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 0 12px; }
.cat-group { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.cat-group summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.cat-group .check-grid { margin-top: 8px; }

/* Header: static Home + My Dashboard tabs beside the account corner (signed in) */
nav a.hdr-tab { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 8px 12px; border-radius: 10px; color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
nav a.hdr-tab:hover { color: var(--text-primary); background: var(--surface-2); }
nav a.hdr-tab.on { color: var(--text-primary); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--gold); }
nav a.hdr-tab .ico { font-size: 15px; line-height: 1; }
@media (max-width: 900px) { nav:has(.hdr-tab) > a:not(.cta):not(.hdr-tab) { display: none; } }
@media (max-width: 600px) { nav a.hdr-tab { display: inline-flex; padding: 7px 8px; margin-left: 2px; } nav a.hdr-tab .t { display: none; } }
@media (max-width: 420px) { .top .brand { font-size: 14px; } .brand span:not(b span) { display: none; } nav a.hdr-tab { padding: 6px 6px; } .hdr-out { padding: 7px 7px; } }

/* ---------- Home: satellite view + home card ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.home-map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0,0,0,.35); background: #0b0b0b; }
.home-map { height: 440px; width: 100%; }
.home-map .note { padding: 16px; }
.home-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; margin: 0; display: flex; gap: 14px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--page) 72%, transparent); backdrop-filter: blur(6px); font-size: 12px; color: #f2f0e8; }
.home-legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.home-legend .lg-hoa { background: #ffd23f; } .home-legend .lg-home { width: 9px; height: 9px; border-radius: 50%; background: #e34948; border: 2px solid #fff; }
.home-card { display: flex; flex-direction: column; justify-content: center; }
.home-card h2 { margin: 2px 0 2px; font-size: 24px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.tile-link:hover { transform: translateY(-2px); border-color: var(--gold); }
.tile-link b { display: block; margin-bottom: 2px; }
.tl-ico { font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); flex: none; }
@media (max-width: 900px) { .home-hero { grid-template-columns: minmax(0, 1fr); } .home-map { height: 320px; } .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .home-tiles { grid-template-columns: minmax(0, 1fr); } .home-map { height: 260px; } }

/* ---------- Community tab: left "About your HOA", feed in the middle, Sponsored on the right ---------- */
.comm-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.comm-left { position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow: auto; }
.comm-main > * + * { margin-top: 12px; }
@media (max-width: 1200px) { .comm-layout { grid-template-columns: 290px minmax(0, 1fr); } .comm-layout .rail { display: none; } }
@media (max-width: 860px) { .comm-layout { grid-template-columns: minmax(0, 1fr); } .comm-left { position: static; max-height: none; order: 2; } }
.about-hoa h2 { font-size: 18px; margin: 0 0 12px; }
.about-hoa h3 { font-size: 15px; margin: 18px 0 8px; }
.about-hoa .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.about-hoa .kv dt { margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.board-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.b-role { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-secondary); }
.b-role.chair { background: var(--gold); color: var(--accent-ink); border-color: var(--gold); }
.inline-form { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.inline-form h3 { margin-top: 0; }
.inline-form input, .inline-form select, .inline-form textarea { width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; }
.meet-alert { border-radius: var(--radius); padding: 16px 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent) 5%, transparent)), var(--surface-1); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 8%, transparent); }
.meet-alert.empty { background: var(--surface-1); border-style: dashed; border-color: var(--border); box-shadow: none; }
.meet-alert h3 { margin: 2px 0 4px; font-size: 20px; }
.meet-k { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.meet-when { margin: 0 0 10px; font-weight: 600; }
.meet-join { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
#dash-meeting { padding: 0; border: 0; background: none; }
.meet-row { display: flex; gap: 14px; }
.meet-date { flex: none; width: 58px; text-align: center; margin: 0; padding: 6px 0; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; line-height: 1.1; font-size: 11px; text-transform: uppercase; color: var(--text-muted); }
.meet-date b { font-size: 22px; color: var(--text-primary); }
.lib-h { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 18px 0 6px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.nb-ava.anon { background: var(--surface-2); font-size: 18px; }
.anon-tag { font-size: 10px; padding: 1px 6px; }
.nb-mini { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; }
/* posh touches: softer cards in the member area */
.comm-main .card, .about-hoa, .home-card, #dash-nb, .dash > .card { box-shadow: 0 6px 24px rgba(0,0,0,.18); }

/* Profile: avatar picker */
.ava-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ava-pick label { cursor: pointer; }
.ava-pick input { position: absolute; opacity: 0; }
.ava-pick span { display: grid; place-items: center; font-size: 24px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.ava-pick input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.ava-pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Tier comparison (pricing page + dashboard plan box) */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.tier.featured { border-color: var(--gold); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 16%, transparent); }
.tier.current { outline: 2px solid rgba(127,209,160,.5); }
.tier h3 { margin: 6px 0 4px; font-size: 18px; }
.tier-price { margin: 0; } .tier-price b { font-size: 34px; letter-spacing: -.02em; } .tier-price span { color: var(--text-muted); margin-left: 2px; }
.tier ul { padding-left: 18px; margin: 10px 0 14px; font-size: 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.tier-act { display: grid; gap: 8px; }
.tier-badge, .tier-soon { position: absolute; top: -11px; left: 16px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.tier-badge { background: var(--gold); color: var(--accent-ink); }
.tier-soon { left: auto; right: 16px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-secondary); }
.tier-found { font-size: 13px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 8px; padding: 6px 10px; margin: 8px 0 0; }
.tier-cur { margin: 0; font-weight: 600; color: #7fd1a0; }
.extras { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.extras h3 { margin: 0 0 8px; font-size: 16px; } .extras ul { margin: 0 0 8px; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 1100px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CC&R table of contents ---------- */
.toc-view h2 { margin: 2px 0 10px; }
.toc-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.toc-tools input { flex: 1; min-width: 200px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; }
.toc-group { margin: 16px 0 6px; }
.toc-group h3 { font-size: 15px; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); color: var(--gold); }
.toc-item { border: 1px solid var(--border); border-radius: 10px; margin: 6px 0; background: var(--surface-1); }
.toc-item[hidden] { display: none; }
.toc-item > summary { cursor: pointer; padding: 10px 12px; font-size: 14px; list-style: none; display: flex; gap: 8px; align-items: baseline; }
.toc-item > summary::before { content: "▸"; color: var(--gold); }
.toc-item[open] > summary::before { content: "▾"; }
.toc-item[open] { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.toc-label { font-weight: 700; white-space: nowrap; }
.toc-page { margin-left: auto; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.toc-body { padding: 0 14px 10px; font-size: 14px; line-height: 1.55; border-top: 1px solid var(--border); }

/* ---------- Ask Guardian ---------- */
.ask-wrap { max-width: 860px; }
.ask-head { display: flex; gap: 12px; align-items: center; }
.ask-head h2 { margin: 0; } .ask-head .sub { margin: 2px 0 0; }
.ask-ico { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--gold-soft); flex: none; }
/* Ask Guardian shows the Guardian himself (Wiz, 2026-11-17), the same art as the dashboard cards. */
.ask-ico-art { width: 64px; height: 64px; overflow: hidden; padding: 0; background: #1440b8; }
.ask-ico-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.thread { margin: 14px 0; display: grid; gap: 10px; max-height: 60vh; overflow: auto; padding-right: 4px; }
.msg { border-radius: 14px; padding: 10px 14px; font-size: 15px; line-height: 1.5; max-width: 92%; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin-bottom: 0; } .msg ul { margin: 0 0 8px; padding-left: 18px; }
.msg.me { justify-self: end; background: var(--gold); color: var(--accent-ink); }
.msg.bot { justify-self: start; background: var(--surface-2); border: 1px solid var(--border); }
.msg.typing { opacity: .7; font-style: italic; }
.msg-h { font-weight: 700; }
.cite-tag { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); white-space: nowrap; }
.thread { position: relative; }
.srcs { margin-top: 10px; display: grid; gap: 6px; }
details.srcs > summary { cursor: pointer; font-size: 13px; color: var(--text-secondary); list-style: none; }
details.srcs > summary::-webkit-details-marker { display: none; }
details.srcs > summary::after { content: " ▸"; } details.srcs[open] > summary::after { content: " ▾"; }
details.srcs:not([open]) { gap: 0; }
.acts, .sugg { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.acts .note, .sugg .note { flex-basis: 100%; margin: 0; }
.acts .chip, .sugg .chip { cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.acts .chip { border-color: var(--gold); }
.src { text-align: left; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--text-primary); font: inherit; cursor: pointer; display: grid; gap: 4px; }
.src:hover { border-color: var(--gold); }
.src-k { font-size: 12px; font-weight: 700; color: var(--gold); }
.src-t { font-size: 13px; color: var(--text-secondary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Floating Ask Guardian (bottom-right on every member tab) */
#dock { position: fixed; right: 16px; bottom: 16px; z-index: 1400; }
.dock-btn { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); background: var(--surface-2); padding: 6px; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.35); display: grid; place-items: center; }
.dock-btn img { width: 100%; height: 100%; object-fit: contain; }
.dock-btn:focus-visible, .dock-x:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
#dock.open .dock-btn { display: none; }
.dock-panel { position: fixed; right: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.45); overflow: hidden; }
.dock-panel[hidden] { display: none; }
.dock-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.dock-head img { width: 38px; height: 38px; }
.dock-head div { flex: 1; display: grid; line-height: 1.25; } .dock-head span { font-size: 12px; color: var(--text-secondary); }
.dock-head a, .ask-new-link { font-size: 13px; color: var(--gold); }
.ask-new-link { background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 4px; font: inherit; font-size: 13px; }
.ask-for { margin: 10px 0 0; font-size: 14px; color: var(--text-secondary); }
.ask-for a { margin-left: 6px; color: var(--gold); }
.ans-for { margin: 0 0 6px !important; font-size: 12px; }
.ask-head .ask-new { margin-left: auto; align-self: start; white-space: nowrap; }
.dock-x { background: none; border: 0; color: var(--text-primary); font-size: 18px; cursor: pointer; min-width: 44px; min-height: 44px; }
.dock-thread { flex: 1; max-height: none; margin: 0; padding: 12px; align-content: start; }
.dock-panel .ask-box { padding: 10px 12px 4px; border-top: 1px solid var(--border); }
.dock-panel .note { margin: 0; padding: 0 12px 6px; }
.dock-panel .dock-thread .note { padding: 0; }
@media (max-width: 600px) {
  #dock { right: 12px; bottom: 12px; }
  .dock-btn { width: 56px; height: 56px; }
  .dock-panel { right: 0; bottom: 0; width: 100vw; height: 88vh; height: 88dvh; border-radius: 18px 18px 0 0; }
}
@media print { #dock { display: none; } }
.chips .chip { cursor: pointer; font: inherit; font-size: 14px; }
.ask-box { display: flex; gap: 8px; align-items: flex-end; }
.ask-box .mic, .find-row .mic { min-width: 44px; min-height: 44px; padding: 0 10px; font-size: 18px; }
.ask-box .mic.on, .find-row .mic.on { background: var(--danger, #c0392b); color: #fff; border-color: transparent; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .ask-box .mic.on, .find-row .mic.on { animation: none; } }
.ask-box textarea { flex: 1; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; font-size: 15px; }
.top .brand { white-space: nowrap; }

/* CC&R library card */
.lib-card { margin: 12px 0; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.lib-card h3 { margin: 2px 0 10px; }
.lib-entry { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.lib-entry.main { border-top: 0; }
.lib-entry p { margin: 2px 0 0; }
.lib-entry > div:first-child { flex: 1 1 280px; min-width: 0; }
.lib-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-new { display: inline-block; background: var(--accent, var(--accent)); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.lib-concern { margin: 8px 0; padding: 8px 12px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 6px; }
.lib-concern ul { margin: 4px 0; padding-left: 18px; }
.lib-review { margin-top: 6px; }
.share-box { margin-top: 6px; }
.share-st { margin: 6px 0 0; }

/* Property switcher (dashboard) */
.prop-switch { margin: 0 0 14px; }
.prop-menu { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.prop-menu > summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.prop-menu > summary::-webkit-details-marker { display: none; }
.prop-ico { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--gold-soft); flex: none; }
.prop-cur { display: grid; min-width: 0; } .prop-cur .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-count { margin-left: auto; font-size: 13px; color: var(--gold); white-space: nowrap; font-weight: 600; }
.prop-list { border-top: 1px solid var(--border); padding: 8px 14px 14px; display: grid; gap: 8px; }
.prop-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.prop-row.on { border-color: var(--gold); } .prop-row.locked { opacity: .6; }
.prop-pick { background: none; border: 0; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; display: grid; gap: 2px; padding: 0; flex: 1; min-width: 0; }
.prop-pick:disabled { cursor: default; }
.prop-acts { font-size: 13px; white-space: nowrap; } .prop-acts a { color: var(--text-muted); }
.prop-add > summary { list-style: none; display: inline-block; cursor: pointer; } .prop-add > summary::-webkit-details-marker { display: none; }
.prop-up { margin: 4px 0 0; }
@media (max-width: 520px) { .prop-count { font-size: 12px; } .prop-ico { width: 34px; height: 34px; font-size: 18px; } }
.prop-name { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
a.avatar { text-decoration: none; }
/* "Report a wrong match" box (site/report-match.js) */
.report-match { margin-top: 10px; font-size: 14px; }
.report-match > summary { cursor: pointer; color: var(--text-muted); text-decoration: underline; }
.report-match form { margin-top: 10px; display: grid; gap: 8px; }
.report-match fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin: 0; min-width: 0; }
.report-match .rm-opt { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; font-weight: 400; }
.report-match textarea, .report-match input[type=text] { width: 100%; box-sizing: border-box; }
.report-match .rm-copy textarea { font: 12px/1.4 ui-monospace, Menlo, monospace; }

.lib-votes { margin: 4px 0 0; }
.lib-vote { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.lib-review .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 0; }
.report .vote-math { width: 100%; border-collapse: collapse; font-size: 14px; }
.report .vote-math td { padding: 6px 8px; border-top: 1px solid var(--border); vertical-align: top; }
.report .vote-math .num { text-align: right; white-space: nowrap; }
.my-reports { margin: 8px 0 0; padding-left: 18px; }
.my-reports li { margin: 4px 0; }
@media (max-width: 520px) { .report .vote-math td.note { display: block; padding-top: 0; border-top: 0; } .report dl { grid-template-columns: 1fr; } }
.fines { margin-top: 16px; }
.fines h3 { margin: 18px 0 6px; }
.fine-row { padding: 10px 0; border-top: 1px solid var(--border); }
.fine-row.flag { border-left: 4px solid var(--gold); padding-left: 10px; }
.fine-main { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fine-kind { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.fine-amt { font-size: 17px; }
.fine-text { margin: 4px 0; font-size: 14px; color: var(--text-secondary); overflow-wrap: anywhere; }
.fine-q { margin: 6px 0 0; font-size: 14px; }
.fine-law { margin-top: 14px; }
.fine-src { margin: 2px 0 0; font-size: 13px; }
.fine-cite { color: var(--text-secondary); }
a.fine-cite { color: var(--gold); }
.ocr-box { margin-top: 8px; }
.letters { margin-top: 16px; }
.letters .chip.on { background: var(--gold); color: var(--accent-ink); border-color: var(--gold); }
.letter-text { width: 100%; font: 14px/1.5 Georgia, serif; }
.fine-act { margin: 6px 0 0; }
.budget { margin-top: 16px; }
.bud-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; margin: 10px 0; }
.bud-stats > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.bud-stats b { font-size: 20px; }
.bud-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; gap: 10px; align-items: center; padding: 4px 0; font-size: 14px; }
.bud-bar { background: var(--surface-2); border-radius: 4px; height: 10px; overflow: hidden; }
.bud-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.bud-v { white-space: nowrap; }
.bud-q li, .bud-check li { margin: 6px 0; }
.bud-check { list-style: none; padding-left: 0; }
.bud-lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.bud-lines td, .bud-lines th { padding: 4px 6px; border-top: 1px solid var(--border); text-align: left; }
.bud-lines .num { text-align: right; } .bud-lines tr.tot td { font-weight: 700; }
@media (max-width: 520px) { .bud-row { grid-template-columns: 1fr auto; } .bud-bar { grid-column: 1 / -1; order: 3; } }

/* Address suggestions (site/address-suggest.js) */
.field:has(> .addr-sug) { position: relative; }
.addr-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.35); max-height: 260px; overflow: auto; }
.addr-sug li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-primary); }
.addr-sug li span { color: var(--text-secondary); font-size: 13px; white-space: nowrap; }
.addr-sug li:hover, .addr-sug li.on { background: var(--surface-3, var(--surface-1)); }

/* My Profile > My properties (site/properties-manage.js) */
.pm-card { break-inside: avoid; }
.pm-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.pm-grid h3 { margin: 0 0 8px; font-size: 16px; }
.pm-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.pm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pm-row.on { border-color: var(--gold); }
.pm-row.past { opacity: .85; }
.pm-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.pm-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-acts .btn { padding: 7px 12px; font-size: 13px; }
@media (max-width: 760px) { .pm-grid { grid-template-columns: 1fr; } .pm-acts { width: 100%; } }
/* Past Address History (site/address-history-ui.js) */
.ah-form { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); display: grid; gap: 10px; }
.ah-form h3, .ah-sugg h3 { margin: 0; font-size: 16px; }
.ah-sugg { margin-top: 12px; display: grid; gap: 8px; }
.ah-label { display: block; font-weight: 600; margin-bottom: 4px; }
.ah-pick { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; }
.ah-pick select { min-width: 0; width: 100%; }
.ah-gaps { margin: 8px 0; }
.ah-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-list .pm-row > div:first-child { overflow-wrap: anywhere; }
.ah-form [hidden] { display: none !important; }
.ah-form input:not([type="checkbox"]), .ah-form select { width: 100%; }
.ah-form .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ah-form .pair > *, .ah-form input, .ah-form select { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .ah-form .pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Neon 4D (2026-10-29, Wiz) ----------
   Depth: a neon grid floor running to the horizon (site/space.js). Time: it glides as you scroll, sections rise in,
   cards tilt toward the pointer, numbers count up (site/fx.js). Text always sits on solid panels, never on the grid.
   Everything that moves stops for people whose device asks for reduced motion. */
body { font-size: 16px; }
.hero-band { background: radial-gradient(900px 520px at 78% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
  radial-gradient(700px 420px at 8% 100%, color-mix(in srgb, var(--coral) 10%, transparent), transparent 60%), var(--page); }
#space { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 34%, #000 62%); mask-image: linear-gradient(90deg, transparent 0, transparent 34%, #000 62%); }
@media (max-width: 860px) { #space { -webkit-mask-image: none; mask-image: none; } }
#glow { opacity: .55; }
.hero h1 { text-shadow: var(--glow); }
.hero h1 .gold { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 600; color: var(--accent); }
.display { letter-spacing: -0.01em; }
.hero .search { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 18px 50px color-mix(in srgb, var(--page) 60%, transparent); }

/* Readable and tappable (rule 1: accessibility first). */
.sub, .note, .proud, .statband span, .tile .d, .feature .num, footer { font-size: 14px; }
.btn, nav a.cta, .seg button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.seg button { padding: 8px 14px; font-size: 14px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
input, select, textarea { font-size: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.btn { box-shadow: var(--glow); font-weight: 700; }

/* Tesseract (a 4D cube) with the Guardian standing inside it. */
.hero-art { width: min(36vw, 420px); aspect-ratio: 1; }
#tesseract { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .mascot { position: absolute; left: 24%; top: 26%; width: 52%; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 35%, transparent)); }
.bubble { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--glow); }
@media (max-width: 860px) { .hero-art { width: min(320px, 86vw); margin: 0 auto 8px; } }

/* Panels: a thin neon edge, lifting toward the pointer. */
.feature, .tier, .tile, .statband div { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feature:hover, .tier:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--glow); }
.tilt { transform-style: preserve-3d; will-change: transform; }
.statband b { color: var(--accent); text-shadow: var(--glow); font-variant-numeric: tabular-nums; }

/* Sections rise in as they scroll into view (only when fx.js is running). */
.fx .reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.fx .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fx .reveal { opacity: 1; transform: none; transition: none; }
  .feature, .tier, .tile, .btn { transition: none; }
  .tilt { transform: none !important; }
}

/* ---------- Neon 4D, review round 1 (independent screenshots, 2026-10-29) ---------- */
/* 1. Header fits at every width: phones show the state code and a short "Join free" button; tablets tuck the text links away. */
@media (max-width: 900px) { :where(.top) nav a:not(.cta):not(.hdr-tab):not(#signin-link) { display: none; } }
@media (max-width: 600px) {
  header.top .wrap { gap: 8px; }
  nav .state-pick { max-width: none; width: auto; margin-left: 0; padding: 8px 26px 8px 10px; min-height: 44px; }
  nav a.cta { max-width: none; overflow: visible; padding: 0 14px; font-size: 14px; margin-left: 8px; }
  nav a.cta:not(.with-ava) { font-size: 0; }
  nav a.cta:not(.with-ava)::after { content: "Join free"; font-size: 14px; }
  #signin-link { margin-left: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
}
/* Small phones (most iPhones, many Samsungs): "HOA Guardian" stays, on two short lines, so Sign in and Join free fit
   beside it (Wiz, 2026-11-06: the words must show on every page). */
@media (max-width: 400px) {
  nav a.cta { padding: 0 10px; margin-left: 6px; }
  #signin-link { margin-left: 4px; }
}
/* 2. Jump links land below the sticky header. */
section[id], main [id] { scroll-margin-top: 80px; }
/* 4. One font everywhere, and every text box styled (password, phone, number boxes too). */
button, input, select, textarea { font: inherit; }
input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=datetime-local], textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font-size: 16px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select { min-height: 44px; }
::placeholder { color: var(--text-muted); opacity: 1; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--accent); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface-1) 80%, transparent) !important; color: var(--text-muted) !important; }
.leaflet-control-attribution a { color: var(--accent) !important; }
/* 5. Phone dashboard: tappable controls, area pills scroll sideways inside their own strip, readable labels. */
.view-toggle { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.eyebrow, .ctl label, .field label, .tag, .badge-new { font-size: 14px; }
.feature p, .sub { font-size: 16px; }
@media (max-width: 600px) {
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-radius: 12px; scrollbar-width: none; }
  .seg button { white-space: nowrap; flex: 0 0 auto; }
  .tiles { grid-template-columns: 1fr; }
  .bars .lbl { min-width: 0; }
  .bars .val { font-size: 14px; }
  .ctl input[type=range] { width: 100%; height: 44px; }
  .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
}
/* Light mode: the white stripe of the flag band needs an edge on a light page. */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --white: #C9D3DE; } }
:root[data-theme="light"] { --white: #C9D3DE; }

/* ---------- Neon 4D, review round 2 ---------- */
/* 1. Phones: filter boxes take the full row and may shrink, so the pill strip scrolls inside itself (no page scroll). */
@media (max-width: 600px) {
  .filters .ctl { flex: 1 1 100%; min-width: 0; }
  .seg { min-width: 0; width: 100%; }
  /* Bar values stay inside the card: a narrower track leaves room for the number. */
  .bars .row { grid-template-columns: minmax(96px, 36%) 1fr; }
  .bars .track { width: calc(100% - 64px); }
}
/* 2. The speech bubble never sits on the headline. */
.hero h1 { max-width: 640px; }
@media (max-width: 1300px) { .bubble { display: none; } }
.fl-hero .bubble { display: none; }
/* 3. Small text up to the 14px floor; tables and charts readable. */
table { font-size: 14px; }
th, .tile .k, .tile .d, .legend-row, .bars .lbl, .bars .val, .tip, .plan .cr, .plan ul, .banner, .proud, .consent span,
fieldset.checks legend, .field label, .chip, .ad-top, .state-banner .btn { font-size: 14px; }
.badge, .tag { font-size: 14px; letter-spacing: .04em; }
.consent input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.ctl input[type=range] { height: 44px; }
.leaflet-touch .leaflet-bar a, .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
/* Round 3 leftovers (measured by the builder, not re-graded independently). */
.tier-badge, .tier-soon, .tier-found { font-size: 14px; }
label input[type=checkbox], label input[type=radio] { flex: none; width: 20px; height: 20px; }
.bars .row { height: auto; min-height: 44px; }

/* ---------- The Guardian character (2026-10-31, Wiz) ---------- */
/* Logo: the glowing shield, in every header (added by header.js). */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .logo-img { width: 34px; height: auto; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 45%, transparent)); }
/* Home hero: the flag-waving Guardian on the neon grid. */
.hero-art { aspect-ratio: auto; }
.hero-guardian { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--page) 70%, transparent)) drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 22%, transparent));
  animation: g-float 5s ease-in-out infinite; }
@keyframes g-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .hero-art { width: min(300px, 78vw); } }
/* Dashboard: the Guardian beside the heading changes pose with the section. */
.hello-row { position: relative; }
.tab-guardian { width: 96px; height: 116px; object-fit: cover; object-position: top; border-radius: var(--radius); margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--glow); background: var(--surface-2); }
.tab-guardian[data-pose="hero"] { object-fit: contain; border: 0; box-shadow: none; background: none; }
.pose-in { animation: g-pop .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes g-pop { from { transform: scale(.82) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .tab-guardian { width: 72px; height: 88px; } }
/* The eight section cards, like the character sheet. */
.guardian-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 24px; }
@media (max-width: 860px) { .guardian-grid { grid-template-columns: repeat(2, 1fr); } }
.g-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text-primary); background: var(--surface-1); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.g-card img { width: 100%; height: auto; aspect-ratio: 234 / 240; object-fit: cover; object-position: top; display: block; }
.g-card span { padding: 10px 12px; font-weight: 700; font-size: 16px; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.g-card:hover, .g-card:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--glow); }
/* Quick links on the Home tab: characters instead of emoji. */
.tl-guardian { width: 56px; height: 56px; object-fit: cover; object-position: top; border-radius: 10px; flex: none; }
/* Ask Guardian button and chat header: the thinking pose. */
.dock-btn { overflow: hidden; padding: 0; }
.dock-btn img { object-fit: cover; object-position: top; }
.dock-head img { border-radius: 50%; object-fit: cover; object-position: top; }
@media (prefers-reduced-motion: reduce) { .hero-guardian, .pose-in { animation: none !important; } .g-card { transition: none; } }
/* Compact character strip: eight across on computers, two rows of four on phones (the cards were taller than the
   member's own information). */
.guardian-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.g-card img { aspect-ratio: 1 / 1.05; }
.g-card span { font-size: 14px; padding: 6px 4px; line-height: 1.2; }
@media (max-width: 1000px) { .guardian-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .guardian-grid { gap: 8px; } .g-card span { font-size: 13px; min-height: 44px; } }
/* Signed-in phones: the brand words stay too (two short lines, below), with the header's buttons beside them. */

/* Signed-in header on tablets (601-900px) fits: brand tagline and the Home / My Dashboard text labels hide, icons stay
   (found by the Command Center release check, 2026-10-31; affected every signed-in page). */
@media (max-width: 900px) { header.top:has(.with-ava) .brand span:not(b span) { display: none; } nav a.hdr-tab .t { display: none; } nav a.hdr-tab { padding: 7px 10px; margin-left: 2px; } }

/* Signed-in header fits from 375px to 1440px with 44px tap targets (2026-11-03: at 1000px it ran 115px past the window).
   header.js also switches the state picker to codes ("NV") up to 1180px for members. */
header.top .brand { min-height: 44px; min-width: 44px; flex: none; }
nav a { white-space: nowrap; min-width: 44px; justify-content: center; }
nav .state-pick { min-height: 44px; }
header.top .hdr-bell { width: 44px; height: 44px; }
.hdr-out { min-height: 44px; }
@media (max-width: 1180px) { header.top:has(.with-ava) .brand span:not(b span) { display: none; } }
/* Small tablets (601-760px): the tagline goes for everyone, and members get the shield alone, as on phones. */
@media (max-width: 760px) { header.top .brand span:not(b span) { display: none; } }
@media (max-width: 1100px) { nav:has(.with-ava) a.hdr-tab .t { display: none; } nav:has(.with-ava) a.hdr-tab { padding: 7px 10px; margin-left: 2px; } }
@media (max-width: 1000px) { nav:has(.with-ava) > a:not(.cta):not(.hdr-tab) { display: none; } }
@media (max-width: 600px) {
  header.top .hdr-bell { width: 44px; height: 44px; margin-left: 2px; }
  nav a.hdr-tab { padding: 0; margin-left: 0; }
  /* Phones: the photo bubble alone is the My Profile button (its title says so); "Hi, name" is on the dashboard. */
  nav a.cta.with-ava { padding: 0; gap: 0; width: 44px; max-width: none; margin-left: 4px; justify-content: center; }
  nav a.cta.with-ava .lbl { display: none; }
  .hdr-ava { width: 30px; height: 30px; font-size: 11px; }
  .hdr-out { margin-left: 4px; padding: 0 9px; }
}
/* File pickers never wider than their card. */
input[type=file] { max-width: 100%; min-width: 0; }

/* Sources and coverage gaps (site/source-ui.js, 2026-10-31) */
.source-note { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.source-note summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--accent); font-size: 14px; }
.source-note ul { margin: 4px 0 8px; padding-left: 20px; }
.src-status { display: inline-block; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); }
.src-verified { border-color: var(--good); color: var(--good); }
.src-conflicting, .src-needs_review { border-color: #F5C451; color: #F5C451; }
.coverage-gap { border: 1px dashed var(--border); border-left: 3px solid #F5C451; border-radius: 12px; padding: 12px 14px; margin: 8px 0; background: var(--surface-2); }
.coverage-gap p { margin: 4px 0; }
.type-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.type-pick .btn { min-height: 44px; }
#jf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#jf legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#jf .seg { flex-wrap: wrap; }
#jf .seg button { min-height: 44px; }
#jf .seg button { font-size: 15px; }

/* HOA action guide (site/action-guide.js, 2026-10-31) */
#nf fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
#nf legend { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
#nf .seg { flex-wrap: wrap; }
#nf .seg button { min-height: 44px; font-size: 15px; }
.ag-steps { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.ag-step { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.ag-step h3 { margin: 2px 0 4px; font-size: 17px; }
.ag-step p { margin: 4px 0; }
.ag-kind { font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }
.ag-urgent { border-color: #F5C451; border-width: 2px; }
.ag-urgent .ag-kind { color: #F5C451; }
.ag-conflict { font-size: 14px; border-left: 3px solid #F5C451; padding-left: 10px; }
.ag-gather { padding-left: 4px; list-style: none; }
.ag-gather label { display: flex; gap: 10px; align-items: flex-start; min-height: 32px; }
.ag-gather input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.ag-plan textarea { width: 100%; box-sizing: border-box; }

/* Records request workspace (site/records.js, 2026-10-31) */
.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { display: block !important; position: absolute; left: 0; top: 0; width: 100%; color: #000; }
  #print-area pre.letter { white-space: pre-wrap; font: 12pt/1.5 Georgia, serif; }
}
.rq-card h3 { margin: 0 0 4px; }
.rq-edit fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.rq-edit legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.rq-edit .seg { flex-wrap: wrap; }
.rq-edit .seg button { min-height: 44px; font-size: 15px; }
.rq-records { display: grid; gap: 6px; }
.rq-rec label { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; }
.rq-rec input[type=checkbox], .check input { width: 20px; height: 20px; }
.rq-range { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 6px 28px; font-size: 14px; }
.rq-range input { min-height: 40px; }
.rq-edit textarea, #rq-letter-view { width: 100%; box-sizing: border-box; font: 15px/1.5 ui-monospace, Menlo, monospace; }
.rq-rules { background: var(--surface-2); margin: 8px 0 14px; }
.rq-due { font-size: 17px; }
.rq-locked li { margin: 6px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: center; min-height: 40px; }

/* Case workspace (site/cases.js, 2026-10-31) */
.cs-timeline { list-style: none; padding: 0; display: grid; gap: 8px; }
.cs-ev p { margin: 2px 0; }
.cs-ev.cs-fact { border-left: 4px solid var(--accent, #2f7d5b); }
.cs-ev.cs-allegation { border-left: 4px dashed var(--muted, #8a8a8a); }
.cs-clause { background: var(--surface-2); margin: 8px 0; }
.cs-clause input, .cs-clause textarea, .cs-clause select, .rq-edit input:not([type=checkbox]):not([type=radio]), .rq-edit select { width: 100%; box-sizing: border-box; min-height: 40px; }
.cs-atts, .cs-redact { border: 0; padding: 0; margin: 12px 0; min-width: 0; }
.cs-atts legend, .cs-redact legend { font-weight: 600; }
.cs-redact .check, .cs-atts .check { align-items: flex-start; }
.cs-preview { max-height: 520px; overflow: auto; overflow-wrap: anywhere; }
.cs-preview h1 { font-size: 20px; } .cs-preview h2 { font-size: 16px; margin-top: 16px; }
.cs-ov th { text-align: left; padding-right: 12px; vertical-align: top; }
.cs-pe { margin: 6px 0; } .cs-pe p { margin: 2px 0; }
@media print { #print-area h1 { font-size: 16pt; } #print-area h2 { font-size: 13pt; } #print-area blockquote { margin: 4px 16px; } }

/* Notice, hearing and collection prep (site/prep.js, 2026-10-31) */
.pp-flows, .pp-ev { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.pp-flows legend, .pp-ev legend { font-weight: 600; margin-bottom: 4px; }
.pp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.pp-row select { width: 100%; min-height: 44px; }
.pp-q li { margin: 6px 0; }
.pp-urgent { border: 2px solid var(--danger, #c0392b); }
.pp-line { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto 1.4fr auto; gap: 8px; align-items: center; margin: 6px 0; }
.pp-line input, .pp-line select { min-height: 40px; min-width: 0; width: 100%; box-sizing: border-box; }
.pp-tot th { text-align: left; padding-right: 14px; font-weight: 500; } .pp-tot td { font-variant-numeric: tabular-nums; }
#draft, .rq-edit textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 640px) { .pp-line { grid-template-columns: 1fr 1fr; } .pp-line select, .pp-line [data-l="note"] { grid-column: 1 / -1; } }

/* Budget and reserve worksheet (site/budget-worksheet.js, 2026-10-31) */
.wk-scroll { overflow-x: auto; }
.wk-t { width: 100%; border-collapse: collapse; }
.wk-t td, .wk-t th { padding: 6px 4px; vertical-align: top; text-align: left; }
.wk-t td:first-child input, .wk-t td:first-child select { width: 100%; min-height: 40px; box-sizing: border-box; margin-bottom: 4px; }
.wk-fig { display: grid; gap: 4px; min-width: 150px; }
.wk-fig input, .wk-fig select { min-height: 40px; width: 100%; box-sizing: border-box; }
.wk-amt { font-variant-numeric: tabular-nums; text-align: right; }
.wk-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.wk-badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.wk-badge.k-estimate { border-style: dashed; opacity: .85; }
.wk-badge.k-document::before { content: "📄 "; }
.wk-find { list-style: none; padding: 0; display: grid; gap: 8px; }
.wk-find li { border-left: 4px solid var(--accent, #2f7d5b); padding: 6px 10px; background: var(--surface-2); }
.wk-find li.wk-cant { border-left-style: dashed; }
@media (max-width: 640px) { .wk-t thead { display: none; } .wk-t tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: 1px solid var(--border, #333); padding: 6px 0; } .wk-t td:first-child { grid-column: 1 / -1; } .wk-fig { min-width: 0; } }

/* Meetings, elections and organizing (site/participate.js, 2026-10-31) */
.pt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pt-tabs button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border, #334); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pt-tabs button[aria-selected="true"] { background: var(--accent, #2f7d5b); color: #fff; border-color: transparent; }
.pt-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.pt-pct { width: 80px; min-height: 40px; }
.pt-dl dt { font-weight: 600; margin-top: 10px; } .pt-dl dd { margin: 2px 0 0; }
.pt-preview { white-space: pre-wrap; background: var(--surface-2); padding: 12px; border-radius: 8px; font: 14px/1.5 ui-monospace, Menlo, monospace; max-height: 420px; overflow: auto; }
#m-draft { width: 100%; box-sizing: border-box; font: 15px/1.5 ui-monospace, Menlo, monospace; }

.wk-cmp td.num, .wk-cmp th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Neighbor workspaces (site/workspaces.js, 2026-10-31) */
.nw-items { list-style: none; padding: 0; display: grid; gap: 8px; }
.nw-items li p { margin: 2px 0; }
#inv-url { width: 100%; box-sizing: border-box; font: 13px ui-monospace, Menlo, monospace; }

/* Budget & finances workspace (site/finances-ui.js, 2026-10-31) */
.fin { max-width: 980px; }
.fin-head { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.fin-head h2 { margin: 0 0 4px; }
.fin-meta { margin: 0; color: var(--muted, #9aa4b2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fin-meta select { min-height: 36px; }
.fin-label { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .04em; }
.fin-sample { color: #f5b942; } .fin-yours { color: var(--accent, #4fd1c5); }
.fin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fin-actions .btn, .fin .actions .btn { min-height: 44px; }
.fin-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--border, #2a3442); margin: 8px 0 16px; }
.fin-tabs [role="tab"] { background: none; border: 0; border-bottom: 3px solid transparent; color: inherit; font: inherit; font-weight: 600; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.fin-tabs [role="tab"]:hover { border-bottom-color: var(--border, #2a3442); }
.fin-tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--accent, #4fd1c5); color: var(--accent, #4fd1c5); }
.fin-tabs [role="tab"]:focus-visible, #fin-panel:focus-visible, .fin summary:focus-visible { outline: 3px solid var(--accent, #4fd1c5); outline-offset: 2px; }
.fin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.fin-card { border: 1px solid var(--border, #2a3442); border-radius: 10px; padding: 14px 16px; background: transparent; box-shadow: none; cursor: default; }
.fin-card p { margin: 2px 0; }
.fin-card-k { font-size: 14px; color: var(--muted, #9aa4b2); }
.fin-card-v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fin-card-b { font-size: 13px; color: var(--muted, #9aa4b2); }
.fin-ind { font-size: 14px; }
.fin-peer { color: var(--muted, #9aa4b2); }
.fin-finds { list-style: none; padding: 0; display: grid; gap: 10px; }
.fin-find { border-left: 3px solid var(--border, #2a3442); padding: 6px 12px; }
.fin-find-h { font-weight: 600; margin: 0 0 2px; }
.fin-more { margin: 12px 0; } .fin-more summary { cursor: pointer; font-weight: 600; text-decoration: underline; min-height: 32px; }
.fin-rows { display: grid; gap: 0; }
.fin-row { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1.6fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border, #2a3442); align-items: baseline; font-variant-numeric: tabular-nums; }
.fin-rowh { font-size: 13px; color: var(--muted, #9aa4b2); font-weight: 600; }
.fin-qs { list-style: none; padding: 0; display: grid; gap: 10px; } .fin-qs li { border-left: 3px solid var(--border, #2a3442); padding: 4px 12px; }
#fin-myq { width: 100%; box-sizing: border-box; font: 15px/1.5 inherit; }
.fin-docs { list-style: none; padding: 0; } .fin-docs li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; }
.fin-svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.fin-svc { border: 1px solid var(--border, #2a3442); border-radius: 10px; padding: 16px; }
.fin-svc h3 { margin-top: 0; }
.fin-warn { border-left: 3px solid #f5b942; padding: 4px 10px; }
.fin p, .fin li { max-width: 72ch; }
@media (max-width: 720px) {
  .fin-rowh { display: none; }
  .fin-row { grid-template-columns: 1fr; gap: 2px; }
  .fin-row .fin-cat { font-weight: 700; font-size: 16px; }
  .fin-row [data-l]::before { content: attr(data-l) ": "; color: var(--muted, #9aa4b2); font-size: 14px; }
  .fin-tabs [role="tab"] { padding: 10px 10px; } /* tabs wrap onto a second row on phones: nothing is cut off */
  .fin-actions { width: 100%; } .fin-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* Neighbor workspaces inside Community (site/workspaces-ui.js, 2026-10-31) */
.ws-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ws-head h2 { margin: 0; }
.ws-create { margin: 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.ws-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); }
.ws-row h3 { margin: 0 0 2px; font-size: 17px; } .ws-row p { margin: 0; }
.ws-empty { padding: 14px; border: 1px dashed var(--border); border-radius: 10px; }
.ws-crumb { margin: 0 0 10px; font-size: 14px; } .ws-crumb a { text-decoration: underline; }
.subtabs button { min-height: 40px; }
.subtabs button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) { .subtabs { display: grid; grid-template-columns: 1fr 1fr; } .subtabs button { font-size: 14px; padding: 8px 10px; text-align: center; } }

/* My next steps (site/next-steps-ui.js, 2026-11-01) */
.ns-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .ns-head h2 { margin: 0; }
.ns-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 0; }
.ns-item { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.ns-main { flex: 1 1 320px; min-width: 0; } .ns-main p { margin: 2px 0; }
.ns-title { font-weight: 600; overflow-wrap: anywhere; }
.ns-status { color: var(--text-secondary); font-size: 14px; }
.ns-dates { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.ns-tag { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor; }
.ns-mine { border-style: dashed; } .ns-law { font-weight: 600; }
.ns-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ns-acts .btn { min-height: 40px; }
.ns-empty { padding: 12px; border: 1px dashed var(--border); border-radius: 10px; }
.ns-links a { text-decoration: underline; }
@media (max-width: 640px) { .ns-acts { width: 100%; } .ns-acts .btn { flex: 1 1 auto; text-align: center; } }

/* Contextual actions (site/handoff.js, 2026-11-01) */
.ho-banner { border-left: 4px solid var(--gold, #f5b942); padding: 8px 12px; margin: 0 0 12px; background: var(--surface-1); border-radius: 6px; }
.ho-banner p { margin: 2px 0; } .ho-back { text-decoration: underline; font-weight: 600; }
.ho-src { display: inline-block; font-size: 12px; font-weight: 500; padding: 0 8px; border-radius: 999px; border: 1px dashed currentColor; margin-left: 6px; }
.ho-document { border-style: solid; } .ho-member { opacity: .8; }
.ho-visible { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.ho-visible h3 { margin: 0 0 4px; font-size: 16px; } .ho-visible ul { margin: 4px 0; padding-left: 20px; }
.fin-find-acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* Neighbor workspace templates and checklist (2026-11-01) */
.ws-tpl { border: 0; padding: 0; margin: 10px 0; display: grid; gap: 6px; min-width: 0; }
.ws-tpl legend { font-weight: 600; margin-bottom: 4px; }
.ws-tpl-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; min-height: 44px; }
.ws-tpl-opt input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.ws-tpl-opt span { display: grid; } .ws-tpl-opt:has(input:checked) { border-color: var(--gold); }
.ws-tpl-opt:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.ws-cklist { border: 0; padding: 0; margin: 8px 0; min-width: 0; } .ws-cklist legend { font-weight: 600; }
.ws-cklist ol { padding-left: 22px; margin: 6px 0; display: grid; gap: 6px; }
.ws-cklist li { display: flex; gap: 6px; align-items: center; } .ws-cklist li input { flex: 1; min-width: 0; min-height: 40px; }
.ws-steplist { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.ws-steplist li { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.ws-steplist li .check { flex: 1; min-width: 0; align-items: flex-start; } .ws-steplist li .check span { overflow-wrap: anywhere; }
.ws-steplist li .btn { flex: none; min-height: 36px; padding: 4px 12px; font-size: 14px; }
.ws-steplist input { width: 20px; height: 20px; } .ws-steplist input:checked + span { text-decoration: line-through; opacity: .75; }
.ws-addstep { display: flex; gap: 6px; } .ws-addstep input { flex: 1; min-width: 0; min-height: 40px; }

/* Budget provenance (site/finances-ui.js, 2026-11-01) */
.fin-prov { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.fin-prov p { margin: 3px 0; } .fin-pv { color: var(--text-secondary); }
.fin-recalc { border-left: 4px solid var(--gold); padding-left: 10px; }
.fin-stale { border-left: 4px dashed var(--gold); padding-left: 10px; } .fin-stale ul { margin: 4px 0; padding-left: 18px; }
.fin-src { margin: 6px 0 0; font-size: 13px; } .fin-src a, .fin-figs a, .fin-catsrc a { text-decoration: underline; }
.fin-catsrc { display: block; font-size: 12px; font-weight: 400; }
.fin-st { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 999px; border: 1px solid currentColor; font-weight: 600; white-space: nowrap; }
.fin-st-extracted { border-style: dashed; opacity: .85; } .fin-st-corrected { color: var(--gold); }
.fin-figs td { vertical-align: top; } .fin-figs td .note { display: block; }
.fin-fx { display: block; font-size: 13px; } .fin-fx .linklike { margin-right: 8px; }
#fx-in { min-height: 36px; width: 9em; }

/* ===== UI consistency layer (2026-11-01). Appended last so it wins; no layout rewrite. =====
   Button hierarchy: filled = primary (.btn), outlined = secondary (.btn.ghost), underlined text = link (.linklike, a). */
.btn.ghost, .guardian-command .btn.ghost, .guardian-command .welcome-steps .btn.ghost { background: transparent; box-shadow: none; color: var(--text-primary);
  border: 1.5px solid color-mix(in srgb, var(--text-primary) 42%, transparent); }
.btn.ghost:hover, .btn.ghost:focus-visible, .guardian-command .welcome-steps .btn.ghost:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); box-shadow: none; transform: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.btn[aria-busy="true"]::after { content: "…"; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; min-height: 32px; }
main p a:not(.btn), main li a:not(.btn), main td a:not(.btn), main dd a:not(.btn), main .note a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
/* Informational cards never look pressable (only real links/buttons react to hover). */
.card:not(a):not(button), .fin-card, .tile { cursor: default; }
/* Keyboard focus is always visible, including form fields and date inputs. */
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [role="tab"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type="date"]:focus, input[type="date"]:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Status line: one style for success and errors, with an icon so it isn't color alone. */
#status:not([hidden]) { border-left: 4px solid var(--accent); }
/* Ask Guardian lives in the top bar (site/ask-ui.js); its panel opens only when asked for, and closes with Esc or ✕. */
nav .dock-btn { width: 40px; height: 40px; border-width: 2px; margin-left: 10px; box-shadow: none; flex: none; }
/* The floating mascot (back 2026-11-01): the corner button and its panel take clicks; nothing else in #dock does. */
#dock { pointer-events: none; } #dock .dock-btn, #dock .dock-panel { pointer-events: auto; }
/* Off on the Moderation screen, so it never covers review decisions. */
body.dock-off #dock { display: none; }
/* Room at the end of the page so the floating mascot never hides the last buttons or the footer links. */
body:has(#dock) main, body:has(#dock) .site-footer, body:has(#dock) footer { padding-bottom: 88px; }
/* Dashboard menu on desktop (Wiz, 2026-11-03: it didn't scroll under the mouse): the pinned menu is taller than most
   windows, so it gets the window's height and scrolls on its own. At its end, the wheel goes on to scroll the page. */
@media (min-width: 1001px) {
  .guardian-command aside.command-sidebar { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(120, 200, 255, .35) transparent; }
  .guardian-command aside.command-sidebar::-webkit-scrollbar { width: 8px; }
  .guardian-command aside.command-sidebar::-webkit-scrollbar-thumb { background: rgba(120, 200, 255, .35); border-radius: 8px; }
}
/* Dashboard menu on tablets and phones: wraps into a grid instead of a sideways strip, so no label is cut off. */
@media (max-width: 1000px) {
  .guardian-command aside.command-sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); overflow: visible; white-space: normal; scroll-snap-type: none; gap: 4px; }
  .guardian-command aside.command-sidebar a { margin: 0; justify-content: flex-start; white-space: normal; line-height: 1.2; min-height: 44px; }
}
@media (max-width: 600px) {
  .guardian-command aside.command-sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guardian-command aside.command-sidebar a { font-size: 12px; padding: 8px 6px; gap: 5px; }
  .guardian-command aside.command-sidebar .nav-icon { width: 16px; font-size: 14px; }
  nav .dock-btn { width: 36px; height: 36px; margin-left: 6px; }
}
/* Breadcrumb back to the dashboard on stand-alone tool pages (site/header.js). */
.page-crumb { font-size: 14px; margin: 14px 0 0; } .page-crumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Community redesign (2026-11-01) ----------
   Raised buttons are opt-in (.btn.raised) so nothing else on the dashboard changes. Blue = Your HOA community,
   purple = General Community. Badges always carry text, never colour alone. */
:root {
  --hoa-color: light-dark(#075f95, #8ed3ff); --hoa-soft: light-dark(#e6f3fd, #15334d);
  --other-color: light-dark(#7338a4, #d5b0ff); --other-soft: light-dark(#f3eafa, #352046);
  --neutral-badge: light-dark(#4b5563, #c6cdd6); --neutral-soft: light-dark(#eef1f4, #262c33);
}
.btn.raised { color: #fff; background: linear-gradient(#098aad, #006482); border: 1px solid #087b9c; border-top-color: #5bbed7; border-radius: 9px;
  box-shadow: 0 3px 0 #003d55, inset 0 1px 0 #ffffff40, 0 5px 9px #001d3320; text-shadow: 0 1px 0 #00000040; font-weight: 700; min-height: 40px;
  transition: transform .08s ease, box-shadow .08s ease, filter .12s ease; }
.btn.raised:hover { filter: brightness(1.08); }
.btn.raised:active, .btn.raised[aria-pressed="true"] { transform: translateY(2px); box-shadow: 0 1px 0 #003d55, inset 0 1px 0 #ffffff30; }
.btn.raised:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn.raised.hoa { background: linear-gradient(#137cb5, #075582); border-color: #0a6aa0; border-top-color: #6cc0ee; box-shadow: 0 3px 0 #04364f, inset 0 1px 0 #ffffff40, 0 5px 9px #001d3320; }
.btn.raised.general { background: linear-gradient(#8750b4, #60318a); border-color: #6e3c9c; border-top-color: #c79ced; box-shadow: 0 3px 0 #3e2059, inset 0 1px 0 #ffffff40, 0 5px 9px #1d002f20; }
.btn.raised.hoa:active { box-shadow: 0 1px 0 #04364f; } .btn.raised.general:active { box-shadow: 0 1px 0 #3e2059; }
.btn.raised:disabled, .btn.raised[aria-disabled="true"] { filter: grayscale(.7) opacity(.55); transform: none; box-shadow: 0 1px 0 #00000040; cursor: not-allowed; }
.btn.raised[aria-busy="true"] { cursor: progress; }
.btn.raised[aria-busy="true"]::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: 8px; border: 2px solid #ffffff80; border-top-color: #fff; border-radius: 50%; animation: hg-spin .7s linear infinite; vertical-align: -1px; }
@keyframes hg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.raised { transition: none; } .btn.raised:active { transform: none; } .btn.raised[aria-busy="true"]::after { animation: none; } }

.comm-layout.social { grid-template-columns: 190px minmax(0, 1fr) 270px; }
.comm-nav { position: sticky; top: 124px; }
.comm-nav-list { display: grid; gap: 4px; }
.comm-nav-list button { display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; min-height: 44px; color: var(--text-secondary); font: inherit; font-size: 15px; cursor: pointer; }
.comm-nav-list button:hover { background: var(--surface-1); color: var(--text-primary); }
.comm-nav-list button.on { background: var(--surface-1); border-color: var(--border); color: var(--text-primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.comm-nav-list button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.comm-right { position: sticky; top: 124px; display: grid; gap: 12px; max-height: calc(100vh - 140px); overflow: auto; }
.comm-right .rail { position: static; }
.side-card h3 { margin: 0 0 8px; font-size: 16px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-list li { display: flex; justify-content: space-between; gap: 8px; }
.side-inv + .side-inv { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.side-inv .actions { flex-wrap: wrap; }
.side-about > summary { cursor: pointer; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-1); font-weight: 600; min-height: 24px; }
.side-about[open] > summary { margin-bottom: 8px; }

.feed-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.feed-tab { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); font: inherit; cursor: pointer; min-height: 52px; }
.feed-tab small { color: var(--text-secondary); font-size: 12px; }
.feed-tab-name { font-weight: 700; }
.feed-tab.hoa .feed-tab-name { color: var(--hoa-color); } .feed-tab.general .feed-tab-name { color: var(--other-color); }
.feed-tab.on { color: #fff; border-color: transparent; }
.feed-tab.on .feed-tab-name, .feed-tab.on small { color: #fff; }
.feed-tab.hoa.on { background: linear-gradient(#137cb5, #075582); box-shadow: 0 3px 0 #04364f, inset 0 1px 0 #ffffff40; }
.feed-tab.general.on { background: linear-gradient(#8750b4, #60318a); box-shadow: 0 3px 0 #3e2059, inset 0 1px 0 #ffffff40; }
.feed-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.feed-card.feed-hoa { border-top: 4px solid var(--hoa-color); } .feed-card.feed-general { border-top: 4px solid var(--other-color); }
.feed-hoa .nb-compose { border-color: color-mix(in srgb, var(--hoa-color) 45%, var(--border)); }
.feed-general .nb-compose { border-color: color-mix(in srgb, var(--other-color) 45%, var(--border)); }

.member-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; }
.rel-neighbor .member-badge, .member-badge.rel-neighbor, .member-badge.rel-you { color: var(--hoa-color); background: var(--hoa-soft); }
.member-badge.rel-other { color: var(--other-color); background: var(--other-soft); }
.member-badge.rel-member { color: var(--neutral-badge); background: var(--neutral-soft); }
.nb-post.rel-neighbor, .nb-post.rel-you { border-left: 4px solid var(--hoa-color); }
.nb-post.rel-other { border-left: 4px solid var(--other-color); }
.nb-post.rel-member { border-left: 4px solid var(--neutral-badge); }
.nb-who { display: grid; gap: 2px; min-width: 0; }
.nb-meta { font-size: 12px; }
.nb-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-menu { margin-left: auto; position: relative; }
.post-menu > summary { list-style: none; cursor: pointer; padding: 4px 10px; border-radius: 8px; font-size: 20px; line-height: 1; min-width: 24px; min-height: 24px; }
.post-menu > summary::-webkit-details-marker { display: none; }
.post-menu > summary:hover, .post-menu[open] > summary { background: var(--surface-2); }
.post-menu [role=menu] { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 160px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px #0004; display: grid; }
.post-menu [role=menuitem] { text-align: left; background: none; border: 0; color: var(--text-primary); font: inherit; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.post-menu button[role=menuitem]:hover, .post-menu button[role=menuitem]:focus-visible { background: var(--surface-2); }
.post-actions { display: flex; gap: 6px; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; flex-wrap: wrap; }
.post-act { flex: 1; min-height: 40px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--text-secondary); font: inherit; font-weight: 600; cursor: pointer; }
.post-act:hover { background: var(--surface-2); color: var(--text-primary); }
.post-act[aria-pressed="true"] { color: var(--hoa-color); background: var(--hoa-soft); }
.feed-general .post-act[aria-pressed="true"] { color: var(--other-color); background: var(--other-soft); }
.post-act:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.post-act[aria-busy="true"] { opacity: .6; cursor: progress; }
.post-act .count { font-size: 12px; opacity: .8; }

.ws-header .ws-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ws-tabs, .inv-methods { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 8px; }
.ws-tabs button, .inv-methods button { background: var(--surface-1); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 999px; padding: 7px 14px; min-height: 40px; font: inherit; font-size: 14px; cursor: pointer; }
.ws-tabs button.on, .inv-methods button.on { background: var(--gold); color: var(--accent-ink); border-color: var(--gold); font-weight: 700; }
.ws-tabs button:focus-visible, .inv-methods button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.inv-methods { border-top: 0; padding-top: 0; }
/* Workspace sections (2026-11-05): the tabs are the top edge of the box they switch, like folder tabs. */
.ws-body { padding-top: 0; }
.ws-body > .ws-tabs { border-top: 0; margin: 0 -16px 14px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.ws-body #wsp > .card, .ws-body #wsp .nw-items > li.card { background: var(--surface-2); box-shadow: none; }
.ws-body input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .ws-body select, .ws-body textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); font: inherit; font-size: 15px; box-sizing: border-box; }
.ws-body textarea { font: inherit; font-size: 15px; line-height: 1.5; }
/* Workspace Discussion as a message board (2026-11-05): the post box and posts are the Community feed's white cards. */
.ws-compose { margin-bottom: 12px; }
.ws-compose-row { align-items: center; margin-top: 6px; }
.ws-tagpick { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--text-secondary); }
.ws-chip input { margin: 0; accent-color: var(--accent); }
.ws-chip:has(input:checked) { border-color: var(--accent); color: var(--accent); font-weight: 700; background: rgba(0, 110, 156, .08); }
.ws-chip:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-compose-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.ws-feed .ws-post:first-child { margin-top: 0; }
.ws-tag { margin-left: auto; font-size: 12px; border-radius: 999px; padding: 2px 10px; background: var(--surface-2); color: var(--text-secondary); }
.ws-tag.t-question { background: #E6F1FB; color: #0B5C8A; } .ws-tag.t-proposal { background: #EAF6EE; color: #1E6B3F; }
.ws-post .post-menu { margin-left: 4px; }
.ws-replies { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.ws-reply { display: flex; gap: 8px; align-items: flex-start; }
.nb-ava.sm { width: 28px; height: 28px; font-size: 13px; }
.ws-bubble { background: var(--surface-2); border-radius: 14px; padding: 6px 12px; min-width: 0; flex: 1; }
.ws-bubble-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ws-bubble-head .post-menu { margin-left: auto; }
.ws-bubble .nb-body { margin: 2px 0; }
.ws-replybox { margin-top: 8px; }
.ws-replybox textarea, .ws-edit textarea { width: 100%; box-sizing: border-box; }
.ws-replybox .actions, .ws-edit .actions { margin: 6px 0 0; gap: 8px; }
.ws-empty-feed { padding: 8px 2px; }
@media (max-width: 520px) { .ws-compose-acts { margin-left: 0; width: 100%; } .ws-compose-acts .btn { flex: 1 1 auto; justify-content: center; } }

/* Workspace shared files (2026-11-05) */
.ws-sub { margin: 4px 0 6px; font-size: 17px; } .ws-sub .count { font-size: 13px; opacity: .75; margin-left: 4px; }
.ws-files { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ws-file-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.ws-file { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.ws-thumb { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #000; }
.ws-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
video.ws-thumb { object-fit: cover; }
.ws-pdf { background: var(--surface-1); border: 1px solid var(--border); color: var(--text-primary); font-weight: 700; text-decoration: none; }
.ws-file-meta { display: grid; gap: 2px; min-width: 0; } .ws-file-meta b { overflow-wrap: anywhere; }
.ws-file-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .ws-file-acts .btn { min-height: 36px; padding: 4px 12px; }
.ws-file-add { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-file-add .btn { min-height: 44px; }
.wsf-pick ul { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
@media (max-width: 520px) { .ws-file { grid-template-columns: 72px minmax(0, 1fr); } .ws-thumb { width: 72px; height: 56px; } .ws-file-add .btn { flex: 1 1 100%; justify-content: center; } }
@media (max-width: 520px) { .ws-body > .ws-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .ws-body > .ws-tabs button { width: 100%; } }
.inv-methods .unavail { font-size: 11px; opacity: .75; margin-left: 4px; }
.invite-panel:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.inv-results, .inv-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.inv-results li, .inv-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.inv-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inv-preview { border: 1px dashed var(--border); border-radius: 12px; padding: 12px; }
.inv-sample { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.inv-status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--neutral-soft); color: var(--neutral-badge); }
.inv-status.s-pending { background: var(--hoa-soft); color: var(--hoa-color); }
.inv-status.s-accepted { background: light-dark(#e3f6e8, #173823); color: light-dark(#1d6b35, #8fe0a6); }
.inv-status.s-failed { background: light-dark(#fde8e8, #3d1a1a); color: light-dark(#a12828, #ff9d9d); }
.find-me { margin-top: 8px; }
.note.err { color: light-dark(#a12828, #ff9d9d); }

@media (max-width: 1200px) { .comm-layout.social { grid-template-columns: 180px minmax(0, 1fr); } .comm-layout.social .comm-right { grid-column: 2; position: static; max-height: none; } .comm-layout.social .rail { display: grid; } }
@media (max-width: 860px) {
  .comm-layout.social { grid-template-columns: minmax(0, 1fr); }
  .comm-layout.social .comm-right { grid-column: auto; }
  .comm-nav { position: static; }
  .comm-nav-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .comm-nav-list button { border-color: var(--border); background: var(--surface-1); white-space: nowrap; }
  .comm-nav-list button.on { box-shadow: inset 0 -3px 0 var(--gold); }
}
@media (max-width: 520px) { .feed-tabs { grid-template-columns: 1fr; } .ws-header .ws-head { flex-direction: column; } }
.nb-who .member-badge { justify-self: start; }
.nb-post.rel-neighbor, .nb-post.rel-you, .nb-post.rel-other, .nb-post.rel-member { padding-left: 14px; }
.post-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; padding: 0 8px; }
@media (max-width: 420px) { .post-act { font-size: 14px; gap: 4px; padding: 0 4px; } }

/* ---------- In-app notifications (2026-11-01) ---------- */
.hdr-bell { position: relative; margin-left: 6px; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-primary); font-size: 18px; cursor: pointer; }
.hdr-bell:hover, .hdr-bell[aria-expanded="true"] { background: var(--surface-2); }
.hdr-bell:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bell-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: light-dark(#b42318, #ff6b5e); color: light-dark(#fff, #1b0705); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--surface-1); }
.bell-panel { position: absolute; z-index: 60; width: min(380px, calc(100vw - 16px)); max-height: min(70vh, 560px); overflow: auto; background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px #0007; padding: 12px; }
.bell-head, .inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bell-head h2 { font-size: 17px; margin: 0; }
.bell-foot { margin: 10px 0 4px; } .bell-foot .btn { width: 100%; justify-content: center; text-align: center; }
.bell-note { font-size: 12px; margin: 4px 0 0; }
.nt-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.nt-item > a, .nt-full .nt-item { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-primary); text-decoration: none; }
.nt-item > a:hover { background: var(--surface-2); }
.nt-item > a:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.nt-item.unread > a, .nt-full .nt-item.unread { background: color-mix(in srgb, var(--gold) 9%, var(--surface-1)); border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); }
.nt-title { font-weight: 600; overflow-wrap: anywhere; }
.nt-item.unread .nt-title { font-weight: 800; }
.nt-meta { font-size: 12px; color: var(--text-secondary); }
.nt-context { font-weight: 600; }
.nt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: 1px; }
.nt-new { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); margin-right: 6px; }
.nt-date { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--neutral-soft, #262c33); color: var(--neutral-badge, #c6cdd6); }
.nt-full .nt-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.nt-main { display: grid; gap: 3px; min-width: 0; }
.nt-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nt-empty { padding: 18px 4px; color: var(--text-secondary); }
.nt-filter { display: flex; gap: 6px; margin: 8px 0 4px; flex-wrap: wrap; }
.nt-filter button { background: var(--surface-1); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 999px; padding: 7px 14px; min-height: 40px; font: inherit; font-size: 14px; cursor: pointer; }
.nt-filter button.on { background: var(--gold); color: var(--accent-ink); border-color: var(--gold); font-weight: 700; }
.nt-filter button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.inbox-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.nt-cats { display: grid; gap: 6px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
h3.inline { display: inline; font-size: 16px; }
.nt-focus { box-shadow: 0 0 0 3px var(--gold); }
.nt-focus:focus { outline: none; }
@media (max-width: 600px) { .hdr-bell { width: 36px; height: 36px; margin-left: 4px; font-size: 16px; } .nt-full .nt-item { grid-template-columns: 1fr; } .nt-acts { justify-content: flex-start; } .bell-panel { left: 8px; right: 8px !important; width: auto; } }
.nt-line { display: block; }
.nt-line .nt-dot, .nt-line .nt-new { vertical-align: 1px; }
@media (max-width: 420px) { .hdr-bell { width: 32px; height: 32px; margin-left: 2px; font-size: 15px; } .hdr-out { padding: 6px 7px; font-size: 12px; } nav a.hdr-tab { padding: 6px 6px; } }

/* ---------- "Find anything" search (2026-11-01) ---------- */
.find-entry { margin-bottom: 14px; }
.find-entry label, .find-label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.find-row { display: flex; gap: 8px; }
.find-question { border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; background: var(--surface-2); }
.find-question p { margin: 0 0 10px; }
.find-fact strong { font-size: 17px; }
.find-row input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; font-size: 16px; }
.find-row input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.find-entry kbd { border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; font-size: 12px; }
.find-filters { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.find-types { display: flex; gap: 6px; flex-wrap: wrap; }
.find-types button { background: var(--surface-1); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 999px; padding: 7px 14px; min-height: 40px; font: inherit; font-size: 14px; cursor: pointer; }
.find-types button.on { background: var(--gold); color: var(--accent-ink); border-color: var(--gold); font-weight: 700; }
.find-types button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.find-scope { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.find-scope select { min-height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; font-size: 14px; padding: 4px 8px; max-width: 100%; }
.find-status { margin: 12px 0 4px; font-weight: 600; }
.find-notes { margin: 8px 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--surface-2); font-size: 14px; display: grid; gap: 4px; }
.find-group { margin-top: 16px; }
.find-group h3 { font-size: 17px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.find-group h3 .count { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-secondary); }
.find-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.find-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; display: grid; gap: 4px; min-width: 0; }
.find-item > a { font-weight: 700; overflow-wrap: anywhere; }
.find-item > a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.find-item.find-hoa { border-left: 4px solid var(--hoa-color); } .find-item.find-general { border-left: 4px solid var(--other-color); }
.find-meta { font-size: 13px; color: var(--text-secondary); }
.find-context { font-weight: 600; }
.find-snippet { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.find-item mark { background: color-mix(in srgb, var(--gold) 40%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.find-empty { padding: 16px 4px; color: var(--text-secondary); }
@media (max-width: 600px) { .find-row { flex-wrap: wrap; } .find-row input { flex-basis: calc(100% - 52px); } .find-row .btn:not(.mic) { width: 100%; justify-content: center; } .find-scope { display: grid; } }

/* ---------- First-visit setup (2026-11-01) ---------- */
.onb, .onb-bar { margin-bottom: 14px; }
.onb-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.onb-head h2 { margin: 2px 0 4px; } .onb-head h2:focus { outline: none; }
.onb-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.onb-steps li { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-secondary); }
.onb-steps li.past { color: var(--text-primary); }
.onb-steps li.past::before { content: "✓ "; }
.onb-steps li.now { background: var(--gold); border-color: var(--gold); color: var(--accent-ink); }
.onb-match { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; background: var(--surface-2); }
.onb-match-name { font-weight: 800; font-size: 17px; margin: 0 0 4px; }
.onb-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--neutral-soft, #262c33); color: var(--neutral-badge, #c6cdd6); }
.onb-status.mine { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--text-primary); }
.onb-choices { display: grid; gap: 8px; margin: 8px 0; }
.onb-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; min-height: 44px; }
.onb-choice:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.onb-choice:focus-within { outline: 3px solid var(--gold); outline-offset: 1px; }
.onb-choice input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.onb-choice span { display: grid; gap: 2px; }
.onb-nav, .onb-next .actions { flex-wrap: wrap; }
.onb-next { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.onb-why { font-size: 16px; }
.onb-warn { border-left: 3px solid var(--gold); padding-left: 8px; }
.onb-foot { margin: 10px 0 0; }
.onb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.onb-bar p { margin: 0; } .onb-goal { font-size: 18px; font-weight: 800; }
@media (max-width: 600px) { .onb-nav .btn, .onb-next .btn, .onb-bar .btn { width: 100%; justify-content: center; text-align: center; } .onb-bar .actions { width: 100%; } }

/* ---------- Case progress (2026-11-01) ---------- */
.cs-status { margin: 12px 0; }
.cs-status h3 { margin: 2px 0 4px; }
.cs-stage { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); }
.cs-stage-sent, .cs-stage-waiting { background: var(--hoa-soft, #15334d); color: var(--hoa-color, #8ed3ff); border-color: transparent; }
.cs-stage-followup { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold); }
.cs-stage-closed { background: var(--neutral-soft, #262c33); color: var(--neutral-badge, #c6cdd6); }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.cs-out, .cs-next { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.cs-out h4, .cs-next h4, .cs-links h4 { margin: 0 0 6px; font-size: 15px; }
.cs-out ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cs-src { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.cs-src-system { background: var(--neutral-soft, #262c33); color: var(--neutral-badge, #c6cdd6); }
.cs-src-member { background: var(--hoa-soft, #15334d); color: var(--hoa-color, #8ed3ff); }
.cs-src-suggestion { background: var(--other-soft, #352046); color: var(--other-color, #d5b0ff); }
.cs-move { margin-top: 8px; } .cs-move > summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.cs-moves { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.cs-fu { margin-top: 10px; } .cs-fu label { display: block; font-weight: 600; margin-bottom: 4px; }
.cs-fu-row, .cs-link-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cs-fu-row input, .cs-link-row select { min-height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; padding: 4px 8px; max-width: 100%; }
.cs-links { margin-top: 12px; } .cs-links ul { padding-left: 18px; }
.cs-act { border-style: dashed; }
.cs-rec { font-size: 12px; }
.cs-hist summary { cursor: pointer; font-size: 13px; }
.cs-old { border-left: 3px solid var(--border); padding-left: 8px; margin: 6px 0; opacity: .85; }
@media (max-width: 700px) { .cs-two { grid-template-columns: 1fr; } .cs-next .btn, .cs-mf + .actions .btn { width: 100%; justify-content: center; } }

/* ---------- Community trust controls (2026-11-01) ---------- */
.rp-host { margin: 8px 0; }
.rp-form { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); }
.rp-reasons { border: 0; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.rp-reasons .check { min-height: 32px; }
.rp-done { border-left: 3px solid var(--gold); padding-left: 8px; }
.badge-legend { margin: 0 0 10px; font-size: 14px; }
.badge-legend > summary { cursor: pointer; color: var(--text-secondary); min-height: 32px; }
.badge-legend dl { display: grid; gap: 8px; margin: 8px 0; }
.badge-legend dl > div { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 10px; align-items: start; }
.badge-legend dd { margin: 0; }
.tr-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.tr-row span { display: grid; gap: 2px; }
.tr-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.tr-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.tr-list li > span { display: grid; gap: 2px; }
@media (max-width: 600px) { .badge-legend dl > div { grid-template-columns: 1fr; } }

/* ---------- Moderator inbox (2026-11-01) ---------- */
.mod-count[hidden] { display: none !important; } /* no "0" badge: shown only when there are new reports */
.mod-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: light-dark(#b42318, #ff6b5e); color: light-dark(#fff, #1b0705); font-size: 12px; font-weight: 800; text-align: center; line-height: 20px; }
.mod-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mod-views { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.mod-views button { background: var(--surface-1); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 999px; padding: 7px 14px; min-height: 40px; font: inherit; font-size: 14px; cursor: pointer; }
.mod-views button.on { background: var(--gold); color: var(--accent-ink); border-color: var(--gold); font-weight: 700; }
.mod-views button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mod-views .count { font-size: 12px; opacity: .8; margin-left: 4px; }
.mod-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.mod-item { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.mod-item.open { border-left: 4px solid var(--gold); }
.mod-item > a { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-weight: 700; color: var(--text-primary); }
.mod-item > a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mod-new { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--accent-ink); }
.mod-status, .mod-state { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border); }
.mod-empty { padding: 16px 4px; color: var(--text-secondary); }
.mod-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 10px; padding: 8px 12px; border-left: 3px solid var(--border); background: var(--surface-2); border-radius: 6px; }
.mod-parent { opacity: .9; }
.mod-reports, .mod-history { padding-left: 20px; display: grid; gap: 6px; }
.mod-decide { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.btn.mod-danger { color: #fff; background: linear-gradient(#c0392b, #922b21); border: 1px solid #a5281c; border-top-color: #e8867b; border-radius: 9px; box-shadow: 0 3px 0 #5c1610, inset 0 1px 0 #ffffff40; font-weight: 700; min-height: 40px; }
.btn.mod-danger:active { transform: translateY(2px); box-shadow: 0 1px 0 #5c1610; }
.btn.mod-danger:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.mod-decide [aria-pressed="true"] { outline: 3px solid var(--gold); outline-offset: 3px; }
.mod-confirm-box { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .btn.mod-danger:active { transform: none; } }
@media (max-width: 600px) { .mod-decide .btn, .mod-confirm-box .btn { width: 100%; justify-content: center; text-align: center; } }
/* The Moderation menu item stays out of sight for everyone else (the menu's own display rule would override [hidden]). */
aside.command-sidebar a#nav-moderation[hidden], .guardian-command aside.command-sidebar a#nav-moderation[hidden] { display: none !important; }

/* Financial health review (Budget & finances > Financial health, 2026-11-01): reuses the fin-* card and findings
   styles; only the bottom line box, the "Ask" line and the information tag are new. Colors come from the theme. */
.fh-bottom { border: 1px solid var(--accent, #4fd1c5); border-radius: 10px; padding: 12px 16px; margin: 8px 0 16px; }
.fh-bottom p { margin: 2px 0; }
.fh-bottom p:last-child { font-size: 16px; line-height: 1.5; }
.fh-find p { margin: 4px 0; }
.fh-fact { font-variant-numeric: tabular-nums; }
.fh-q { line-height: 1.5; }
.fh-info { border-left-style: dashed; }
.fh-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--muted, #9aa4b2); text-transform: uppercase; letter-spacing: .04em; }
#fh-doc { min-height: 44px; max-width: 100%; }
.fh-cards .fin-card-k { line-height: 1.4; }
@media (min-width: 1000px) { .fh-cards .fin-card-k { min-height: 2.8em; } } /* four across, labels take two lines so the amounts line up */
@media (min-width: 600px) and (max-width: 1000px) { .fh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* tablets: 2 x 2 */
.fh-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.fh-find .fin-find-acts { margin-top: 16px; } /* keeps "Add" clear of the page buttons for a thumb */
.fh-pages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--border, #2a3442); border-radius: 10px; }

/* Ask Guardian money answers (2026-11-01): the math list and the "couldn't match" note. Colors from the theme. */
.fin-math ul { margin: 8px 0; padding-left: 20px; font-variant-numeric: tabular-nums; }
.fin-unv { border-left: 3px solid var(--warn, #f5b942); padding: 6px 12px; margin: 8px 0; }
#ask-thread .chip, #dock-thread .chip { min-height: 44px; } /* every chat chip is a full tap target */

/* My Service Pros (2026-11-02): the member's private list of pros, jobs and receipts. Colors from the theme. */
.pros-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pros-tools { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin: 8px 0 16px; }
.pros-tools input, .pros-tools select { min-height: 44px; width: 100%; }
.pros-list, .jobs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pro-card, .job { border: 1px solid var(--border, #2a3442); border-radius: 10px; padding: 12px 16px; display: grid; gap: 4px; }
.pro-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.pro-card p, .job p { margin: 2px 0; }
.pro-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-acts .btn, .pros .btn { min-height: 44px; }
.pro-stars { color: var(--gold, #f5b942); letter-spacing: 1px; }
.pro-notes, .job-c { white-space: pre-wrap; }
.pros-empty { border: 1px dashed var(--border, #2a3442); border-radius: 10px; padding: 16px; }
@media (max-width: 600px) { .pros-tools { grid-template-columns: minmax(0, 1fr); } .pro-card { grid-template-columns: minmax(0, 1fr); } }

/* "Add my HOA" on My Home (2026-11-02). */
#hoa-report { margin: 8px 0 12px; }
#hoa-report p { margin: 4px 0; }
.hr-form { margin-top: 8px; }
#hoa-report .hr-form input:not([type="checkbox"]) { min-height: 44px; width: 100%; box-sizing: border-box; }
#hoa-report .btn, #hoa-report .linklike { min-height: 44px; }

/* Who represents you, grouped like a ballot (site/officials-ui.js, 2026-11-02) */
.off-group { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 20px 0 6px; color: var(--muted); }
.off-table td:first-child { width: 62%; }
.off-table td:last-child { overflow-wrap: anywhere; }
.off-table .note .tag { margin-right: 4px; }

/* "What this document means for you" (site/understand-ui.js, 2026-11-03) */
.ud-dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 16px; margin: 8px 0; }
.ud-dl dt { font-weight: 600; } .ud-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ud-dl { grid-template-columns: 1fr; } .ud-dl dd { margin-bottom: 6px; } }
.ud-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid var(--border); }
.ud-ok { border-color: var(--good, #1E8A4F); } .ud-warn { border-color: var(--coral, #D9542F); } .ud-info { border-color: var(--accent); }
.ud-points, .ud-dates { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ud-points li, .ud-dates li { border-left: 3px solid var(--border); padding-left: 12px; }
.ud-points p, .ud-dates p { margin: 2px 0; }
.ud-quote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ud-ctl { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ud-ctl input, .ud-ctl select, #ud-type, #ud-assoc { max-width: 100%; }
.ud-fix summary, .ud-src summary, .ud-more summary { cursor: pointer; }
.ud-stale { color: var(--coral, #D9542F); }
.ud-preview { border: 1px dashed var(--border); padding: 8px 12px; border-radius: 8px; margin: 8px 0; white-space: pre-wrap; }
[data-dec]:focus-visible, [data-action]:focus-visible, .ud-fix summary:focus-visible, .ud-src summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#ud-qs { width: 100%; }

/* My Household (2026-11-03): shared between separate accounts by invitation. Colors from the theme. */
.hh-title { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hh-title h2 { margin: 0; }
.hh-role { white-space: nowrap; }
.hh-admin { font-weight: 600; }
.hh-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.hh-pick select { min-height: 44px; max-width: 100%; }
.hh-people, .hh-items, .hh-log { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.hh-people li, .hh-items li { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.hh-people .actions, .hh-items .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hh-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hh-cols ul, .hh-list { margin: 4px 0 8px 18px; padding: 0; }
.hh-invite { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.hh-note { border-left: 3px solid var(--border); margin: 8px 0; padding-left: 10px; white-space: pre-wrap; }
.hh-preview { border: 1px dashed var(--border); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.hh-mail { white-space: pre-wrap; font: inherit; font-size: 0.92em; margin: 8px 0; overflow-wrap: anywhere; }
.hh-confirm, .hh-share { border-width: 2px; }
.hh-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; }
.hh-fields label { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.hh-aud { margin: 4px 0; }
.hh-invites .btn, .hh-head .btn, #household .btn { min-height: 44px; }
@media (max-width: 600px) { .hh-cols { grid-template-columns: minmax(0, 1fr); } .hh-people li, .hh-items li { grid-template-columns: minmax(0, 1fr); } }

/* "About you" optional questions (2026-11-03). */
.ay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.ay-grid .checks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.ay-grid .checks > p { grid-column: 1 / -1; margin: 0 0 4px; }
.ay-grid select { width: 100%; min-height: 44px; }
.ay-card .btn, #about-you .btn { min-height: 44px; }
@media (max-width: 600px) { .ay-grid, .ay-grid .checks { grid-template-columns: minmax(0, 1fr); } }

/* Ad spots on every dashboard tab (Wiz, 2026-11-03: "on each tab regardless of where the member scrolls ... in the top
   right"). Wide screens: a third column pinned at the top right. Smaller screens: one spot at the top of the tab. The
   Moderation screen has none (review decisions stay uncluttered). The dashboard's old in-page column is gone. */
.dash-layout { grid-template-columns: minmax(0, 1fr); }
.command-ads { display: none; }
.ads-top { display: none; }
.command-ads .rail-ads { display: grid; gap: 14px; }
.ad-graphic img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ad-graphic a { display: block; border-radius: 10px; }
.ad-graphic a:focus-visible { outline: 2px solid #78dcff; outline-offset: 3px; }
.ad-graphic .ad-wait-graphic { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.ad-graphic .ad-wait-graphic:focus-visible { outline: 2px solid #78dcff; outline-offset: 3px; }
.ad-graphic .ad-wait-graphic:disabled { cursor: progress; opacity: .7; }
@media (min-width: 1280px) {
  .guardian-command .command-shell.has-ads { grid-template-columns: 238px minmax(0, 1fr) 260px; max-width: 1640px; }
  /* Ends just above the floating Ask Guardian button (#dock: 64px, 16px from the bottom; measured gap 7px or more), so
     the button never covers an ad (2026-11-03: it hid the end of "Tell Me When It Opens"); taller ads scroll inside the
     column. */
  .guardian-command .command-ads { display: block; position: sticky; top: 84px; max-height: calc(100vh - 176px); max-height: calc(100dvh - 176px); overflow-y: auto; scrollbar-width: thin; }
  /* Community keeps its own side column under the feed here, so the feed stays wide. */
  .has-ads .comm-layout.social { grid-template-columns: 180px minmax(0, 1fr); }
  .has-ads .comm-layout.social .comm-right { grid-column: 2; position: static; max-height: none; }
}
/* With the ad column, the plan cards get two columns until there's room for four (so badges don't collide). */
@media (min-width: 1280px) and (max-width: 1599px) { .has-ads .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1279px) { .ads-top { display: block; margin: 0 0 16px; } .ads-top .ad { max-width: 640px; } }
body.dock-off .command-ads, body.dock-off .ads-top, body.dock-off .ads-end { display: none !important; }
/* Phones and tablets (2026-11-05): Wiz's graphic ads at the end of the page, full width, never taller than about three
   quarters of the screen (svh = the height left once Safari's address bar shows), with room above the floating
   Ask Guardian button. */
.ads-end { display: none; }
@media (max-width: 1279px) {
  .ads-end { display: block; max-width: 440px; margin: 28px auto 88px; }
  .ads-end .ad-graphic img { width: auto; max-width: 100%; max-height: 75vh; max-height: 75svh; margin: 0 auto; }
}

/* Community feed: white cards on the dark page (Wiz, 2026-11-03: "white for more engagement and better visibility";
   option B). The post box, each post (with its comments and menu) and in-feed ads use the site's light colors, so
   every name, badge, button and link inside reads dark on white. The page around them keeps its theme. */
.nb-compose, .nb-post, .ad.feed {
  color-scheme: light;
  --surface-1: #FFFFFF; --surface-2: #EEF2F7; --surface-3: #DDE7F2;
  --text-primary: #0B1626; --text-secondary: #2E3E55; --text-muted: #4A5B73;
  --border: rgba(11, 22, 38, 0.14); --grid: #DCE5EF; --axis: #B7C6D8;
  --accent: #006E9C; --accent-ink: #FFFFFF; --coral: #D9542F; --good: #1E8A4F; --glow: 0 0 0 transparent;
  background: #FFFFFF; color: var(--text-primary);
}
.nb-post { border: 1px solid rgba(11, 22, 38, 0.10); border-top: 1px solid rgba(11, 22, 38, 0.10); border-radius: 12px; padding: 12px 14px; margin: 12px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.nb-post.rel-neighbor, .nb-post.rel-you, .nb-post.rel-other, .nb-post.rel-member { padding-left: 14px; }
.nb-compose { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.nb-compose textarea::placeholder { color: #5B6475; }
.ad.feed { border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }

/* Photos and a PDF on Community posts (2026-11-03). */
.att-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.att-add { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.att-add:focus-within, #nb-files:focus-visible + * { outline: 2px solid var(--accent); }
.att-pending { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.att-chip { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 10px; padding: 4px 6px; max-width: 220px; }
.att-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.att-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-x { min-width: 32px; min-height: 32px; border: 0; background: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; border-radius: 6px; }
.att-x:hover { background: var(--surface-2); }
.att-pdf { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: #C8352B; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.att-grid { display: grid; gap: 4px; margin: 8px 0; border-radius: 10px; overflow: hidden; }
.att-grid.n1 { grid-template-columns: 1fr; } .att-grid.n2, .att-grid.n4 { grid-template-columns: 1fr 1fr; } .att-grid.n3 { grid-template-columns: 2fr 1fr; }
.att-grid.n3 a:first-child { grid-row: span 2; }
.att-grid a { display: block; background: var(--surface-2); }
.att-grid img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.att-grid.n1 img { height: auto; object-fit: contain; }
.att-grid a:focus-visible, .att-file:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.att-file { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text-primary); max-width: 420px; }

/* Videos on Community posts (2026-11-03). */
.att-video { display: block; width: 100%; max-height: 480px; margin: 8px 0; border-radius: 10px; background: #000; }
.att-vid { background: #1F2937; font-size: 16px; }

/* Link previews on Community posts (2026-11-03): YouTube picture with play button; article cards. */
.lp { position: relative; margin: 8px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-1); }
.lp-play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.lp-play img, .lp-noimg { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-btn { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 12px; background: #CC0000; color: #fff; font-size: 22px; display: grid; place-items: center; }
.lp-play:hover .lp-btn, .lp-play:focus-visible .lp-btn { background: #FF0000; }
.lp-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.lp-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.lp-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; text-decoration: none; color: var(--text-primary); }
.lp-card img { width: 140px; height: 100%; min-height: 100px; object-fit: cover; }
.lp-card:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.lp-meta { display: grid; gap: 2px; padding: 10px 12px; text-decoration: none; color: var(--text-primary); overflow-wrap: anywhere; }
.lp-meta b { font-size: 15px; line-height: 1.3; }
.lp-meta .note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-site { font-size: 12px; color: var(--text-secondary); }
.lp-card:focus-visible, .lp-meta:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.lp-x { position: absolute; top: 6px; right: 6px; z-index: 2; min-width: 32px; min-height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer; }
.nb-body a { overflow-wrap: anywhere; }
@media (max-width: 600px) { .lp-card { grid-template-columns: minmax(0, 1fr); } .lp-card img { width: 100%; height: auto; aspect-ratio: 1.91 / 1; } }

/* Phones and tablets (2026-11-05): iPhone/iPad Safari and Chrome zoom the whole page in when a typing box's text is
   under 16px, and leave it zoomed. Many rules above set 14-15px, and some boxes are built by scripts, so one rule for
   touch screens wins over all of them. Checkboxes, radios and buttons don't zoom, so they're left alone. */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=image]), select, textarea { font-size: max(16px, 1em) !important; }
}

/* Connecting an AI app (2026-11-05): the approval screen (src/mcp-auth.js) and Connected AI apps in My Profile. */
.oauth-page { max-width: 640px; padding-block: 32px; }
.oauth-page .brand { font-weight: 700; margin: 0 0 12px; }
.oauth-areas { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; margin: 12px 0; }
.oauth-terms { padding-left: 20px; display: grid; gap: 4px; }
.oauth-form .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ai-apps { list-style: none; padding: 0; display: grid; gap: 10px; }
.ai-apps li { display: flex; gap: 12px; justify-content: space-between; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; flex-wrap: wrap; }
.ai-apps li > div { display: grid; gap: 2px; min-width: 0; }

/* AI connector phase 2 (2026-11-05): workspace drafts, the Community notice, the opt-out switch. */
.ws-drafts { margin-bottom: 14px; }
.ws-draft { border: 2px dashed var(--accent) !important; }
.nb-ai-notice { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ai-posts { margin: 12px 0; align-items: flex-start; }

/* "HOA Guardian was updated" notice (2026-11-05, site/update-notice.js): bottom-left, clear of the Ask Guardian button. */
.update-notice { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: min(440px, calc(100vw - 112px)); padding: 10px 12px; border-radius: 12px; background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); font-size: 14px; }
.update-notice .btn { min-height: 40px; }
.update-x { min-width: 36px; min-height: 36px; border: 0; background: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; border-radius: 8px; }
@media print { .update-notice { display: none; } }

/* "Show" on password boxes (2026-11-05, site/show-password.js). */
.pw-wrap { display: flex; gap: 6px; align-items: stretch; width: 100%; }
.pw-wrap input { flex: 1; min-width: 0; }
.pw-show { min-width: 64px; min-height: 44px; padding: 0 12px; flex: none; }

/* ---------- Join Free page (join-free.html, 2026-11-05) ---------- */
.jf { padding-bottom: 24px; }
.jf-hero { padding: 28px 0 8px; max-width: 720px; }
.jf-hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; letter-spacing: -.035em; margin: 8px 0 12px; }
.jf-hero h1 .gold { color: var(--accent); }
.jf-code { display: inline-block; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 15px; }
.jf-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.jf-cta .btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; font-size: 17px; border-radius: 12px; }
.jf h2 { font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -.02em; margin: 34px 0 12px; }
.jf-benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.jf-benefits li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.jf-benefits .jf-ico { grid-row: span 2; font-size: 28px; line-height: 44px; text-align: center; }
.jf-benefits b { font-size: 17px; }
.jf-benefits li > span:last-child { color: var(--text-secondary); font-size: 15px; line-height: 1.45; }
.jf-bottom { text-align: center; padding: 8px 0 12px; }
.jf-bottom .jf-cta { justify-content: center; }
@media (max-width: 600px) {
  .jf-cta { flex-direction: column; }
  .jf-cta .btn { width: 100%; }
  .jf .tiers { grid-template-columns: 1fr; }
}
.jf-code[hidden] { display: none; }
/* The code box types in capitals, but its "e.g." hint stays as written. */
#code:placeholder-shown { text-transform: none !important; }

/* ---------- Paywall card (site/paywall.js, 2026-11-06) ---------- */
.paywall-list { margin: 8px 0 12px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.paywall-list li { padding-left: 26px; position: relative; line-height: 1.45; }
.paywall-list li::before { content: "🔒"; position: absolute; left: 0; font-size: 14px; }
.paywall-go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.paywall-go .btn { min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px; }

/* ---------- Know your rights, HOA Report tab (2026-11-06) ---------- */
.rights-card { margin-top: 16px; }
.rights-links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.rights-links a { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text-primary); text-decoration: none; }
.rights-links a:hover, .rights-links a:focus-visible { border-color: var(--accent); }
.rights-links span { color: var(--text-secondary); font-size: 14px; line-height: 1.4; }
.rights-card .rights-links a { text-decoration: none !important; }

/* ---------- "HOA Guardian" beside the shield on every page and phone (Wiz, 2026-11-06) ---------- */
header.top .brand b, header.top .brand b span { display: inline; }
@media (max-width: 760px) {
  header.top:has(.with-ava) .brand { gap: 6px; font-size: 14px; }
  header.top:has(.with-ava) .brand b { display: inline-block; width: min-content; white-space: normal; line-height: 1.05; }
  header.top:has(.with-ava) .brand .logo-img { width: 30px; }
}
@media (max-width: 400px) {
  header.top .brand { gap: 6px; font-size: 14px !important; }
  header.top .brand b { display: inline-block; width: min-content; white-space: normal; line-height: 1.05; }
  header.top .brand .logo-img { width: 30px; height: auto; }
}
/* Signed-in phones: every header button keeps a 44px tap target; the side padding and Sign out tighten instead, and the
   state picker hides (it follows the member's home automatically). */
@media (max-width: 480px) { header.top:has(.with-ava) nav .state-pick { display: none; } }
@media (max-width: 400px) {
  header.top .wrap { padding-left: 10px; padding-right: 10px; gap: 6px; }
  header.top:has(.with-ava) nav a.hdr-tab, header.top:has(.with-ava) nav a.cta { margin-left: 2px; }
  header.top:has(.with-ava) .hdr-out { margin-left: 2px; padding: 6px 6px; font-size: 12px; }
}
/* The tiniest phones (320px): Sign out lives in My menu. */
.member-menu .menu-out { display: none; }
@media (max-width: 350px) { header.top .hdr-out { display: none; } .member-menu .menu-out { display: block; } }
/* "Guardian" in the accent color on every page, like the logo (light mode gets the deeper cyan). */
header.top .brand b span { display: inline !important; color: var(--accent); font-weight: inherit; }
.guardian-home header.top .brand b span { color: #5bd6ff; }

/* ---------- Sign in: Remember me (2026-11-06) ---------- */
.remember { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
.remember-note { margin: 0 0 14px; }
.link-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--accent); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- The HOA Guardian app (install-app.js, app.html, 2026-11-14) ---------- */
.ia-steps { margin: 6px 0 4px; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; }
.ia-ico { width: 20px; height: 20px; vertical-align: -4px; color: var(--accent); }
.ia-install { min-height: 52px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.ia-done { font-weight: 600; color: var(--good, #1E8A4F); margin: 4px 0; }
.app-nudge { display: grid; grid-template-columns: 44px 1fr auto 44px; gap: 10px; align-items: center; background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 10px 10px 10px 12px; margin: 0 0 14px; }
.app-nudge img { border-radius: 10px; }
.app-nudge b { display: block; font-size: 15px; }
.app-nudge span { display: block; font-size: 13px; color: var(--text-secondary); }
.app-nudge .btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; }
.app-nudge-x { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
/* Inside the installed app: the app already is installed, and fixed buttons sit above the phone's home bar. */
.is-app .get-app-link, .is-app .app-nudge { display: none !important; }
.is-app #dock { bottom: calc(16px + env(safe-area-inset-bottom)); }
.is-app .dock-panel { bottom: calc(16px + env(safe-area-inset-bottom)); }
.is-app footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
/* Notched phones (viewport-fit=cover, 2026-11-14): page edges stay clear of the notch and rounded corners sideways. */
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (max-width: 400px) { header.top .wrap { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); } }

/* ---------- Phone app layout for members (site/app-shell.js, 2026-11-14; modeled on the Kynver app) ---------- */
.hdr-menu, .shell-tabs, .shell-drawer, .shell-scrim { display: none; }
/* Text size (menu → Text size): page content grows; the header and tab bar stay put. */
html[data-text="1.12"] main { zoom: 1.12; }
html[data-text="1.25"] main { zoom: 1.25; }
html[data-text="1.4"] main { zoom: 1.4; }
@media (max-width: 760px) {
  /* Top bar: ☰ + brand + bell. The rest moves into the menu and the tab bar. */
  body.has-shell .hdr-menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 2px 0 -6px; padding: 0; border: 0; background: none; color: var(--text-primary); border-radius: 10px; cursor: pointer; flex: none; }
  body.has-shell .hdr-menu svg { width: 26px; height: 26px; }
  .guardian-home body.has-shell .hdr-menu, body.guardian-home.has-shell .hdr-menu { color: #fff; }
  body.has-shell header.top nav a.hdr-tab, body.has-shell header.top #account-link, body.has-shell header.top .hdr-out,
  body.has-shell header.top nav .state-pick, body.has-shell header.top #signin-link, body.has-shell header.top nav > a:not(.cta) { display: none !important; }
  body.has-shell header.top .wrap { justify-content: flex-start; }
  body.has-shell header.top nav { margin-left: auto; }
  body.has-shell #member-bar { display: none; }
  body.has-shell { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  /* Bottom tab bar. */
  body.has-shell .shell-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
    padding: 4px max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--surface-1) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .shell-tabs a, .shell-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 4px 2px;
    color: var(--text-secondary); text-decoration: none; font: inherit; font-size: 12px; font-weight: 600; background: none; border: 0; border-radius: 12px; cursor: pointer; }
  .shell-tabs svg { width: 25px; height: 25px; }
  .shell-tabs [aria-current="page"] { color: var(--accent); }
  .shell-tabs [aria-current="page"] svg { stroke-width: 2.3; }
  .shell-tabs a:focus-visible, .shell-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  /* Floating buttons and notices sit above the tab bar. */
  body.has-shell #dock, body.has-shell .dock-panel { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-shell .update-notice { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-shell .ads-end { margin-bottom: 24px; }
  /* Slide-out menu. */
  body.has-shell .shell-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1500; background: rgba(4, 12, 30, .55); opacity: 0; transition: opacity .2s; }
  .shell-scrim.open { opacity: 1 !important; }
  body.has-shell .shell-drawer:not([hidden]) { display: block; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1600; width: min(86vw, 340px); overflow-y: auto; overscroll-behavior: contain;
    padding: max(10px, env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: var(--surface-1); color: var(--text-primary); box-shadow: 8px 0 40px rgba(0,0,0,.35); transform: translateX(-102%); transition: transform .22s ease; }
  .shell-drawer.open { transform: none !important; }
  body.shell-open { overflow: hidden; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .shell-drawer, .shell-scrim { transition: none !important; } }
.sd-head { display: grid; grid-template-columns: 48px 1fr 44px; gap: 12px; align-items: center; padding: 6px 4px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.sd-ava { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #1467d9, #46d6ff); color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; }
.sd-ava img { width: 100%; height: 100%; object-fit: cover; }
.sd-who b { display: block; font-size: 17px; line-height: 1.2; }
.sd-who span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-top: 2px; }
.sd-x { width: 44px; height: 44px; border: 0; background: none; color: var(--text-secondary); font-size: 20px; border-radius: 10px; cursor: pointer; }
.sd-group { margin: 14px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.shell-drawer ul { list-style: none; margin: 0; padding: 0; }
.shell-drawer li a, .shell-drawer li button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px; padding: 8px 10px; border: 0; border-radius: 10px; background: none;
  color: var(--text-primary); font: inherit; font-size: 16px; text-decoration: none; text-align: left; cursor: pointer; }
.shell-drawer li svg { width: 22px; height: 22px; flex: none; color: var(--text-secondary); }
.shell-drawer li a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.shell-drawer li a[aria-current="page"] svg { color: var(--accent); }
.shell-drawer li a:hover, .shell-drawer li button:hover { background: var(--surface-2); }
.sd-look { margin: 16px 4px 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.sd-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.sd-seg button { min-height: 44px; border: 0; border-radius: 9px; background: none; color: var(--text-secondary); font: inherit; font-weight: 600; cursor: pointer; }
.sd-seg button[aria-pressed="true"] { background: var(--surface-1); color: var(--text-primary); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.sd-text { grid-template-columns: repeat(4, 1fr); }
.sd-text button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink, #fff); }
.sd-label { margin: 14px 4px 6px; font-size: 14px; color: var(--text-secondary); }
.sd-foot { margin-top: 8px !important; padding-top: 8px !important; border-top: 1px solid var(--border); }
/* Phones: the menu and tab bar replace the dashboard's section grid, so pages start with their own content. */
@media (max-width: 760px) { body.has-shell .command-sidebar { display: none !important; } }
/* Get the app: iPhone / Android tabs (2026-11-14). */
.ia-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 8px 0 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.ia-tabs button { min-height: 44px; border: 0; border-radius: 9px; background: none; color: var(--text-secondary); font: inherit; font-weight: 700; cursor: pointer; }
.ia-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink, #fff); }
.ia-h { font-size: 16px; margin: 4px 0 6px; }
.ia-alt { display: block; color: var(--text-secondary); font-size: 14px; margin-top: 2px; }
.ia-other { font-size: 14px; color: var(--text-secondary); margin: 10px 0 0; }
.ia-warn { background: color-mix(in srgb, #f9c75e 18%, transparent); border: 1px solid color-mix(in srgb, #f9c75e 55%, transparent); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.ia-or { margin: 12px 0 0; font-weight: 600; }

/* ---------- Dues card + live report (site/hoa-facts-ui.js, 2026-11-14) ---------- */
.dues-card { margin-bottom: 16px; }
.dues-card .eyebrow { margin: 0; }
.dues-big { font-size: clamp(34px, 9vw, 48px); margin: 4px 0 2px; letter-spacing: -.03em; }
.dues-big span { font-size: .45em; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; }
.dues-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.dues-actions .btn { min-height: 46px; display: inline-flex; align-items: center; padding: 0 18px; }
.dues-done { font-weight: 600; color: var(--good, #1E8A4F); }
.dues-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.dues-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dues-row input { width: 100%; }
.dues-msg { background: color-mix(in srgb, #f9c75e 18%, transparent); border: 1px solid color-mix(in srgb, #f9c75e 55%, transparent); border-radius: 10px; padding: 10px 12px; }
.report .dues-now { font-size: 20px; margin: 6px 0 2px; }
.report .dues-history { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 12px; }
.report .dues-history th, .report .dues-history td { text-align: left; padding: 8px; border-top: 1px solid var(--border); }
.report .dues-history .num { text-align: right; white-space: nowrap; }
@media (max-width: 520px) { .dues-row { grid-template-columns: 1fr; } }
@media print { .dues-card, .shell-tabs, #dock { display: none !important; } }
/* Management contact section in reports (2026-11-14). */
.report .mgr-contact .src { color: var(--text-muted); font-size: 12px; }
.report .mgr-contact .missing { color: var(--text-muted); font-style: italic; }
.mgr-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0; font-size: 15px; }
.mgr-list dt { color: var(--text-secondary); }
.mgr-list dd { margin: 0; overflow-wrap: anywhere; }
.mgr-list .missing { color: var(--text-muted); font-style: italic; }
.mgr-card textarea { width: 100%; font-size: 16px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); }
@media (max-width: 520px) { .mgr-list { grid-template-columns: 1fr; gap: 2px; } .mgr-list dd { margin-bottom: 8px; } }
@media print { .mgr-card { display: none !important; } }

/* ---------- Snapshot, dues trend, board roster (2026-11-14) ---------- */
.report .snapshot { margin-bottom: 8px; }
.snap-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 14px; }
.snap-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.snap-k { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.snap-v { font-size: clamp(22px, 5vw, 30px); line-height: 1.1; color: var(--text-primary); letter-spacing: -.02em; overflow-wrap: anywhere; }
.snap-v small { font-size: .5em; font-weight: 600; color: var(--text-secondary); }
.snap-d { font-size: 13px; color: var(--text-muted); }
.see-board { display: none; }
.live-report .see-board { display: inline-flex; align-self: flex-start; margin-top: 6px; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--accent); background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dues-chart { margin: 0 0 8px; }
.dues-chart figcaption { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.dues-chart svg { width: 100%; max-width: 560px; height: auto; display: block; }
.dues-chart .bar path { fill: var(--accent); }
.dues-chart .bar:hover path { opacity: .8; }
.dues-chart .ax { fill: var(--text-muted); font-size: 11px; }
.dues-chart .val { fill: var(--text-primary); font-size: 12px; font-weight: 700; }
.dues-chart .base { stroke: var(--border); stroke-width: 1; }
@media (max-width: 640px) { .snap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seat-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.seat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 16px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.seat-ava { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #1467d9, #46d6ff); margin-bottom: 6px; box-shadow: 0 0 0 3px var(--surface-1), 0 0 0 5px color-mix(in srgb, var(--accent) 55%, transparent); }
.seat.vacant .seat-ava { background: var(--surface-3, #8899aa); }
.seat-name { font-size: 16px; }
.seat-role { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.seat-date { font-size: 14px; color: var(--text-secondary); }
.seat-soon { color: var(--text-primary); font-weight: 700; }
.seat-src { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.seat-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 8px; }
.seat-acts .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.board-card select { width: 100%; min-height: 44px; }
@media print { .board-card, #budget-card { display: none !important; } }
/* Board section build 2 (2026-11-14): claimed seats, track record, discussion. */
.seat-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.seat-ava { overflow: hidden; }
.seat-claimed { font-size: 12px; font-weight: 700; color: var(--good, #1E8A4F); }
.seat-bio { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.seat-open { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.seat-open .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.seat-detail { margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-1); }
.seat-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.seat-detail-head h3 { margin: 0; font-size: 18px; }
.seat-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.seat-list li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; }
.seat-list li p { margin: 4px 0; }
.seat-rules { border-left: 3px solid var(--accent); padding-left: 10px; }
.seat-report { display: grid; gap: 8px; margin-top: 8px; }
.seat-report select, .seat-report input, .seat-add input, .seat-add select, .seat-add textarea { width: 100%; font-size: 16px; }
.seat-add label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
/* Board org chart (2026-11-14): tiers joined by lines; chair or president on top. */
.board-views { max-width: 320px; margin-top: 14px; }
.org-chart { display: flex; flex-direction: column; align-items: center; margin: 8px 0 4px; }
.org-tier { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; position: relative; width: 100%; }
.org-sub { padding-top: 14px; border-top: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 14px 14px 0 0; }
.org-sub > li { position: relative; }
.org-sub > li::before { content: ""; position: absolute; top: -14px; left: 50%; width: 2px; height: 14px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.org-link { width: 2px; height: 22px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.org-node { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 132px; padding: 12px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--text-primary); font: inherit; text-align: center; cursor: pointer; }
.org-node:hover, .org-node:focus-visible { border-color: var(--accent); }
.org-node .seat-ava { width: 60px; height: 60px; font-size: 20px; margin-bottom: 4px; }
.org-node b { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.org-role { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.org-term { font-size: 12px; color: var(--text-secondary); }
.org-node.vacant .seat-ava { background: var(--surface-3, #8899aa); }
.org-tier:first-child .org-node { width: 150px; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
@media (max-width: 420px) { .org-node { width: 116px; } .org-tier:first-child .org-node { width: 140px; } }
[data-board-view][hidden], .seat-grid[hidden] { display: none !important; } /* the grid's own display rule must not override "hidden" */

/* Realtor partners and home shopping (2026-11-15) */
.agent-banner { margin: 6px 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--border); color: var(--text-primary); font-size: 14px; }
.shop-card[hidden], .shop-report[hidden] { display: none; }
.shop-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.shop-home { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow-wrap: anywhere; }
.shop-home .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.shop-report { margin-top: 12px; }
.shop-next { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--good) 12%, transparent); }
.shop-next ol { margin: 6px 0 0; padding-left: 1.2em; }
.partner-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 10px; margin: 12px 0; }
.partner-stats div { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.partner-stats b { display: block; font-size: 24px; }
.partner-code { font: 600 20px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.gift-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.gift-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
@media print {
  body.printing-gift > *:not(#gift-print) { display: none !important; }
  #gift-print { display: block !important; color: #000; background: #fff; }
}
#gift-print { display: none; }
#gift-print .gift-card { border: 2px solid #1d2a47; border-radius: 16px; padding: 28px; max-width: 560px; margin: 24px auto; font-family: Geist, system-ui, sans-serif; }
#gift-print .gift-code { font: 700 26px ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.partner-page .card, .realtors-page .card { margin: 16px 0; text-align: left; }
.realtors-page ol, .realtors-page ul { padding-left: 1.2em; }
.realtors-page li { margin: 6px 0; }
/* The front-door layout (.home-gate) fits one screen and clips; these two pages are long, so they grow instead. */
.guardian-home .partner-page, .guardian-home .realtors-page { flex: 0 0 auto; display: block; overflow: visible; }
.partner-page .wrap, .realtors-page .wrap { position: relative; z-index: 1; max-width: 720px; padding-top: 24px; padding-bottom: 48px; }
.partner-page h1, .realtors-page h1 { color: #fff; font-size: clamp(32px, 8vw, 52px); line-height: 1.05; }
.realtors-page .sub { color: #e5efff; }
/* One-time charges and district payments card (2026-11-15) */
.cost-card h3 { margin: 14px 0 4px; font-size: 16px; }
.cost-list { margin: 4px 0 8px; padding-left: 1.2em; }
.cost-card select { width: 100%; }
.dues-trend { margin: 8px 0; }
.dues-trend.trend-rising-fast, .dues-trend.trend-frozen { color: var(--coral); }

/* Save messages that don't move the page (My Profile, 2026-11-16) */
.banner.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 80; width: min(560px, calc(100vw - 32px)); margin: 0; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.banner.toast[hidden] { display: none; }
@media (min-width: 761px) { .banner.toast { bottom: 24px; } }
.saved-mark { display: inline-block; margin-left: 10px; font-size: 14px; font-weight: 600; color: var(--good); }
.saved-mark.err { color: var(--coral); }
/* Community feed: posts first (2026-11-16) */
.nb-open { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 6px 0 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text-secondary); font: inherit; text-align: left; cursor: text; }
.nb-open:hover { border-color: var(--accent); }
.nb-open[hidden], .nb-compose[hidden] { display: none; }
.nb-open-ava { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--accent); flex: none; }
.nb-about { margin: 2px 0 6px; }
.nb-about > summary { cursor: pointer; color: var(--text-muted); font-size: 14px; }
.nb-about[open] > summary { margin-bottom: 6px; }
.nb-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nb-chips::-webkit-scrollbar { display: none; }
.nb-chip { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); font: inherit; font-size: 14px; cursor: pointer; }
.nb-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.nb-pinned { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 4px 0 10px; }
.nb-pinned[hidden] { display: none; }
.pin-row { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent); background: color-mix(in srgb, var(--coral) 10%, var(--surface-1)); }
.pin-row[data-pin^="meeting"], .pin-row[data-pin^="notice"] { border-color: var(--border); background: var(--surface-2); }
.pin-ico { flex: none; }
.pin-body { flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: var(--text-primary); font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-body b { margin-right: 4px; }
.pin-x { flex: none; width: 36px; height: 36px; border: 0; background: none; color: var(--text-muted); font-size: 20px; cursor: pointer; border-radius: 50%; }
.pin-row[hidden] { display: none; }
.pin-more { justify-self: start; background: none; border: 0; padding: 4px 6px; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }

/* Neighbor-confirmed facts (2026-11-16) */
.needs-check { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--text-primary); font-size: 14px; }
.needs-check-inline { display: inline-block; margin-top: 4px; color: var(--accent); font-size: 13px; font-weight: 600; }
.waiting-confirm { margin: 6px 0; }
.to-check { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, var(--surface-1)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.to-check ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 14px; }
#to-check[hidden] { display: none; }

/* Community round two (2026-11-16): reactions, neighbor events, neighbor polls */
.react-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.react-pick { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.react-pick[hidden] { display: none; }
.react-opt { min-height: 36px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font: inherit; font-size: 14px; cursor: pointer; }
.react-opt.on { border-color: var(--accent); }
.react-counts { font-size: 13px; color: var(--text-muted); }
.nb-extra { display: grid; gap: 8px; margin: 8px 0; }
.nb-extra[hidden] { display: none; }
.nb-extra input { width: 100%; }
.nb-event { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.nb-event-when { margin: 0 0 6px; }
.nb-event-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.nb-event-acts .btn.on { border-color: var(--accent); color: var(--accent); }
.nb-poll { display: grid; gap: 6px; margin: 8px 0; }
.poll-opt { text-align: left; }
.poll-row { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.poll-row.mine { border-color: var(--accent); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--gold-soft); z-index: 0; }
.poll-label, .poll-n { position: relative; z-index: 1; }

/* Growth (2026-11-16) */
.joined-line { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 15px; }
.joined-line[hidden] { display: none; }
.onb-invite { margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.onb-invite h3 { margin: 2px 0 6px; }
.onb-invite .actions, .inv-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.signup-optional { margin: 4px 0 14px; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 10px; }
.signup-optional[hidden] { display: none; }
.signup-optional > summary { cursor: pointer; font-weight: 600; }
.signup-optional[open] > summary { margin-bottom: 8px; }
.inv-reward { margin: 10px 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 14%, transparent); font-size: 15px; }
.inv-reward.done { background: color-mix(in srgb, var(--good) 16%, transparent); }

/* Voice Guardian (2026-11-17): the talking mascot's stage. Bottom-right card on laptops, a bottom sheet on phones. */
#dock.vg-on .dock-btn { visibility: hidden; }
.vg { position: fixed; right: 16px; bottom: 16px; z-index: 1450; width: min(380px, calc(100vw - 32px)); }
.vg[hidden] { display: none; }
.vg-card { position: relative; background: var(--surface-1); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: 18px 16px 10px; display: grid; justify-items: center; gap: 8px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.vg-x { position: absolute; top: 6px; right: 6px; background: none; border: 0; color: var(--text-primary); font-size: 18px; cursor: pointer; min-width: 44px; min-height: 44px; }
.vg-face { width: 156px; height: 156px; border-radius: 24%; border: 0; background: none; padding: 12px; cursor: pointer; display: grid; place-items: center; transition: transform .25s ease; }
.vg-face img { width: 120px; height: 120px; object-fit: contain; }
.vg-face:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dock-live { display: block; width: 100%; height: 100%; line-height: 0; }
.dock-live .mascot { width: 100% !important; height: 100% !important; }
.dock-live .mascot-lean { border-radius: 50%; box-shadow: none; }
.vg-state { margin: 0; font-weight: 600; text-align: center; min-height: 1.4em; }
.vg-heard { margin: 0; color: var(--text-secondary); font-style: normal; text-align: center; }
.vg-said { width: 100%; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; line-height: 1.5; }
.vg-sources { width: 100%; font-size: 13px; color: var(--text-secondary); }
.vg-sources ul { margin: 4px 0 0; padding-left: 18px; }
.vg-offer { width: 100%; text-align: center; }
.vg-offer p { margin: 4px 0 8px; font-weight: 600; }
.vg-offer-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vg-act { width: 100%; }
.vg-act-card { display: grid; gap: 8px; background: var(--surface-2); border-radius: 14px; padding: 12px; }
.vg-act-card h3 { margin: 0; font-size: 16px; }
.vg-act-card textarea { width: 100%; box-sizing: border-box; font: 14px/1.45 inherit; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); padding: 8px; resize: vertical; }
.vg-act-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.vg-act-btns .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.vg-rem p { margin: 4px 0 6px; }
.vg-foot { margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); text-align: center; }
.vg-foot .linklike { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; cursor: pointer; text-decoration: underline; min-height: 32px; }
@media (max-width: 640px) {
  .vg { right: 0; bottom: 0; width: 100vw; }
  .vg-card { border-radius: 20px 20px 0 0; max-height: 82dvh; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .vg-face { width: 136px; height: 136px; } .vg-face img { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) { .vg-face { transition: none; } }
@media print { .vg { display: none; } }

/* "Open my HOA portal" (2026-11-17) */
.portal-bar { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.portal-bar b { display: block; font-size: 17px; }
.portal-bar .note { display: block; margin-top: 2px; }
.portal-go { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.portal-btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.portal-host { font-size: 13px; color: var(--text-secondary); overflow-wrap: anywhere; }
.portal-warn { display: block; font-size: 12px; }
@media (max-width: 640px) { .portal-go { width: 100%; } .portal-go .portal-btn { width: 100%; justify-content: center; } }

/* "Send it to Guardian" (2026-11-17) */
.inbox-addr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.inbox-addr code { font-size: 15px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; user-select: all; }
.inbox-how summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.inbox-actions { margin-top: 8px; font-size: 14px; }

/* Document viewer and tags (2026-11-17) */
.doc-viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.doc-viewer-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-viewer-title { margin: 2px 0 6px; overflow-wrap: anywhere; }
.doc-viewer-body { margin: 12px 0; display: grid; gap: 12px; justify-items: center; }
.doc-view-page { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 18px rgba(0,0,0,.35); background: #fff; }
.doc-view-img { max-width: 100%; height: auto; border-radius: 8px; }
.doc-view-text { white-space: pre-wrap; overflow-wrap: anywhere; width: 100%; box-sizing: border-box; font: 15px/1.55 ui-monospace, Menlo, monospace; background: var(--surface-2); border-radius: 10px; padding: 14px; margin: 0; }
.doc-thumb-btn { padding: 0; border: 0; background: none; cursor: pointer; }
.doc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.doc-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-3, var(--surface-2)); color: var(--text-secondary); }
#dv-back, #dv-back2 { min-height: 44px; }

/* New-notification alert (2026-11-17): bell shake, pop-up, sound switch */
.hdr-bell.bell-ring .ico { display: inline-block; animation: bell-ring .9s ease-in-out; transform-origin: 50% 0; }
@keyframes bell-ring { 0%,100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
.nt-toast { position: fixed; top: 76px; right: 16px; z-index: 2000; max-width: min(420px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px;
  background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 14px; padding: 10px 12px; box-shadow: 0 14px 40px rgba(0,0,0,.4); animation: nt-in .25s ease-out; }
.nt-toast-t { flex: 1; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.nt-toast .btn { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
.nt-toast-x { background: none; border: 0; color: var(--text-secondary); font-size: 16px; min-width: 40px; min-height: 40px; cursor: pointer; }
@keyframes nt-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.bell-sound { background: none; border: 1px solid var(--border); color: var(--text-secondary); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; min-height: 36px; }
@media (max-width: 640px) { .nt-toast { top: 64px; right: 8px; left: 8px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .hdr-bell.bell-ring .ico, .nt-toast { animation: none; } }

/* Phone alerts (2026-11-17) */
.pa-box { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.pa-h { margin: 0 0 6px; font-size: 16px; }
.pa-quiet { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 2px; }
.pa-quiet select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); min-height: 40px; }
.pa-list { margin: 4px 0 0; padding-left: 18px; }

/* "estimate, verify" opens its explanation on tap (site/fl-common.js managerLine, 2026-11-18) */
details.est-why { display: inline; }
details.est-why > summary { display: inline-block; cursor: pointer; list-style: none; }
details.est-why > summary::-webkit-details-marker { display: none; }
details.est-why > summary::after { content: " ⓘ"; }
details.est-why[open] > .est-body { display: block; margin: 6px 0 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-primary, inherit); font-size: 14px; line-height: 1.45; white-space: normal; }
/* Management company rating (site/manager-reviews-ui.js, 2026-11-18) */
.mr-card { display: grid; gap: 10px; }
.mr-card h2, .mr-card h3 { margin: 0; }
.mr-avg { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.mr-avg b { font-size: 28px; }
.mr-stars { color: var(--gold, #e2b35e); letter-spacing: 1px; }
.mr-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 360px; }
.mr-bars li { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; }
.mr-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.mr-bar i { display: block; height: 100%; background: var(--gold, #e2b35e); }
.mr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mr-list li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.mr-list p { margin: 4px 0 0; overflow-wrap: anywhere; }
.mr-form { display: grid; gap: 10px; }
.mr-form[hidden] { display: none; }
.mr-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.mr-pick legend { font-weight: 600; margin-bottom: 4px; }
.mr-pick label { display: flex; gap: 8px; align-items: center; }
.mr-form textarea { width: 100%; box-sizing: border-box; }
.mr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Fine log, court cases (site/fine-log-ui.js) and the report's enforcement section (src/report-sections.js), 2026-11-18 */
.fl-card { display: grid; gap: 10px; margin-bottom: 16px; }
.fl-card h2, .fl-form h3 { margin: 0; }
.fl-consent { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.fl-consent.on { border-color: var(--gold); }
.fl-consent p { margin: 4px 0 0; }
.fl-form { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.fl-form [hidden] { display: none !important; }
.fl-form .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fl-form .pair > *, .fl-form input, .fl-form select { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .fl-form .pair { grid-template-columns: minmax(0, 1fr); } }
.enforce h3 { font-size: 15px; margin: 8px 0 6px; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 24px; }
.fx-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; }
.fx-k { overflow-wrap: anywhere; }
.fx-bar { height: 10px; border-radius: 6px; background: var(--surface-3, #dde7f2); overflow: hidden; }
.fx-bar i { display: block; height: 100%; background: var(--accent, #006e9c); }
.fx-n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-table { overflow-x: auto; }
.fx-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fx-table th, .fx-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
@media print { .fx-bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Fine form filled from the notice (site/fine-log-ui.js prefill, 2026-11-19) */
.fl-prefill { padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--gold, #e2b35e); border-radius: 10px; background: var(--surface-1, transparent); }
.fl-prefill p { margin: 0 0 6px; } .fl-prefill ul { margin: 0 0 6px; padding-left: 18px; } .fl-prefill li { margin: 2px 0; overflow-wrap: anywhere; }

/* "Which unit is yours?" (site/my.js renderUnitCard, site/lookup-page.js unitAsk, 2026-11-19) */
.unit-card { border-left: 3px solid var(--gold, #e2b35e); margin-bottom: 16px; display: grid; gap: 8px; }
.unit-card h2 { margin: 0; }
.unit-card [hidden] { display: none !important; }
.unit-card .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.unit-card select, .unit-card input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 600px) { .unit-card .pair { grid-template-columns: minmax(0, 1fr); } }
