:root {
  color-scheme: dark;
  --background: #312e2b;
  --header-background: #262522;
  --button-background: #454341;
  --button-background-hover: #504e4b;
  --button-shadow: #1f1e1c;
  --text: #f1f1f1;
  --muted-text: #b7b7b7;
  --accent: #81b64c;
  --accent-hover: #95c85a;
  --accent-shadow: #5d9948;
  --border: rgb(255 255 255 / 8%);
  --header-shadow: rgb(0 0 0 / 24%);
  --site-header-height: 3.5rem;
  --radar-bottombar-height: 2.25rem;
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  font-synthesis: none;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #eeedeb;
  --header-background: #ffffff;
  --button-background: #dedcd8;
  --button-background-hover: #d2cfca;
  --button-shadow: #bebbb5;
  --text: #262522;
  --muted-text: #66635f;
  --accent: #6fa83f;
  --accent-hover: #7fb94a;
  --accent-shadow: #4f7f33;
  --border: rgb(38 37 34 / 10%);
  --header-shadow: rgb(38 37 34 / 12%);
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-loading {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 35%;
  height: 3px;
  opacity: 0;
  background: var(--accent);
  box-shadow: 0 1px 4px var(--accent-shadow);
  transform: translateX(-110%);
  pointer-events: none;
}

body[data-page-loading] .page-loading {
  opacity: 1;
  animation: page-loading 900ms ease-in-out infinite;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--site-header-height);
  padding: 0.35rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: var(--header-background);
  box-shadow: 0 2px 7px var(--header-shadow);
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.site-name {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.site-name:focus-visible,
.topbar-link:focus-visible,
.theme-toggle:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-copyright {
  --page-footer-bottom-offset: 0px;

  z-index: 2;
  width: 100%;
  padding: 0.45rem clamp(1rem, 4vw, 2.5rem);
  color: var(--muted-text);
  background: var(--background);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.site-copyright:not([data-page-footer-placement="fixed"]) {
  margin-top: auto;
  margin-bottom: var(--page-footer-bottom-offset);
}

.site-copyright[data-page-footer-placement="fixed"] {
  position: fixed;
  right: 0;
  bottom: var(--page-footer-bottom-offset);
  left: 0;
}

.topbar-form {
  margin: 0;
}

.topbar-button {
  border: 0;
  cursor: pointer;
}

.topbar-link {
  display: inline-flex;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  align-items: center;
  border-radius: 0.5rem;
  color: var(--text);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.topbar-link:hover,
.topbar-link[aria-current="page"] {
  color: #ffffff;
  background: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 80ms ease;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 4px 0 var(--accent-shadow);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-primary:active {
  box-shadow: 0 1px 0 var(--accent-shadow);
  transform: translateY(3px);
}

.button-secondary {
  color: var(--text);
  background: var(--button-background);
  box-shadow: 0 4px 0 var(--button-shadow);
}

.button-secondary:hover {
  background: var(--button-background-hover);
}

.button-danger {
  color: #ffffff;
  background: #a63d40;
  box-shadow: 0 4px 0 #74292c;
}

.button-compact {
  margin-top: 0;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

.auth-panel,
.account-page {
  width: min(100%, 48rem);
  margin: 0 auto;
}

.home-introduction {
  width: min(100%, 48rem);
  margin: 0 auto;
}

.home-introduction h1 {
  max-width: 16ch;
  margin: 0.25rem 0 1rem;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-lead {
  max-width: 44rem;
  color: var(--muted-text);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.home-copy {
  max-width: 43rem;
  margin-top: 2rem;
  line-height: 1.7;
}

.home-poc-notice {
  max-width: 43rem;
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted-text);
  background: var(--header-background);
  line-height: 1.6;
}

.home-actions,
.page-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.home-actions .button,
.page-heading-actions .button {
  margin-top: 0;
}

.home-actions {
  margin-top: 2rem;
}

.home-contact {
  margin-top: 2rem;
  color: var(--muted-text);
}

.site-identity-form {
  width: min(100%, 42rem);
}

.auth-panel {
  width: min(100%, 32rem);
}

.auth-panel h1,
.account-page h1 {
  margin-top: 0.25rem;
}

.auth-form,
.webauthn-flow,
.account-actions form {
  display: grid;
  gap: 1rem;
}

.auth-form label,
.webauthn-flow label,
.account-actions label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.webauthn-flow input,
.account-actions select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  color: var(--text);
  background: var(--header-background);
  font: inherit;
}

.auth-form .button,
.webauthn-flow .button {
  justify-self: start;
  margin-top: 0.5rem;
}

.auth-links {
  display: flex;
  margin-top: 1.75rem;
  gap: 1.25rem;
  color: var(--muted-text);
}

.notice,
.form-error {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--header-background);
}

.form-error {
  color: #ffb4b4;
}

.field-help,
.field-error,
.field-success,
.field-warning {
  font-size: 0.9rem;
  font-weight: 400;
}

.field-help {
  color: var(--muted-text);
}

.field-error {
  color: #ffb4b4;
}

.field-success {
  color: #7bdcb5;
}

.field-warning {
  color: #ffd479;
}

.form-field-messages,
.field-activity {
  display: grid;
  gap: 0.25rem;
}

.field-activity progress {
  width: 100%;
}

.form-message {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--header-background);
}

.form-message-error {
  color: #ffb4b4;
}

.form-message-success {
  color: #7bdcb5;
}

.form-message-warning {
  color: #ffd479;
}

.form-collection-item {
  display: grid;
  margin: 0;
  padding: 1rem;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.auth-form input[aria-invalid="true"] {
  border-color: #ffb4b4;
}

.recovery-panel,
.security-card,
.account-card,
.audit-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--header-background);
}

.credential-list,
.recovery-codes {
  padding-left: 1.25rem;
}

.credential-list li {
  display: flex;
  padding: 0.8rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.credential-list li div,
.credential-list li span {
  display: grid;
  gap: 0.25rem;
}

.credential-list li span,
.account-card p,
.audit-card span,
.audit-card time {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.page-heading,
.account-card header,
.audit-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-heading .button {
  margin-top: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.account-list,
.audit-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.account-card {
  margin-top: 0;
}

.account-card h2,
.security-card h2 {
  margin-top: 0;
}

.account-card code,
.audit-card code {
  overflow-wrap: anywhere;
  color: var(--muted-text);
  font-size: 0.75rem;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  align-items: end;
  gap: 1rem;
  margin-top: 1rem;
}

.audit-card {
  display: grid;
  margin-top: 0;
  gap: 0.65rem;
}

.audit-card pre {
  max-width: 100%;
  margin: 0;
  padding: 0.75rem;
  overflow: auto;
  border-radius: 0.4rem;
  background: var(--background);
}

@media (max-width: 50rem) {
  .site-header,
  .site-actions {
    flex-wrap: wrap;
  }

  .site-header {
    padding-block: 0.5rem;
  }

  .topbar-link {
    padding-inline: 0.55rem;
  }

  .page-heading,
  .account-card header,
  .credential-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}

.theme-toggle {
  display: grid;
  width: 2.5rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0.5rem;
  color: var(--text);
  background: var(--button-background);
  box-shadow: 0 3px 0 var(--button-shadow);
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 80ms ease;
}

.theme-toggle:hover {
  background: var(--button-background-hover);
}

.theme-toggle:active {
  box-shadow: 0 1px 0 var(--button-shadow);
  transform: translateY(3px);
}

.theme-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: none;
  color: #d59120;
}

:root[data-theme="light"] .theme-icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-icon-sun {
  display: block;
}

.page {
  width: min(62rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.page:focus {
  outline: none;
}

.page-radar {
  width: 100%;
  height: calc(100vh - var(--site-header-height));
  height: calc(100dvh - var(--site-header-height));
  min-height: 32rem;
  margin: 0;
  padding: 0;
}

body[data-popup-open] {
  overflow: hidden;
}

.popup {
  --popup-top-offset: var(--site-header-height);
  --popup-bottom-offset: 0px;

  position: fixed;
  z-index: 3;
  top: var(--popup-top-offset);
  right: 0;
  bottom: var(--popup-bottom-offset);
  left: 0;
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  isolation: isolate;
  place-items: center;
}

.popup[data-popup-layer="confirmation"] {
  z-index: 4;
}

.popup[hidden] {
  display: none;
}

.popup-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgb(14 16 15 / 72%);
  backdrop-filter: blur(4px);
}

.popup[data-popup-state="open"] .popup-backdrop {
  animation: popup-backdrop-enter 180ms ease-out;
}

.popup-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(72rem, 100%);
  height: min(48rem, 100%);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--text);
  background: var(--header-background);
  box-shadow: 0 24px 70px rgb(0 0 0 / 48%);
}

.popup[data-popup-state="open"] .popup-panel {
  animation: popup-panel-enter 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.popup[data-popup-size="large"] .popup-panel {
  width: min(90rem, 100%);
  height: min(56rem, 100%);
}

.popup[data-popup-size="max"] {
  padding: 8px;
}

.popup[data-popup-size="max"] .popup-panel {
  width: 100%;
  height: 100%;
}

.popup-panel:focus {
  outline: none;
}

.popup-header {
  display: flex;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--header-background);
  box-shadow: 0 5px 18px var(--header-shadow);
}

.popup-heading {
  display: grid;
  min-width: 0;
  gap: 0.3rem;
}

.popup-title,
.popup-description {
  margin: 0;
}

.popup-title {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.15;
}

.popup-description {
  color: var(--muted-text);
  font-size: 0.85rem;
  line-height: 1.4;
}

.popup-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--button-background);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.popup-close:hover {
  background: var(--button-background-hover);
}

.popup-close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.popup-body {
  min-width: 0;
  min-height: 0;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.popup-navigation {
  display: grid;
  min-width: 0;
  min-height: 100%;
  align-content: space-between;
  gap: 1.25rem;
}

.popup-navigation-content {
  min-width: 0;
}

.popup-navigation-actions {
  position: sticky;
  bottom: -1.5rem;
  display: grid;
  padding: 1rem 0 1.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  background: var(--header-background);
  box-shadow: 0 -10px 22px var(--header-background);
}

.popup-navigation-button,
.popup-confirmation-button {
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.55rem;
  color: var(--text);
  background: var(--button-background);
  box-shadow: 0 3px 0 var(--button-shadow);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease,
    transform 80ms ease;
}

.popup-navigation-button:hover,
.popup-confirmation-button:hover {
  background: var(--button-background-hover);
}

.popup-navigation-button:active,
.popup-confirmation-button:active {
  box-shadow: 0 1px 0 var(--button-shadow);
  transform: translateY(2px);
}

.popup-navigation-button:focus-visible,
.popup-confirmation-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.popup-navigation-button:disabled {
  opacity: 0.42;
  box-shadow: none;
  cursor: default;
}

.popup-navigation-previous {
  justify-self: start;
}

.popup-navigation-next {
  justify-self: end;
}

.popup-navigation-position {
  color: var(--muted-text);
  font-size: 0.85rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.popup-confirmation .popup-panel {
  width: min(32rem, 100%);
  height: auto;
  max-height: 100%;
}

.popup-confirmation .popup-header {
  border-bottom: 0;
  box-shadow: none;
}

.popup-confirmation .popup-description {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.popup-confirmation .popup-body {
  padding-top: 0;
}

.popup-confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.popup-confirmation-confirm {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-shadow);
}

.popup-confirmation-confirm:hover {
  background: var(--accent-hover);
}

.popup-confirmation[data-confirmation-tone="danger"]
  .popup-confirmation-confirm {
  background: #a63d40;
  box-shadow: 0 3px 0 #74292c;
}

.popup-confirmation[data-confirmation-tone="danger"]
  .popup-confirmation-confirm:hover {
  background: #b6474a;
}

@keyframes popup-backdrop-enter {
  from {
    opacity: 0;
  }
}

@keyframes popup-panel-enter {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.985);
  }
}

.page-purchase-intent {
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.radar-shell,
.radar-map {
  width: 100%;
  height: 100%;
}

.radar-shell {
  position: relative;
  overflow: hidden;
  background: #d9e2e5;
}

.radar-map {
  position: absolute;
  inset: 0;
}

.radar-map:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.radar-base-map {
  opacity: 0.82;
  filter: grayscale(35%) saturate(65%) contrast(92%) brightness(104%);
}

.radar-status,
.radar-business-panel,
.radar-intent-panel {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--border);
  color: var(--text);
  background: color-mix(in srgb, var(--header-background) 92%, transparent);
  box-shadow: 0 3px 12px var(--header-shadow);
  backdrop-filter: blur(8px);
}

.radar-business-panel,
.radar-intent-panel {
  right: 1rem;
  width: min(22.5rem, calc(100% - 2rem));
  margin: 0;
  padding: 2.25rem 0.9rem 0.9rem;
  border-radius: 0.7rem;
}

.radar-business-panel {
  top: 1rem;
}

.radar-intent-panel {
  top: 10.75rem;
}

.radar-business-panel legend,
.radar-intent-panel legend {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  padding: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.radar-business-options {
  display: grid;
  gap: 0.45rem;
}

.radar-business-option {
  position: relative;
  display: flex;
  min-height: 2.5rem;
  padding: 0.55rem 0.65rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--background) 72%, transparent);
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.radar-business-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 75%, transparent);
  background: color-mix(in srgb, var(--accent) 18%, var(--background));
}

.radar-business-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radar-business-marker {
  display: grid;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--muted-text);
  border-radius: 50%;
}

