:root {
  --page: #f6f9ff;
  --page-soft: #edf4ff;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --ink: #16315f;
  --muted: #526685;
  --line: rgba(22, 49, 95, 0.1);
  --line-strong: rgba(22, 49, 95, 0.16);
  --shadow: 0 24px 52px rgba(17, 51, 120, 0.08);
  --navy: #0b4dc1;
  --navy-deep: #08348c;
  --navy-soft: #dfeaff;
  --focus: #ffbf47;
  --clean: #1f9860;
  --watch: #d9921d;
  --critical: #d85b49;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(112, 187, 255, 0.14), transparent 20%),
    linear-gradient(180deg, #edf4ff 0%, #ffffff 32%, var(--page) 100%);
  color: var(--ink);
  font-family: var(--font-body);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--navy);
}

.skip-links {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 1000;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #fff;
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(15, 54, 132, 0.14);
}

.skip-link:focus {
  left: 0;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.app-shell {
  width: min(1520px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.masthead {
  margin-bottom: 1rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  background: linear-gradient(180deg, #082b70 0%, #082660 100%);
  border-radius: 28px 28px 0 0;
  color: #fff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-copy h1,
.hero-copy h1,
.hero-copy h2,
.browse-card-head h2,
.browse-card-head h3,
.section-head h2,
.section-head h3,
.detail-empty h4,
.detail-header h4,
.subsection-head h4 {
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.brand-wordmark-primary {
  opacity: 0.98;
}

.brand-wordmark-secondary {
  color: #d9e7ff;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.topbar .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.topbar .brand-copy h1 {
  color: #fff;
}

.topbar-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.topbar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
  color: #fff;
  padding: 0.72rem 0.82rem;
  border-radius: 999px;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 700;
}

.topbar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-chevron {
  font-size: 0.72rem;
  opacity: 0.76;
}

.topbar-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meta-pill {
  min-width: 12rem;
  padding: 0.86rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-label {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  margin-bottom: 0.18rem;
}

.meta-pill strong {
  color: #fff;
}

.signin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.signin-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  position: relative;
  flex-shrink: 0;
}

.signin-icon::before,
.signin-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.signin-icon::before {
  top: 0.22rem;
  width: 0.56rem;
  height: 0.56rem;
  background: transparent;
}

.signin-icon::after {
  bottom: 0.18rem;
  width: 1rem;
  height: 0.62rem;
  border-top-left-radius: 0.9rem;
  border-top-right-radius: 0.9rem;
  border-bottom: 0;
}

.signin-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.promo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: #1713bb;
  color: #fff;
  border-radius: 0 0 28px 28px;
  font-weight: 700;
  text-align: center;
}

.promo-strip a {
  color: #6fe4ff;
  text-decoration: none;
}

.promo-strip a:hover {
  text-decoration: underline;
}

.layout {
  display: grid;
  gap: 1rem;
}

.hero-shell,
.shortcut-panel,
.workspace,
.footer-note {
  animation: rise-in 0.7s ease both;
}

.hero-shell {
  padding: 0 0 1.15rem;
  border-radius: var(--radius-xl);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 1.9rem 1.5rem 5rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.2), transparent 16%),
    radial-gradient(circle at 88% 18%, rgba(111, 228, 255, 0.2), transparent 18%),
    linear-gradient(135deg, #0e6ea7 0%, #167db8 42%, #0f6297 100%);
  box-shadow: 0 28px 58px rgba(17, 51, 120, 0.16);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.3;
}

.hero-visual::before {
  width: 18rem;
  height: 18rem;
  left: -4rem;
  bottom: -7rem;
  background: radial-gradient(circle, rgba(255, 214, 235, 0.88) 0%, rgba(255, 214, 235, 0) 68%);
}

.hero-visual::after {
  width: 16rem;
  height: 16rem;
  right: -3rem;
  top: -5rem;
  background: radial-gradient(circle, rgba(129, 233, 255, 0.55) 0%, rgba(129, 233, 255, 0) 70%);
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.52fr);
  gap: 1.25rem;
  align-items: start;
}

.hero-copy {
  color: #fff;
  padding: 0.35rem 0.2rem 0.35rem;
  position: relative;
  z-index: 1;
  max-width: none;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 0.98;
  max-width: 8.8ch;
}

.hero-text {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-spotlight {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 24px 54px rgba(7, 49, 122, 0.18);
  backdrop-filter: blur(12px);
}

.hero-spotlight .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-spotlight h3 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.08;
  max-width: 14ch;
}

.hero-spotlight-text {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.hero-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-mini-card {
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 32px rgba(7, 49, 122, 0.1);
}

.hero-mini-card span,
.hero-mini-card strong {
  display: block;
}

.hero-mini-card span {
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 800;
}

.hero-mini-card strong {
  margin-top: 0.4rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.hero-spotlight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.hero-spotlight-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.hero-spotlight-link.is-primary {
  background: #fff;
  color: var(--navy-deep);
  border-color: rgba(255, 255, 255, 0.82);
}

.hero-summary {
  margin-top: 1.5rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero-summary .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.hero-summary h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.steps-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.step-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-height: 100%;
  padding: 1rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--ink);
  box-shadow: 0 16px 32px rgba(7, 49, 122, 0.12);
}

.step-card span {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.step-card h4 {
  margin: 0 0 0.22rem;
  font-size: 1rem;
  font-weight: 800;
}

.hero-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.85rem;
  padding: 0 0 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.hero-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0 1rem;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-tab::before {
  content: none;
}

.hero-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.hero-tab:hover,
.hero-tab.is-active {
  color: #fff;
}

.hero-tab.is-active::after {
  background: #ff9f1c;
}

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

.browse-card {
  position: relative;
  z-index: 2;
  margin: -3rem 1.15rem 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(15, 54, 132, 0.18);
}

.browse-rail {
  padding: 1rem 1.15rem 0;
}

.browse-rail-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 0 0.95rem;
}

.browse-rail-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.rail-mini-select {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.6rem;
  padding: 0.1rem 0.35rem 0.1rem 0.75rem;
  border-radius: 999px;
  background: rgba(11, 77, 193, 0.04);
  border: 1px solid rgba(22, 49, 95, 0.08);
}

.rail-mini-select span {
  font-size: 0.9rem;
  color: var(--navy-deep);
  font-weight: 800;
}

.rail-mini-select select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  outline: none;
  padding-right: 0.35rem;
}

.rail-check {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.6rem;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: rgba(11, 77, 193, 0.04);
  border: 1px solid rgba(22, 49, 95, 0.08);
  cursor: pointer;
  font-weight: 800;
}

.rail-check input {
  accent-color: var(--navy);
  transform: scale(1.12);
}

.browse-linear-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(220px, 0.74fr) minmax(220px, 0.74fr) 240px;
  gap: 0;
  border: 1px solid rgba(22, 49, 95, 0.12);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 54, 132, 0.1);
}

