/* ============================================================
   SaskTaxSales — Design Tokens
   Trust-forward land-registry system. Mobile-first, WCAG AA.
   Adopted from the SaskTaxSales style guide.
   ============================================================ */
:root {
  /* ---- Brand ---------------------------------------------- */
  --green:        #1f7a46;   /* primary forest green — actions, active, logomark */
  --green-700:    #196238;   /* hover / pressed */
  --green-800:    #134a2b;   /* deep */
  --green-ink:    #185d36;   /* green text on light (AA 5.6:1) */
  --green-tint:   #e9f2ec;   /* pill / surface fill */
  --green-tint-2: #d2e6d9;   /* pill border */

  --blue:         #3a6285;   /* slate blue — links, secondary, info */
  --blue-700:     #2d4d6a;   /* link hover */
  --blue-tint:    #e8eef4;
  --blue-tint-2:  #cfdce8;

  /* Wayfinding amber — RESERVED for "your selection / located parcel" only.
     Never used for status, urgency, or marketing. */
  --amber-ink:    #8a5e12;
  --amber-bg:     #f8efd6;
  --amber-line:   #d8b259;

  /* ---- Ink & neutrals (warm-cool slate) ------------------- */
  --ink:      #1e2a33;   /* headings + body (14.6:1) */
  --ink-2:    #41525c;   /* secondary text (7.5:1) */
  --ink-3:    #6b7780;   /* meta / muted (5.2:1) */
  --paper:    #faf9f5;   /* app background (warm off-white) */
  --surface:  #ffffff;   /* cards, panels */
  --surface-2:#f4f2ec;   /* subtle fills, hovers */
  --cream:    #f7efdf;   /* selected / located highlight bg */
  --line:     #e5e2d9;   /* hairline borders */
  --line-2:   #d3cfc3;   /* stronger borders, inputs */

  /* ---- Status (functional, not decorative) ---------------- */
  --status-open-ink:   var(--green-ink);
  --status-open-bg:    var(--green-tint);
  --status-open-line:  var(--green-tint-2);
  --status-soon-ink:   #8a5e12;     /* closing soon — muted amber, factual */
  --status-soon-bg:    #f8efd6;
  --status-soon-line:  #e6cf95;
  --status-closed-ink: #5a6168;     /* sold / closed — neutral gray */
  --status-closed-bg:  #eeece6;
  --status-closed-line:#dad6cc;
  --status-info-ink:   var(--blue);  /* follow-up / info */
  --status-info-bg:    var(--blue-tint);
  --status-info-line:  var(--blue-tint-2);

  /* ---- Type -----------------------------------------------
     The exported style guide ships with headings in the system
     sans stack (the "serif" tweak set to sans), so we map the
     serif token to sans rather than bundling a web font. */
  --font-sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(30px, 4.4vw, 46px);
  --fs-h1: 28px;
  --fs-h2: 22px;
  --fs-h3: 18px;
  --fs-lg: 17px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 13px;   /* uppercase labels only — never running body */

  --lh-tight: 1.15;
  --lh-snug:  1.3;
  --lh-body:  1.55;

  /* ---- Spacing (4px base) --------------------------------- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* ---- Radius --------------------------------------------- */
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-pill: 999px;

  /* ---- Elevation (restrained) ----------------------------- */
  --shadow-1: 0 1px 2px rgba(30,42,51,.05), 0 1px 3px rgba(30,42,51,.07);
  --shadow-2: 0 2px 6px rgba(30,42,51,.07), 0 6px 18px rgba(30,42,51,.09);

  /* ---- Focus ---------------------------------------------- */
  --focus-ring: 0 0 0 3px rgba(58,98,133,.45);

  /* ---- Layout knobs --------------------------------------- */
  --sidebar-w: 380px;
  --header-h: 84px;
  --maxw: 1320px;

  --s-card: var(--s4);
}

/* Density toggle (set data-density="compact" on a container) */
[data-density="compact"] { --s-card: var(--s3); }