.radar-business-marker::after {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  opacity: 0;
}

.radar-business-option input:checked + .radar-business-marker {
  border-color: var(--accent);
}

.radar-business-option input:checked + .radar-business-marker::after {
  opacity: 1;
}

.radar-business-option input:focus-visible + .radar-business-marker {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.radar-intent-options {
  display: grid;
  gap: 0.45rem;
}

.radar-intent-option {
  display: flex;
  min-height: 2.6rem;
  padding: 0.5rem 0.55rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--background) 72%, transparent);
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

.radar-intent-option[hidden] {
  display: none;
}

.radar-intent-option-master {
  width: calc(100% - 0.4rem);
  margin-left: 0.4rem;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.radar-intent-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted-text);
  font-size: 0.65rem;
}

.radar-intent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radar-intent-switch-track {
  position: relative;
  width: 2.75rem;
  height: 1.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #a84440;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 28%);
  transition: background-color 160ms ease;
}

.radar-intent-switch-track::after {
  position: absolute;
  top: 0.175rem;
  left: 0.175rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 30%);
  content: "";
  transition: transform 160ms ease;
}

.radar-intent-switch input:checked + .radar-intent-switch-track {
  background: var(--accent);
}

.radar-intent-switch input:checked + .radar-intent-switch-track::after {
  transform: translateX(1.35rem);
}

