:root {
  --ink: #18201d;
  --muted: #5d6862;
  --line: #dce3df;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --teal: #0e766f;
  --teal-dark: #0a4c49;
  --mint: #dff5ed;
  --coral: #dd5c4d;
  --gold: #b57b17;
  --charcoal: #202826;
  --shadow: 0 18px 50px rgba(24, 32, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

#market-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(251, 252, 250, 0.88);
  border-bottom: 1px solid rgba(220, 227, 223, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: var(--teal-dark);
  font-size: 12px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  color: white;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.button-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
}

.button-danger {
  color: white;
  background: var(--coral);
  border-color: var(--coral);
}

.full {
  width: 100%;
}

#view {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 116px 7vw 72px;
}

.hero-copy {
  width: min(920px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(56px, 10vw, 126px);
  line-height: 0.9;
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.lede {
  margin: 24px 0 0;
  max-width: 840px;
  color: #34413c;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 780px;
  margin-top: 22px;
}

.source-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(14, 118, 111, 0.24);
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-band > div {
  min-height: 116px;
  padding: 24px 7vw;
  background: rgba(255, 255, 255, 0.9);
}

.metric-value {
  display: block;
  font-size: 32px;
  font-weight: 850;
}

.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.context-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 32px;
  padding: 44px 7vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.context-band h2 {
  max-width: 520px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
}

.context-band p:last-child {
  margin: 0;
  color: #34413c;
  font-size: 18px;
  line-height: 1.65;
}

.source-section {
  padding: 52px 7vw;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.field-section h2 {
  max-width: 620px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}

.section-heading p:last-child {
  margin: 0;
  color: #34413c;
  font-size: 18px;
  line-height: 1.6;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.source-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.source-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: white;
  background: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.source-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.source-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.source-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.field-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: 32px;
  padding: 52px 7vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.field-list span {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #34413c;
  background: #fbfcfa;
  font-size: 13px;
  font-weight: 800;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.section-grid article {
  min-height: 220px;
  padding: 34px;
  background: var(--paper);
}

.section-grid p,
.muted,
.fine-print {
  color: var(--muted);
  line-height: 1.55;
}

.faq-section {
  padding: 52px 7vw;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.faq-list article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.faq-list h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.disclaimer-band {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 7vw;
  color: #5a430f;
  background: #fbf4df;
  border-top: 1px solid #ead8a8;
  border-bottom: 1px solid #ead8a8;
}

.disclaimer-band strong {
  font-size: 14px;
  text-transform: uppercase;
}

.disclaimer-band p {
  margin: 0;
  line-height: 1.55;
}

.auth-layout,
.pricing-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 112px 22px 48px;
}

.auth-panel,
.price-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-panel h1,
.pricing-copy h1 {
  font-size: clamp(40px, 7vw, 70px);
  line-height: 0.96;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: #3a4641;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(14, 118, 111, 0.22);
  border-color: var(--teal);
}

textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
}

.fine-print {
  margin: 16px 0 0;
  font-size: 13px;
}

.fine-print a {
  color: var(--teal-dark);
  font-weight: 800;
}

.password-reset-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.password-reset-form[hidden] {
  display: none;
}

.pricing-layout {
  grid-template-columns: minmax(0, 560px) minmax(320px, 430px);
  gap: 34px;
  justify-content: center;
}

.price-card {
  box-shadow: none;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.price-row strong {
  font-size: 28px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr) 344px;
  background: #f4f7f5;
}

.app-shell + * {
  display: none;
}

.app-shell ~ .topbar,
.app-shell .topbar {
  display: none;
}

body.app-mode .topbar {
  display: none;
}

body.app-mode #market-canvas {
  opacity: 0.15;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.side-brand {
  margin-bottom: 26px;
}

.side-brand div {
  display: grid;
}

.side-brand span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.side-link {
  width: 100%;
  min-height: 42px;
  margin-bottom: 6px;
  padding: 0 12px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.side-link.active,
.side-link:hover {
  color: var(--ink);
  background: var(--mint);
  border-color: #c9eadf;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.workspace-head h1 {
  font-size: 36px;
  line-height: 1;
}

.account-pill {
  max-width: 320px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #ead8a8;
  border-radius: 8px;
  background: #fff8e6;
}

.trial-banner[hidden] {
  display: none;
}

.trial-banner div {
  display: grid;
  gap: 4px;
}

.trial-banner strong {
  color: #5a430f;
  font-size: 15px;
}

.trial-banner span {
  color: #6d5a25;
  font-size: 13px;
  line-height: 1.35;
}

.freshness-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.freshness-panel > div {
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.freshness-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.freshness-panel strong {
  font-size: 14px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.kpi {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.kpi span {
  display: block;
  font-size: 24px;
  font-weight: 850;
}

.kpi small {
  color: var(--muted);
  font-weight: 700;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(120px, 0.8fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.saved-searches {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.saved-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding-top: 22px;
  color: var(--ink);
  font-weight: 800;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
}

.workflow-form .checkbox-label {
  padding-top: 0;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 340px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  background: #f8faf8;
  font-size: 11px;
  text-transform: uppercase;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: #eef8f4;
}

.property-main {
  display: block;
  max-width: 310px;
  font-weight: 800;
  color: var(--ink);
}

.property-sub,
.tag,
.money-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--mint);
  font-weight: 800;
}

.tag.taxdeed {
  color: #75500f;
  background: #f4e7c4;
}

.change-badge,
.mini-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef1ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.change-badge.new {
  color: var(--teal-dark);
  background: var(--mint);
}

.change-badge.changed {
  color: #75500f;
  background: #f4e7c4;
}

.change-badge.removed {
  color: #8c2f25;
  background: #fde2df;
}

.status-badge.active {
  color: var(--teal-dark);
  background: var(--mint);
}

.status-badge.trialing {
  color: #75500f;
  background: #f4e7c4;
}

.status-badge.suspended,
.status-badge.past_due {
  color: #8c2f25;
  background: #fde2df;
}

.status-badge.open {
  color: #8c2f25;
  background: #fde2df;
}

.status-badge.pending {
  color: #75500f;
  background: #f4e7c4;
}

.status-badge.resolved,
.status-badge.closed {
  color: var(--teal-dark);
  background: var(--mint);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-table-wrap {
  max-height: calc(100vh - 290px);
}

.notes-table-wrap {
  max-height: calc(100vh - 250px);
}

.notes-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.35fr);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.45fr) minmax(360px, 1fr);
  gap: 14px;
  align-items: start;
}

.support-form,
.support-ticket {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.support-form {
  display: grid;
  gap: 14px;
}

.support-list {
  display: grid;
  gap: 10px;
}

.support-ticket-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.support-ticket p {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.support-admin-note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #c9eadf;
  border-radius: 8px;
  background: var(--mint);
}

.support-admin-note span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.support-table-wrap {
  max-height: 420px;
}

.support-table-wrap table {
  min-width: 1120px;
}

.support-table-wrap tbody tr {
  cursor: default;
}

.admin-note-input {
  min-width: 220px;
  min-height: 86px;
}

.admin-section {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-section-head h2 {
  margin: 0;
}

.admin-create-user {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.8fr) minmax(150px, 0.5fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.etl-freshness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.etl-freshness > div,
.etl-card {
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.etl-freshness span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.etl-freshness strong {
  font-size: 14px;
  word-break: break-word;
}

.etl-warnings {
  display: grid;
  gap: 8px;
}

.etl-warning,
.etl-ok {
  padding: 12px 14px;
  border: 1px solid #ead8a8;
  border-radius: 8px;
  color: #5a430f;
  background: #fff8e6;
  font-size: 13px;
  font-weight: 750;
}

.etl-ok {
  border-color: #c9eadf;
  color: var(--teal-dark);
  background: var(--mint);
}

.etl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.etl-card .eyebrow {
  margin-bottom: 14px;
}

.etl-list {
  display: grid;
  gap: 10px;
}

.etl-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.etl-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.etl-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: capitalize;
}

.etl-list strong {
  font-size: 17px;
}

.etl-table-wrap {
  max-height: 360px;
}

.etl-table-wrap tbody tr {
  cursor: default;
}

.etl-table-wrap table {
  min-width: 860px;
}

.note-preview {
  display: block;
  max-width: 360px;
  color: var(--ink);
  line-height: 1.35;
  white-space: pre-wrap;
}

.admin-actions {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-reset-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}

.spread-positive {
  color: var(--teal-dark);
  font-weight: 850;
}

.spread-negative {
  color: var(--coral);
  font-weight: 850;
}

.detail-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px;
  background: #ffffff;
  border-left: 1px solid var(--line);
}

.empty-detail {
  display: grid;
  place-items: start;
  min-height: 180px;
  color: var(--muted);
}

.detail-panel h2 {
  margin-top: 0;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-row {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-row strong {
  word-break: break-word;
}

.detail-actions {
  display: grid;
  gap: 8px;
}

.detail-actions a {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--mint);
  font-weight: 800;
}

.note-form,
.workflow-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.note-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.note-head h3 {
  margin: 0;
  font-size: 18px;
}

.note-head [data-note-status],
.note-head [data-workflow-status] {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.billing-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.billing-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.billing-card h2 {
  font-size: 28px;
}

.billing-price {
  margin: 20px 0;
  font-size: 42px;
  font-weight: 850;
}

.billing-price span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.billing-facts {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.billing-facts div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.billing-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.billing-facts strong {
  word-break: break-word;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .detail-panel {
    display: none;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    align-items: flex-start;
    padding: 14px;
  }

  .nav {
    gap: 10px;
    font-size: 13px;
  }

  .nav .button {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 110px 20px 42px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 78px);
  }

  .lede {
    font-size: 17px;
  }

  .proof-band,
  .context-band,
  .section-heading,
  .source-grid,
  .field-section,
  .disclaimer-band,
  .faq-list,
  .saved-searches,
  .billing-grid,
  .section-grid,
  .pricing-layout,
  .kpi-row,
  .freshness-panel,
  .support-layout,
  .etl-freshness,
  .etl-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .trial-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .section-grid article {
    min-height: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    padding: 12px;
  }

  .side-brand {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .workspace {
    padding: 14px;
  }

  .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-section-head,
  .admin-toolbar,
  .admin-create-user,
  .admin-reset-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-section-head {
    flex-direction: column;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table-wrap,
  .notes-table-wrap,
  .support-table-wrap,
  .etl-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    background: white;
  }

  .results-table-wrap table {
    display: block;
    min-width: 0;
  }

  .results-table-wrap thead {
    display: none;
  }

  .results-table-wrap tbody,
  .results-table-wrap tr,
  .results-table-wrap td {
    display: block;
    width: 100%;
  }

  .results-table-wrap tbody {
    display: grid;
    gap: 10px;
  }

  .results-table-wrap tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    overflow: hidden;
  }

  .results-table-wrap tbody tr:hover,
  .results-table-wrap tbody tr.selected {
    background: white;
    border-color: #bfe2d7;
    box-shadow: 0 10px 28px rgba(24, 32, 29, 0.08);
  }

  .results-table-wrap td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 42px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    word-break: break-word;
  }

  .results-table-wrap td:last-child {
    border-bottom: 0;
  }

  .results-table-wrap td::before {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .results-table-wrap td:nth-child(1)::before {
    content: "Property";
  }

  .results-table-wrap td:nth-child(2)::before {
    content: "County";
  }

  .results-table-wrap td:nth-child(3)::before {
    content: "Type";
  }

  .results-table-wrap td:nth-child(4)::before {
    content: "Change";
  }

  .results-table-wrap td:nth-child(5)::before {
    content: "Status";
  }

  .results-table-wrap td:nth-child(6)::before {
    content: "Auction";
  }

  .results-table-wrap td:nth-child(7)::before {
    content: "Bid";
  }

  .results-table-wrap td:nth-child(8)::before {
    content: "Assessed";
  }

  .results-table-wrap td:nth-child(9)::before {
    content: "Spread";
  }

  .results-table-wrap td[colspan] {
    display: block;
  }

  .results-table-wrap td[colspan]::before {
    content: none;
  }

  .property-main {
    max-width: none;
  }

  .property-sub,
  .tag,
  .money-sub,
  .change-badge,
  .mini-badge,
  .status-badge {
    width: fit-content;
    max-width: 100%;
  }
}

.app-legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 34px;
  font-size: 13px;
  opacity: 0.72;
}
.app-legal-footer a { text-decoration: none; }
.app-legal-footer a:hover { text-decoration: underline; }
body.app-mode .app-legal-footer { display: none; }