/* ============================================================
   Base + Components
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); margin: 0; line-height: var(--lh-tight); font-weight: 600; }
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.005em; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s3); max-width: 68ch; }
.lede { font-size: var(--fs-lg); color: var(--ink-2); line-height: var(--lh-body); }
small, .small { font-size: var(--fs-sm); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono { font-family: var(--font-mono); font-size: .94em; letter-spacing: -.01em; }

/* ---- Links ------------------------------------------------ */
a { color: var(--blue); text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-700); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
[tabindex]:focus-visible, .seg-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600;
  line-height: 1; min-height: 44px; padding: 0 var(--s4);
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-primary:active { background: var(--green-800); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); padding: 0 var(--s2); min-height: 36px; }
.btn-ghost:hover { background: var(--blue-tint); }
.btn-lg { min-height: 52px; padding: 0 var(--s5); font-size: var(--fs-body); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* A quieter inline text button (used by the account widget + header) */
.text-button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600;
  color: var(--blue); padding: 8px 10px; border-radius: var(--r-sm);
  text-decoration: none;
}
.text-button:hover { background: var(--blue-tint); color: var(--blue-700); }

/* ---- Segmented control (filters / map toggle) ------------- */
.seg, .segmented {
  display: inline-flex; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 2px;
}
.seg-btn, .segmented button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  min-height: 40px; padding: 0 var(--s4); border-radius: 5px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; transition: background .12s, color .12s;
}
.seg-btn:hover, .segmented button:hover { color: var(--ink); }
.seg-btn[aria-selected="true"], .seg-btn.is-active, .seg-btn.active,
.segmented button[aria-selected="true"], .segmented button.is-active, .segmented button.active {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1);
}
.seg-count {
  font-size: 12px; font-weight: 700; background: var(--line); color: var(--ink-2);
  border-radius: var(--r-pill); padding: 1px 7px;
}
.seg-btn.is-active .seg-count, .seg-btn.active .seg-count { background: var(--green-tint); color: var(--green-ink); }

/* On dark map chrome */
.seg-dark { background: rgba(30,42,51,.9); border-color: rgba(255,255,255,.15); }
.seg-dark .seg-btn { color: rgba(255,255,255,.75); }
.seg-dark .seg-btn:hover { color: #fff; }
.seg-dark .seg-btn[aria-selected="true"], .seg-dark .seg-btn.is-active, .seg-dark .seg-btn.active { background: #fff; color: var(--ink); }

/* ---- Forms ------------------------------------------------ */
.field-label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input {
  width: 100%; min-height: 48px; padding: 0 var(--s4) 0 42px;
  font-family: var(--font-sans); font-size: var(--fs-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
}
.input.no-icon { padding-left: var(--s4); }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus { border-color: var(--blue); outline: none; box-shadow: var(--focus-ring); }
.input-wrap { position: relative; }
.input-wrap .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; pointer-events: none; }

/* ---- Pills / tags ----------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1;
  padding: 6px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface);
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-open   { color: var(--status-open-ink);   background: var(--status-open-bg);   border-color: var(--status-open-line); }
.pill-soon   { color: var(--status-soon-ink);   background: var(--status-soon-bg);   border-color: var(--status-soon-line); }
.pill-closed { color: var(--status-closed-ink); background: var(--status-closed-bg); border-color: var(--status-closed-line); }
.pill-info   { color: var(--status-info-ink);   background: var(--status-info-bg);   border-color: var(--status-info-line); }
/* Neutral meta tag (municipality, legal basis) — quieter */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-sm); font-weight: 500; line-height: 1;
  padding: 6px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--line); color: var(--ink-2); background: var(--surface);
  white-space: nowrap;
}
.tag-strong, .tag.strong { font-weight: 700; letter-spacing: .01em; }
.tag .ic { width: 14px; height: 14px; color: var(--ink-3); }
/* Functional tag variants used by listing rows */
.tag.exact { color: var(--green-ink); background: var(--green-tint); border-color: var(--green-tint-2); }
.tag.located { color: var(--blue); background: var(--blue-tint); border-color: var(--blue-tint-2); }
.tag.unlocated { color: var(--ink-3); }
.tag.open { color: var(--green-ink); background: var(--green-tint); border-color: var(--green-tint-2); }
.tag.price { color: var(--green-ink); }
.tag.minimum { color: var(--amber-ink); background: var(--amber-bg); border-color: var(--amber-line); }
.tag.balance { color: var(--ink-3); }
.tag.locked { color: var(--amber-ink); background: var(--amber-bg); border-color: var(--amber-line); }
.tag.suggest { color: var(--amber-ink); background: var(--amber-bg); border-color: var(--amber-line); }
.tag.upcoming { color: var(--blue); background: var(--blue-tint); border-color: var(--blue-tint-2); }
.tag.pipeline { color: var(--ink-3); }
.tag.verify { color: var(--blue); background: var(--blue-tint); border-color: var(--blue-tint-2); }
.tag.verify.v-for_sale, .tag.verify.v-municipality_owns { color: var(--green-ink); background: var(--green-tint); border-color: var(--green-tint-2); }
.tag.verify.v-sold, .tag.verify.v-unavailable_reported { color: var(--status-closed-ink); background: var(--status-closed-bg); border-color: var(--status-closed-line); }

