:root {
  color-scheme: light;
  --navy: #17364a;
  --teal: #286b66;
  --muted: #5f6d73;
  --paper: #f4f5f2;
  --border: #dde3e4;
  --gold: #a98347;
  --ink: #253e4b;
  --soft: #f5f8f9;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

/* Active Listings by Model: compact field workflow, shared LPR palette. */
.active-tool { min-width: 0; }
.active-intro { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 12px 0 20px; }
.active-intro h2 { margin: 6px 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; letter-spacing: -.8px; }
.active-intro p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 15px; }
.active-intro > .button { flex: none; gap: 9px; }
#active-saved-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; color: white; background: var(--navy); font-size: 12px; }
.active-freshness { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border: 1px solid #dce6e7; border-radius: 12px; background: #edf3f1; }
.active-freshness strong, .active-freshness span { display: block; }
.active-freshness strong { font-size: 12px; line-height: 1.5; color: #355b54; }
.active-freshness span { margin-top: 3px; font-size: 11px; line-height: 1.55; color: #64766f; }
.active-freshness .text-button { flex: none; padding: 10px 2px; }
.active-freshness[data-state="stale"], .active-freshness[data-state="unknown"] { background: #faf5e9; border-color: #e9d8b7; }
.active-freshness[data-state="stale"] strong, .active-freshness[data-state="unknown"] strong { color: #775b2c; }
#active-message:empty { display: none; }
.active-discovery { display: grid; grid-template-columns: auto minmax(220px, 1fr); align-items: end; gap: 17px 24px; padding: 24px 0 16px; }
.active-type-toggle, .active-view-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #d6e0e3; border-radius: 11px; background: #e9eff0; }
.active-type-toggle button, .active-view-toggle button { min-height: 44px; padding: 10px 17px; border: 0; border-radius: 8px; color: #5b717c; background: transparent; font-size: 14px; font-weight: 650; }
.active-type-toggle [aria-pressed="true"], .active-view-toggle [aria-pressed="true"] { color: var(--navy); background: white; box-shadow: 0 2px 7px #17364a16; }
.active-model-search label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #415865; }
.active-model-search input { width: 100%; min-height: 54px; padding: 12px 15px; border: 1px solid #c7d2d8; border-radius: 10px; color: var(--navy); background: white; font-size: 16px; }
.active-check { grid-column: 1/-1; display: inline-flex; align-items: center; gap: 11px; min-height: 44px; width: fit-content; font-size: 13px; color: #455f6b; cursor: pointer; }
.active-check input { width: 21px; height: 21px; margin: 0; accent-color: var(--navy); }
.active-grid-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.active-grid-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.active-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.active-model-card { display: flex; flex-direction: column; padding: 0; min-width: 0; border: 1px solid #d8e1e3; border-radius: 15px; background: white; text-align: left; overflow: hidden; box-shadow: 0 3px 9px #17364a04; transition: border-color .15s, transform .15s; }
.active-model-card:hover { border-color: #9db6c5; transform: translateY(-2px); }
.active-model-visual { position: relative; width: 100%; height: 135px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #687c82; background: #edf1ec; border-bottom: 1px solid #e0e7e3; }
.active-model-visual::before { content: ""; position: absolute; inset: 12px; border: 1px solid #d6dfd4; border-radius: 4px; }
.active-model-icon { color: #8aa397; font-size: 45px; line-height: 1; }
.active-plan-placeholder { color: #61766b; font-size: 10px; letter-spacing: .02em; }
.active-model-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; padding: 8px; background: white; }
.active-model-card-info { width: 100%; display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 16px 15px 0; }
.active-model-card-info strong { color: var(--navy); font-size: 16px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.active-model-badge { display: inline-flex; justify-content: center; align-items: center; min-width: 27px; height: 27px; padding: 0 7px; color: #315f50; background: #eaf2e8; border-radius: 8px; font-size: 12px; font-weight: 700; flex: none; }
.active-model-badge.empty { color: #7c888d; background: #f0f3f4; }
.active-model-meta { display: block; padding: 6px 15px 17px; color: #6c7c82; font-size: 11px; line-height: 1.5; }
.active-review-note { display: block; width: 100%; min-height: 48px; margin-top: 20px; padding: 13px 16px; border: 1px solid #e5d8bb; border-radius: 10px; color: #785c2d; background: #faf6eb; font-size: 12px; line-height: 1.7; text-align: left; }
.active-back { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 0; margin: 13px 0 7px; border: 0; color: var(--teal); background: none; font-size: 14px; font-weight: 650; }
.active-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.active-results-heading h3 { margin: 5px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 400; }
.active-results-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.active-results-heading > button { flex: none; }
.active-filter-drawer { border: 1px solid #d7e1e4; border-radius: 12px; background: white; margin-bottom: 16px; }
.active-filter-drawer > summary { min-height: 56px; display: flex; align-items: center; gap: 14px; padding: 14px 17px; color: var(--navy); font-size: 14px; font-weight: 650; list-style: none; }
.active-filter-drawer > summary::before { content: "+"; width: 20px; font-size: 23px; font-weight: 400; }
.active-filter-drawer[open] > summary::before { content: "−"; }
.active-filter-drawer > summary::-webkit-details-marker { display: none; }
.active-filter-drawer > summary span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; text-align: right; line-height: 1.6; }
.active-filter-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 0 17px 18px; }
.active-filter-fields .field + .field { margin-top: 0; }
.active-filter-fields .field select { padding: 0 10px; font-size: 14px; min-height: 50px; }
.active-filter-help { grid-column: 1/-1; margin-top: 0; }
.active-filter-fields > button { width: fit-content; }
.active-result-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 17px; }
.active-sort { display: flex; align-items: center; gap: 9px; }
.active-sort label { color: var(--muted); font-size: 11px; }
.active-sort select { min-height: 48px; max-width: 230px; padding: 8px 10px; border: 1px solid #c7d2d8; border-radius: 9px; color: var(--navy); background: white; font-size: 13px; }
.active-listing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 20px; }
.active-listing-card { border: 1px solid #d7e1e5; border-radius: 15px; min-width: 0; background: white; overflow: hidden; box-shadow: 0 4px 15px #17364a05; }
.active-listing-visual { position: relative; }
.active-listing-photo { display: flex; width: 100%; align-items: center; justify-content: center; aspect-ratio: 16/10; padding: 0; border: 0; background: #e7edeb; }
.active-listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.active-photo-placeholder { color: #72847c; font-size: 12px; line-height: 1.7; padding: 20px; text-align: center; }
.active-save { min-height: 44px; padding: 10px 13px; border: 1px solid #d3dedc; border-radius: 9px; color: var(--navy); background: #fffffff5; font-size: 12px; font-weight: 650; white-space: nowrap; }
.active-save[aria-pressed="true"] { color: #315f50; background: #eef5ea; border-color: #b3cbb4; }
.active-listing-visual > .active-save { position: absolute; right: 10px; top: 10px; box-shadow: 0 2px 7px #17364a12; }
.active-listing-content { padding: 19px 18px 10px; }
.active-listing-price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.active-card-price { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; letter-spacing: -.5px; }
.active-dom { color: #6c7b82; font-size: 11px; }
.active-address-button { display: block; min-height: 44px; padding: 10px 0 4px; border: 0; color: var(--navy); background: none; font-size: 17px; font-weight: 650; line-height: 1.45; text-align: left; }
.active-card-model { margin: 4px 0 9px; color: #4f7262; font-size: 12px; }
.active-card-facts { margin: 0; color: #405966; font-size: 13px; }
.active-card-features { margin: 8px 0 0; color: #718087; font-size: 11px; }
.active-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-top: 13px; padding-top: 6px; border-top: 1px solid #e7eceb; }
.active-card-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.active-empty { display: block; grid-column: 1/-1; padding: 35px 22px; border: 1px dashed #c8d5db; border-radius: 13px; background: #f8faf9; text-align: center; }
.active-empty strong { color: var(--navy); font-size: 17px; }
.active-empty p { margin: 10px auto 0; max-width: 480px; color: var(--muted); font-size: 14px; }
.active-empty > button { margin: 16px 8px 0; }
.active-detail-heading { padding: 24px; border: 1px solid #d5e0e3; border-radius: 14px 14px 0 0; background: white; }
.active-detail-heading h3 { margin: 9px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 33px; font-weight: 400; }
.active-detail-model { color: var(--teal); font-size: 14px; margin: 0; }
.active-detail-price { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; }
.active-detail-price > strong { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 35px; font-weight: 400; }
.active-gallery { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 230px; max-height: 550px; background: #e5ede9; border-inline: 1px solid #d5e0e3; overflow: hidden; }
.active-gallery img { display: block; width: 100%; max-height: 550px; object-fit: contain; }
.active-gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; background: white; border: 1px solid #d5e0e3; font-size: 12px; }
.active-gallery-toolbar .button { font-size: 12px; }
.active-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 0; }
.active-unknown-action { display: flex; align-items: center; justify-content: center; padding: 10px; color: var(--muted); background: #e9eeed; border: 1px solid #d5e0df; border-radius: 10px; font-size: 12px; text-align: center; }
.active-detail-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 20px; }
.active-detail-facts > div { padding: 16px 13px; border: 1px solid #d9e3e5; border-radius: 10px; background: white; min-width: 0; }
.active-detail-facts dt, .active-contact-facts dt { color: var(--muted); font-size: 11px; line-height: 1.5; margin-bottom: 6px; }
.active-detail-facts dd { margin: 0; color: var(--navy); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.active-detail-section { padding: 24px; margin: 0 0 16px; border: 1px solid #d9e3e5; border-radius: 13px; background: white; }
.active-detail-section h4 { margin: 0 0 16px; color: var(--navy); font-size: 18px; }
.active-contact-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 0; }
.active-contact-facts dd { color: #3d5664; font-size: 14px; line-height: 1.65; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.active-property-description { color: #52646e; font-size: 14px; line-height: 1.9; margin: 0; white-space: pre-line; }
#active-unit-reference .result-section[aria-labelledby="mls-title"] { display: none; }
.active-plan-dialog { width: min(900px,calc(100% - 28px)); max-height: 90dvh; padding: 20px; border: 1px solid #c7d4dc; border-radius: 15px; box-shadow: 0 20px 80px #17364a30; }
.active-plan-dialog::backdrop { background: #102c3c99; }
.active-plan-dialog > img { display: block; width: 100%; height: auto; margin-top: 18px; }
.active-plan-dialog .viewer-header h2 { font-size: 21px; }
.active-map { position: relative; height: 490px; border: 1px solid #cbd8dc; border-radius: 14px; overflow: hidden; background: #e1e9df; }
.active-map-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.active-map-viewport:active { cursor: grabbing; }
.active-map-viewport:focus-visible { outline-offset: -4px; }
.active-map-tiles, .active-map-markers { position: absolute; inset: 0; pointer-events: none; }
.active-map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
.active-map-marker { position: absolute; transform: translate(-50%,-100%); min-width: 49px; min-height: 44px; padding: 8px 9px; border: 2px solid white; border-radius: 11px 11px 11px 0; background: var(--navy); color: white; box-shadow: 0 2px 6px #17364a38; font-size: 11px; font-weight: 700; pointer-events: auto; white-space: nowrap; }
.active-map-marker:hover, .active-map-marker:focus { background: #2b7066; z-index: 3; }
.active-map-controls { position: absolute; display: grid; right: 12px; top: 12px; gap: 6px; z-index: 4; }
.active-map-controls button { min-width: 44px; min-height: 44px; border: 1px solid #c7d3d7; border-radius: 8px; color: var(--navy); background: #fffffff5; font-size: 20px; box-shadow: 0 2px 5px #17364a0d; }
.active-map-controls button:last-child { font-size: 12px; font-weight: 650; }
.active-map-attribution { position: absolute; bottom: 0; right: 0; min-height: 24px; padding: 4px 6px; color: #355468; background: #fffffff0; font-size: 10px; z-index: 3; }
.active-map-summary { position: absolute; left: 12px; right: 12px; bottom: 32px; max-height: 230px; overflow-y: auto; padding: 18px 38px 6px 14px; border: 1px solid #b8cbd0; border-radius: 12px; background: white; box-shadow: 0 4px 22px #17364a30; z-index: 5; }
.active-map-close { position: absolute; right: 3px; top: 2px; width: 44px; height: 44px; border: 0; color: var(--muted); background: none; font-size: 26px; }
.active-map-summary-item { display: grid; gap: 7px; width: 100%; min-height: 70px; padding: 3px 0 14px; border: 0; color: var(--navy); background: white; text-align: left; }
.active-map-summary-item + .active-map-summary-item { padding-top: 14px; border-top: 1px solid #e0e7e8; }
.active-map-summary-item strong { font-size: 14px; line-height: 1.4; }
.active-map-summary-item span { color: #5b7374; font-size: 12px; line-height: 1.6; }
#active-map-area { margin-bottom: 22px; }
#active-map-status:empty { display: none; }
@media(max-width:660px) {
  .active-intro { align-items: flex-start; margin-top: 10px; gap: 10px; }
  .active-intro h2 { font-size: 27px; line-height: 1.2; max-width: 240px; }
  .active-intro .eyebrow { font-size: 8px; letter-spacing: .1em; }
  .active-intro p:not(.eyebrow) { font-size: 13px; }
  .active-intro > .button { min-height: 46px; padding: 10px 11px; font-size: 12px; margin-top: 22px; }
  .active-freshness { align-items: flex-start; gap: 9px; padding: 11px 13px; }
  .active-freshness .text-button { font-size: 12px; }
  .active-freshness strong { font-size: 11px; }
  .active-freshness span { font-size: 10px; }
  .active-discovery { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; }
  .active-type-toggle { width: 100%; }
  .active-type-toggle button { flex: 1; }
  .active-check { margin-top: -4px; font-size: 12px; }
  .active-grid-heading { align-items: center; gap: 10px; }
  .active-grid-heading p { font-size: 10px; }
  .active-grid-heading .text-button { font-size: 11px; }
  .active-model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .active-model-visual { height: 107px; }
  .active-model-card-info { padding: 13px 11px 0; gap: 4px; }
  .active-model-card-info strong { font-size: 14px; }
  .active-model-badge { min-width: 24px; height: 24px; font-size: 11px; padding: 0 5px; }
  .active-model-meta { padding: 5px 11px 13px; font-size: 10px; }
  .active-results-heading { align-items: flex-start; }
  .active-results-heading h3 { font-size: 29px; }
  .active-results-heading > button { min-height: 44px; padding: 10px; font-size: 11px; margin-top: 20px; }
  .active-filter-drawer > summary { gap: 7px; padding: 12px 13px; }
  .active-filter-drawer > summary span { font-size: 10px; }
  .active-filter-fields { gap: 14px 12px; padding: 0 13px 13px; }
  .active-filter-fields .field label { font-size: 12px; }
  .active-filter-fields .field select { font-size: 13px; height: 50px; }
  .active-result-toolbar { gap: 9px; }
  .active-view-toggle { padding: 3px; gap: 0; }
  .active-view-toggle button { padding: 9px 15px; font-size: 12px; }
  .active-sort { gap: 4px; }
  .active-sort label { display: none; }
  .active-sort select { max-width: 190px; font-size: 12px; padding: 8px; }
  .active-listing-grid { grid-template-columns: 1fr; gap: 17px; }
  .active-listing-photo { aspect-ratio: 16/9; }
  .active-listing-content { padding: 18px 17px 9px; }
  .active-card-price { font-size: 30px; }
  .active-card-facts { font-size: 14px; }
  .active-detail-heading { padding: 20px 18px; }
  .active-detail-heading h3 { font-size: 29px; }
  .active-detail-price > strong { font-size: 32px; }
  .active-gallery { min-height: 200px; }
  .active-detail-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .active-detail-section { padding: 21px 18px; }
  .active-contact-facts { grid-template-columns: 1fr; gap: 18px; }
  .active-detail-actions { gap: 10px; }
  .active-detail-actions .button { font-size: 12px; padding: 11px 9px; }
  .active-map { height: min(510px,65dvh); min-height: 330px; }
  .workspace-nav { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; padding-bottom: 5px; }
  .workspace-link { flex: none; font-size: 12px; padding: 12px 13px; }
}
@media(max-width:360px) {
  .active-intro h2 { font-size: 24px; }
  .active-intro > .button { padding: 8px; gap: 5px; }
  .active-model-card-info strong { font-size: 13px; }
  .active-model-visual { height: 94px; }
  .active-sort select { max-width: 165px; font-size: 11px; }
  .active-view-toggle button { padding-inline: 12px; }
}
@media(prefers-reduced-motion:reduce) { .active-model-card { transition: none; } }
* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #b68b43;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
button:disabled, input:disabled, select:disabled { opacity: .58; cursor: wait; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 12px 16px; color: white; background: var(--navy); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { max-width: 1120px; margin: 0 auto; min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 40px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 20px; min-width: 0; color: var(--navy); text-decoration: none; }
.lpr-brand-logo { display: block; width: 98px; height: auto; flex: none; }
.brand-product { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 1px solid #d7dede; }
.brand-product strong { font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.5px; }
.brand-product > span { font-size: 11px; line-height: 1.5; color: var(--muted); letter-spacing: .035em; }
.private-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 7px; padding: 7px 11px; border: 1px solid #d8dfd8; border-radius: 999px; background: #edf1e9; color: #4c6557; font-size: 11px; line-height: 1.5; font-weight: 600; white-space: nowrap; }
.private-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #52765e; }
main { max-width: 1000px; margin: 0 auto; padding: 36px 40px 28px; }
.intro { margin: 0 auto 26px; text-align: center; }
.eyebrow { margin: 0; font-size: 10px; line-height: 1.6; letter-spacing: .16em; font-weight: 700; color: var(--teal); }
h1 { margin: 9px 0 12px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 43px; line-height: 1.15; font-weight: 400; letter-spacing: -1.4px; }
h1 > span { color: var(--gold); }
.intro-copy { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
h2 { margin: 0 0 14px; color: var(--navy); font-size: 24px; line-height: 1.3; letter-spacing: -.65px; font-weight: 650; }
h3 { margin: 0; color: var(--navy); font-size: 19px; line-height: 1.4; letter-spacing: -.3px; font-weight: 650; }
p { line-height: 1.65; }
.panel { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px #18384d07; }
.auth-panel { max-width: 500px; margin: 0 auto 22px; padding: 30px; }
.auth-panel > .eyebrow { margin-bottom: 10px; }
.auth-panel > p { margin-block: 0 20px; color: var(--muted); font-size: 14px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel-heading h2 { margin: 0; font-size: 22px; }
.section-note { font-size: 11px; color: var(--muted); line-height: 1.5; }
.panel-copy { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.field { min-width: 0; }
.field + .field { margin-top: 18px; }
.field label { display: block; margin-bottom: 8px; color: #415865; font-size: 13px; line-height: 1.5; font-weight: 600; }
.field input, .field select { width: 100%; min-width: 0; height: 54px; padding: 0 14px; border: 1px solid #c7d2d8; border-radius: 10px; color: var(--navy); background: #fbfcfc; font-size: 16px; box-shadow: 0 1px 2px #18384d03 inset; }
.field input::placeholder { color: #74838d; opacity: 1; }
.field input:focus, .field select:focus { background: white; border-color: var(--navy); }
.field input[aria-invalid="true"] { border-color: #b25440; background: #fffafa; }
.field-help { margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; line-height: 1.5; font-weight: 650; text-align: center; text-decoration: none; }
.primary { color: white; background: var(--navy); border-color: var(--navy); box-shadow: 0 3px 8px #17364a10; }
.primary:hover:not(:disabled) { background: #234c65; border-color: #234c65; }
.secondary { color: var(--navy); background: white; border-color: #cdd8df; }
.secondary:hover:not(:disabled) { background: #eff4f7; border-color: #a8bdca; }
.full-width { width: 100%; }
form > .full-width { margin-top: 22px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 0; color: var(--teal); background: none; border: 0; font-size: 13px; line-height: 1.5; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.auth-panel > .text-button { margin-top: 5px; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.privacy-note { margin: 17px 0 0 !important; padding-top: 17px; border-top: 1px solid #e6ebed; color: var(--muted); font-size: 12px !important; line-height: 1.65 !important; }
.code-input { font-size: 25px !important; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.secret-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; letter-spacing: .035em; }
.enrollment-box { margin-top: 20px; padding-top: 2px; }
.enrollment-box > p:first-child { margin-top: 0; }
.enrollment-box .field { margin-top: 16px; }
.remember-choice { display: flex; align-items: center; gap: 11px; min-height: 44px; margin-top: 15px; color: var(--navy); font-size: 13px; line-height: 1.6; cursor: pointer; }
.remember-choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--navy); }
.remember-choice + .field-help { margin-top: 2px; padding-left: 31px; }
.phone-code-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
#use-phone { display: flex; }
#phone-recaptcha { margin-top: 10px; }
#phone-resend-help:empty { display: none; }
.status-message, .notice { max-width: 100%; padding: 13px 15px; margin: 0 0 20px; border: 1px solid #cfded8; border-radius: 10px; color: #375c51; background: #edf5f0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
#status { max-width: 500px; margin-inline: auto; }
.status-message:empty { display: none; }
.status-message[data-state="error"], .status-message[data-kind="error"], .notice { color: #8f4233; background: #fff2ec; border-color: #ebcfc4; }
.status-message[data-state="loading"], .status-message[data-kind="loading"] { color: #486574; background: #edf3f7; border-color: #d6e2e9; }
.lookup-panel .status-message, .broker-panel .status-message { margin: 16px 0 0; }
[aria-busy="true"] { cursor: progress; }
.button[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: busy-spin .8s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
.session-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 19px; padding: 0 2px; }
.session-label { color: var(--muted); font-size: 9px; line-height: 1.6; letter-spacing: .13em; font-weight: 700; }
#session-email { margin: 3px 0 0; color: var(--navy); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.session-actions { display: flex; align-items: center; gap: 19px; flex-shrink: 0; }
.session-actions .button { min-height: 44px; padding: 9px 14px; font-size: 12px; }
.session-actions .text-button { font-size: 12px; }
body[data-session="signed-in"] .intro { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
body[data-session="signed-in"] main { padding-top: 26px; }
body[data-session="signed-in"] #status { max-width: none; }
.lookup-panel { padding: 25px 28px; }
.lookup-panel .panel-heading { margin-bottom: 20px; }
.lookup-panel .panel-heading h2 { font-size: 25px; }
.lookup-panel .section-note { border: 1px solid #e0e7e8; background: #f7f9f8; padding: 5px 9px; border-radius: 7px; font-size: 10px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 14px; align-items: end; }
.field-row .field + .field { margin-top: 0; }
.field-row input { height: 56px; font-size: 19px; }
.field-row #unit-search { text-transform: uppercase; letter-spacing: .02em; }
.field-row .button { height: 56px; }
.lookup-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; min-width: 0; }
.towers-choice { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 0 14px; border: 1px solid #d4dfe4; border-radius: 10px; background: #f6f9fa; color: var(--navy); font-size: 13px; line-height: 1.5; font-weight: 600; cursor: pointer; }
.towers-choice:has(:checked) { border-color: #9eb6c6; background: #eaf1f6; }
.field-row .towers-choice input { width: 20px; height: 20px; margin: 0; padding: 0; flex: none; accent-color: var(--navy); }
.search-guide { margin-top: 14px; border-top: 1px solid #e6ecee; padding-top: 7px; color: var(--muted); font-size: 12px; }
.search-guide summary { width: fit-content; min-height: 44px; display: flex; align-items: center; gap: 8px; color: #426172; font-weight: 600; list-style: none; }
.search-guide summary::-webkit-details-marker { display: none; }
.search-guide summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border: 1px solid #cbd8df; border-radius: 50%; color: var(--navy); font-size: 15px; font-weight: 400; }
.search-guide[open] summary::before { content: "−"; }
.search-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; padding: 5px 0 13px 27px; }
.search-guide-grid > div { display: grid; gap: 4px; line-height: 1.6; min-width: 0; }
.search-guide-grid strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.search-guide-grid span { overflow-wrap: anywhere; }
.result-panel { margin-top: 22px; border: 1px solid #d9e1e5; border-radius: var(--radius); background: white; box-shadow: 0 8px 30px #18384d07; overflow: hidden; scroll-margin-top: 20px; }
.result-panel:focus { outline: none; }
.result-panel:focus-visible { outline: 3px solid #b68b43; outline-offset: 3px; }
.property-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-bottom: 1px solid #dbe4e9; background: linear-gradient(115deg, #edf3f6, #f9faf8); }
.property-heading .eyebrow { color: #526e7b; font-size: 9px; }
.property-heading h2 { margin: 8px 0; font-family: Georgia, "Times New Roman", serif; font-size: 41px; line-height: 1.1; font-weight: 400; letter-spacing: -.7px; }
.property-street { margin: 0; color: #526975; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.record-badge { flex-shrink: 0; color: #537060; padding: 7px 10px; border: 1px solid #d1dfd4; border-radius: 999px; background: #f5f8f2; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.navigation-actions { display: flex; align-items: center; gap: 16px; padding: 17px 28px; border-bottom: 1px solid #e8edef; }
.navigation-actions .button { flex-shrink: 0; min-height: 44px; font-size: 12px; }
.navigation-actions p { margin: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 0; padding: 24px 28px 10px; }
.facts-grid > div { min-width: 0; padding: 16px; border: 1px solid #e3e9ec; border-radius: 11px; background: #fafcfc; }
.facts-grid > div:first-child, .facts-grid > div:nth-child(6) { border-color: #d6e2e9; background: #f0f5f8; }
.facts-grid dt { margin-bottom: 7px; color: #5c707b; font-size: 11px; line-height: 1.5; }
.facts-grid dd { margin: 0; color: var(--navy); font-size: 19px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.facts-grid > div:first-child dd, .facts-grid > div:nth-child(6) dd { font-size: 22px; font-weight: 650; }
.facts-grid .not-recorded { color: var(--muted); font-size: 14px; font-weight: 400; }
.result-section { padding: 25px 28px; border-top: 1px solid #e3e9ec; }
.result-section > h3 { margin-bottom: 10px; }
#mls-description { margin: 13px 0 0; padding: 11px 13px; border: 1px solid #dce6eb; border-radius: 9px; background: #f4f8fa; }
#mls-description:empty { display: none; }
#mls-description[data-state="stale"], #mls-description[data-state="unknown"] { color: #775b2c; background: #faf5e9; border-color: #e9d8b7; }
.mls-refresh-label { display: block; color: var(--navy); font-size: 12px; font-weight: 600; }
.mls-refresh-help { display: block; margin-top: 3px; font-size: 12px; }
#mls-description[data-state="stale"] .mls-refresh-label, #mls-description[data-state="unknown"] .mls-refresh-label { color: #775b2c; }
.mls-listings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.mls-card, .mls-listing-card { min-width: 0; padding: 19px; border: 1px solid #dce8df; border-radius: 12px; background: #f7faf6; }
.mls-listing-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.listing-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #d2e6d5; border-radius: 6px; color: #386347; background: #e8f4e8; font-size: 11px; line-height: 1.5; font-weight: 650; }
.listing-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.listing-status[data-status="ComingSoon"] { color: #7f602b; background: #f6ebcf; border-color: #ead9ac; }
.listing-type { color: #586f61; font-size: 11px; line-height: 1.5; }
.listing-price { margin: 17px 0 9px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 35px; line-height: 1.15; font-weight: 400; letter-spacing: -.7px; overflow-wrap: anywhere; }
.listing-reference { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.mls-no-match { grid-column: 1/-1; margin: 0; padding: 17px; border: 1px solid #e0e7ea; border-radius: 10px; color: #5e707b; background: #f7f9fa; font-size: 13px; line-height: 1.7; }
.listing-details { display: grid; gap: 13px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #dce5df; }
.listing-details > div { min-width: 0; }
.listing-details dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.listing-details dd { margin: 0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.listing-feed-note { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.matrix-details { margin-top: 19px; padding-top: 17px; border-top: 1px solid #dce5df; }
.matrix-details h4 { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.matrix-message { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.matrix-message:empty { display: none; }
.matrix-source { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.matrix-source > span { display: block; }
.matrix-details[data-state="stale"] .matrix-message, .matrix-details[data-state="aging"] .matrix-message { color: #775b2c; }
.matrix-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; margin-top: 13px; padding-top: 13px; }
.matrix-facts > div:last-child { grid-column: 1/-1; }
.matrix-details > .text-button { width: 100%; margin-top: 8px; text-align: left; }
.listing-photo { margin: 18px 0 0; }
.listing-photo img { display: block; width: 100%; max-height: 300px; border-radius: 8px; object-fit: cover; }
.listing-photo figcaption { margin-top: 8px; }
.media-reference-note { margin-bottom: 18px; }
.media-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.media-action { min-width: 0; padding: 16px; border: 1px solid #dce5e9; border-radius: 12px; background: #f9fbfc; }
.media-action h4 { margin: 0 0 13px; color: var(--navy); font-size: 14px; line-height: 1.5; font-weight: 650; }
.media-action > button.button { width: 100%; }
.media-action > .text-button { width: 100%; margin-top: 4px; font-size: 12px; }
.document-preview { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; min-height: 170px; margin-bottom: 14px; padding: 0; border: 1px solid #dce5e9; border-radius: 8px; background: white; color: var(--muted); overflow: hidden; }
.document-preview:disabled { opacity: 1; cursor: default; }
.document-preview img { display: block; width: 100%; height: 245px; object-fit: contain; background: white; }
.document-preview .field-help { padding: 12px; margin: 0; text-align: center; }
.document-preview .field-help:empty { display: none; }
.document-unavailable { min-height: 160px; background: #f0f3f5; border-style: dashed; }
.workspace-nav { display: flex; align-items: stretch; gap: 5px; width: fit-content; max-width: 100%; margin: 0 0 21px; padding: 5px; border: 1px solid #dce4e7; border-radius: 12px; background: #e9eef0; }
.workspace-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; color: #536b78; background: none; font-size: 13px; font-weight: 600; }
.workspace-link[aria-current="page"] { color: var(--navy); background: white; border-color: #d8e1e6; box-shadow: 0 1px 3px #17364a09; }
.admin-link-badge { padding: 2px 5px; border-radius: 4px; color: #85652f; background: #f3ead8; font-size: 9px; font-weight: 650; }
.broker-panel { margin-top: 0; }
.broker-panel > .eyebrow { margin-bottom: 9px; }
.analytics-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.analytics-heading .eyebrow { margin-bottom: 7px; }
.analytics-heading h2 { margin-bottom: 9px; font-size: 29px; }
.analytics-heading .panel-copy { max-width: 480px; margin-bottom: 0; }
.analytics-private-label { flex-shrink: 0; padding: 6px 9px; border: 1px solid #d5e4dc; border-radius: 7px; color: #4c6d5b; background: #f1f7f2; font-size: 10px; line-height: 1.6; }
.analytics-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 25px 0 0; padding-top: 23px; border-top: 1px solid #e1e8eb; }
.analytics-toolbar .field { flex: 0 1 180px; }
.analytics-toolbar .field select { height: 48px; font-size: 14px; }
.analytics-toolbar .button { min-height: 48px; }
.analytics-updated { flex: 1 1 180px; margin: 0 0 3px; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: right; }
.analytics-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-top: 26px; }
.analytics-metric { min-width: 0; padding: 18px 16px; border: 1px solid #dce5e9; border-radius: 12px; background: #f7fafb; }
.analytics-metric:first-child { border-color: #bccfd9; background: #edf4f7; }
.analytics-metric > span { display: block; color: #526d7b; font-size: 11px; line-height: 1.6; }
.analytics-metric > strong { display: block; margin: 10px 0 8px; color: var(--navy); font-size: 34px; line-height: 1.1; letter-spacing: -1px; font-weight: 600; font-variant-numeric: tabular-nums; }
.analytics-metric > small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.analytics-trend { margin-top: 26px; padding: 21px; border: 1px solid #e0e7ea; border-radius: 12px; background: white; }
.analytics-trend .panel-heading { gap: 10px; flex-wrap: wrap; margin-bottom: 0; }
.analytics-trend .field-help { margin-top: 8px; font-size: 11px; }
.analytics-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; font-size: 10px; color: var(--muted); }
.analytics-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-legend > span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--navy); }
.analytics-legend .legend-documents::before { background: #73a49a; }
.analytics-chart { display: flex; gap: 4px; align-items: end; height: 132px; margin-top: 24px; padding-top: 4px; border-bottom: 1px solid #cfdde3; background: repeating-linear-gradient(to top,transparent 0,transparent 31px,#e9eff2 31px,#e9eff2 32px); }
.analytics-day { display: flex; flex: 1; flex-direction: column; justify-content: end; align-items: center; min-width: 0; height: 100%; gap: 1px; }
.activity-bar { display: block; width: 100%; max-width: 48px; min-height: 0; background: var(--navy); border-radius: 2px 2px 0 0; }
.activity-bar-documents { background: #73a49a; }
.analytics-chart-dates { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.analytics-accounts { margin-top: 28px; }
.analytics-accounts > .panel-heading { margin-bottom: 18px; }
.analytics-accounts .field-help { margin-top: 6px; font-size: 12px; }
.analytics-users { display: grid; gap: 12px; }
.analytics-account { min-width: 0; padding: 19px; border: 1px solid #dce5e9; border-radius: 12px; background: #fafcfc; }
.analytics-account-heading { display: flex; align-items: center; gap: 11px; }
.account-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #426778; background: #e7eff2; font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.account-identity { display: grid; gap: 4px; flex: 1; min-width: 0; }
.account-identity strong { color: var(--navy); font-size: 13px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.account-identity > span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.account-role { align-self: start; flex: none; margin-top: 2px; padding: 3px 7px; border: 1px solid #d6e3e7; border-radius: 5px; color: #55727d; background: #eff5f7; font-size: 10px; line-height: 1.5; }
.account-role[data-role="broker_admin"] { border-color: #e6d8ba; color: #83682f; background: #f8f1e4; }
.account-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 19px 0 0; padding: 15px 0; border-block: 1px solid #e3eaed; }
.account-stats > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.account-stats strong { color: var(--navy); font-size: 21px; line-height: 1.2; font-weight: 600; }
.account-stats span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.account-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.account-footer small { color: var(--muted); font-size: 10px; line-height: 1.7; }
.account-footer .text-button { flex-shrink: 0; min-height: 44px; font-size: 11px; }
.analytics-method-note { margin: 15px 0 0; padding: 12px 14px; border-left: 2px solid #c7d7dd; color: var(--muted); background: #f5f8f9; font-size: 11px; line-height: 1.7; }
.activity-details { margin-top: 28px; border-top: 1px solid #dde6ea; padding-top: 8px; }
.activity-details > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--navy); font-size: 13px; font-weight: 600; list-style: none; }
.activity-details > summary::-webkit-details-marker { display: none; }
.activity-details > summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid #cbd8df; border-radius: 6px; font-size: 16px; font-weight: 400; }
.activity-details[open] > summary::before { content: "−"; }
.activity-details-content { padding-top: 14px; }
.activity-details-content > h3 { margin-bottom: 8px; }
.audit-form { display: grid; grid-template-columns: 1.3fr 1fr 110px; align-items: end; gap: 16px; }
.audit-form .field + .field { margin: 0; }
.audit-form > .button { grid-column: 1/-1; justify-self: start; }
.audit-results { max-width: 100%; overflow: auto; margin: 18px 0; }
.audit-results:empty { margin: 0; }
.audit-results table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.audit-results th, .audit-results td { padding: 13px 10px; border-bottom: 1px solid #e1e7eb; vertical-align: top; line-height: 1.6; overflow-wrap: anywhere; }
.audit-results th { color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.audit-results td { max-width: 190px; }
.audit-row { display: grid; gap: 7px; padding: 16px 0; border-top: 1px solid #e1e7eb; font-size: 13px; overflow-wrap: anywhere; }
.audit-row > span, .audit-row > small { color: var(--muted); }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding: 20px 2px 0; border-top: 1px solid var(--border); }
.page-footer > span { color: #546c79; font-size: 9px; line-height: 1.5; letter-spacing: .15em; font-weight: 700; white-space: nowrap; }
.page-footer p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: right; }
.document-dialog { width: min(1120px, calc(100vw - 32px)); height: min(960px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #cbd7df; border-radius: 16px; background: white; color: var(--navy); overflow: hidden; box-shadow: 0 24px 90px #071f365c; }
.document-dialog[open] { display: flex; flex-direction: column; }
.document-dialog::backdrop { background: #102b3cc2; backdrop-filter: blur(3px); }
.viewer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.viewer-header h2 { margin: 0; font-size: 20px; line-height: 1.5; }
.viewer-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.icon-button { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #d4dfe6; border-radius: 9px; background: #f1f5f7; color: var(--navy); font-size: 28px; line-height: 1; }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 7px 24px; border-block: 1px solid #dfe7ec; background: #f7f9fa; }
.document-zoom-controls { display: flex; align-items: center; gap: 6px; }
.document-zoom-controls button { min-width: 44px; min-height: 44px; padding: 6px 10px; border: 1px solid #cbd8df; border-radius: 8px; background: white; color: var(--navy); font: inherit; font-size: 12px; cursor: pointer; }
.document-zoom-controls output { min-width: 44px; color: #516b79; font-size: 12px; text-align: center; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); font-size: 12px; line-height: 1.6; text-underline-offset: 3px; }
.document-viewport { flex: 1; min-height: 0; padding: 18px; overflow: auto; background: #e7edf1; }
.document-viewport img { display: block; width: 100%; max-width: none; height: auto; margin: 0 auto; background: white; }
.document-viewport iframe { display: block; width: 100%; height: 100%; min-height: 450px; border: 0; background: white; }
body:has(.document-dialog[open]) { overflow: hidden; }
@media (max-width: 700px) {
  .site-header { min-height: 94px; padding: 13px 22px; gap: 14px; }
  .lpr-brand-logo { width: 78px; }
  .brand { gap: 13px; }
  .brand-product { gap: 5px; padding-left: 13px; }
  .brand-product strong { font-size: 18px; }
  .brand-product > span { font-size: 10px; }
  .private-badge { padding: 6px 8px; font-size: 10px; }
  main { padding: 28px 22px 24px; }
  .intro { margin-bottom: 23px; }
  h1 { font-size: 36px; letter-spacing: -1px; }
  .intro-copy { max-width: 300px; margin-inline: auto; font-size: 13px; }
  .panel { padding: 23px 21px; border-radius: 15px; }
  .auth-panel { padding: 25px 23px; }
  .panel-heading h2 { font-size: 21px; }
  .section-note { font-size: 10px; text-align: right; }
  .session-panel { align-items: flex-start; gap: 11px; }
  .session-actions { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .session-actions .button { padding-inline: 11px; }
  .session-actions .text-button { font-size: 11px; }
  .lookup-panel .panel-heading h2 { font-size: 23px; }
  .lookup-panel .panel-heading { margin-bottom: 17px; }
  .field-row { grid-template-columns: 1fr; gap: 12px; }
  .field-row .button { width: 100%; height: 52px; }
  .lookup-entry { gap: 10px; }
  .towers-choice { padding-inline: 11px; }
  .search-guide-grid { gap: 13px; padding-left: 25px; }
  .property-heading { padding: 23px 21px; }
  .property-heading h2 { font-size: 37px; }
  .property-street { font-size: 13px; }
  .record-badge { font-size: 9px; padding: 6px 8px; }
  .navigation-actions { align-items: flex-start; flex-direction: column; gap: 9px; padding: 17px 21px; }
  .navigation-actions .button { width: 100%; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 21px 21px 9px; }
  .facts-grid > div { padding: 13px; }
  .facts-grid dt { font-size: 11px; }
  .facts-grid dd { font-size: 18px; }
  .facts-grid > div:first-child dd, .facts-grid > div:nth-child(6) dd { font-size: 20px; }
  .result-section { padding: 23px 21px; }
  .mls-listings { grid-template-columns: 1fr; }
  .media-actions { grid-template-columns: 1fr; gap: 14px; }
  .document-preview img { height: 275px; }
  .workspace-nav { width: 100%; gap: 3px; }
  .workspace-link { flex: 1; padding-inline: 9px; font-size: 12px; }
  .analytics-heading { display: block; }
  .analytics-heading h2 { font-size: 26px; }
  .analytics-private-label { display: inline-flex; margin-top: 13px; }
  .analytics-toolbar { gap: 11px; margin-top: 21px; padding-top: 19px; }
  .analytics-toolbar .field { flex: 1; min-width: 110px; }
  .analytics-toolbar .button { padding-inline: 12px; font-size: 12px; }
  .analytics-updated { flex-basis: 100%; margin: 0; text-align: left; }
  .analytics-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 22px; }
  .analytics-metric { padding: 16px 13px; }
  .analytics-metric > strong { font-size: 31px; }
  .analytics-trend { padding: 17px 14px; margin-top: 20px; }
  .analytics-trend h3, .analytics-accounts h3 { font-size: 18px; }
  .analytics-legend { gap: 10px; }
  .analytics-chart { gap: 2px; height: 120px; }
  .analytics-account { padding: 15px; }
  .analytics-account-heading { gap: 9px; flex-wrap: wrap; }
  .account-identity { flex-basis: calc(100% - 45px); }
  .account-role { margin: 1px 0 0 45px; }
  .account-stats { gap: 8px; margin-top: 15px; }
  .account-stats > div { display: grid; gap: 6px; }
  .account-footer { gap: 7px; align-items: start; }
  .account-footer small { padding-top: 10px; }
  .account-footer .text-button { min-height: 44px; }
  .audit-form { grid-template-columns: 1fr 1fr; gap: 15px 12px; }
  .audit-form .field:first-child { grid-column: 1/-1; }
  .audit-form > .button { width: 100%; }
  .page-footer { flex-direction: column; gap: 9px; padding-top: 19px; text-align: center; }
  .page-footer p { text-align: center; }
  .document-dialog { width: calc(100vw - 14px); height: calc(100dvh - 16px); border-radius: 12px; }
  .viewer-header { padding: 16px; gap: 12px; }
  .viewer-header h2 { font-size: 17px; }
  .document-toolbar { padding: 7px 16px; gap: 5px; }
  .document-viewport { padding: 10px; }
  .document-viewport iframe { min-height: 330px; }
}
@media (max-width: 410px) {
  .site-header { padding-inline: 16px; }
  .lpr-brand-logo { width: 67px; }
  .brand { gap: 10px; }
  .brand-product { padding-left: 10px; }
  .brand-product strong { font-size: 16px; }
  .brand-product > span { max-width: 90px; font-size: 9px; line-height: 1.4; }
  .private-badge { padding: 5px 7px; font-size: 9px; gap: 5px; }
  main { padding-inline: 15px; }
  h1 { font-size: 33px; }
  .panel { padding-inline: 18px; }
  .panel-heading { gap: 10px; }
  .session-panel { flex-wrap: wrap; }
  .session-actions { width: 100%; justify-content: space-between; }
  .towers-choice { padding-inline: 9px; gap: 7px; font-size: 12px; }
  .field-row input { font-size: 17px; }
  .record-badge { display: none; }
  .facts-grid { gap: 8px; padding-inline: 17px; }
  .facts-grid > div { padding: 12px 10px; }
  .facts-grid dt { font-size: 11px; }
  .facts-grid dd { font-size: 17px; }
  .facts-grid > div:first-child dd, .facts-grid > div:nth-child(6) dd { font-size: 19px; }
  .property-heading, .navigation-actions, .result-section { padding-inline: 18px; }
  .search-guide-grid { grid-template-columns: 1fr; }
  .document-zoom-controls { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 660px) {
  #workspace-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; overflow: visible; white-space: normal; }
  #workspace-nav .workspace-link { width: 100%; min-width: 0; min-height: 52px; white-space: normal; padding: 9px 10px; font-size: 12px; line-height: 1.45; }
  #workspace-nav #admin-view-button { grid-column: 1/-1; }
}
