:root {
  --ground: #0A0C0E;
  --secondary: #101317;
  --ink: #EDE7DC;
  --ink-2: #9EA5A8;
  --muted: #6C7378;
  --amber: #E8913C;
  --teal: #2E6B72;
  --hairline: rgba(237, 231, 220, 0.13);
  --hairline-strong: rgba(237, 231, 220, 0.22);
  --radius: 12px;
  --radius-sm: 8px;
  --face: #222a30;
  --face-hover: #2c353c;
  --face-amber: #E8913C;
  --face-amber-hover: #f0a24f;
  --raise:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.22);
  --raise-amber:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.22);
  --press:
    inset 0 1px 3px rgba(0, 0, 0, 0.35);
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1600px;
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: auto; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(232, 145, 60, 0.35); color: var(--ink); }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em;
  color: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: .1rem .35rem;
}
.hidden { display: none !important; }
[hidden] { display: none !important; }

.hairline-b { border-bottom: 1px solid var(--hairline); }
.hairline-t { border-top: 1px solid var(--hairline); }
.nav-blur {
  background: rgba(10, 12, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* —— Sticky nav —— */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
}
.site-nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .site-nav-inner { padding: 0 2.5rem; }
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: .1rem; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.brand-by {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:hover { color: var(--amber); }
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.header-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }

/* —— Portal (from musterdefense.com) —— */
.portal-scroll { position: relative; }
.portal-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
.portal-field {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #1a2228 0%, transparent 70%),
    linear-gradient(165deg, #12181c 0%, #0A0C0E 45%, #0d1418 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.18);
  will-change: transform;
}
.portal-field::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.02) 3px, rgba(0,0,0,0.02) 4px);
  opacity: 0.6;
}
.portal-field::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(10,12,14,0.4) 70%, rgba(10,12,14,0.85) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.portal-duotone {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(232, 145, 60, 0.55) 0%, transparent 50%),
    linear-gradient(315deg, rgba(46, 107, 114, 0.55) 0%, transparent 50%);
  mix-blend-mode: overlay;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}
.portal-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 20%, rgba(10, 12, 14, 0.55) 70%, rgba(10, 12, 14, 0.92) 100%);
  pointer-events: none;
}
.portal-panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 52%;
  background: #0A0C0E;
  z-index: 4;
  will-change: transform;
}
.portal-panel-l { left: 0; }
.portal-panel-r { right: 0; }
.portal-title {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: .35rem;
}
.portal-title img.portal-logo-mark {
  height: clamp(72px, 14vw, 180px);
  width: auto;
  mix-blend-mode: screen;
  will-change: transform;
}
.portal-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 120px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: #EDE7DC;
  text-transform: uppercase;
  will-change: transform, letter-spacing;
  display: inline-block;
}
.portal-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  z-index: 7;
  top: 50%; left: 50%;
  will-change: transform;
}
.portal-dot-amber { background: #E8913C; margin-left: -10px; }
.portal-dot-teal { background: #2E6B72; margin-left: 4px; }
.portal-meta {
  position: absolute;
  z-index: 8;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6C7378;
}
.portal-meta-tl { top: 80px; left: 32px; }
.portal-meta-br { bottom: 40px; right: 32px; }

.stroke-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 18vw, 220px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 231, 220, 0.18);
  letter-spacing: -0.03em;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .portal-field, .portal-panel, .portal-title span, .portal-title img, .portal-dot, .portal-duotone {
    transition: none !important;
  }
}
@media (max-width: 767px) {
  .portal-meta-tl { top: 72px; left: 16px; }
  .portal-meta-br { bottom: 24px; right: 16px; }
  .portal-word { font-size: clamp(28px, 12vw, 56px); }
}

/* —— Folds —— */
.fold-wide, .app-shell > .card > .fold-wide, .app-stack {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .fold-wide, .app-shell > .card > .fold-wide, .app-stack {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
.app-shell { padding-top: 5.5rem; padding-bottom: 3rem; }
.app-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.app-stack > .card { margin-bottom: 0; }

.statement-fold {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--ground);
  padding: 5rem 0 4rem;
}
.fold-inner {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .fold-inner { padding: 0 2.5rem; }
}
@media (max-width: 767px) {
  .fold-inner { grid-template-columns: 1fr; }
  .stroke-num { font-size: clamp(72px, 28vw, 120px); }
}
.fold-copy { max-width: 40rem; }

.pricing-fold {
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--hairline);
}
.auth-fold {
  margin: 1.5rem auto 3rem;
  max-width: var(--max);
}
.auth-fold.card.spacious {
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 3rem);
  max-width: var(--max);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  color: var(--amber);
  margin: 0 0 .75rem;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.1;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
}
.accent { color: var(--amber); }
.sub {
  margin: .75rem 0 0;
  color: var(--ink-2);
  max-width: 38rem;
  line-height: 1.6;
  font-size: .98rem;
}
.sub.wide { max-width: 42rem; margin-bottom: 2rem; }
.card-sub {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}
.plan-grid.plan-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.plan-grid.plan-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1200px) {
  .plan-grid.plan-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .plan-grid.plan-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid.plan-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .plan-grid,
  .plan-grid.plan-grid-4,
  .plan-grid.plan-grid-5 { grid-template-columns: 1fr; }
}
.plan-card {
  background: var(--secondary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  transition: border-color .15s;
  min-width: 0;
  container-type: inline-size;
}
.plan-card.featured,
.plan-card.selected {
  border-color: rgba(232, 145, 60, 0.55);
  box-shadow: inset 0 0 0 1px rgba(232, 145, 60, 0.25);
}
.price-tag {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 .85rem;
  padding: .28rem .65rem;
  border: 1px solid rgba(232,145,60,.45);
  border-radius: var(--radius-sm);
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: normal;
}
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; min-width: 0; }
.price {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 20cqi, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price-unit {
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-features {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--ink-2);
  line-height: 1.75;
  font-size: .95rem;
}
.plan-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  border: 0;
  margin-bottom: .35rem;
}
.plan-toggle-btn {
  flex: 1;
  min-width: 7.5rem;
  background: var(--face);
  border: 1px solid rgba(237, 231, 220, 0.16);


  color: var(--ink-2);
  padding: .7rem .85rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  box-shadow: var(--raise);
  transition: background .15s, color .15s, box-shadow .12s, transform .12s, filter .15s;
}
.plan-toggle-btn:hover {
  background: var(--face-hover);
  color: var(--ink);
  filter: brightness(1.05);
}
.plan-toggle-btn:active {
  transform: translateY(2px);
  box-shadow: var(--press);
}
.plan-toggle-btn.active {
  background: var(--face-amber);
  color: #0A0C0E;
  border-color: #f3b56c;

  box-shadow: var(--raise-amber);
}
.select-plan-btn { width: 100%; }