/* ---- Status banner (detail header) ------------------------ */
.statusbar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--r); font-weight: 600;
  border: 1px solid transparent;
}
.statusbar .ic { width: 20px; height: 20px; flex: none; }
.statusbar-open   { background: var(--status-open-bg);   color: var(--status-open-ink);   border-color: var(--status-open-line); }
.statusbar-soon   { background: var(--status-soon-bg);   color: var(--status-soon-ink);   border-color: var(--status-soon-line); }
.statusbar-closed { background: var(--status-closed-bg); color: var(--status-closed-ink); border-color: var(--status-closed-line); }
.statusbar-confirmed { background: var(--blue-tint); color: var(--blue-700); border-color: var(--blue-tint-2); }

/* ---- Cards (panels) --------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.card-pad { padding: var(--s5); }

/* ---- Definition / record rows (detail view) --------------- */
.record, .detail-grid { display: grid; grid-template-columns: 150px 1fr; gap: 2px var(--s4); }
.record dt, .detail-grid dt { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); padding: var(--s2) 0; }
.record dd, .detail-grid dd { margin: 0; padding: var(--s2) 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.record dt, .detail-grid dt { border-bottom: 1px solid var(--line); }
.record > dt:last-of-type, .record > dd:last-child { border-bottom: 0; }
.record dd.empty { color: var(--ink-3); }
.record dd.empty::before { content: "Not stated in notice"; font-style: italic; }

/* ---- Callout / fineprint / contact (shared) --------------- */
.callout { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); background: var(--surface-2); }
.callout-blue { background: var(--blue-tint); border-color: var(--blue-tint-2); }
.callout h4 { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s2); }
.callout .price { font-family: var(--font-serif); font-size: var(--fs-h2); font-weight: 600; color: var(--ink); }
.fineprint { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }

.contact-line { display: grid; grid-template-columns: 110px 1fr; gap: var(--s2) var(--s4); font-size: var(--fs-sm); }
.contact-line dt { color: var(--ink-3); font-weight: 600; }
.contact-line dd { margin: 0; color: var(--ink); }

/* ---- Verify banner (trust) -------------------------------- */
.verify-note { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s3) var(--s4); }
.verify-note .ic { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 1px; }

/* ---- Utilities -------------------------------------------- */
.stack > * + * { margin-top: var(--s3); }
.row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.muted { color: var(--ink-3); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s4) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   App layout (public map + listings + detail)
   ============================================================ */

