:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #526074;
  --border: #dfe6f0;
  --brand: #0b5fff;
  --brand-dark: #0847bf;
  --green: #0a8754;
  --green-soft: #e6f7ef;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--ink); }

.topbar {
  height: 64px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  position: sticky; top: 0; z-index: 40; gap: 16px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: 11px; color: var(--muted); }

.nav-tabs { display: flex; gap: 4px; margin-left: 8px; }
.nav-tab {
  border: 0; background: transparent; padding: 9px 13px; border-radius: 9px;
  font: 600 13.5px/1 'Inter', sans-serif; color: var(--muted); cursor: pointer; transition: .15s;
}
.nav-tab:hover { background: #eef3fb; color: var(--ink); }
.nav-tab.active { background: #e8f0ff; color: var(--brand); }

.savings-pill {
  display: flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green);
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.savings-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.btn {
  border: 1px solid transparent; border-radius: 9px; padding: 8px 14px;
  font: 600 13px/1.1 'Inter', sans-serif; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(.92); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: #b7c6da; background: #f8fafd; }
.btn-ai { background: linear-gradient(135deg, #0b5fff, #6d28d9); color: #fff; }
.btn-ai:hover { filter: brightness(1.06); }
.btn-sm { padding: 6px 10px; font-size: 12px; }

.state-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 10px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.state-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.state-pill {
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  padding: 6px 12px; border-radius: 999px; font: 600 12.5px/1 'Inter', sans-serif; cursor: pointer;
}
.state-pill:hover { border-color: var(--brand); color: var(--brand); }
.state-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.state-select {
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
  font: 600 12.5px/1.1 'Inter', sans-serif; background: #fff; color: var(--ink);
  cursor: pointer; max-width: 240px;
}
.counties-pill { border-color: #0b5fff; color: #0b5fff; background: #eff6ff; }
.counties-pill:hover { background: #0b5fff; color: #fff; }

.filter-controls { display: flex; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.filter-controls input, .filter-controls select {
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 11px;
  font: 500 13px/1.2 'Inter', sans-serif; background: #fff; color: var(--ink);
}
.filter-controls input[type="search"] { min-width: 260px; flex: 1; max-width: 380px; }

.view { display: none; }
.view.active { display: block; }

/* Zillow Split Layout */
.explore-split {
  display: grid; grid-template-columns: 1.05fr 1fr;
  height: calc(100vh - 118px); min-height: 540px;
}
.map-pane { position: relative; border-right: 1px solid var(--border); }
#map { width: 100%; height: 100%; }
.map-style-switcher {
  position: absolute; left: 14px; top: 14px; z-index: 6;
  display: inline-flex; background: rgba(15, 23, 42, .88); padding: 4px;
  border-radius: 10px; gap: 3px; backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.map-style-btn {
  border: none; background: transparent; color: #cbd5e1;
  padding: 6px 11px; border-radius: 7px; font: 600 12px/1 'Inter', sans-serif;
  cursor: pointer; transition: background .15s, color .15s;
}
.map-style-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.map-style-btn.active { background: #0b5fff; color: #fff; }
.map-bounds-btn {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 6;
  border: 1px solid rgba(255,255,255,.22); background: rgba(11, 95, 255, .94); color: #fff;
  padding: 7px 14px; border-radius: 999px; font: 700 12.5px/1 'Inter', sans-serif;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .28); transition: transform .12s, background .15s;
}
.map-bounds-btn:hover { background: #0949c7; transform: translateX(-50%) scale(1.03); }
.counties-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px; max-height: 60vh; overflow-y: auto; margin-top: 14px;
}
.county-chip {
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px;
  background: var(--surface); font-size: 12.5px;
}
.county-chip strong { display: block; color: var(--ink); margin-bottom: 2px; }
.county-chip small { color: var(--muted); font-size: 11.5px; }
.county-chip.ready { border-left: 3px solid #0a8754; }
.county-chip.pending { border-left: 3px solid #d97706; }
.map-legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  background: rgba(15, 23, 42, .88); color: #f1f5f9; padding: 8px 13px;
  border-radius: 9px; font-size: 12px; backdrop-filter: blur(6px);
}

.price-marker {
  background: #0b5fff; color: #fff; font: 700 12.5px/1 'Inter', sans-serif;
  padding: 6px 10px; border-radius: 999px; border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28); cursor: pointer; transition: transform .12s, background .12s;
}
.price-marker:hover, .price-marker.highlight { background: #0a8754; transform: scale(1.12); z-index: 10; }
.price-marker.escrow { background: #b45309; }

.list-pane { overflow-y: auto; padding: 18px 20px 36px; background: var(--bg); }
.list-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.list-header h1 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sub { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.badge-zero {
  background: var(--green-soft); color: var(--green); border: 1px solid #b8e8d3;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
}

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.listing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
  cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #b7ccf5; }
.card-photo { position: relative; height: 185px; background: #dce5f2; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-tag-row {
  position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px;
}
.pill-dark {
  background: rgba(15, 23, 42, .82); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(4px);
}
.pill-save {
  background: rgba(10, 135, 84, .92); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
}
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-price { font-size: 21px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; justify-content: space-between; }
.card-price small { font-size: 11.5px; font-weight: 600; color: var(--green); }
.card-facts { font-size: 13px; color: var(--ink); font-weight: 600; }
.card-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.card-addr { font-size: 12.5px; color: var(--muted); }
.card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.chip-sm { background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; }
.card-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid #eef2f7;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

/* Full Pages */
.page-wrap { max-width: 1220px; margin: 0 auto; padding: 24px 20px 60px; }
.page-wrap.narrow { max-width: 860px; }
.hero-banner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.hero-banner h1 { font-size: 22px; font-weight: 800; }
.hero-banner p { font-size: 13.5px; color: var(--muted); margin-top: 5px; max-width: 720px; line-height: 1.5; }

/* Flat-Fee Pro Cards */
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.pro-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.pro-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pro-role { background: #e8f0ff; color: var(--brand); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.pro-fee { text-align: right; }
.pro-fee strong { font-size: 22px; color: var(--green); font-weight: 800; display: block; }
.pro-fee small { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; }
.pro-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; }

/* Escrow & Closing Room */
.escrow-picker { display: flex; align-items: center; gap: 8px; }
.escrow-picker select { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font: 600 13px 'Inter', sans-serif; }
.escrow-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.savings-compare {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.stat-box { background: #f8fafd; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.stat-box.green { background: var(--green-soft); border-color: #b8e8d3; }
.stat-box small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stat-box strong { font-size: 20px; font-weight: 800; margin-top: 4px; display: block; }
.stat-box.green strong { color: var(--green); }

.milestone-list { display: grid; gap: 8px; }
.milestone {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 9px; font-size: 13px;
}
.milestone.done { background: var(--green-soft); border-color: #b8e8d3; }
.milestone .m-status { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.milestone.done .m-status { color: var(--green); }

.donation-card {
  margin-top: 16px; background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 18px;
}
.donation-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

/* Forms */
.card-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.card-form.compact { border: 0; padding: 12px 0 0; }
.form-row { display: grid; gap: 12px; }
.form-row.two { grid-template-columns: repeat(2, 1fr); }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row.four { grid-template-columns: repeat(4, 1fr); }
.card-form label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.card-form input, .card-form select, .card-form textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font: 500 13.5px/1.3 'Inter', sans-serif; color: var(--ink); background: #fff;
}
.label-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.zero-guarantee { font-size: 12.5px; color: var(--green); }
.status-msg { padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.status-msg.ok { background: var(--green-soft); color: var(--green); }
.status-msg.err { background: #fee2e2; color: #b91c1c; }

/* Modals */
dialog { border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); margin: auto; max-width: 96vw; }
dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.detail-modal { width: min(980px, 95vw); max-height: 92vh; overflow-y: auto; }
.small-modal { width: min(480px, 94vw); padding: 22px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.icon-close { border: 0; background: #eef2f7; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-weight: 700; }
.detail-hero { position: relative; height: 320px; background: #dbe5f2; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-hero .icon-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.92); }
.detail-body { padding: 22px 26px 28px; display: grid; gap: 18px; }
.detail-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }

/* AI Drawer */
.ai-drawer {
  position: fixed; top: 64px; right: 0; bottom: 0; width: min(430px, 96vw);
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: -8px 0 32px rgba(15,23,42,.15);
  z-index: 60; display: flex; flex-direction: column;
}
.ai-drawer[hidden] { display: none; }
.ai-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.ai-head small { display: block; font-size: 11px; color: var(--muted); }
.ai-context-chip { padding: 8px 14px; background: #eff6ff; color: var(--brand); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--border); }
.ai-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { padding: 10px 12px; border-radius: 11px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; max-width: 92%; }
.ai-msg.bot { background: #f1f5f9; color: var(--ink); align-self: flex-start; }
.ai-msg.user { background: var(--brand); color: #fff; align-self: flex-end; }
.ai-quick { padding: 8px 14px; display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid #eef2f7; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.ai-form { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.ai-form input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 13px; }

.auth-box { display: grid; gap: 10px; padding: 12px; background: var(--green-soft); border-radius: 10px; margin: 10px 0; font-size: 13px; }

@media (max-width: 960px) {
  .explore-split { grid-template-columns: 1fr; height: auto; }
  .map-pane { height: 360px; }
  .escrow-grid, .detail-cols { grid-template-columns: 1fr; }
  .form-row.two, .form-row.three, .form-row.four { grid-template-columns: 1fr; }
  .savings-pill { display: none; }
}


/* Strict AOREP.org KYC Access Gate & Metered AI Bar */
[hidden] { display: none !important; }
.kyc-gate[hidden] { display: none !important; }
.kyc-gate {
  position: fixed; inset: 0; z-index: 9999;
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: rgba(7, 18, 32, 0.78); backdrop-filter: blur(4px);
}
.kyc-gate-card {
  width: min(490px, 100%); background: #ffffff; color: var(--ink);
  border-radius: 16px; padding: 28px 30px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.kyc-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.kyc-brand-row strong { display: block; font-size: 18px; line-height: 1.1; }
.kyc-brand-row small { color: var(--muted); font-size: 12px; }
.kyc-gate-card h1 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.02em; }
.kyc-sub { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 18px; }
.kyc-pending-box {
  background: #fffbeb; border: 1px solid #f59e0b; border-radius: 10px;
  padding: 14px; margin-bottom: 16px; font-size: 13px;
}
.kyc-pending-box strong { display: block; color: #92400e; margin-bottom: 4px; }
.kyc-pending-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.kyc-token-details { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.kyc-token-details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.kyc-footer-cta {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px;
}
.kyc-policy-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.full-width { width: 100%; }
.ai-tier-bar {
  padding: 8px 16px; border-bottom: 1px solid var(--border); background: #f8fafc;
  display: flex; align-items: center; justify-content: space-between; font-size: 12.5px;
}
.ai-tier-label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); width: 100%; }
.ai-tier-label select { flex: 1; padding: 5px 8px; border-radius: 7px; border: 1px solid var(--border); font-size: 12px; }
.ai-usage-foot { display: block; margin-top: 6px; font-size: 11px; color: #64748b; border-top: 1px solid rgba(0,0,0,.06); padding-top: 4px; }

.cat-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.cat-pill {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---- Wyoming v1 Property Lookup, Provenance & EOI Funnel ---- */
.topbar { gap: 10px; }
.topbar-right { gap: 8px; flex-shrink: 0; }
.savings-pill { max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.funnel-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px; margin: 14px 0 18px;
}
.funnel-kpi {
  background: #ffffff; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.funnel-kpi small { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.funnel-kpi strong { font-size: 20px; font-weight: 800; color: var(--ink); }
.funnel-kpi.green { background: #ecfdf5; border-color: #6ee7b7; }
.funnel-kpi.green strong { color: #047857; }
.lookup-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px;
}
.lookup-bar input {
  flex: 1 1 260px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.lookup-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px;
}
.prop-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.prop-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.prop-card h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.prop-meta { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.prop-prov {
  font-size: 11.5px; color: #334155; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 8px;
}
.prop-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.badge-suppressed { background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-claimed { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* v20261123a: EOI mailer preview, WY quick-search chips, WY lookup responsiveness */
.eoi-preview { margin: 14px 0; }
.eoi-preview-title { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.eoi-letter { background: #fffdf7; color: #1c2430; border: 1px solid #d9d2c0; border-radius: 6px; padding: 16px 18px; font-family: Georgia, 'Times New Roman', serif; font-size: 13.5px; line-height: 1.5; max-height: 300px; overflow-y: auto; box-shadow: 0 2px 8px rgba(0,0,0,.08); overflow-wrap: anywhere; }
.eoi-letter p { margin: 0 0 10px; }
.eoi-l-msg { white-space: pre-wrap; border-left: 3px solid #c9b98a; padding-left: 10px; font-style: italic; }
.eoi-l-foot, .eoi-l-opt { font-size: 12px; color: #4a5361; }
.eoi-l-opt { border-top: 1px dashed #d9d2c0; padding-top: 8px; margin-bottom: 0; }
.eoi-preview-note { font-size: 12px; opacity: .75; margin: 6px 0 0; }
.wy-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.wy-chip { border: 1px solid rgba(120,140,170,.5); background: transparent; color: inherit; border-radius: 999px; padding: 8px 14px; min-height: 36px; font: inherit; font-size: 13px; cursor: pointer; }
.wy-chip:hover, .wy-chip:focus-visible { border-color: currentColor; outline: none; }
.wy-chip.active { background: #1f6feb; border-color: #1f6feb; color: #fff; }
@media (max-width: 960px) {
  .funnel-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .lookup-bar { display: flex; flex-wrap: wrap; gap: 8px; }
  .lookup-bar input { flex: 1 1 160px; max-width: none !important; min-width: 0; }
  .lookup-bar input[type="search"] { flex-basis: 100%; }
  .lookup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .funnel-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookup-bar .btn { flex: 1 1 100%; }
  .lookup-grid { grid-template-columns: 1fr; }
  .prop-card { padding: 12px; }
  .prop-card-top { flex-wrap: wrap; gap: 6px; }
  .prop-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .prop-actions .btn { flex: 1 1 auto; min-height: 40px; }
  .wy-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .wy-chip { flex: 0 0 auto; }
  .eoi-letter { max-height: 220px; padding: 12px; font-size: 13px; }
}

/* Attorney Contracts Studio (v20261123b) */
.atty-subtabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.atty-cta-banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(135deg,#f5f3ff 0%,#eef2ff 100%); border: 1px solid #c7d2fe; border-left: 5px solid #6366f1; border-radius: 14px; padding: 18px 20px; margin: 14px 0 18px; box-shadow: 0 2px 10px rgba(99,102,241,.08); }
.atty-cta-mark { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: #6366f1; color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.atty-cta-copy { flex: 1 1 320px; min-width: 240px; }
.atty-cta-copy h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: #312e81; }
.atty-cta-copy p { margin: 0; font-size: 13px; line-height: 1.5; color: #3730a3; }
.atty-cta-btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 640px) { .atty-cta-banner { padding: 14px; } .atty-cta-btn { width: 100%; } .atty-cta-mark { width: 38px; height: 38px; font-size: 20px; } }
.atty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.atty-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.atty-card h3 { margin: 0 0 6px; }
.atty-meta { font-size: 13px; color: #475569; line-height: 1.6; }
.atty-seal { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; word-break: break-all; background: #0f172a; color: #a7f3d0; border-radius: 8px; padding: 8px; margin: 8px 0; }
.atty-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #e2e8f0; color: #334155; }
.atty-badge.ADOPTED { background: #dcfce7; color: #166534; }
.atty-badge.DRAFT { background: #fef3c7; color: #92400e; }
.atty-bench { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.atty-pane { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; min-width: 0; }
.atty-set { display: block; width: 100%; text-align: left; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 8px; padding: 8px; margin: 6px 0; cursor: pointer; }
.atty-set.active { border-color: #6d28d9; background: #f5f3ff; }
.atty-tabs, .atty-chips, .atty-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.atty-tab, .atty-chip { border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.atty-tab.active { background: #1e293b; color: #fff; }
.atty-chip { font-family: ui-monospace, Menlo, Consolas, monospace; background: #eef2ff; }
.atty-pane input, .atty-pane textarea, .atty-pane select, .atty-form input, .atty-form textarea, .atty-form select { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; margin: 4px 0 8px; font: inherit; }
.atty-body { min-height: 340px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.atty-prev { white-space: pre-wrap; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; max-height: 420px; overflow: auto; font-size: 13px; }
.atty-notice { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 8px; padding: 8px; font-size: 12px; margin-bottom: 8px; }
.atty-modal { width: min(860px, 96vw); max-height: 90vh; overflow: auto; border: 0; border-radius: 14px; padding: 20px; }
.atty-form { max-width: 640px; }
@media (max-width: 1000px) { .atty-bench { grid-template-columns: 1fr; } }

/* ---- Wave 3: merge-token preview simulator + print controls ---- */
.atty-merge{margin:10px 0;border:1px solid #d8d8d8;border-radius:8px;padding:8px 10px;background:#fafafa}
.atty-merge summary{cursor:pointer;font-weight:600;font-size:.92rem;list-style:revert}
.atty-merge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:10px}
.atty-merge-grid label{display:flex;flex-direction:column;font-size:.78rem;gap:3px;font-weight:600;color:#444}
.atty-merge-grid input{padding:6px 8px;border:1px solid #ccc;border-radius:6px;font-size:.85rem;font-weight:400;background:#fff}
.atty-merge-grid input:focus{outline:2px solid #1a73e8;outline-offset:1px}
.atty-merged{background:#e6f4ea;border-bottom:1px solid #34a853;padding:0 2px;border-radius:3px;font-weight:600}
@media (max-width:640px){.atty-merge-grid{grid-template-columns:1fr 1fr}}

/* ---- Wave 4: USGS 3DEP Lidar roof badge + panel ---- */
.prop-roof { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: #0f172a; background: #eef6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 5px 8px; }
.prop-roof-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1d4ed8; background: #dbeafe; border-radius: 999px; padding: 2px 7px; }
.prop-roof-panel { display: grid; gap: 2px; margin: 6px 0 10px; }
.prop-roof-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-bottom: 1px dashed #e2e8f0; padding: 5px 0; }
.prop-roof-row span { color: #475569; }
.prop-roof-note { font-size: 12px; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px; margin-top: 8px; }
/* ---- Wave 4: Attorney provider status banner + share link ---- */
.atty-status-bar { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.atty-status-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #475569; margin-bottom: 8px; }
.atty-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.atty-status-cell { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.atty-status-cell span { color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.atty-status-cell strong { color: #0f172a; font-size: 13px; }
.atty-status-cell em { font-style: normal; color: #166534; font-weight: 600; }
.atty-linkbox { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px; margin: 8px 0; word-break: break-all; font-size: 12px; }

/* ---- Wave 5: AOREP admin bar-verification panel + token coverage tip ---- */
.atty-admin { margin: 10px 0 14px; border: 1px solid #d8b24a; border-radius: 8px; background: #fffdf3; padding: 8px 12px; }
.atty-admin > summary { cursor: pointer; font-weight: 700; color: #7a5c00; }
.atty-admin .atty-form { margin-top: 8px; }
.atty-admin select { width: 100%; padding: 6px 8px; border: 1px solid #c9c9c9; border-radius: 6px; background: #fff; }
.atty-tok { margin: 8px 0 12px; border: 1px solid #d5dbe3; border-radius: 8px; background: #f7f9fc; padding: 6px 10px; }
.atty-tok > summary { cursor: pointer; font-weight: 600; }
.atty-tok .atty-meta { margin: 4px 0; }
.atty-tok code { background: #eef2f7; border-radius: 4px; padding: 1px 4px; font-size: 12px; }
.atty-tok-ok { color: #1a7f37; font-weight: 700; }
.atty-tok-warn { color: #b45309; font-weight: 700; }
@media (max-width: 760px) {
  .atty-admin, .atty-tok { padding: 6px 8px; }
  .atty-tok code { font-size: 11px; }
}

/* ---- Multi-State v2 switcher bar (WY/NV/FL/TX/CA) ---- */
.ms-bar { border: 1px solid #d8dee9; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; background: #fbfcfe; }
.ms-bar-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.ms-bar-head strong { font-size: 14px; letter-spacing: .2px; }
.ms-bar-sub { font-size: 12px; color: #5b6675; }
.ms-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #cfd7e3; border-radius: 999px; background: #fff; cursor: pointer; font: inherit; line-height: 1; }
.ms-pill:hover { border-color: #0b5fff; }
.ms-pill.active { border-color: #0b5fff; background: #eaf1ff; box-shadow: inset 0 0 0 1px #0b5fff; }
.ms-code { font-weight: 700; font-size: 13px; }
.ms-name { font-size: 12px; color: #3c4757; }
.ms-seal { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; color: #7a8698; background: #f1f4f9; border-radius: 4px; padding: 2px 4px; }
.ms-credits { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #dde3ec; font-size: 12px; color: #3c4757; }
@media (max-width: 640px) {
  .ms-bar { padding: 10px; }
  .ms-pill { padding: 6px 9px; }
  .ms-name { display: none; }
}

/* Public Beta Banner & Badge (2026-11-27) */
.beta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #0b1b3a 0%, #132c5c 50%, #0b1b3a 100%);
  color: #e6eefc;
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(96, 165, 250, 0.35);
  text-align: center;
  flex-wrap: wrap;
}
.beta-banner strong { color: #ffffff; }
.beta-pill,
.beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.beta-pill {
  background: #f59e0b;
  color: #111827;
}
.beta-badge {
  margin-left: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}
.example-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245, 158, 11, 0.94);
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.25);
  pointer-events: none;
  z-index: 3;
}
.example-ribbon-lg {
  font-size: 12.5px;
  padding: 7px 14px;
}