.rail-field {
  display: grid;
  gap: 0.4rem;
  min-height: 6.8rem;
  padding: 1rem 1.2rem 0.95rem;
  background: #fff;
  border-right: 1px solid rgba(22, 49, 95, 0.1);
}

.rail-field span {
  font-size: 0.8rem;
  color: rgba(22, 49, 95, 0.78);
  font-weight: 800;
}

.rail-field input,
.rail-field select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
  padding: 0;
  line-height: 1.25;
}

.rail-field select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rail-field input::placeholder {
  color: rgba(22, 49, 95, 0.46);
}

.rail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, #0d41b1 0%, #0a38a0 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
}

.rail-action:hover {
  background: linear-gradient(180deg, #0a3aa3 0%, #082f86 100%);
}

.browse-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0 0.15rem;
}

.browse-utility-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.browse-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.95rem 1.15rem 0;
}

.browse-card-head h2,
.browse-card-head h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.browse-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 16rem minmax(280px, 0.9fr);
  gap: 0.85rem;
  padding: 1rem 1.15rem 0;
}

.search-field,
.toggle-card,
.select-card,
.metric-card,
.place-card,
.area-chip,
.quick-card,
.result-card,
.detail-card,
.footer-note,
.control-subsection {
  border: 1px solid var(--line);
}