/* ---- Header ----------------------------------------------- */
.app-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) var(--s5); background: var(--surface);
  border-bottom: 1px solid var(--line); position: relative; z-index: 30;
}
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; min-width: 0; }
.brand img { height: 30px; width: auto; display: block; }
.brand .admin-tag {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-ink); background: var(--green-tint); border: 1px solid var(--green-tint-2);
  padding: 3px 8px; border-radius: var(--r-pill);
}
.brand-sub { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.35; }
.brand-sub strong { color: var(--ink-2); font-weight: 600; }
.header-meta { text-align: right; display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.health-line { font-size: var(--fs-xs); color: var(--ink-3); }
.health-line.health-warn { color: #a3471f; }

/* ---- App shell -------------------------------------------- */
.app-shell {
  display: grid; grid-template-columns: var(--sidebar-w) 1fr;
  height: calc(100vh - var(--header-h)); min-height: 480px;
}
.sidebar {
  border-right: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
/* Operator console stacks two toggled panels inside the sidebar; each owns its
   own non-scrolling head + scrolling body. */
.sidebar > .panel { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: hidden; }
.sidebar > .panel[hidden] { display: none; }
.sidebar-head { padding: var(--s5) var(--s5) var(--s4); border-bottom: 1px solid var(--line); background: var(--surface); }
.sidebar-scroll { overflow-y: auto; padding: var(--s4) var(--s5) var(--s7); flex: 1; min-height: 0; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.board-count { font-size: var(--fs-sm); color: var(--ink-3); }
.board-count b { color: var(--ink); }

.map-pane { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: #eef0ec; }
.map-controls-tl { position: absolute; top: var(--s4); left: var(--s4); z-index: 500; display: flex; flex-direction: column; gap: var(--s3); }
.map-controls-tr { position: absolute; top: var(--s4); left: 50%; transform: translateX(-50%); z-index: 500; }

/* ---- Listing cards (shared) ------------------------------- */
.listing, .property-row { display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s-card); margin-bottom: var(--s3); transition: border-color .12s, box-shadow .12s;
  position: relative; font: inherit; color: inherit; }
.listing:hover, .property-row:hover { border-color: var(--ink-3); box-shadow: var(--shadow-1); }
.listing:focus-visible, .property-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: var(--focus-ring); }
.listing.is-active, .property-row.active { border-color: var(--amber-line); background: var(--cream); box-shadow: var(--shadow-1); }
.listing.is-active::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 4px;
  background: var(--amber-line); border-radius: 0 3px 3px 0; }

.listing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.listing-legal { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-snug); color: var(--ink); }
.listing-status { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; flex: none; padding-top: 2px; }
.listing-status.s-open { color: var(--green-ink); }
.listing-status.s-soon { color: var(--status-soon-ink); }
.listing-status.s-closed { color: var(--status-closed-ink); }
.listing-status.s-confirmed { color: var(--blue-700); }
.listing-muni { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin-top: var(--s2); }
.listing-muni .ic { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.listing-meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

/* Layout B "Status-led" — colored status rail + prominent date */
.listing[data-card="status"] { padding-left: calc(var(--s-card) + 6px); }
.listing[data-card="status"] .listing-muni-lead {
  margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2); }
.listing[data-card="status"] .listing-muni-lead .ic { width: 14px; height: 14px; color: var(--ink-3); }
.listing[data-card="status"] .listing-top { align-items: baseline; }
.listing[data-card="status"] .listing-legal { font-size: var(--fs-body); font-weight: 600; }
.listing[data-card="status"]::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: var(--r) 0 0 var(--r); }
.listing[data-card="status"].rail-open::after { background: var(--green); }
.listing[data-card="status"].rail-soon::after { background: var(--amber-line); }
.listing[data-card="status"].rail-closed::after { background: var(--line-2); }
.listing[data-card="status"].rail-confirmed::after { background: var(--blue); }
.listing[data-card="status"].is-active::after { width: 5px; background: var(--amber-line); }
.listing[data-card="status"] .listing-deadline {
  display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3);
  padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--surface-2);
  font-size: var(--fs-sm); }
.listing[data-card="status"] .listing-deadline .big { font-weight: 700; color: var(--ink); }
.listing[data-card="status"] .listing-deadline .lab { color: var(--ink-3); }
.listing-tagrow { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }

/* Admin enforcement rows reuse .property-row with a simpler internal layout */
.property-row .row-main { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.property-row .description { font-weight: 600; font-size: var(--fs-body); color: var(--ink); }
.property-row .amount { font-weight: 700; white-space: nowrap; color: var(--ink); }
.property-row .amount.outcome-open { color: var(--green-ink); }
.property-row .amount.outcome-available { color: var(--blue-700); }
.property-row .amount.outcome-follow_up { color: var(--amber-ink); }
.property-row .amount.outcome-sold { color: var(--status-closed-ink); }
.property-row .row-meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

.empty { padding: var(--s5); text-align: center; color: var(--ink-3); font-size: var(--fs-sm); }

/* ---- Map pins --------------------------------------------- */
/* The pin box is exactly the teardrop dot. The label floats above it,
   OUT of layout flow, so it never shifts the dot and the map anchor can
   point at the teardrop's true tip (see iconAnchor in app.js). */
.pin { position: relative; width: 26px; height: 26px; cursor: pointer; }
.pin-label {
  position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%);
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--surface); border: 1.5px solid currentColor; white-space: nowrap;
  box-shadow: var(--shadow-1); line-height: 1;
}
.pin-stem { width: 0; height: 0; }
.pin-dot { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 2.5px solid var(--surface); box-shadow: var(--shadow-1); display: grid; place-items: center; }
.pin-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); transform: rotate(45deg); }
.pin.p-open   { color: var(--green); }   .pin.p-open   .pin-dot { background: var(--green); }
.pin.p-soon   { color: var(--amber-ink); } .pin.p-soon .pin-dot { background: var(--amber-line); }
.pin.p-closed { color: var(--ink-3); }    .pin.p-closed .pin-dot { background: var(--ink-3); }
.pin.p-confirmed { color: var(--blue); } .pin.p-confirmed .pin-dot { background: var(--blue); }
.pin.is-active .pin-dot { box-shadow: 0 0 0 4px var(--amber-bg), var(--shadow-2); }
.pin.is-active .pin-label { background: var(--cream); border-color: var(--amber-line); color: var(--amber-ink); }