.card {
  background: var(--secondary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
}
.card.spacious {
  padding: 2rem 2rem 1.85rem;
}
.card h2 { margin: 0 0 .85rem; font-size: 1.15rem; font-weight: 700; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .85rem; flex-wrap: wrap;
}
.card-head h2 { margin: 0; }
.hint { margin: 0 0 .95rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.hint.tiny { font-size: .78rem; color: var(--muted); }
.gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 800px) {
  .gate-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.stack { display: flex; flex-direction: column; gap: .9rem; }

.field {
  display: flex; flex-direction: column; gap: .4rem;
  font-size: 10.5px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.field.compact { min-width: 14rem; max-width: 22rem; }
.field input, .field select, textarea {
  background: var(--ground);
  border: 1px solid var(--hairline);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: .75rem .85rem;
  font: inherit;
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.field input:focus, .field select:focus, textarea:focus {
  outline: none;
  border-color: rgba(232,145,60,.55);
}
textarea { width: 100%; resize: vertical; min-height: 110px; }

.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(237, 231, 220, 0.18);


  background: var(--face);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: .65rem 1.15rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--raise);
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .12s, transform .12s, filter .15s, border-color .15s;
}
a.btn:hover { text-decoration: none; }
.btn:hover {
  background: var(--face-hover);
  filter: brightness(1.06);
}
.btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: var(--press);
  filter: none;
}
.btn:disabled { opacity: .5; cursor: wait; transform: none; box-shadow: var(--raise); filter: none; }
.btn.primary {
  background: var(--face-amber);
  border-color: #f3b56c;

  color: #0A0C0E;
  box-shadow: var(--raise-amber);
}
.btn.primary:hover { background: var(--face-amber-hover); filter: none; }
.btn.primary:active:not(:disabled) {
  box-shadow: var(--press);
}
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); }
.btn.tiny { padding: .35rem .65rem; font-size: .72rem; letter-spacing: 0.05em; }
.btn.danger {
  color: #f0c8c2;
  border-color: rgba(212,132,120,.45);
  background: #3a2422;
}
.btn.danger:hover { color: #f8ddd9; filter: brightness(1.08); }

.badge {
  border: 1px solid var(--hairline);
  background: var(--ground);
  border-radius: var(--radius-sm);
  padding: .28rem .65rem;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.status-line { color: var(--muted); font-size: .85rem; letter-spacing: 0; text-transform: none; }

.step-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-2);
  line-height: 1.85;
  font-size: .95rem;
}
.step-list strong { color: var(--ink); font-weight: 600; }

.seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; border: 0; }
.seg-btn {
  background: var(--face);
  color: var(--ink-2);
  border: 1px solid rgba(237, 231, 220, 0.16);


  padding: .45rem .8rem;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  box-shadow: var(--raise);
  transition: background .15s, color .15s, box-shadow .12s, transform .12s, filter .15s;
}
.seg-btn:hover { color: var(--ink); background: var(--face-hover); filter: brightness(1.05); }
.seg-btn:active { transform: translateY(2px); box-shadow: var(--press); filter: none; }
.seg-btn.active {
  color: #0A0C0E;
  background: var(--face-amber);
  border-color: #f3b56c;

  box-shadow: var(--raise-amber);
}
.filter-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.card-head .filter-bar { flex: 1 1 100%; min-width: 0; }

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  width: 100%;
}
table { width: 100%; border-collapse: collapse; font-size: .86rem; table-layout: fixed; }
th, td {
  text-align: left;
  padding: .7rem .65rem;
  border-bottom: none;
  vertical-align: top;
}
th {
  background: var(--ground);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
/* One continuous row hairline — avoids status/actions stair-step */
#parcelTable tbody tr {
  box-shadow: inset 0 -1px 0 var(--hairline);
}
#parcelTable thead tr {
  box-shadow: inset 0 -1px 0 var(--hairline);
}
#parcelTable tbody tr:last-child {
  box-shadow: none;
}
tr:hover td { background: rgba(237,231,220,.02); }
.empty-row td { color: var(--muted); text-align: center; padding: 2rem; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }

.pill {
  display: inline-flex; align-items: center;
  border-radius: var(--radius-sm);
  padding: .2rem .5rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  background: transparent;
}
.pill.unknown { color: var(--amber); border-color: rgba(232,145,60,.4); }
.pill.ok { color: var(--teal); border-color: rgba(46,107,114,.5); }
.pill.due { color: #d48478; border-color: rgba(212,132,120,.4); }
.pill.checking { color: var(--muted); }

.msg { display: block; margin-top: .35rem; color: var(--muted); font-size: .76rem; max-width: 18rem; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.msg a { white-space: nowrap; }
.linkish {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--amber); font: inherit; cursor: pointer; text-decoration: underline;
}
.zero-owed { color: var(--teal); font-weight: 600; }
.owed-due { color: #d48478; font-weight: 700; }
.tax-info .msg { max-width: 22rem; }
.tax-hist { white-space: pre-wrap; }

.alerts-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
}
.check {
  display: flex; align-items: center; gap: .55rem;
  color: var(--ink-2); font-size: .88rem;
  letter-spacing: 0; text-transform: none;
}
.alerts-form .check { grid-column: 1 / -1; }
.check input { accent-color: var(--amber); }

.footer {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem 3rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.footer-logo { display: block; margin-bottom: .75rem; opacity: .85; }
@media (min-width: 1024px) {
  .footer { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.manual-dialog {
  border: 1px solid var(--hairline-strong);
  background: var(--secondary);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  max-width: min(560px, 94vw);
  width: 100%;
}
.manual-dialog::backdrop { background: rgba(0,0,0,.65); }
.manual-form h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.manual-form .field { margin-top: .75rem; }
.manual-form textarea { width: 100%; min-height: 4.5rem; }
.row.tight { gap: .75rem; margin: .35rem 0 .75rem; }

a:focus-visible, button:focus-visible {
  outline: 1px solid #E8913C;
  outline-offset: 3px;
}

/* Logged-in: landing portal hidden. Nav stays in flow so a wrapped row
   cannot paint over the roll. Marketing keeps the fixed 64px overlay. */
body.is-authed #landing { display: none; }
body.is-authed .site-nav {
  position: sticky;
  top: 0;
  height: auto;
  min-height: 64px;
}
body.is-authed .site-nav-inner {
  height: auto;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: .5rem;
  padding-bottom: .5rem;
  row-gap: .35rem;
}
body.is-authed .header-actions {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: min(100%, 16rem);
}
body.is-authed .header-actions .badge {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.is-authed .header-actions .btn,
body.is-authed .app-nav,
body.is-authed .map-nav { flex-shrink: 0; }
body.is-authed .header-actions > .btn { min-width: 9.25rem; }
body.is-authed .app-shell { padding-top: 1.5rem; }
body.is-authed .nav-links { display: none; }


/* Tax year tabs on Your roll */
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .85rem 0 .35rem;
}
.year-tab {
  appearance: none;
  border: 1px solid rgba(237, 231, 220, 0.16);


  background: var(--face);
  color: var(--muted, #9a948a);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: .45rem .85rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  letter-spacing: .01em;
  box-shadow: var(--raise);
  transition: background .15s, color .15s, box-shadow .12s, transform .12s, filter .15s;
}
.year-tab:hover { color: var(--ink); background: var(--face-hover); filter: brightness(1.05); }
.year-tab:active { transform: translateY(2px); box-shadow: var(--press); filter: none; }
.year-tab.active {
  color: #0A0C0E;
  background: var(--face-amber);
  border-color: #f3b56c;

  box-shadow: var(--raise-amber);
}
.year-amount .msg { display: block; margin-top: .2rem; }
.year-unknown { color: #E8913C; }


/* Fit layout: 4 columns, no side-scroll */
table.roll-fit { table-layout: fixed; width: 100%; }
table.roll-fit .col-parcel { width: 32%; }
table.roll-fit .col-years { width: 26%; }
table.roll-fit .col-status { width: 14%; }
table.roll-fit .col-actions { width: 28%; }
table.roll-fit th, table.roll-fit td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
table.roll-fit td.actions,
table.roll-fit th.col-actions {
  overflow-wrap: normal;
  word-break: normal;
}
.parcel-cell .parcel-apn {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: .25rem;
}
.parcel-cell .parcel-owner {
  color: var(--ink-2);
  font-size: .82rem;
  line-height: 1.35;
  margin-bottom: .3rem;
}
.parcel-cell .parcel-meta {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}
.parcel-cell .meta-bit { white-space: nowrap; }
.parcel-cell .tax-links a { white-space: nowrap; }

.years-cell { padding-top: .7rem; padding-bottom: .7rem; }
.year-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: .28rem;
}
.year-row {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: .4rem;
  align-items: baseline;
}
.year-row-owed .year-lab { color: var(--amber); font-weight: 700; }
.year-lab {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.year-val .year-amount { margin: 0; }
.year-val .year-amount .msg {
  display: inline;
  margin: 0 0 0 .35rem;
  font-size: .68rem;
  max-width: none;
}
.year-val .mono { font-size: .86rem; }
.year-unknown { color: var(--muted); }

.status-cell { white-space: normal; }
.status-cell .pill { margin-bottom: .35rem; }
.status-cell .msg { max-width: none; margin-top: .15rem; font-size: .72rem; }

.county-tag {
  display: inline-block;
  margin: 0 .45rem .25rem 0;
  padding: .15rem .45rem;
  border: 1px solid rgba(232,145,60,.45);
  background: rgba(232,145,60,.1);
  color: var(--amber, #E8913C);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.owner-cell { min-width: 12rem; }
.owner-line { display: inline; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  margin: .65rem 0 .35rem;
  align-items: center;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.roll-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  position: relative;
}
.roll-search {
  width: min(16rem, 72vw);
  min-width: 10rem;
  height: 2rem;
  padding: 0 1.75rem 0 .65rem;
  border: 1px solid rgba(40, 44, 48, 0.18);
  border-radius: var(--radius-sm);
  background: var(--surface, #fff);
  color: var(--ink, #1a1d1f);
  font-size: .85rem;
  font-family: inherit;
}
.roll-search:focus {
  outline: 2px solid rgba(232, 145, 60, 0.45);
  outline-offset: 1px;
  border-color: rgba(232, 145, 60, 0.55);
}
.roll-search-clear {
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(237, 231, 220, 0.16);


  background: var(--face);
  color: var(--ink-2);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
  box-shadow: var(--raise);
}
.roll-search-clear:hover { color: var(--ink); background: var(--face-hover); }
.roll-search-clear:active { transform: translateY(calc(-50% + 1px)); box-shadow: var(--press); }
.filter-group-search { flex: 1 1 12rem; min-width: 11rem; }

.county-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.county-chip {
  display: inline-flex;
  align-items: center;
  height: 1.85rem;
  padding: 0 .7rem;
  border: 1px solid rgba(237, 231, 220, 0.16);


  border-radius: var(--radius-sm);
  background: var(--face);
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--raise);
  transition: background .15s, color .15s, box-shadow .12s, transform .12s, filter .15s;
}
.county-chip:hover {
  color: var(--ink);
  background: var(--face-hover);
  filter: brightness(1.05);
}
.county-chip:active { transform: translateY(2px); box-shadow: var(--press); filter: none; }
.county-chip.active {
  color: #0A0C0E;
  background: var(--face-amber);
  border-color: #f3b56c;

  box-shadow: var(--raise-amber);
}
.filter-group-county[hidden] { display: none !important; }

.filter-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #6C7378);
}



/* Horizontal action row — readable labels, use the free width */
#parcelTable tbody td,
#parcelTable thead th {
  vertical-align: top;
}
td.actions,
#parcelTable tbody td.actions {
  vertical-align: top;
  white-space: normal;
}
.actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding-top: .1rem;
}
.actions .btn {
  width: auto;
  flex: 0 0 auto;
  box-sizing: border-box;
  margin: 0;
  padding: .45rem .75rem;
  font-size: .72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}
.actions .btn-slot {
  display: none; /* no spacer — flex row doesn't need fake Bill PDF */
}

/* Narrower paddings on small laptops still fit */
@media (max-width: 1100px) {
  table.roll-fit .col-parcel { width: 30%; }
  table.roll-fit .col-years { width: 26%; }
  table.roll-fit .col-status { width: 14%; }
  table.roll-fit .col-actions { width: 30%; }
  .year-row { grid-template-columns: 5.1rem minmax(0, 1fr); }
  th, td { padding: .55rem .45rem; }
}


.plan-toggle.plan-toggle-4,
.plan-toggle.plan-toggle-5 {
  flex-wrap: wrap;
}
.plan-toggle.plan-toggle-4 .plan-toggle-btn,
.plan-toggle.plan-toggle-5 .plan-toggle-btn {
  flex: 1 1 45%;
}


/* —— Roll map (Leaflet) —— */
.roll-map-wrap {
  margin: 0 0 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ground);
}
.roll-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem .65rem;
  border-bottom: 1px solid var(--hairline);
}
.roll-map-label {
  font-size: .72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.roll-map-note {
  font-size: .72rem;
  color: var(--muted);
}
.roll-map {
  height: 360px;
  width: 100%;
  background: #0A0C0E;
  z-index: 0;
}
.roll-map .leaflet-container {
  background: #0A0C0E;
  font-family: var(--font-body);
}
.roll-map .leaflet-control-attribution {
  background: rgba(10, 12, 14, 0.75) !important;
  color: var(--muted);
  font-size: 10px;
}
.roll-map .leaflet-control-attribution a { color: var(--ink-2); }
.roll-map .leaflet-control-zoom a {
  background: var(--secondary) !important;
  color: var(--ink) !important;
  border-color: var(--hairline) !important;
}
.roll-map .leaflet-bar {
  border: 1px solid var(--hairline) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}
.leaflet-popup-content-wrapper {
  background: var(--secondary);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: none;
}
.leaflet-popup-tip { background: var(--secondary); border: 1px solid var(--hairline); }
.leaflet-popup-content { margin: .55rem .7rem; font-size: .78rem; line-height: 1.45; min-width: 140px; }
.leaflet-popup-close-button { color: var(--muted) !important; }
.map-popup-apn { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; color: var(--ink); }
.map-popup-county { color: var(--ink-2); font-size: .72rem; margin: .1rem 0 .25rem; }
.map-popup-owner { color: var(--ink-2); margin-bottom: .3rem; }
.map-popup-owed { font-weight: 700; }
.map-popup-owed.is-due { color: #d48478; }
.map-popup-owed.is-zero { color: var(--teal); }
.map-popup-owed.is-unk { color: var(--muted); font-weight: 500; }
.map-popup-status { color: var(--muted); font-size: .72rem; margin-top: .2rem; }
.parcel-pin {
  background: var(--amber);
  border: 2px solid #0A0C0E;
  border-radius: 50%;
  width: 12px !important;
  height: 12px !important;
  margin-left: -6px !important;
  margin-top: -6px !important;
  box-shadow: 0 0 0 1px rgba(232,145,60,.45);
}
.parcel-pin.is-due { background: #d48478; box-shadow: 0 0 0 1px rgba(212,132,120,.45); }
.parcel-pin.is-zero { background: var(--teal); box-shadow: 0 0 0 1px rgba(46,107,114,.5); }
tr.row-map-flash td {
  background: rgba(232, 145, 60, 0.12);
  transition: background .6s ease;
}
@media (max-width: 700px) {
  .roll-map { height: 300px; }
  .card.spacious { padding: 1.15rem 1rem 1.1rem; }
  .fold-wide, .app-shell > .card > .fold-wide, .app-stack {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}


/* App nav (Roll | Map) — a switch, not two quiet labels */
.app-nav, .map-nav {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(237, 231, 220, 0.22);
  background: rgba(237, 231, 220, 0.05);
}
.app-nav a, .map-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  min-height: 36px;
  padding: .5rem 1rem;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.app-nav a:hover, .map-nav a:hover {
  background: rgba(237, 231, 220, 0.1);
  color: var(--ink);
  text-decoration: none;
}
.app-nav a[aria-current="page"],
.map-nav a[aria-current="page"],
.app-nav a[aria-current="page"]:hover,
.map-nav a[aria-current="page"]:hover {
  background: var(--face-amber);
  color: #0A0C0E;
}
body.is-authed .map-nav { display: flex; }

/* Dedicated map page — column so a taller nav never covers the map */
body.map-page {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
body.map-page .site-nav {
  position: relative;
  flex: 0 0 auto;
}
.map-page-main {
  padding-top: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--ground);
}
.map-page-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding: 1rem 1.5rem .85rem;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .map-page-bar { padding-left: 2.5rem; padding-right: 2.5rem; }
}
.map-page-title {
  margin: 0 0 .25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.map-page-hint { margin: 0; max-width: 28rem; }
.roll-map-full {
  flex: 1;
  height: auto !important;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
.map-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
.state-dock {
  width: min(380px, 42vw);
  flex: 0 0 auto;
  min-height: 0;
  overflow: auto;
  background: #12161a;
  border-right: 1px solid rgba(237, 231, 220, 0.1);
  padding: 1rem 1rem 1.4rem;
  color: var(--ink);
}
.state-dock[hidden] { display: none !important; }
.state-dock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.state-dock-kicker {
  margin: 0;
  color: #5dffc8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.state-dock-head h2 {
  margin: .15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.state-dock-summary {
  margin: .7rem 0 .9rem;
  color: var(--ink-2);
  font-size: .84rem;
  line-height: 1.45;
}
.state-dock-empty { margin: 0; color: var(--muted); font-size: .88rem; }
.dock-county { padding: .7rem 0; border-top: 1px solid rgba(237, 231, 220, 0.08); }
.dock-county header { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.dock-county h3 { margin: 0; font-size: .95rem; font-weight: 650; }
.dock-county header span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.dock-county.is-empty h3,
.dock-county.is-empty header span { color: var(--muted); font-weight: 500; }
.dock-county.is-focus { background: rgba(93, 255, 200, 0.06); margin: 0 -.4rem; padding-left: .4rem; padding-right: .4rem; }
.dock-parcels { list-style: none; margin: .4rem 0 0; padding: 0; }
.dock-parcel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15rem .75rem;
  padding: .28rem 0;
  font-size: .82rem;
}
.dock-apn { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dock-money { color: var(--ink-2); }
.dock-parcel.is-due .dock-money { color: #d48478; }
.dock-parcel.is-zero .dock-money { color: #5dffc8; }
.dock-parcel.is-unknown .dock-money { color: var(--muted); }
.dock-where { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; }
@media (max-width: 800px) {
  .map-stage { flex-direction: column-reverse; }
  .state-dock { width: auto; max-height: 46%; border-right: 0; border-top: 1px solid rgba(237, 231, 220, 0.1); }
}
.map-popup-link { margin-top: .35rem; font-size: .72rem; }


/* Sort controls reuse .seg (v0.6.6) */
/* Roll summary strip (v0.6.4) */
.roll-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin: 0.65rem 0 0.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}
.roll-sum-item {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  font-family: inherit;
  text-align: left;
  background: var(--face);
  border: 1px solid rgba(237, 231, 220, 0.14);


  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  margin: 0;
  box-shadow: var(--raise);
}
button.roll-sum-item {
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
button.roll-sum-item:hover,
button.roll-sum-item:focus-visible {
  background: var(--face-hover);
  color: var(--ink);
  outline: none;
  filter: brightness(1.05);
}
button.roll-sum-item:active {
  transform: translateY(2px);
  box-shadow: var(--press);
  filter: none;
}
button.roll-sum-item.active,
button.roll-sum-item[aria-pressed="true"] {
  border-color: #f3b56c;

  background: var(--face-amber);
  color: #0A0C0E;
  box-shadow: var(--raise-amber);
}
.roll-sum-item.roll-sum-static {
  cursor: default;
}
.roll-sum-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.15rem;
}
.roll-sum-item strong {
  font-variant-numeric: tabular-nums;
  color: #f2f4f6;
}
button.roll-sum-item.active strong,
button.roll-sum-item[aria-pressed="true"] strong {
  color: #0A0C0E;
}
@media print {
  .site-nav, .portal-scroll, .statement-fold, .pricing-fold, .auth-fold,
  .footer, #smsSection, .filter-bar, .card-head .filter-row,
  #addParcelsBtn, #clearInputBtn, #refreshAllBtn, #exportCsvBtn, #importCsvBtn, #printRollBtn,
  .row, textarea, select, .alerts-form, .manual-dialog { display: none !important; }
  body { background: #fff; color: #111; }
  .roll-summary { border-color: #ccc; background: #f7f7f7; color: #111; }
  .roll-sum-label { color: #555; }
  .roll-sum-item, .roll-sum-item strong { color: #111; }
  .table-wrap table { width: 100%; border-collapse: collapse; }
  .table-wrap th, .table-wrap td { border-bottom: 1px solid #ddd; padding: 6px 8px; text-align: left; font-size: 12px; }
}

/* Relative due badges (v0.6.10) */
.due-rel {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
  border: 1px solid transparent;
}
.due-rel.overdue {
  color: #d48478;
  border-color: rgba(212, 132, 120, 0.45);
  background: rgba(212, 132, 120, 0.12);
}
.due-rel.upcoming,
.due-rel.today {
  color: var(--amber, #E8913C);
  border-color: rgba(232, 145, 60, 0.45);
  background: rgba(232, 145, 60, 0.12);
}
button.roll-sum-item[data-sum-action="overdue"].active,
button.roll-sum-item[data-sum-action="overdue"][aria-pressed="true"] {
  border-color: rgba(232, 180, 172, 0.55);
  background: #3a2422;
  color: #f0c8c2;
  box-shadow: var(--raise);
}
button.roll-sum-item[data-sum-action="overdue"].active strong,
button.roll-sum-item[data-sum-action="overdue"][aria-pressed="true"] strong {
  color: #f8ddd9;
}

/* 0.6.86 — State → County picker + coverage-by-state summary */
.picker-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; min-width: 0; }
.picker-row .field.compact { flex: 1 1 14rem; min-width: min(14rem, 100%); max-width: 22rem; }
.picker-row .field select { width: 100%; max-width: 100%; min-width: 0; }
.coverage-list {
  list-style: none; margin: 1.25rem 0 0; padding: 0; max-width: 32rem;
  border-top: 1px solid var(--hairline);
}
.coverage-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: .6rem 0; border-bottom: 1px solid var(--hairline);
}
.coverage-list strong {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.02em; color: var(--ink); font-size: .95rem;
}
.coverage-list span { color: var(--ink-2); font-size: .88rem; }
.sources-details summary { cursor: pointer; color: var(--ink-2); margin-bottom: .5rem; }
.sources-details summary:hover { color: var(--amber); }

/* 0.6.90 — "Open on county site" fallback + address search */
.county-link-note {
  margin: .9rem 0 .2rem; padding: .8rem 1rem; border: 1px solid var(--hairline-strong); border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm); background: var(--secondary); color: var(--ink-2); font-size: .88rem; line-height: 1.5;
  display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center;
}
.county-link-note[hidden] { display: none; }
.county-link-note strong { color: var(--ink); }
.county-link-note .hint { flex-basis: 100%; margin: 0; }
.county-link-note a[href^="tel:"], .county-link-msg a[href^="tel:"] { color: var(--amber); }
.county-site-btn { border-color: rgba(232, 145, 60, 0.55); color: var(--amber); }
.county-site-btn:hover { background: var(--face-hover); color: var(--face-amber-hover); }
.county-link-msg { display: block; }
.county-link-actions { display: inline-flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .3rem; }
#countySelect option.opt-link { color: var(--ink-2); }
.addr-search { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; margin: .4rem 0 .2rem; }
.addr-search .addr-field { flex: 1 1 18rem; margin: 0; }
.addr-search input:disabled { opacity: .55; cursor: not-allowed; }
.addr-results { margin: .2rem 0 .8rem; }
.addr-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.addr-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .5rem; border-bottom: 1px solid var(--hairline-strong); }
.addr-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--hairline); color: var(--ink-2); vertical-align: middle; }
.addr-table td.mono { color: var(--ink); }

/* Parcel map — neon state / county hover (v0.6.89) */
.map-page-lead { min-width: 0; flex: 1 1 18rem; }
.map-page-hint { margin: .35rem 0 0; max-width: 36rem; }
.map-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem 1.25rem;
  min-width: 0;
  flex: 1 1 22rem;
  max-width: 44rem;
}
.map-band-metric { min-width: 0; max-width: none; flex: 1 1 16rem; }
.map-band-metric select { max-width: 22rem; padding: .45rem .7rem; font-size: .85rem; }
.map-band-cuts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .55rem 1rem; }
.map-cut {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-cut-name, .map-cut-mid { display: inline-flex; align-items: center; gap: .35rem; }
.map-cut input[type="range"] { width: 8.5rem; max-width: 42vw; margin: 0; }
.cut-low { accent-color: #5dffc8; }
.cut-high { accent-color: #ff4d9a; }
.map-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pr-neon);
  box-shadow: 0 0 6px var(--pr-neon);
  display: inline-block;
}
.leaflet-prStates-pane path,
.leaflet-prCounties-pane path { cursor: pointer; }
path.pr-border-hot {
  stroke-linejoin: round;
  stroke-linecap: round;
  filter:
    drop-shadow(0 0 1px #ffffff)
    drop-shadow(0 0 4px var(--pr-neon, #5dffc8))
    drop-shadow(0 0 12px var(--pr-neon, #5dffc8));
}
.pr-area-tip {
  position: fixed;
  z-index: 80;
  width: 292px;
  max-width: calc(100vw - 16px);
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 10px 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(93, 255, 200, 0.5);
  background: rgba(10, 12, 14, 0.94);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(93, 255, 200, 0.16),
    0 16px 36px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(93, 255, 200, 0.18);
  pointer-events: none;
  font-family: var(--font-body);
}
.pr-area-tip.is-pinned { pointer-events: auto; }
.pr-area-tip[data-band="mid"] {
  border-color: rgba(255, 193, 77, 0.7);
  box-shadow:
    0 0 0 1px rgba(255, 193, 77, 0.16),
    0 16px 36px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(255, 193, 77, 0.2);
}
.pr-area-tip[data-band="high"] {
  border-color: rgba(255, 77, 154, 0.75);
  box-shadow:
    0 0 0 1px rgba(255, 77, 154, 0.16),
    0 16px 36px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(255, 77, 154, 0.22);
}
.pr-tip-kicker {
  display: block;
  color: #5dffc8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pr-area-tip[data-band="mid"] .pr-tip-kicker { color: #ffc14d; }
.pr-area-tip[data-band="high"] .pr-tip-kicker { color: #ff4d9a; }
.pr-tip-title {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.pr-tip-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.pr-tip-counts p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.pr-tip-counts b {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pr-tip-counts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pr-tip-presence {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.pr-tip-presence li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid rgba(237, 231, 220, 0.1);
  font-size: 13px;
}
.pr-tip-presence em {
  font-style: normal;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pr-tip-presence b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}
.pr-tip-stat { margin: 8px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.4; }
.pr-tip-hot { margin: 6px 0 0; color: #d48478; font-size: 12px; font-weight: 600; }
.pr-tip-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.pr-tip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px auto;
  gap: 6px;
  align-items: center;
  padding: 3px 0;
  font-size: 12px;
}
.pr-tip-row b { font-variant-numeric: tabular-nums; }
.pr-tip-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(237, 231, 220, 0.12);
  overflow: hidden;
}
.pr-tip-bar i {
  display: block;
  height: 100%;
  background: #5dffc8;
  box-shadow: 0 0 6px #5dffc8;
}
.pr-tip-apns { list-style: none; margin: 8px 0 0; padding: 0; }
.pr-tip-apns li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  font-size: 12px;
}
.pr-tip-apns span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.pr-tip-apns .is-due b { color: #d48478; }
.pr-tip-apns .is-zero b { color: #5dffc8; }
.pr-tip-apns .is-unk b { color: var(--muted); font-weight: 500; }
.pr-tip-more { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.pr-tip-mix { margin: 8px 0 0; color: var(--ink-2); font-size: 11px; }
.pr-tip-hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.pr-tip-actions { display: none; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pr-area-tip.is-pinned .pr-tip-actions { display: flex; }
.pr-area-tip.is-pinned .pr-tip-hint { display: none; }
.pr-tip-actions .btn { padding: .35rem .6rem; font-size: .68rem; }
@media (max-width: 700px) {
  .map-page-bar { align-items: stretch; }
  .map-band { max-width: none; }
}

/* 0.6.96 — logged-in roll reads as a workspace, not a stack of identical forms */
body.is-authed {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(232, 145, 60, 0.09), transparent 60%),
    var(--ground);
}
#appMain .app-stack > .card {
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(237, 231, 220, 0.045), transparent 48px),
    #12161a;
  border-color: rgba(237, 231, 220, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
#appMain .card h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
#appMain .steps {
  padding: 1rem 1.15rem;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
#appMain .step-list {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem 1.1rem;
  margin: 0;
  padding: 0;
}
#appMain .step-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--ink-2);
  font-size: .88rem;
  line-height: 1.35;
}
#appMain .step-list li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(232, 145, 60, 0.14);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
}
#appMain .picker-row .field.compact {
  flex: 1 1 18rem;
  max-width: none;
  min-width: min(16rem, 100%);
}
#appMain .field select,
#appMain .alerts-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23EDE7DC' stroke-width='1.4' d='M1 1.5 6 6.5 11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.3rem;
}
#appMain #countyCoverage {
  flex: 1 0 100%;
  margin: .15rem 0 0;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: .82rem;
  color: var(--ink-2);
}
#appMain #coverageHint { max-width: 46rem; color: var(--ink-2); }
#appMain #parcelInput {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
  line-height: 1.55;
  background: #0c0f12;
  border-radius: 12px;
  min-height: 8.5rem;
  padding: .9rem 1rem;
}
#appMain .action-bar {
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem 1.25rem;
}
#appMain .action-primary,
#appMain .action-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  min-width: 0;
}
#appMain .action-secondary .btn {
  background: transparent;
  box-shadow: none;
  border-color: rgba(237, 231, 220, 0.12);
  color: var(--ink-2);
  padding: .5rem .75rem;
  letter-spacing: .04em;
}
#appMain .action-secondary .btn:hover {
  color: var(--ink);
  background: rgba(237, 231, 220, 0.05);
  filter: none;
}
#appMain #trackHint { max-width: 46rem; }
#appMain .card-head { align-items: flex-start; }
#appMain .filter-bar { gap: .85rem 1rem; padding: .15rem 0 .25rem; }
#appMain .seg {
  gap: 0;
  padding: 3px;
  background: #0c0f12;
  border: 1px solid rgba(237, 231, 220, 0.1);
  border-radius: 11px;
}
#appMain .seg-btn {
  box-shadow: none;
  border: 0;
  background: transparent;
  border-radius: 8px;
}
#appMain .seg-btn:hover { filter: none; background: rgba(237, 231, 220, 0.05); }
#appMain .seg-btn.active,
#appMain .seg-btn.active:hover {
  box-shadow: none;
  background: var(--face-amber);
  color: #0A0C0E;
}
#appMain button.roll-sum-item[aria-pressed="true"],
#appMain button.roll-sum-item.active {
  background: var(--face-amber);
  color: #0A0C0E;
  border-color: #f3b56c;
}
#appMain button.roll-sum-item[aria-pressed="true"] strong,
#appMain button.roll-sum-item.active strong,
#appMain button.roll-sum-item[aria-pressed="true"] .roll-sum-label,
#appMain button.roll-sum-item.active .roll-sum-label {
  color: #0A0C0E;
}
#appMain button.roll-sum-item[data-sum-action="overdue"][aria-pressed="true"],
#appMain button.roll-sum-item[data-sum-action="overdue"].active {
  background: #3a2422;
  color: #f0c8c2;
  border-color: rgba(232, 180, 172, 0.55);
}
#appMain button.roll-sum-item[data-sum-action="overdue"][aria-pressed="true"] strong,
#appMain button.roll-sum-item[data-sum-action="overdue"].active strong,
#appMain button.roll-sum-item[data-sum-action="overdue"][aria-pressed="true"] .roll-sum-label,
#appMain button.roll-sum-item[data-sum-action="overdue"].active .roll-sum-label {
  color: #f8ddd9;
}
#appMain .roll-search {
  background: #0c0f12;
  color: var(--ink);
  border: 1px solid rgba(237, 231, 220, 0.12);
  height: 2.2rem;
  border-radius: 10px;
}
#appMain .roll-search::placeholder { color: var(--muted); }
#appMain .roll-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.6rem, 1fr));
  gap: .5rem;
  margin-top: .85rem;
  padding: 0;
  border: 0;
  background: transparent;
}
#appMain .roll-sum-item {
  box-shadow: none;
  background: #0c0f12;
  border-color: rgba(237, 231, 220, 0.08);
  border-radius: 12px;
  padding: .65rem .7rem .55rem;
}
#appMain .roll-sum-item:hover { filter: none; }
#appMain .table-wrap {
  border-radius: 14px;
  background: #0c0f12;
  border-color: rgba(237, 231, 220, 0.08);
}
#appMain .empty-roll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1.4rem 1rem;
}
#appMain .empty-roll strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
#appMain .empty-roll span {
  max-width: 28rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}