.search-field,
.toggle-card,
.select-card {
  display: grid;
  gap: 0.55rem;
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.search-field-wide {
  min-height: 100%;
}

.search-field span,
.select-card span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field input,
.select-card select {
  width: 100%;
  border: 1px solid rgba(22, 49, 95, 0.1);
  outline: none;
  background: rgba(11, 77, 193, 0.035);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.search-field input::placeholder {
  color: rgba(22, 49, 95, 0.46);
}

.toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
}

.toggle-card input {
  margin-top: 0.25rem;
  accent-color: var(--navy);
  transform: scale(1.15);
}

.toggle-text {
  display: grid;
  gap: 0.25rem;
}

.toggle-text strong {
  font-size: 1rem;
}

.toggle-text small,
.subsection-head p,
.map-note,
.detail-meta,
.detail-history p,
.quick-caption,
.empty-state p,
.footer-note p {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.15rem 0;
}

.metric-card {
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f6ff 100%);
}

.metric-card .metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 1;
  font-weight: 800;
}

.metric-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.browse-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 1rem;
  padding: 1rem 1.15rem 1.15rem;
}

.control-subsection {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.compact-subsection {
  align-self: start;
}

.subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.subsection-head h4 {
  font-size: 1rem;
}

.request-place-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef5ff 0%, #e6f0ff 100%);
  border: 1px solid rgba(11, 77, 193, 0.12);
}

.request-place-cta p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.request-place-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(11, 77, 193, 0.16);
}

.request-place-link:hover {
  background: #0a43a7;
}

.ghost-button {
  border: 1px solid rgba(22, 49, 95, 0.12);
  padding: 0.74rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-deep);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 54, 132, 0.08);
}

.ghost-button:hover {
  background: #f3f8ff;
}