/* Leaflet tooltip pins used by the operator (enforcement) map */
.pin-label.total { font-weight: 700; }
.pin-label.printed { color: #a54638; }
.pin-label-selected { outline: 2px solid var(--amber-line); }

/* ---- Detail panel ----------------------------------------- */
.detail, .detail-panel {
  position: absolute; top: var(--s4); right: var(--s4); bottom: var(--s4); width: 440px; max-width: calc(100% - var(--s5));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); z-index: 600; display: flex; flex-direction: column; overflow: hidden;
}
.detail[hidden], .detail-panel[hidden] { display: none; }
.detail-head, .detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3);
  padding: var(--s5) var(--s5) var(--s4); border-bottom: 1px solid var(--line); }
.detail-title, .detail-heading h2 { font-family: var(--font-serif); font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-snug); margin: 0; }
.detail-close { appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm);
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; font-size: 22px; line-height: 1; }
.detail-close:hover { background: var(--surface-2); color: var(--ink); }
.detail-body { overflow-y: auto; padding: var(--s4) var(--s5) var(--s6); flex: 1; min-height: 0; }
/* When the detail content is rendered straight into .detail-panel (admin),
   give the panel its own scroll + padding. */
.detail-panel { padding: 0; }
.detail-panel > .detail-heading { padding: var(--s5) var(--s5) var(--s4); }
.detail-panel { overflow-y: auto; }
.detail-panel > :not(.detail-heading) { margin-left: var(--s5); margin-right: var(--s5); }
.detail-panel > :last-child { margin-bottom: var(--s6); }
.detail-section-title { margin: var(--s5) 0 var(--s3); }
.detail-actions { display: flex; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }
.detail-actions .btn { flex: 1 1 auto; }
.detail-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  padding: 9px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2);
  background: var(--surface); color: var(--ink);
}
.detail-actions a:hover { background: var(--surface-2); border-color: var(--ink-3); }
.share-actions a:first-child { border-color: transparent; background: var(--blue); color: #fff; }
.share-actions a:first-child:hover { background: var(--blue-700); }

/* ---- Mobile toggle (list <-> map) ------------------------- */
.mobile-tabs { display: none; }

@media (max-width: 920px) {
  :root { --header-h: auto; }
  .app-header { flex-wrap: wrap; gap: var(--s2) var(--s4); padding: var(--s3) var(--s4); }
  .header-meta { display: none; }
  .app-shell { grid-template-columns: 1fr; height: auto; }
  .mobile-tabs { display: flex; position: sticky; top: 0; z-index: 25; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: var(--s2) var(--s4); gap: var(--s2); }
  .mobile-tabs .seg { width: 100%; }
  .mobile-tabs .seg-btn { flex: 1; justify-content: center; }
  .sidebar { border-right: 0; }
  .sidebar-scroll { overflow: visible; }
  .app-shell.show-map .sidebar { display: none; }
  .app-shell.show-list .map-pane { display: none; }
  .app-shell.detail-open .map-pane { display: block; }
  .map-pane { height: calc(100vh - 160px); }
  .detail, .detail-panel { position: fixed; inset: 0; width: 100%; max-width: 100%; border-radius: 0; border: 0; }
  .seg-btn { min-height: 44px; }
  .listing, .property-row { padding: var(--s4); }
  .clear-btn { min-height: 40px; }
}

/* ---- Clear / reset filters control ------------------------ */
.clear-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-3); background: transparent; border: 0; cursor: pointer;
  padding: 6px 10px; border-radius: var(--r-pill); min-height: 34px;
  transition: background .12s ease, color .12s ease;
}
.clear-btn svg { width: 15px; height: 15px; }
.clear-btn:hover { color: var(--ink); background: var(--surface-2); }
.clear-btn:active { background: var(--line); }
.clear-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: var(--focus-ring); }

/* ============================================================
   App extras — restyled to the design language
   ============================================================ */

/* ---- Detail content blocks (value / contact / lookup / verify / signal) ---- */
.contact-heading { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: var(--s5) 0 var(--s2); }