#appMain #smsSection {
  background: transparent;
  box-shadow: none;
  border-color: rgba(237, 231, 220, 0.1);
}
@media (max-width: 900px) {
  #appMain .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #appMain .step-list { grid-template-columns: 1fr; }
}
.desk-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
  margin: 0 0 .35rem;
}
.desk-totals p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.desk-totals b {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.desk-totals span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.desk-block { margin-top: 1.15rem; }
.desk-block h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}
.desk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem .9rem;
  flex-wrap: wrap;
}
.desk-list {
  list-style: none;
  margin: .55rem 0 0;
  padding: 0;
}
.desk-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: .45rem 0;
  border-top: 1px solid rgba(237, 231, 220, 0.1);
  font-size: .92rem;
  line-height: 1.35;
}
.desk-list li > span { min-width: 0; }
.desk-list .desk-empty,
.desk-list .desk-standing { color: var(--ink-2); }
.note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .15rem 0 .85rem;
}
@media (max-width: 560px) {
  .desk-totals b { font-size: 1.45rem; }
  .desk-list li { flex-direction: column; gap: .15rem; }
}
@media (max-width: 720px) {
  table.roll-fit { table-layout: auto; }
  table.roll-fit thead { display: none; }
  table.roll-fit tr {
    display: block;
    padding: .35rem 0 .7rem;
    border-bottom: 1px solid rgba(237, 231, 220, 0.08);
  }
  table.roll-fit td {
    display: block;
    width: auto !important;
    overflow-wrap: normal;
    word-break: normal;
    padding: .3rem .75rem;
  }
  table.roll-fit td.actions { display: flex !important; }
  .status-cell .pill { display: inline-block; }
}