.radar-intent-switch input:indeterminate + .radar-intent-switch-track {
  background: linear-gradient(90deg, #a84440 0 50%, var(--accent) 50% 100%);
}

.radar-intent-switch input:indeterminate + .radar-intent-switch-track::after {
  transform: translateX(0.675rem);
}

.radar-intent-switch input:disabled + .radar-intent-switch-track {
  background: var(--button-background);
}

.radar-intent-switch input:focus-visible + .radar-intent-switch-track {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.radar-intent-empty {
  margin: 0;
  padding: 0.7rem 0.4rem;
  color: var(--muted-text);
  font-size: 0.75rem;
  text-align: center;
}

.radar-business-count {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted-text);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.radar-status {
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.radar-status[hidden] {
  display: none;
}

.radar-tooltip {
  --radar-tooltip-score-color: #dcdcdc;
  --radar-tooltip-surface: rgb(31 30 28 / 96%);

  position: relative;
  width: min(23rem, calc(100vw - 2rem));
  border: 1px solid rgb(255 255 255 / 16%);
  border-top: 3px solid var(--radar-tooltip-score-color);
  border-radius: 0.8rem;
  color: #ffffff;
  background: var(--radar-tooltip-surface);
  box-shadow: 0 12px 32px rgb(0 0 0 / 38%);
  font-size: 0.75rem;
  line-height: 1.4;
  pointer-events: none;
}

.radar-tooltip-container {
  z-index: 3;
}

.radar-tooltip[data-pinned] {
  width: min(25rem, calc(100vw - 2rem));
  pointer-events: auto;
}

.radar-tooltip[hidden] {
  display: none;
}

.radar-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border: 0.45rem solid transparent;
  border-top-color: var(--radar-tooltip-surface);
  content: "";
  transform: translateX(-50%);
}

.radar-tooltip-card {
  position: relative;
  display: grid;
  max-height: calc(100dvh - 2rem);
  padding: 0.9rem;
  overflow-y: auto;
  gap: 0.7rem;
}

.radar-tooltip-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.radar-tooltip[data-pinned] .radar-tooltip-header {
  padding-right: 1.65rem;
}

.radar-tooltip-heading {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.radar-tooltip-context {
  color: var(--radar-tooltip-score-color);
  font-size: 0.63rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.065em;
}

.radar-tooltip-title {
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.radar-tooltip-activity {
  color: rgb(255 255 255 / 68%);
  font-size: 0.72rem;
}

.radar-tooltip-source {
  flex: 0 0 auto;
  padding: 0.22rem 0.42rem;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 999px;
  color: rgb(255 255 255 / 82%);
  background: rgb(255 255 255 / 7%);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.radar-tooltip-address {
  color: rgb(255 255 255 / 65%);
  font-size: 0.69rem;
}

.radar-tooltip-score {
  display: grid;
  min-height: 4.4rem;
  padding: 0.65rem 0.7rem;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  border: 1px solid rgb(255 255 255 / 9%);
  border-left: 3px solid var(--radar-tooltip-score-color);
  border-radius: 0.55rem;
  background: rgb(255 255 255 / 5%);
}

.radar-tooltip-score-value {
  color: var(--radar-tooltip-score-color);
  font-size: 1.85rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.radar-tooltip-score-maximum {
  color: rgb(255 255 255 / 48%);
  font-size: 0.68rem;
  font-weight: 700;
}

.radar-tooltip-score-description {
  display: grid;
  gap: 0.12rem;
}

.radar-tooltip-score-meaning {
  font-size: 0.78rem;
}

.radar-tooltip-score-caption {
  color: rgb(255 255 255 / 52%);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.radar-tooltip-signal {
  display: grid;
  padding-left: 0.65rem;
  gap: 0.1rem;
  border-left: 2px solid rgb(255 255 255 / 14%);
}

.radar-tooltip-signal-title {
  font-size: 0.75rem;
}

.radar-tooltip-signal-date,
.radar-tooltip-analysis-date {
  color: rgb(255 255 255 / 58%);
  font-size: 0.66rem;
}

.radar-tooltip-metrics {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 0.55rem;
  background: rgb(0 0 0 / 12%);
}

.radar-tooltip-metrics div {
  display: grid;
  min-width: 0;
  padding: 0.52rem 0.35rem;
  place-items: center;
  gap: 0.08rem;
}

.radar-tooltip-metrics div + div {
  border-left: 1px solid rgb(255 255 255 / 8%);
}

.radar-tooltip-metrics dt {
  color: rgb(255 255 255 / 52%);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.radar-tooltip-metrics dd {
  margin: 0;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.radar-tooltip-analysis-date {
  text-align: right;
}

.radar-tooltip-footer {
  padding-top: 0.6rem;
  border-top: 1px solid rgb(255 255 255 / 9%);
  color: rgb(255 255 255 / 55%);
  font-size: 0.64rem;
  font-weight: 700;
  text-align: center;
}

.radar-tooltip-close {
  position: absolute;
  z-index: 1;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  color: #ffffff;
  background: rgb(255 255 255 / 8%);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.radar-tooltip-close:hover {
  background: rgb(255 255 255 / 16%);
}

.radar-tooltip-close:focus-visible {
  outline: 2px solid var(--radar-tooltip-score-color);
  outline-offset: 2px;
}

.radar-overlap-popup {
  --popup-bottom-offset: var(--radar-bottombar-height);
}

.radar-overlap-card {
  max-height: none;
  padding: 1rem;
  overflow: visible;
  border: 1px solid rgb(255 255 255 / 14%);
  border-top: 3px solid var(--radar-tooltip-score-color);
  border-radius: 0.8rem;
  color: #ffffff;
  background: rgb(31 30 28 / 97%);
  box-shadow: 0 7px 20px rgb(0 0 0 / 22%);
}

.radar-bottombar {
  position: fixed;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: var(--radar-bottombar-height);
  padding: 0.35rem clamp(0.65rem, 2vw, 1.25rem);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  background: var(--header-background);
  box-shadow: 0 -2px 9px var(--header-shadow);
}

.radar-coordinates {
  border-radius: 0.4rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.radar-information {
  position: relative;
  font-size: 0.75rem;
  line-height: 1.45;
}

.radar-information summary {
  color: var(--muted-text);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.radar-information summary::-webkit-details-marker {
  display: none;
}

.radar-information-content {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(24rem, calc(100vw - 1rem));
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  color: var(--text);
  background: color-mix(in srgb, var(--header-background) 96%, transparent);
  box-shadow: 0 3px 12px var(--header-shadow);
  backdrop-filter: blur(8px);
}

.radar-information-content p {
  margin: 0;
  padding: 0.7rem 0.8rem 0;
}

.radar-information-content p:last-child {
  padding-bottom: 0.7rem;
}

.radar-information a {
  color: var(--accent-hover);
  font-weight: 700;
}

.radar-information summary:focus-visible,
.radar-information a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.radar-attribution-short {
  display: none;
}

.radar-map .ol-control button {
  color: #ffffff;
  background: var(--accent);
}

.radar-map .ol-zoom {
  top: auto;
  bottom: 3.25rem;
  left: 1rem;
}

.radar-map .ol-attribution {
  display: none;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 + p {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: var(--muted-text);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 650;
  line-height: 1.45;
}

.purchase-intent-shell {
  display: grid;
  gap: 1.25rem;
}

.purchase-intent-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.purchase-intent-heading h1 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.purchase-intent-heading h1 + p {
  max-width: 55rem;
  margin-top: 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.purchase-intent-preview-label,
.purchase-intent-status {
  display: inline-flex;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-text);
  background: var(--header-background);
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.purchase-intent-preview-label {
  color: #ffffff;
  border-color: transparent;
  background: var(--accent);
}

.purchase-intent-metrics {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--header-background);
  box-shadow: 0 6px 20px var(--header-shadow);
}

.purchase-intent-metric {
  min-width: 0;
  padding: 1rem 1.25rem;
}

.purchase-intent-metric + .purchase-intent-metric {
  border-left: 1px solid var(--border);
}

.purchase-intent-metric dt {
  margin-bottom: 0.35rem;
  color: var(--muted-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.purchase-intent-metric dd {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.purchase-intent-search,
.purchase-intent-panel {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--header-background);
  box-shadow: 0 10px 30px var(--header-shadow);
}

.purchase-intent-search {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.purchase-intent-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.purchase-intent-panel-heading .eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
}

.purchase-intent-panel-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
}

.purchase-intent-status-idle {
  color: var(--accent-hover);
}

.purchase-intent-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted-text);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--muted-text) 16%, transparent);
}

.purchase-intent-scan-scope {
  display: flex;
  margin-top: 1.75rem;
  padding: 1rem;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--background);
}

.purchase-intent-scan-scope p {
  margin: 0;
  flex: 1 1 auto;
  color: var(--muted-text);
  font-size: 0.875rem;
  line-height: 1.5;
}

.purchase-intent-scan-scope span {
  flex: 0 0 auto;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
}

.purchase-intent-search-actions {
  display: flex;
  margin-top: 1.25rem;
  align-items: center;
  gap: 1rem;
}

.purchase-intent-search-actions .button {
  flex: 0 0 auto;
  margin-top: 0;
}

.purchase-intent-search-actions .button:disabled {
  color: var(--muted-text);
  background: var(--button-background);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.purchase-intent-search-actions p {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.825rem;
  line-height: 1.4;
}

.purchase-intent-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.purchase-intent-panel {
  min-width: 0;
  padding: 1.35rem;
}

.purchase-intent-empty-state {
  display: grid;
  min-height: 12rem;
  padding: 2rem 1rem 1rem;
  place-items: center;
  align-content: center;
  text-align: center;
}

.purchase-intent-empty-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.8rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent-hover);
  background: var(--background);
  font-size: 1rem;
  font-weight: 800;
}

.purchase-intent-empty-state p {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-weight: 750;
}

.purchase-intent-empty-state > span:last-child {
  color: var(--muted-text);
  font-size: 0.825rem;
  line-height: 1.45;
}

.purchase-intent-scan-list {
  display: grid;
  min-height: 12rem;
  padding-top: 1rem;
  align-content: start;
  gap: 0.8rem;
}

.purchase-intent-scan-card {
  display: grid;
  padding: 0.9rem;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--background);
}

.purchase-intent-scan-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.purchase-intent-scan-card-heading span,
.purchase-intent-scan-card small {
  color: var(--muted-text);
}

.purchase-intent-scan-card progress {
  width: 100%;
  height: 0.65rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: var(--accent);
  background: var(--button-background);
}

.purchase-intent-scan-card progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--button-background);
}

.purchase-intent-scan-card progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--accent);
}

.purchase-intent-scan-card progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--accent);
}

.purchase-intent-completed-card {
  display: grid;
  min-height: 12rem;
  padding: 2rem 1rem;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  text-align: center;
}

.purchase-intent-completed-card article {
  display: grid;
  place-items: center;
  gap: 0.35rem;
}

.purchase-intent-completed-card strong {
  color: var(--accent-hover);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}

.purchase-intent-completed-card span {
  color: var(--text);
  font-weight: 750;
}

.purchase-intent-completed-card time {
  color: var(--muted-text);
  font-size: 0.8rem;
}

@keyframes page-loading {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(300%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .site-header,
  .theme-toggle {
    transition: none;
  }

  body[data-page-loading] .page-loading {
    width: 100%;
    animation: none;
    transform: none;
  }
}

@media (max-width: 36rem) {
  .site-header {
    min-height: var(--site-header-height);
    padding-block: 0.35rem;
  }

  .page {
    width: min(100% - 2rem, 62rem);
  }

  .page-radar {
    width: 100%;
    height: calc(100vh - var(--site-header-height));
    height: calc(100dvh - var(--site-header-height));
  }

  .radar-business-panel {
    top: 0.5rem;
    right: 0.5rem;
    width: min(19.5rem, calc(100% - 1rem));
  }

  .radar-intent-panel {
    top: 10.25rem;
    right: 0.5rem;
    width: min(19.5rem, calc(100% - 1rem));
  }

  .radar-tooltip,
  .radar-tooltip[data-pinned] {
    width: min(22rem, calc(100vw - 1rem));
  }

  .radar-tooltip-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .radar-tooltip-metrics div + div {
    border-left: 0;
  }

  .radar-tooltip-metrics div:nth-child(even) {
    border-left: 1px solid rgb(255 255 255 / 8%);
  }

  .radar-tooltip-metrics div:nth-child(n + 3) {
    border-top: 1px solid rgb(255 255 255 / 8%);
  }

  .popup {
    padding: 0.5rem;
  }

  .popup-panel {
    height: 100%;
    border-radius: 0.75rem;
  }

  .radar-bottombar {
    gap: 0.5rem;
  }

  .radar-coordinates {
    font-size: 0.65rem;
  }

  .radar-attribution-long {
    display: none;
  }

  .radar-attribution-short {
    display: inline;
  }

  .site-actions {
    gap: 0.35rem;
  }

  .topbar-link {
    min-height: 2.25rem;
    padding-inline: 0.65rem;
    font-size: 0.875rem;
  }

  .purchase-intent-heading,
  .purchase-intent-search-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .purchase-intent-results,
  .purchase-intent-metrics {
    grid-template-columns: 1fr;
  }

  .purchase-intent-metric + .purchase-intent-metric {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .purchase-intent-search-actions .button {
    width: 100%;
  }

  .purchase-intent-scan-scope {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .popup[data-popup-state="open"] .popup-backdrop,
  .popup[data-popup-state="open"] .popup-panel {
    animation: none;
  }
}