.value-block, .contact-block, .lookup-block { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); background: var(--surface-2); margin-top: var(--s4); }
.value-block .contact-heading, .contact-block .contact-heading, .lookup-block .contact-heading { margin-top: 0; }
.value-line { font-size: var(--fs-sm); color: var(--ink); margin-bottom: 6px; }
.value-evidence { font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: 8px; }
.value-evidence.muted { color: var(--ink-3); }
.value-note { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; margin: var(--s2) 0 0; }
.contact-find { display: inline-block; margin-top: var(--s2); font-size: var(--fs-sm); font-weight: 600; }

.lookup-chips { display: flex; flex-direction: column; gap: 6px; }
.lookup-row { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); }
.lookup-key { color: var(--ink-3); font-weight: 600; min-width: 52px; }
.copy-btn { appearance: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink); padding: 4px 8px; cursor: pointer; }
.copy-btn:hover { background: var(--surface-2); }
.copy-btn.copied { color: var(--green-ink); border-color: var(--green-tint-2); background: var(--green-tint); }
.lookup-links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); font-size: var(--fs-sm); }
.lookup-note { font-size: var(--fs-xs); color: var(--ink-3); margin: var(--s2) 0 0; }

.verify-block { border: 1px solid var(--blue-tint-2); border-radius: var(--r); padding: var(--s4); background: var(--blue-tint); margin-top: var(--s4); }
.verify-block .contact-heading { margin-top: 0; }
.verify-updated { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.verify-field { display: block; margin-bottom: var(--s3); }
.verify-field > span:first-child { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.input-shell { display: block; }
.input-shell input, .input-shell select {
  width: 100%; min-height: 40px; padding: 0 var(--s3); font-family: var(--font-sans); font-size: var(--fs-sm);
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
}
.verify-save { appearance: none; border: 0; background: var(--blue); color: #fff; font-weight: 600; font-size: var(--fs-sm);
  padding: 9px 16px; border-radius: var(--r-sm); cursor: pointer; }
.verify-save:hover { background: var(--blue-700); }

.signal-block { margin-top: var(--s4); }
.signal-suggest { border: 1px solid var(--amber-line); border-radius: var(--r); padding: var(--s3) var(--s4); background: var(--amber-bg); }
.signal-line { font-size: var(--fs-sm); color: var(--ink); }
.signal-excerpt { font-size: var(--fs-sm); color: var(--ink-2); font-style: italic; margin: 6px 0; }
.signal-source { font-size: var(--fs-xs); color: var(--ink-3); }
.signal-applied { font-size: var(--fs-sm); color: var(--green-ink); font-weight: 600; margin-top: 6px; }
.signal-apply { appearance: none; border: 0; background: var(--green); color: #fff; font-weight: 600; font-size: var(--fs-sm);
  padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; margin-top: 8px; }
.signal-apply:hover { background: var(--green-700); }
.signal-context { margin-top: var(--s3); }
.signal-context-head { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; }
.signal-context-item { font-size: var(--fs-sm); color: var(--ink-2); padding: 6px 0; border-top: 1px solid var(--line); }

/* ---- Account widget (header) ------------------------------ */
.acct-widget { display: flex; align-items: center; }
.acct { position: relative; }
.acct-toggle {
  display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  padding: 6px 12px 6px 8px; font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
}
.acct-toggle:hover { border-color: var(--ink-3); }
.acct-email { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-badge { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-pill); }
.acct-badge.admin { color: var(--green-ink); background: var(--green-tint); }
.acct-badge.member { color: var(--blue-700); background: var(--blue-tint); }
.acct-badge.free { color: var(--ink-3); background: var(--surface-2); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2);
  padding: var(--s2); z-index: 60; display: flex; flex-direction: column; gap: 2px; }
.acct-menu[hidden] { display: none; }
.acct-menu-status { font-size: var(--fs-xs); color: var(--ink-3); padding: var(--s2) var(--s3); }
.acct-menu-action { padding: var(--s2) var(--s3) var(--s3); }
.acct-menu-action .cta-upgrade { width: 100%; }
.acct-menu-item { appearance: none; border: 0; background: transparent; text-align: left; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
  padding: var(--s2) var(--s3); border-radius: var(--r-sm); text-decoration: none; display: block; }
.acct-menu-item:hover { background: var(--surface-2); }

.cta-upgrade {
  appearance: none; border: 0; cursor: pointer; background: var(--green); color: #fff;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600;
  padding: 9px 14px; border-radius: var(--r-sm); white-space: nowrap;
}
.cta-upgrade:hover { background: var(--green-700); }

/* ---- Locked / paywall blocks ------------------------------ */
.lock-inline { color: var(--amber-ink); font-weight: 600; font-size: var(--fs-sm); }
.locked-block { border: 1px solid var(--amber-line); border-radius: var(--r); padding: var(--s4); background: var(--amber-bg); margin-top: var(--s4); }
.locked-title { font-weight: 700; color: var(--amber-ink); margin-bottom: 6px; }
.locked-block p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 var(--s3); }
.locked-block .cta-upgrade,
.locked-block .cta-annual,
.locked-block .cta-report { margin: 4px 6px 0 0; }
.cta-annual { appearance: none; cursor: pointer; background: transparent;
  border: 1px solid var(--green); color: var(--green); font-family: var(--font-sans);
  font-size: var(--fs-sm); font-weight: 600; padding: 8px 13px; border-radius: var(--r-sm);
  white-space: nowrap; }
