
main.container { padding-top: 28px; padding-bottom: max(48px, env(safe-area-inset-bottom)); }
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--action); outline-offset: 3px;
}
#mainContent:focus { outline: none; }
:is(p, li, dd, td, th) { overflow-wrap: anywhere; }
:is(input, select, textarea) { max-width: 100%; }
button { touch-action: manipulation; }
button:disabled { opacity: .5; cursor: not-allowed; }
.small { font-size: 13px; } .xsmall { font-size: 12px; }
.muted { color: var(--muted); }
.eyebrow, .workspace-heading .eyebrow { color: var(--action); font-size: 11px; letter-spacing: .14em; }
.topbar { background: #ffffff; padding-top: 23px; }
.brand-home { display: flex; align-items: center; color: var(--text); border: 0; }
.brand-home:hover { color: var(--text); }
.topbar-title { min-width: 225px; }
.topbar-title p { font-size: 9px; color: var(--muted); }
.tab-nav { gap: 20px; scrollbar-width: thin; scrollbar-color: #c6c6c6 transparent; }
.tab-btn { font-size: 13px; min-height: 44px; color: var(--muted); }
.tab-btn:hover { background: transparent; color: var(--text); border-bottom-color: #c3c3c3; }
.tab-btn.active, .tab-btn[aria-current=page] { color: var(--text); border-bottom-color: var(--action); background: transparent; }
.topbar-actions .btn-pill { min-height: 40px; font-size: 12px; }
.topbar-actions #refreshBtn { }
.watchlist-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; color: var(--text); }
.market-scope-bar { gap: 18px; }
.market-scope-btn { min-height: 36px; font-size: 11px; }
.market-scope-bar p { font-size: 11px; color: var(--muted); }
.topbar-clock:has(#refreshMsg:not(:empty)) { display: flex; padding-top: 0; padding-bottom: 10px; }
.topbar-clock .now { display: none; }
.mobile-dock { display: none !important; }
.workspace-heading {
  background: #ffffff; border: 1px solid var(--border); border-left: 3px solid var(--action);
  border-radius: 8px; padding: 27px 30px; margin-bottom: 25px;
}
.workspace-heading h2 { font-size: clamp(25px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.18; margin: 5px 0 12px; color: var(--text); }
.workspace-heading p { margin: 0; color: var(--muted); max-width: 78ch; }
.section-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: -7px 0 25px; font-size: 13px; }
.section-links a { color: var(--action); text-decoration: underline; text-underline-offset: 4px; }
.atlas-hero { border: 0; border-radius: 9px; }
.atlas-copy h2 { font-size: clamp(46px, 5.5vw, 70px); }
.atlas-copy > p:not(.atlas-kicker) { font-size: 14px; color: #d9d9d9; }
.atlas-kicker { font-size: 11px; }
.atlas-cta { min-height: 48px; font-size: 13px; border-radius: 4px; }
.atlas-map-label { font-size: 10px; color: #cacaca; }
.atlas-caption { font-size: 12px; color: var(--muted); padding: 15px 0; }
.atlas-reset { min-height: 40px; font-size: 12px; border-radius: 4px; }
.discovery-map-actions button { min-height: 40px; font-size: 12px; box-shadow: 0 3px 12px #00000022; }
.atlas-map .leaflet-control-attribution { max-width: 100%; font-size: 10px; }
.collection-heading > p { font-size: 13px; color: var(--muted); }
.section-index { font-size: 11px; color: var(--muted); }
.collection-switch { border-radius: 8px; overflow: hidden; background: #ffffff; }
.collection-choice { min-height: 150px; gap: 18px; padding: 22px; }
.collection-choice strong { font-size: 18px; line-height: 1.4; }
.choice-top { font-size: 11px; color: var(--muted); }
.choice-top b { color: var(--text); font-size: 14px; }
.choice-bottom { font-size: 10px; color: var(--muted); }
.collection-choice.is-active .choice-top { color: #c4c4c4; }
.collection-choice.is-active .choice-bottom { color: #cfcfcf; }
.collection-toolbar h3 { font-size: 25px; }
.collection-toolbar p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.discovery-grid { gap: 26px; align-items: start; }
.discovery-card { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px #24242404; }
.discovery-card:hover { border-color: #bebebe; box-shadow: var(--shadow); }
.discovery-card h4 { font-size: 19px; line-height: 1.4; min-height: 54px; }
.discovery-card-body { padding: 20px 21px 0; }
.discovery-card-actions { gap: 8px; font-size: 12px; }
.card-location { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.card-location span { color: var(--muted); }
.card-numbers strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.card-numbers small { font-size: 12px; color: var(--muted); }
.card-date { font-size: 11px; color: var(--muted); max-width: 130px; }
.image-caption { font-size: 10px; text-shadow: 0 1px 4px #000000; }
.card-bottom { font-size: 11px; color: var(--muted); border-color: var(--border); padding: 10px 0; }
.card-bottom button { font-size: 13px; min-height: 38px; color: var(--action); }
.source-fallback small { color: #e2e2e2; font-size: 12px; }
.discovery-filters {
  background: #ffffff; border: 1px solid var(--border); border-radius: 8px;
  padding: 20px; gap: 14px; margin: 18px 0 26px;
}
.discovery-filters > label { min-width: 0; flex: 1 1 145px; }
.discovery-filters > label:has(input[type=search]) { flex-basis: 240px; }
.discovery-filters label { font-size: 12px; color: var(--muted); }
.discovery-filters input:not([type=checkbox]), .discovery-filters select { width: 100%; min-height: 44px; font-size: 14px; border-color: var(--border); border-radius: 5px; }
.discovery-filters > p { font-size: 12px; color: var(--muted); }
.discovery-actions button, .discovery-card-actions button, .discovery-filters button,
.discovery-drawer button, .discovery-more { min-height: 40px; border-color: var(--border); border-radius: 5px; font-size: 13px; }
.discovery-filters button:hover, .discovery-card-actions button:hover, .discovery-drawer button:hover { background: var(--accent-soft); border-color: #cacaca; color: var(--text); }
.discovery-card-actions [aria-pressed=true], .discovery-gallery-tabs [aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: var(--accent); }
.change-pill { background: var(--accent-soft); color: #5c5c5c; font-size: 11px; }
.discovery-empty, .empty-state { background: #ffffff; color: var(--muted); border: 1px dashed #c6c6c6; border-radius: 8px; font-size: 14px; padding: 32px 24px; }
.discovery-drawer { box-shadow: -18px 0 70px #24242433; line-height: 1.65; }
.discovery-drawer h2 { letter-spacing: -.035em; font-size: 30px; }
.discovery-drawer h3 { font-size: 20px; }
.discovery-drawer .drawer-top { border-bottom: 1px solid var(--border); }
.drawer-facts { border-color: var(--border); }
.drawer-gallery figcaption, .discovery-drawer .property-visual-grid figcaption { font-size: 13px; color: var(--muted); }
.discovery-drawer .small { font-size: 13px; }
.discovery-drawer .discovery-gallery .property-photo { border-radius: 6px; }
.discovery-compare-tray, .comparison-tray { background: var(--primary); border-color: #4b4b4b; border-radius: 8px; box-shadow: 0 8px 35px #24242433; }
.comparison-tray span, .comparison-tray .text-button { color: #e2e2e2; }
.discovery-compare-tray button { min-height: 40px; }
.comparison-intro, .comparison-unavailable { color: var(--muted); }
.comparison-scroll { border-color: var(--border); }
.comparison-scroll th:first-child, .comparison-scroll tbody tr:nth-child(odd) td { background: #f3f3f3; }
.comparison-scroll:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.research-workspace { background: #ffffff; border-radius: 8px; padding: 0 22px; }
.research-workspace > summary { min-height: 64px; font-size: 15px; align-items: center; }
.research-workspace > summary span + span { color: var(--muted); font-size: 12px; }
.btn-pill, .btn-clear, .btn-simulate, .btn-link, .qv-btn, .ny-lead-controls button,
.ny-lead-search button, .ny-lead-notebook button, .ny-lead-status-switch button,
.ny-lead-tools > [data-ny-lead-clear] { border-color: var(--border); border-radius: 5px; color: var(--text); min-height: 40px; font-size: 13px; }
.btn-pill:hover, .btn-clear:hover, .btn-simulate:hover, .qv-btn:hover { background: var(--accent-soft); border-color: #cacaca; color: var(--text); }
.qv-btn.active, .chip.active, .quickview-chip.active, .ny-lead-status-switch button[aria-pressed=true],
.ny-lead-search button[type=submit] { background: var(--primary); color: #ffffff; border-color: var(--primary); }
input[type=search], input[type=number], input[type=email], select, textarea,
.county-sample-controls input, .county-sample-controls select, .ny-lead-controls select { color: var(--text); border-color: var(--border); font-size: 14px; min-height: 42px; }
textarea { resize: vertical; line-height: 1.6; }
:is(.property-card, .ny-candidate-card, .coverage-card, .cal-card, .change-event, .value-card,
.shortlist-research, .shortlist-research-card, .lead-intake, .digest-preferences, .county-research-explorer,
.county-sample-card, .ny-project-thesis, .local-draft-summary) {
  background: #ffffff; color: var(--text); border-color: var(--border); border-radius: 8px;
}
.property-card:hover { border-color: #bebebe; }
.property-card.selected { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.property-card-bottom, .dossier-fact, .transfer-fact, .surface-source-check, .parcel-conflict { border-color: var(--border); }
:is(.today-banner, .inventory-visibility, .ny-lead-search, .strategy-status, .when-chip,
.shortlist-research-card, .lead-draft, .digest-card, .digest-transfer, .rights-fact,
.dossier-research-gate, .ny-focus-card, .ny-interest-evidence, .ny-property-project,
.ny-lead-comparison-panel, .sim-head, .scenario-results > *, .broker-map-document) {
  background: #f3f3f3; border-color: var(--border); color: var(--text);
}
.strategy-status, .ny-focus-card { border-left-color: var(--action); }
.eyebrow, .property-activity, .property-kind, .coverage-state, .price-per-acre,
.change-event-kind, .change-arrow, .county-sample-card dt, .ny-lead-search-help summary,
.property-visual-grid figcaption, .property-visual-grid figcaption small, .visual-missing { color: var(--muted); }
.ny-candidate-card .ny-candidate-price { color: var(--text); font-size: 22px; font-variant-numeric: tabular-nums; }
.shortlist-icon.added { color: var(--action); }
.shortlist-icon { min-width: 40px; min-height: 40px; color: var(--muted); }
.property-status .status, .coverage-state, .ny-candidate-status, .ny-thesis-tags span { background: #f0f0f0; border-color: var(--border); color: #5d5d5d; }
.property-status .status.cancelled { color: var(--error); background: #f5f5f5; border-color: #cfcfcf; }
.dossier-section details { background: #f3f3f3; border-color: var(--border); }
.transfer-evidence { background: #f3f3f3 !important; }
.transfer-evidence > summary { color: var(--muted); }
.research-gate-counts { background: var(--border); border-color: var(--border); }
.research-gate-grid li { border-color: var(--border); }
.research-gate-available { border-left-color: var(--success) !important; }
.research-gate-professional, .research-gate-blocked { border-left-color: var(--warning) !important; }
.research-gate-review { border-left-color: #6c6c6c !important; }
:is(.comparison-table, .evidence-table, .ny-lead-comparison) th,
:is(.comparison-table, .evidence-table, .ny-lead-comparison) td { border-color: var(--border); font-size: 13px; }
.comparison-table thead th, .evidence-table thead th, .ny-lead-comparison th { background: #f0f0f0; color: var(--text); }
.ny-lead-comparison-scroll { border-color: var(--border); border-radius: 6px; }
.dossier-dialog, .property-map-dialog { border-color: var(--border); border-radius: 10px; color: var(--text); background: #ffffff; }
.dossier-dialog::backdrop, .sim-modal::backdrop, .property-map-dialog::backdrop,
.discovery-drawer::backdrop { background: #24242499; backdrop-filter: blur(4px); }
.dossier-dialog-head { background: #fffffff7; }
.app-notice { background: var(--primary); color: #ffffff; border: 1px solid #4b4b4b; font-size: 14px; }
.property-visual-grid figure, .property-visual-grid .broker-map-preview img { background: #f1f1f1; border-color: var(--border); }
.aerial-preview { background: #e6e6e6; }
.aerial-preview span { background: var(--primary); }
.property-visual-grid figcaption small { font-size: 12px; }
.value-intro { max-width: none; background: #ffffff; border: 1px solid var(--border); border-radius: 8px; padding: 22px 26px; font-size: 14px; color: var(--muted); line-height: 1.8; }
#valueStamp { border-left: 2px solid #cacaca; padding: 4px 0 4px 18px; line-height: 1.8; margin: 20px 0 32px; }
#valueStamp strong { color: var(--text); }
.ny-project-theses > h2, #tab-value > h2 { font-size: 26px; letter-spacing: -.035em; margin: 38px 0 18px; }
.ny-project-theses > h3 { font-size: 21px; margin: 30px 0 14px; letter-spacing: -.025em; }
.ny-project-theses > p { max-width: 95ch; }
.value-deep-research > .evidence-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; }
.value-deep-research > .evidence-list > li { margin: 0; padding: 20px 22px; background: #ffffff; border: 1px solid var(--border); border-top: 2px solid #cacaca; border-radius: 6px; font-size: 14px; }
.ny-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ny-project-thesis { padding: 24px; }
.ny-project-thesis h4 { font-size: 18px; margin: 0 0 14px; line-height: 1.4; letter-spacing: -.025em; }
.ny-project-thesis h5 { font-size: 15px; }
.ny-project-thesis p, .ny-project-thesis li { font-size: 14px; line-height: 1.75; }
.ny-project-thesis summary { font-size: 13px; padding: 8px 0; color: var(--action); }
.ny-project-thesis details { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 16px; }
.evidence-list li { margin-bottom: 10px; }
.evidence-list a, .ny-project-thesis a, .value-risks a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.value-risks { margin: 16px 0; padding: 16px 20px; background: #ffffff; border: 1px solid var(--border); border-radius: 6px; }
.value-risks summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.value-card { padding: 23px; }
.value-card h3 { font-size: 20px; letter-spacing: -.025em; }
.value-card p, .value-card li { font-size: 14px; }
.value-card .small, .value-card .xsmall { font-size: 12px; }
.news-list { gap: 18px; }
.news-card, .news-item { background: #ffffff; border-color: var(--border); border-radius: 8px; padding: 24px; }
.news-card h3, .news-item h3 { font-size: 20px; line-height: 1.45; }
.coverage-kpis { border-color: var(--border); border-radius: 8px; gap: 24px; }
.coverage-card h3 { font-size: 18px; }
.coverage-card p, .coverage-card li, .county-sample-card p { font-size: 13px; }
.coverage-card summary { font-size: 13px; }
footer { border-top: 1px solid var(--border); padding-top: 25px; margin-top: 48px; }
.footer-brand { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.footer-brand strong { color: var(--text); letter-spacing: .18em; font-size: 15px; }
footer #footer-disclaimer { max-width: 105ch; line-height: 1.8; color: var(--muted); font-size: 12px; }
@media(min-width:1200px) and (max-width:1360px) { .topbar-row { gap: 16px; } .tab-nav { gap: 15px; } .topbar-title { min-width: 210px; } }
@media(max-width:1100px) {
  .tab-nav { order: 3; flex-basis: 100%; gap: 25px; }
  .topbar-actions { margin-left: auto; }
  .discovery-grid { gap: 20px; }
  .card-numbers { flex-wrap: wrap; }
  .card-date { text-align: left; }
}
@media(max-width:760px) {
  body { padding-bottom: 0; }
  main.container { padding-top: 20px; }
  .topbar { padding-top: 18px; }
  .topbar-row { gap: 10px; }
  .topbar-title { min-width: 0; }
  .brand-home { gap: 9px; }
  .topbar .topbar-title h1 { font-size: 22px; }
  .topbar-title p { font-size: 8px; }
  .topbar-actions #topbarWatchBtn { display: inline-flex; gap: 6px; align-items: center; }
  .topbar-actions #refreshBtn { display: inline-flex; font-size: 11px; padding: 7px 9px; }
  .topbar-actions .btn-pill { font-size: 11px; padding: 7px 9px; }
  .tab-nav { display: flex; flex-wrap: nowrap; gap: 25px; width: 100%; padding-bottom: 2px; }
  .tab-nav .tab-btn { font-size: 13px; padding: 12px 0; }
  .market-scope-bar { margin-top: 5px; padding-block: 6px; }
  .market-scope-btn { font-size: 11px; }
  .workspace-heading { padding: 21px; }
  .workspace-heading h2 { font-size: 29px; }
  .atlas-hero { height: 455px; }
  .atlas-copy { left: 23px; top: 30px; }
  .atlas-copy h2 { font-size: 49px; }
  .atlas-kicker { font-size: 10px; }
  .atlas-copy > p:not(.atlas-kicker) { font-size: 13px; }
  .atlas-map-label { left: 23px; font-size: 9px; max-width: 200px; bottom: 18px; }
  .atlas-reset { bottom: 16px; right: 12px; font-size: 11px; }
  .discovery-map-actions { left: 23px; bottom: 76px; }
  .atlas-caption { font-size: 11px; gap: 15px; }
  .collection-heading { gap: 15px; }
  .collection-heading > p { font-size: 12px; max-width: 155px; }
  .collection-choice { min-height: 145px; padding: 18px; }
  .collection-choice strong { font-size: 17px; }
  .choice-bottom { font-size: 9px; }
  .collection-toolbar p { font-size: 13px; }
  .discovery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .discovery-card-body { padding: 16px 15px 0; }
  .discovery-card h4 { font-size: 17px; min-height: 48px; }
  .card-numbers strong { font-size: 22px; }
  .card-numbers small { font-size: 11px; }
  .card-bottom > span { display: block; }
  .research-workspace { padding-inline: 15px; }
  .research-workspace > summary { font-size: 14px; }
  .research-workspace > summary span + span { max-width: 140px; font-size: 11px; }
  .ny-project-grid, .value-deep-research > .evidence-list { grid-template-columns: 1fr; }
  .value-intro { padding: 19px; }
  .ny-project-thesis { padding: 21px; }
  .value-card { padding: 20px; }
  .comparison-tray { bottom: max(14px,env(safe-area-inset-bottom)); }
  .app-notice { bottom: max(20px,env(safe-area-inset-bottom)); }
}
@media(max-width:480px) {
  .topbar-actions { gap: 5px; }
  .topbar-title p { font-size: 7px; }
  .topbar .topbar-title h1 { font-size: 20px; }
  .strata-logo { }
  .topbar-actions #refreshBtn { font-size: 10px; padding-inline: 7px; }
  .topbar-actions #topbarWatchBtn { }
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-image { height: 235px; }
  .discovery-card-body { padding: 20px 21px 0; }
  .discovery-card h4 { font-size: 20px; min-height: 0; }
  .card-numbers { flex-wrap: nowrap; }
  .card-date { text-align: right; }
  .collection-heading > p { font-size: 11px; max-width: 132px; }
  .collection-choice { padding: 16px; }
  .collection-choice strong { font-size: 16px; }
  .choice-bottom { font-size: 8px; }
  .discovery-filters { padding: 15px; gap: 12px; }
  .discovery-filters > label { flex: 1 1 42%; }
  .discovery-filters input:not([type=checkbox]), .discovery-filters select { font-size: 16px; }
  .discovery-drawer input, .discovery-drawer select, .discovery-drawer textarea { font-size: 16px; }
  .discovery-compare-tray { padding: 14px; font-size: 13px; }
  .discovery-drawer { padding: 20px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar-actions, .tab-nav, .market-scope-bar, .mobile-dock, .discovery-map-actions,
  .discovery-compare-tray, .comparison-tray, .app-notice, footer { display: none !important; }
  body, main.container { background: #ffffff; color: #242424; padding: 0; }
  .container { max-width: none; padding-inline: 0; }
  .discovery-card, .ny-project-thesis, .value-card, .coverage-card { break-inside: avoid; box-shadow: none; }
  .discovery-drawer[open], .dossier-dialog[open] { position: static; width: 100%; max-width: 100%; max-height: none; height: auto; box-shadow: none; overflow: visible; }
}

/* Shared source affordances and narrow-screen intrinsic sizing. */
:is(.dossier-section,.coverage-card,.county-research-explorer,.ny-candidate-card,.research-workspace,
.news-list,.src-list-cats,.change-event,.rights-fact) a {
  color: var(--action); text-decoration: underline; text-underline-offset: 3px;
}
:is(.dossier-section,.coverage-card,.news-list) a:hover { color: #444444; }
.corridor-grid, .src-list-cats, .value-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.comps-list { grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); }
.cal-card:hover { border-color: #bebebe; }
.news-tags button { min-height: 42px; font-size: 13px; border-color: var(--border); }
.news-tags button.active { color: #ffffff; background: var(--primary); border-color: var(--primary); }
.news-card .news-summary, .news-item .news-summary { font-size: 14px; line-height: 1.8; max-width: 100ch; }
.news-card details, .news-item details { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.news-card summary, .news-item summary { cursor: pointer; color: var(--action); font-size: 13px; font-weight: 600; padding: 5px 0; }
.news-card details p, .news-item details p { font-size: 13px; line-height: 1.85; color: var(--muted); }
@media(max-width:760px) {
  main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea),
  dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) { font-size: 16px; }
}

@media(max-width:360px) {
  .atlas-copy h2 { font-size: 41px; }
  .atlas-map-label { max-width: 130px; font-size: 8px; }
  .atlas-reset { font-size: 10px; padding-inline: 9px; }
  .collection-heading { align-items: start; }
  .collection-heading h2 { font-size: 27px; }
  .collection-heading > p { max-width: 110px; }
}

.value-card { cursor: default; }
.value-card .value-open { margin-top: 18px; }
.shortlist-discovery { margin-block: 26px; }
.shortlist-discovery h4 { font-size: 18px; line-height: 1.5; margin: 12px 0; }

/* Keep the skip link fully off canvas until focused. */
.skip-link { top: 0; transform: translateY(-160%); }
.skip-link:focus { top: 12px; transform: translateY(0); }
@media(max-width:360px) {
  .topbar-title { }
  .topbar-actions { margin-left: auto; }
  .topbar-row { row-gap: 7px; }
  .atlas-hero { height: 510px; }
}
.topbar-title { flex-shrink:0; min-width:0; }
.brand-home { gap:11px; }
.topbar .topbar-title h1 { font-size:28px; font-weight:700; letter-spacing:-.055em; line-height:1.12; white-space:nowrap; }
.brand-domain { font-size:.62em; font-weight:500; letter-spacing:-.025em; color:var(--muted); }
.topbar-title p { font-size:8px; letter-spacing:.15em; margin-top:6px; }
.strata-logo { width:43px; height:43px; flex:none; }
.refresh-icon { display:block; flex:none; }
.topbar-actions #refreshBtn { display:inline-flex; gap:7px; align-items:center; }
.atlas-kicker { letter-spacing:.12em; }
.atlas-kicker span, .atlas-caption i, .market-scope-btn.active::before { background:var(--accent); }
.atlas-cta { background:var(--accent); color:var(--primary); }
.atlas-cta:hover { background:#e9e9e9; color:var(--primary); }
.atlas-popup button { background:var(--primary); color:#ffffff; }
.collection-choice.is-active { background:var(--primary); box-shadow:inset 0 -3px var(--accent); }
.discovery-cluster-count { color:var(--accent); }
.discovery-card.is-map-highlight { box-shadow:0 0 0 3px var(--accent); }
.source-fallback > span { color:var(--accent); }
.watchlist-count { background:var(--accent); color:var(--primary); }
.atlas-reset { background:#2d2d2ded; border-color:#898989; }
.atlas-map { background:#303030; }
.atlas-map::after { background:linear-gradient(90deg,#202020f7 0%,#202020d9 25%,#2020202b 65%,transparent 100%); }
.atlas-map .leaflet-control-zoom a { background:var(--primary); border-color:#646464; }
.footer-brand strong { font-size:20px; font-weight:700; letter-spacing:-.05em; }
.footer-brand .brand-domain { font-size:.74em; }
@media(min-width:1101px) and (max-width:1279px) {
 .topbar-row { flex-wrap:wrap; gap:14px; }
 .tab-nav { order:3; flex-basis:100%; justify-content:flex-start; gap:26px; }
 .topbar-actions { margin-left:auto; }
}
@media(max-width:760px) {
 .topbar .topbar-title h1 { font-size:24px; }
 .topbar-title p { font-size:7px; }
 .strata-logo { width:35px; height:35px; }
 .atlas-map::after { background:linear-gradient(90deg,#202020e8 0%,#20202091 45%,#20202014 100%); }
}
@media(max-width:480px) {
 .topbar .topbar-title h1 { font-size:22px; }
 .brand-home { gap:8px; }
 .strata-logo { width:32px; height:32px; }
 .topbar-actions #refreshBtn { width:34px; min-width:34px; justify-content:center; padding:7px; }
 .topbar-actions #refreshBtn span { display:none; }
 .topbar-actions #topbarWatchBtn { font-size:10px; min-height:38px; padding-inline:8px; }
 .topbar-title p { font-size:6.5px; letter-spacing:.12em; }
 .atlas-kicker { font-size:9px; letter-spacing:.1em; }
}
@media(max-width:360px) {
 .topbar-title { flex-basis:100%; }
 .topbar .topbar-title h1 { font-size:25px; }
 .strata-logo { width:38px; height:38px; }
 .topbar-title p { font-size:8px; }
 .topbar-actions #refreshBtn { width:auto; padding-inline:10px; }
 .topbar-actions #refreshBtn span { display:inline; }
}

@media(max-width:480px) { .topbar-title p { display:none; } }

/* Brand-critical foreground and primary control colors share the same tokens. */
.topbar .topbar-title h1, .discovery-card h4 button, .collection-heading h2, .collection-toolbar h3, .atlas-popup { color:var(--text); }
.topbar-actions #topbarWatchBtn { background:var(--primary); border-color:var(--primary); }