.severity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.severity-pill {
  border: 1px solid transparent;
  padding: 0.74rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.severity-pill:hover,
.place-card:hover,
.area-chip:hover,
.result-card:hover {
  transform: translateY(-2px);
}

.severity-pill[data-tone="all"] {
  background: rgba(11, 77, 193, 0.08);
  color: var(--ink);
}

.severity-pill[data-tone="clean"] {
  background: rgba(31, 152, 96, 0.12);
  color: var(--clean);
}

.severity-pill[data-tone="watch"] {
  background: rgba(217, 146, 29, 0.14);
  color: #9b6700;
}

.severity-pill[data-tone="critical"] {
  background: rgba(216, 91, 73, 0.12);
  color: var(--critical);
}

.severity-pill.is-active {
  border-color: rgba(22, 49, 95, 0.16);
  box-shadow: inset 0 0 0 1px rgba(22, 49, 95, 0.1);
}

.place-grid,
.area-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.place-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.area-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.place-card,
.area-chip {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.place-card {
  border-radius: 20px;
  padding: 0.95rem;
  background: #fff;
}

.place-card.is-active {
  border-color: rgba(11, 77, 193, 0.24);
  box-shadow: 0 12px 26px rgba(17, 51, 120, 0.06), inset 0 0 0 1px rgba(11, 77, 193, 0.12);
}

.area-chip {
  border-radius: 20px;
  padding: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.area-chip.is-active {
  border-color: rgba(11, 77, 193, 0.24);
  box-shadow: 0 12px 26px rgba(17, 51, 120, 0.06), inset 0 0 0 1px rgba(11, 77, 193, 0.12);
}

.area-chip-head,
.place-card-head,
.place-card-foot,
.result-topline,
.result-counts,
.detail-stats,
.detail-actions,
.history-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.place-card h4,
.result-title,
.detail-header h4 {
  margin: 0;
  font-size: 1rem;
}

.place-card p,
.result-meta,
.detail-section p,
.detail-section li,
.history-entry small,
.area-chip span,
.area-chip small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.area-chip strong,
.area-chip span,
.area-chip small {
  display: block;
}

.area-chip strong {
  font-size: 0.98rem;
}

.place-card .place-count {
  font-size: 1.38rem;
  font-weight: 800;
}

.place-card .place-caption {
  font-size: 0.82rem;
  color: var(--muted);
}

.status-chip,
.inline-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-chip[data-tone="clean"],
.inline-chip[data-tone="clean"] {
  background: rgba(31, 152, 96, 0.12);
  color: var(--clean);
}

.status-chip[data-tone="watch"],
.inline-chip[data-tone="watch"] {
  background: rgba(217, 146, 29, 0.14);
  color: #9b6700;
}

.status-chip[data-tone="critical"],
.inline-chip[data-tone="critical"] {
  background: rgba(216, 91, 73, 0.12);
  color: var(--critical);
}

.status-chip[data-tone="neutral"],
.inline-chip[data-tone="neutral"] {
  background: rgba(11, 77, 193, 0.08);
  color: var(--ink);
}

.count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: rgba(11, 77, 193, 0.07);
  color: var(--ink);
  padding: 0.42rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.shortcut-panel,
.results,
.map-panel,
.footer-note {
  padding: 1.15rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
}

.shortcut-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quick-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.quick-card {
  border-radius: 22px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

.quick-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.quick-caption {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.quick-entry {
  width: 100%;
  border: 1px solid rgba(22, 49, 95, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.84rem 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-entry + .quick-entry {
  margin-top: 0.55rem;
}

.quick-entry:hover {
  box-shadow: 0 12px 24px rgba(17, 51, 120, 0.06);
}

.quick-entry strong,
.quick-entry span,
.quick-entry small {
  display: block;
}

.quick-entry span,
.quick-entry small {
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  align-items: start;
}

.results {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.results-count {
  color: var(--muted);
  font-weight: 800;
}

.results-helper {
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f3f8ff 0%, #e9f2ff 100%);
  border: 1px solid rgba(11, 77, 193, 0.08);
  color: var(--ink);
  line-height: 1.55;
}

.results-list {
  display: grid;
  gap: 0.7rem;
  max-height: 26rem;
  overflow: auto;
  padding-right: 0.25rem;
  margin-top: 1rem;
}

.results-list::-webkit-scrollbar {
  width: 10px;
}

.results-list::-webkit-scrollbar-thumb {
  background: rgba(22, 49, 95, 0.15);
  border-radius: 999px;
}

.result-card {
  width: 100%;
  border-radius: 22px;
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.result-card:hover {
  box-shadow: 0 14px 28px rgba(17, 51, 120, 0.07);
}

.result-card.is-selected {
  border-color: rgba(11, 77, 193, 0.24);
  box-shadow: 0 16px 30px rgba(17, 51, 120, 0.08), inset 4px 0 0 var(--navy);
}

.result-title {
  font-weight: 800;
}

.result-meta {
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.result-counts {
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.detail-card {
  margin-top: 1rem;
  border-radius: 24px;
  padding: 1rem;
  scroll-margin-top: 1rem;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-color: rgba(11, 77, 193, 0.18);
  color: #fff;
}

.detail-header {
  display: grid;
  gap: 0.55rem;
}

.detail-card .eyebrow,
.detail-card .detail-section h5,
.detail-card .detail-empty h4 {
  color: #fff;
}

.detail-card .detail-meta,
.detail-card .detail-section p,
.detail-card .detail-list li,
.detail-card .history-entry small,
.detail-card .detail-empty p {
  color: rgba(255, 255, 255, 0.8);
}

.detail-card .inline-chip[data-tone="neutral"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.detail-card .count-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.detail-stats,
.detail-actions {
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.detail-section {
  margin-top: 1.05rem;
}

.detail-section h5 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.detail-list,
.history-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li,
.history-entry {
  padding: 0.78rem 0.82rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.history-entry {
  align-items: flex-start;
}

.empty-state,
.detail-empty {
  text-align: left;
  padding: 0.3rem 0.15rem;
}

.empty-state h4,
.detail-empty h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.map-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.map-head {
  align-items: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.legend-dot {
  display: inline-block;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  margin-right: 0.25rem;
}

.legend-clean {
  background: var(--clean);
}

.legend-watch {
  background: var(--watch);
}

.legend-critical {
  background: var(--critical);
}

.map-frame {
  height: min(68vh, 760px);
  margin-top: 1rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(22, 49, 95, 0.08);
}

.leaflet-container {
  font-family: var(--font-body);
}

.place-pin {
  min-width: 6.1rem;
  padding: 0.55rem 0.68rem 0.58rem;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(17, 51, 120, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.place-pin strong,
.place-pin span {
  display: block;
}

.place-pin strong {
  font-size: 1.1rem;
  line-height: 1;
}

.place-pin span {
  margin-top: 0.18rem;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.place-pin--clean {
  background: linear-gradient(135deg, #1f9860, #43c57f);
}

.place-pin--watch {
  background: linear-gradient(135deg, #d9921d, #f1b454);
}

.place-pin--critical {
  background: linear-gradient(135deg, #d85b49, #f08372);
}

.place-pin--muted {
  background: linear-gradient(135deg, #8096bc, #9bb2d8);
}

.place-pin.is-active {
  transform: scale(1.04);
}

.map-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.active-summary {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.active-summary-card {
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f6ff 100%);
  border: 1px solid rgba(22, 49, 95, 0.08);
  padding: 0.95rem 1rem;
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.footer-copy {
  display: grid;
  gap: 0.55rem;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.footer-credit-label {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(11, 77, 193, 0.08);
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.footer-credit a {
  color: var(--navy-deep);
  font-weight: 800;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.footer-credit-cherry {
  font-size: 1rem;
  line-height: 1;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1240px) {
  .hero-intro,
  .browse-filter-grid,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding-bottom: 3.25rem;
  }

  .hero-spotlight-grid,
  .steps-stack {
    grid-template-columns: 1fr;
  }

  .browse-card {
    margin: -2rem 0.9rem 0;
  }

  .browse-linear-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(22, 49, 95, 0.1);
  }

  .rail-field,
  .rail-action {
    min-height: 5.25rem;
    border-right: 0;
  }

  .browse-utility-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-picks {
    grid-template-columns: 1fr;
  }

  .results {
    order: 1;
  }

  .map-panel {
    order: 2;
  }
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100vw - 1rem, 100%);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px 24px 0 0;
  }

  .topbar-nav,
  .hero-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .topbar-nav::-webkit-scrollbar,
  .hero-tabs::-webkit-scrollbar {
    display: none;
  }

  .topbar-meta {
    justify-content: flex-start;
  }

  .promo-strip {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    padding: 1.5rem 1rem 2rem;
  }

  .hero-tabs {
    gap: 0.95rem;
  }

  .browse-card {
    margin: -1.15rem 0 0;
  }

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

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-spotlight h3 {
    max-width: none;
  }

  .hero-summary-head {
    margin-bottom: 0.75rem;
  }

  .browse-rail-top {
    flex-direction: column;
    align-items: stretch;
  }

  .browse-rail-meta {
    width: 100%;
  }

  .browse-rail-meta {
    justify-content: space-between;
  }

  .browse-linear-grid {
    grid-template-columns: 1fr;
  }

  .rail-field,
  .rail-action {
    min-height: auto;
  }

  .browse-utility-row {
    gap: 0.75rem;
  }

  .place-grid,
  .area-grid,
  .quick-picks {
    grid-template-columns: 1fr;
  }

  .map-frame {
    height: 22rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 1rem;
  }

  .brand-wordmark {
    font-size: 2.2rem;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2rem;
  }

  .hero-visual {
    padding: 1.3rem 0.85rem 1.5rem;
  }

  .hero-tab {
    font-size: 0.95rem;
  }

  .rail-mini-select,
  .rail-check {
    width: 100%;
    justify-content: space-between;
  }

  .rail-field input,
  .rail-field select {
    font-size: 1.1rem;
  }

  .browse-card,
  .shortcut-panel,
  .results,
  .map-panel,
  .footer-note {
    border-radius: 24px;
  }

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

  .browse-card-head,
  .browse-rail,
  .metric-grid,
  .browse-filter-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .results-helper,
  .hero-text,
  .map-note {
    font-size: 0.92rem;
  }

  .place-pin {
    min-width: 5.45rem;
    padding: 0.45rem 0.56rem 0.5rem;
  }

  .place-pin strong {
    font-size: 1rem;
  }

  .place-pin span {
    font-size: 0.64rem;
  }
}