.cta-annual:hover { background: var(--green); color: #fff; }
.cta-report { appearance: none; cursor: pointer; background: transparent;
  border: 1px solid var(--amber-line); color: var(--amber-ink); font-family: var(--font-sans);
  font-size: var(--fs-sm); font-weight: 600; padding: 8px 13px; border-radius: var(--r-sm);
  white-space: nowrap; }
.cta-report:hover { background: var(--amber-ink); color: #fff; }

/* ---- New-listing email alert signup ---------------------- */
.alert-signup { border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s4); margin: var(--s4) 0; background: var(--surface-2, #f7f7f4); }
.alert-signup-title { font-weight: 700; margin-bottom: 4px; }
.alert-signup-sub { font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 var(--s3); }
.alert-signup-row { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-signup-row .input { flex: 1 1 12rem; }
.alert-signup-msg { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 6px; min-height: 1em; }

/* Compact above-the-board capture CTA — prominent but doesn't bury the table. */
.alert-cta { margin: 0 0 var(--s3); padding: 10px 12px; border-color: var(--green, #1f7a46);
  background: var(--green-tint, #e9f2ec); box-shadow: 0 1px 3px rgba(30,42,51,.06); }
.alert-cta .alert-signup-title { font-size: var(--fs-sm); margin-bottom: 6px; }
.alert-cta-hint { font-weight: 400; color: var(--ink-2); }
@media (max-width: 520px) { .alert-cta-hint { display: none; } }
.alert-cta.is-confirmed { background: var(--green-tint, #e9f2ec); border-color: var(--green, #1f7a46); }
.alert-confirm-strong { font-weight: 700; display: block; margin-bottom: 4px; }
.alert-confirm-cta { display: inline-block; margin-top: 8px; font-weight: 600; cursor: pointer; }

.map-paywall { position: absolute; left: 50%; bottom: var(--s5); transform: translateX(-50%);
  z-index: 550; max-width: 360px; width: calc(100% - var(--s6)); }
.map-paywall[hidden] { display: none; }
.map-paywall-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: var(--s4) var(--s5); text-align: center; }
.map-paywall-card strong { display: block; font-size: var(--fs-lg); margin-bottom: 6px; }
.map-paywall-card p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 var(--s3); }

/* ---- Toast ------------------------------------------------ */
.toast { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: var(--s3) var(--s5); border-radius: var(--r);
  box-shadow: var(--shadow-2); font-size: var(--fs-sm); font-weight: 600; z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: #7a2d22; }
.toast-info { background: var(--ink); }

/* ---- Auth modal ------------------------------------------- */
.auth-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: var(--s4); }
.auth-modal[hidden] { display: none; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(30,42,51,.45); }
.auth-card { position: relative; width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s6) var(--s5) var(--s5); }
.auth-x { position: absolute; top: 12px; right: 12px; appearance: none; border: 0; background: transparent;
  font-size: 24px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.auth-x:hover { color: var(--ink); }
.auth-tabs { display: flex; gap: var(--s2); margin-bottom: var(--s4); }
.auth-tab { appearance: none; border: 0; background: transparent; cursor: pointer; flex: 1;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3);
  padding: var(--s2); border-bottom: 2px solid var(--line); }
.auth-tab.active { color: var(--ink); border-bottom-color: var(--green); }
.auth-form { display: flex; flex-direction: column; gap: var(--s3); }
.auth-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.auth-form input { min-height: 44px; padding: 0 var(--s3); font-family: var(--font-sans); font-size: var(--fs-body);
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); }
.auth-form input:focus { border-color: var(--blue); outline: none; box-shadow: var(--focus-ring); }
.auth-submit { appearance: none; border: 0; background: var(--green); color: #fff; font-weight: 600; font-size: var(--fs-body);
  min-height: 48px; border-radius: var(--r-sm); cursor: pointer; margin-top: var(--s2); }
.auth-submit:hover { background: var(--green-700); }
.auth-submit[disabled] { opacity: .6; cursor: not-allowed; }
.auth-forgot { align-self: center; }
.auth-error { color: #7a2d22; font-size: var(--fs-sm); margin: 0; }
.auth-note { color: var(--green-ink); font-size: var(--fs-sm); margin: 0; }
.auth-foot { font-size: var(--fs-xs); color: var(--ink-3); margin: var(--s4) 0 0; line-height: 1.5; }

/* ---- Operator console extras ------------------------------ */
.count-badge { font-size: 12px; font-weight: 700; background: var(--green-tint); color: var(--green-ink);
  border-radius: var(--r-pill); padding: 1px 7px; margin-left: 4px; }
.count-badge[hidden] { display: none; }
.filters { display: flex; flex-direction: column; gap: var(--s3); }
.filters-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.filters label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.filters .input-shell { margin-top: 4px; }
.filters .input-shell input, .filters .input-shell select {
  width: 100%; min-height: 44px; padding: 0 var(--s3); font-family: var(--font-sans); font-size: var(--fs-body);
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); }
.panel-note { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }
.control-label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.deadline-filter { display: flex; flex-direction: column; gap: 6px; }
.queue-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s3); }
.advanced-filters { font-size: var(--fs-sm); color: var(--ink-2); }
.advanced-filters summary { cursor: pointer; font-weight: 600; padding: var(--s2) 0; }
.freshness-line { font-size: var(--fs-sm); color: var(--ink-3); }
.checkbox-row { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); }

/* ---- Map view toggle (legacy bottom-left position support) - */
.map-view-toggle { position: absolute; bottom: var(--s4); left: var(--s4); z-index: 500; }

/* --- Operator contact-email modal (admin-only) -------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(30, 42, 51, .45);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s4);
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); width: min(720px, 100%);
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4); border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: var(--fs-h3); flex: 1; }
.modal-close {
  border: none; background: none; font-size: 26px; line-height: 1;
  color: var(--ink-3); cursor: pointer; padding: 0 var(--s2); min-height: 0;
}
.modal-close:hover { color: var(--ink); }
.modal-sub { color: var(--ink-2); padding: var(--s3) var(--s4) 0; margin: 0; font-size: 14px; }
.modal-body { padding: var(--s4); overflow: auto; }
.modal-foot {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4); border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.contact-window { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: var(--s2); }
.contact-window select { padding: 4px 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.contact-picker { border: 1px solid var(--line); border-radius: var(--r); margin-top: var(--s3); }
.contact-picker > summary {
  cursor: pointer; padding: var(--s3); font-size: 13px; font-weight: 600;
  color: var(--ink-2); list-style: revert;
}
.contact-picker > summary:hover { color: var(--ink); }
.contact-picker[open] > summary { border-bottom: 1px solid var(--line); }
.contact-parcels { display: flex; flex-direction: column; gap: 2px; padding: var(--s2) var(--s3) var(--s3); }
.contact-muni-group { margin-bottom: var(--s3); }
.contact-muni-group > .muni-label {
  font-weight: 600; color: var(--ink); font-size: 13px;
  text-transform: uppercase; letter-spacing: .03em; margin: var(--s2) 0 var(--s1);
}
.contact-parcel {
  display: flex; gap: var(--s2); align-items: flex-start;
  padding: var(--s2); border-radius: var(--r-sm); cursor: pointer;
}
.contact-parcel:hover { background: var(--surface-2); }
.contact-parcel input { margin-top: 3px; }
.contact-parcel .meta { font-size: 12px; color: var(--ink-3); }
.contact-emails { display: flex; flex-direction: column; gap: var(--s4); }
.contact-email-block { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.contact-email-block > header {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3); background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.contact-email-block > header b { flex: 1; font-size: 13px; }
.contact-email-block textarea {
  width: 100%; border: none; padding: var(--s3); font: 13px/1.5 var(--font-mono, monospace);
  color: var(--ink); resize: vertical; min-height: 220px; background: var(--surface);
}
.contact-empty { color: var(--ink-3); font-size: 14px; padding: var(--s3); }
