:root {
  --bg: #f5f8f9;
  --surface: #ffffff;
  --text: #15262b;
  --muted: #5b6f76;
  --accent: #0d8a86;
  --warning: #f29f05;
  --danger: #cc3d2f;
  --ok: #2b8a3e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Marianne", "Avenir Next", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(168, 225, 221, 0.9) 0%, rgba(245, 248, 249, 0) 32%),
    radial-gradient(circle at top left, rgba(255, 239, 194, 0.45) 0%, rgba(245, 248, 249, 0) 24%),
    linear-gradient(180deg, #f7fbfb 0%, #edf4f5 100%);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

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

.top-bar-home {
  align-items: flex-start;
  gap: 18px;
}

.hero-shell {
  margin-bottom: 16px;
  display: grid;
  gap: 12px;
}

.hero-shell-selected {
  gap: 12px;
}

.hero-brand-block {
  min-width: 0;
  max-width: 520px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 164px;
  height: 164px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-name {
  display: block;
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 0.7vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.brand-subtitle {
  max-width: 34ch;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(231, 243, 243, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.lang-btn {
  background: transparent;
  color: #2b4a50;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 999px;
  min-width: 46px;
  font-weight: 700;
}

.lang-btn.active {
  background: #0d8a86;
  color: #fff;
  border-color: #0d8a86;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  border: 1px solid rgba(179, 211, 214, 0.7);
  box-shadow: 0 16px 40px rgba(16, 50, 60, 0.08);
  padding: 18px;
}

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.indicators-shell {
  display: grid;
  gap: 12px;
}

.indicator-toolbar {
  display: grid;
  gap: 10px;
}

.indicator-grid {
  order: 3;
  align-items: start;
}

.day-toggle-row {
  margin: 10px 0 12px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.day-toggle {
  background: #e6f2f2;
  color: #184d54;
  border: 1px solid #b7d8d9;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}

.day-toggle.active {
  background: #0d8a86;
  border-color: #0d8a86;
  color: #fff;
}

.favorite-star {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
}

.share-pill {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-pill-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-pill-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.share-menu-wrap {
  position: relative;
}

.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  display: grid;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid #cfe0e3;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(18, 48, 56, 0.14);
  z-index: 4;
}

.share-menu-item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  color: #184d54;
  text-align: left;
  border: 0;
}

.share-menu-item:hover {
  background: #eef8f8;
}

.http-error-shell {
  margin-top: 20px;
  margin-bottom: 28px;
}

.http-error-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: grid;
  gap: 22px;
  border-color: rgba(154, 197, 201, 0.82);
  background:
    radial-gradient(circle at top right, rgba(13, 138, 134, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(242, 159, 5, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.9);
}

.http-error-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      135deg,
      rgba(13, 138, 134, 0.035) 0,
      rgba(13, 138, 134, 0.035) 12px,
      rgba(255, 255, 255, 0) 12px,
      rgba(255, 255, 255, 0) 26px
    );
  pointer-events: none;
}

.http-error-status-row,
.http-error-copy,
.http-error-actions,
.http-error-grid {
  position: relative;
  z-index: 1;
}

.http-error-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.http-error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 85, 95, 0.08);
  color: #0e555f;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.http-error-eyebrow {
  color: #2e6a70;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.http-error-copy {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.http-error-search {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.http-error-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.http-error-search-input-wrap {
  min-width: 0;
}

.http-error-search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(133, 178, 182, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.http-error-search-input::placeholder {
  color: #648087;
}

.http-error-search-submit {
  min-height: 52px;
  padding-inline: 18px;
}

.http-error-search-feedback {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.http-error-search-results {
  display: grid;
  gap: 8px;
}

.http-error-shortcuts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.http-error-shortcuts-title {
  margin: 0;
  color: #47656d;
  font-size: 0.9rem;
  font-weight: 700;
}

.http-error-shortcuts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.http-error-shortcut {
  text-decoration: none;
}

.http-error-search-result {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(188, 218, 220, 0.92);
  background: rgba(247, 251, 251, 0.92);
  color: inherit;
  text-decoration: none;
}

.http-error-search-result strong {
  color: #17343f;
}

.http-error-search-result span {
  color: #47656d;
  font-size: 0.94rem;
}

.http-error-search-result:hover {
  background: rgba(235, 247, 247, 0.96);
  border-color: rgba(13, 138, 134, 0.35);
}

.http-error-title {
  margin: 0;
  font-size: clamp(2rem, 1.7rem + 1.6vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.http-error-description,
.http-error-hint {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
}

.http-error-description {
  color: #1f3a41;
  max-width: 62ch;
}

.http-error-hint {
  color: var(--muted);
  max-width: 60ch;
}

.http-error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.http-error-primary,
.http-error-secondary,
.http-error-button {
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 800;
  text-decoration: none;
}

.http-error-primary {
  background: #0d8a86;
  color: #fff;
  border-color: #0d8a86;
  box-shadow: 0 12px 24px rgba(13, 138, 134, 0.2);
}

.http-error-secondary {
  background: rgba(239, 248, 248, 0.95);
  color: #184d54;
  border: 1px solid #b7d8d9;
}

.http-error-button {
  cursor: pointer;
}

.http-error-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.http-error-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(183, 216, 217, 0.9);
  background: rgba(247, 251, 251, 0.9);
  color: #2b5a62;
  font-size: 0.9rem;
  font-weight: 700;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill {
  background: #e8f6f5;
  color: #165f5d;
  border: 1px solid #bde5e3;
  border-radius: 999px;
  white-space: nowrap;
  padding: 8px 12px;
}

.pill-favorite {
  background: #fff4d9;
  color: #8a5b00;
  border-color: #f0d69a;
}

.quick-picks-card {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(247, 251, 251, 0.92) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.quick-picks-section {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
}

.quick-picks-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #53727a;
}

.search-module {
  z-index: 2;
  background:
    radial-gradient(circle at top right, rgba(255, 225, 155, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 251, 251, 0.92) 100%);
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid #cfe4e6;
  box-shadow: 0 18px 34px rgba(14, 73, 83, 0.08);
}

.search-module-head {
  display: grid;
  gap: 4px;
  margin-bottom: 0;
}

.search-kicker {
  margin-bottom: 0;
}

.search-support {
  margin: 0;
  max-width: 64ch;
}

.search-row {
  gap: 10px;
  flex-wrap: nowrap;
}

.search-input {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid #b9d3d7;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-size: 1rem;
}

.route-loading-search {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.route-loading-input {
  display: flex;
  align-items: center;
}

.route-loading-input .skeleton-title {
  margin-bottom: 0;
  width: 62%;
}

.route-loading-banner {
  margin-top: 0;
}

.route-loading-toolbar {
  display: grid;
  gap: 10px;
}

.route-loading-pill {
  min-width: 150px;
}

.route-loading-pill .skeleton-line {
  width: 100%;
  margin-top: 0;
}

.route-loading-city-shell {
  align-items: stretch;
}

.route-loading-seo-card,
.route-loading-sources-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
}

.route-loading-sources-title {
  margin: 0 0 4px;
  font-size: 1.08rem;
  color: #0f2f3a;
}

.route-loading-rail-card {
  min-height: 0;
}

.route-loading-rail-list {
  display: grid;
  gap: 12px;
}

.route-loading-rail-row {
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(191, 219, 222, 0.7);
}

.route-loading-rail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.route-loading-rail-row .skeleton-line {
  width: 72%;
  margin: 0;
}

.route-loading-rail-row:nth-child(2n) .skeleton-line {
  width: 58%;
}

.search-submit {
  min-height: 58px;
  padding-inline: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f8b86 0%, #157b8a 100%);
  box-shadow: 0 12px 22px rgba(13, 138, 134, 0.2);
}

.search-empty {
  margin: 10px 0 0;
}

.city-suggestions {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% - 8px);
  background: #fff;
  border: 1px solid #d5e3e6;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(13, 52, 62, 0.12);
  max-height: 320px;
  overflow: auto;
}

.city-suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf2f4;
  background: transparent;
  color: var(--text);
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.city-suggestion:last-child {
  border-bottom: 0;
}

.city-suggestion:hover {
  background: #eef8f8;
}

.city-suggestion-active {
  background: #e6f5f4;
}

.loading-row {
  cursor: default;
}

input, button, select {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #bfd4d8;
}

button { background: var(--accent); color: white; border: none; cursor: pointer; }
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.admin-login-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}
.admin-theme-root {
  --bg: #071215;
  --surface: #101e24;
  --text: #edf8f7;
  --muted: #9fb6bb;
  --accent: #4fd8c8;
  --warning: #f7c35c;
  --danger: #ff806d;
  --ok: #74e39b;
  --brand: #69b7ff;
  --admin-bg-0: #071215;
  --admin-bg-1: #0c181d;
  --admin-bg-2: #10252c;
  --admin-surface: rgba(15, 28, 34, 0.94);
  --admin-surface-soft: rgba(20, 38, 45, 0.78);
  --admin-surface-raised: rgba(25, 47, 55, 0.96);
  --admin-border: rgba(126, 169, 176, 0.28);
  --admin-border-soft: rgba(126, 169, 176, 0.18);
  --admin-text: #edf8f7;
  --admin-muted: #9fb6bb;
  --admin-muted-strong: #bdd0d3;
  --admin-accent: #4fd8c8;
  --admin-accent-strong: #8bf2e6;
  --admin-accent-soft: rgba(79, 216, 200, 0.16);
  --admin-info-soft: rgba(67, 145, 222, 0.18);
  --admin-info-border: rgba(114, 181, 242, 0.42);
  --admin-ok-soft: rgba(65, 190, 111, 0.18);
  --admin-ok-border: rgba(112, 224, 145, 0.4);
  --admin-warn-soft: rgba(247, 195, 92, 0.18);
  --admin-warn-border: rgba(247, 195, 92, 0.44);
  --admin-danger-soft: rgba(255, 128, 109, 0.18);
  --admin-danger-border: rgba(255, 128, 109, 0.44);
  --admin-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  min-height: 100vh;
  color: var(--admin-text);
  color-scheme: dark;
  background:
    radial-gradient(circle at 8% 4%, rgba(79, 216, 200, 0.18), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(247, 195, 92, 0.12), transparent 26%),
    linear-gradient(180deg, var(--admin-bg-1) 0%, var(--admin-bg-0) 62%, #050b0d 100%);
}
.admin-theme-root ::selection {
  background: rgba(79, 216, 200, 0.32);
  color: #ffffff;
}
.admin-theme-root a {
  color: var(--admin-accent-strong);
}
.admin-theme-root input,
.admin-theme-root select,
.admin-theme-root textarea {
  background: rgba(8, 17, 21, 0.92);
  border-color: var(--admin-border);
  color: var(--admin-text);
}
.admin-theme-root input::placeholder,
.admin-theme-root textarea::placeholder {
  color: rgba(190, 208, 211, 0.62);
}
.small { color: var(--muted); font-size: 0.9rem; }
.badge { border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.level-low { background: #def7e5; color: #195c28; }
.level-moderate { background: #fff4db; color: #8a5b00; }
.level-high, .level-very_high { background: #ffe1dd; color: #8a241b; }
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 11px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.status-ok {
  background: #e4f7ea;
  border-color: #b8dfc4;
  color: #175f2a;
}
.status-warn {
  background: #fff3de;
  border-color: #efcf8f;
  color: #835400;
}
.status-danger {
  background: #fff0ec;
  border-color: #f1b9af;
  color: #8b221a;
}
.status-info {
  background: #e8f2ff;
  border-color: #bcd2f4;
  color: #184e92;
}
.status-muted {
  background: #eef3f4;
  border-color: #d5e0e2;
  color: #516a71;
}
.incident-banner { border-left: 4px solid #f29f05; }
.incident-info { border-left-color: #2f73cc; }
.incident-warning { border-left-color: #f29f05; }
.incident-major { border-left-color: #cc3d2f; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid #e4eef0;
  padding: 8px 10px;
  vertical-align: top;
}
.admin-table tbody tr:hover {
  background: rgba(13, 138, 134, 0.035);
}
.admin-table th {
  color: var(--muted);
  font-weight: 700;
}
.admin-ops-strip {
  background:
    radial-gradient(circle at top right, rgba(13, 138, 134, 0.12), transparent 34%),
    linear-gradient(145deg, #f9fffe 0%, #ffffff 58%, #f4fbfa 100%);
}
.admin-ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-ops-card {
  border: 1px solid #d8e9ea;
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
}
.admin-ops-card-warning {
  border-color: #f0cf8a;
  background: #fffaf0;
}
.admin-ops-eyebrow {
  margin: 0 0 8px;
  color: #5e757d;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-inline-metrics {
  margin: 0 0 12px;
}
.admin-task-dashboard-shell {
  display: grid;
  gap: 12px;
}
.admin-task-dashboard-summary {
  margin-top: 4px;
}
.admin-task-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.admin-task-dashboard-rail {
  position: sticky;
  top: 12px;
  align-self: start;
}
.admin-task-summary-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.admin-task-summary-item {
  border: 1px solid rgba(120, 120, 120, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}
.admin-task-summary-label {
  font-size: 12px;
  opacity: 0.75;
}
.admin-task-summary-value {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}
.admin-task-summary-item.tone-danger {
  border-color: rgba(200, 40, 40, 0.35);
  background: rgba(255, 235, 235, 0.75);
}
.admin-task-summary-item.tone-warn {
  border-color: rgba(184, 112, 0, 0.35);
  background: rgba(255, 243, 220, 0.75);
}
.admin-task-summary-item.tone-info {
  border-color: rgba(30, 100, 200, 0.35);
  background: rgba(230, 242, 255, 0.75);
}
.admin-task-summary-item.tone-ok {
  border-color: rgba(30, 140, 70, 0.35);
  background: rgba(230, 250, 238, 0.75);
}
.admin-task-right-rail {
  display: grid;
  gap: 10px;
}
.admin-task-advanced {
  border: 1px solid #d7e4e6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0;
}
.admin-task-advanced > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-weight: 700;
  color: #18384b;
}
.admin-task-advanced > summary::-webkit-details-marker {
  display: none;
}
.admin-task-advanced-grid {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}
.admin-task-advanced-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #dce7ea;
  background: rgba(255, 255, 255, 0.9);
}
.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.44);
  display: grid;
  place-items: center end;
  padding: 16px;
}
.admin-drawer {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid #d8e2e6;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 16px;
  padding: 18px;
}
.admin-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-drawer-body {
  display: grid;
  gap: 12px;
}
.admin-drawer-section {
  display: grid;
  gap: 6px;
}
.admin-drawer-section p {
  margin: 0;
}
.admin-drawer-pre {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f7fafc;
  border: 1px solid #e3ecee;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
.admin-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.22), transparent 36%),
    rgba(15, 23, 42, 0.54);
}
.admin-confirm-dialog {
  width: min(520px, calc(100vw - 36px));
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(217, 119, 6, 0.34);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 62%);
  box-shadow: 0 24px 90px rgba(15, 23, 42, 0.34);
}
.admin-confirm-copy {
  display: grid;
  gap: 8px;
}
.admin-confirm-copy h2,
.admin-confirm-copy p {
  margin: 0;
}
.admin-confirm-eyebrow {
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-confirm-actions {
  justify-content: flex-end;
}
.admin-task-grid {
  display: grid;
  gap: 12px;
}
.admin-task-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.admin-task-card-primary {
  background:
    radial-gradient(circle at top right, rgba(13, 138, 134, 0.08), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f8fbfb 100%);
}
.admin-task-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.admin-task-card-copy {
  min-width: 0;
  max-width: 640px;
}
.admin-task-card-list {
  display: grid;
  gap: 8px;
}
.admin-task-card-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e4e6;
  border-radius: 14px;
  background: rgba(247, 250, 250, 0.9);
}
.admin-task-card-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.admin-task-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7e4e6;
  background: rgba(247, 250, 250, 0.9);
}
.admin-task-card-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.admin-task-card-muted {
  color: #5b6f76;
}
.admin-task-lot-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.admin-task-lot-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7e4e6;
  background: rgba(255, 255, 255, 0.88);
}
.admin-task-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.admin-task-mini-table th,
.admin-task-mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e3ecee;
  text-align: left;
  vertical-align: top;
}
.admin-task-mini-table th {
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #667d85;
}
.admin-task-mini-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-task-rail-panel {
  border: 1px solid rgba(120, 120, 120, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
}
.admin-task-rail-title {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 6px;
}
.admin-task-rail-muted {
  font-size: 13px;
  opacity: 0.9;
}
.admin-task-rail-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.admin-task-rail-links {
  padding-left: 16px;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.admin-task-rail-pre {
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0.85;
}
.admin-task-rail-incident-title {
  font-size: 13px;
  font-weight: 700;
}
.admin-task-rail-incident-msg {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
}
.admin-monitoring-shell {
  max-width: 1480px;
  padding: 24px 28px 42px;
}
.admin-monitoring-shell .card {
  border-radius: 14px;
  border-color: #d6e0e6;
  background: #ffffff;
  backdrop-filter: none;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 10px 24px rgba(15, 23, 42, 0.05);
}
.admin-monitoring-shell h2 {
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.admin-monitoring-shell h3 {
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}
.admin-monitoring-shell input,
.admin-monitoring-shell select,
.admin-monitoring-shell button {
  border-radius: 10px;
}
.admin-monitoring-shell button:not(.table-sort):not(.day-toggle) {
  background: linear-gradient(180deg, #163b52 0%, #102c3d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.admin-monitoring-shell .day-toggle {
  background: #f3f6f8;
  color: #1d3948;
  border-color: #cfdbe2;
}
.admin-monitoring-shell .day-toggle.active {
  background: #18384b;
  border-color: #18384b;
  color: #fff;
}
.admin-monitoring-shell .admin-table {
  font-size: 0.84rem;
}
.admin-monitoring-shell .admin-table th {
  background: #f5f8fa;
  color: #556a74;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}
.admin-monitoring-shell .admin-table td,
.admin-monitoring-shell .admin-table th {
  padding: 10px 12px;
}
.admin-monitoring-shell .admin-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}
.admin-command-center {
  margin-top: 12px;
  background:
    radial-gradient(circle at top right, rgba(106, 169, 212, 0.16), transparent 36%),
    linear-gradient(145deg, #112432 0%, #152f41 52%, #19384b 100%);
  border-color: #203d50;
  color: #f3f7fa;
}
.admin-command-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.admin-command-copy {
  max-width: 48rem;
}
.admin-command-kicker {
  margin: 0 0 8px;
  color: #89c6ec;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-command-title {
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 2.7rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.admin-command-subtitle {
  margin: 8px 0 0;
  max-width: 42rem;
  color: rgba(233, 241, 246, 0.8);
}
.admin-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.admin-command-center .small,
.admin-command-center .admin-ops-eyebrow {
  color: rgba(228, 237, 243, 0.76);
}
.admin-command-center .status-chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.admin-command-actions button {
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.admin-summary-card {
  border: 1px solid rgba(154, 180, 196, 0.24);
  border-radius: 16px;
  padding: 14px;
  background: rgba(8, 17, 24, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.admin-summary-card strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.05;
}
.admin-summary-card-danger {
  border-color: rgba(241, 185, 175, 0.34);
  background: linear-gradient(180deg, rgba(76, 24, 21, 0.46) 0%, rgba(56, 16, 14, 0.4) 100%);
}
.admin-summary-card-warn {
  border-color: rgba(239, 207, 143, 0.34);
  background: linear-gradient(180deg, rgba(86, 58, 9, 0.42) 0%, rgba(59, 41, 8, 0.34) 100%);
}
.admin-summary-card-live {
  border-color: rgba(151, 190, 229, 0.34);
  background: linear-gradient(180deg, rgba(16, 51, 83, 0.46) 0%, rgba(9, 34, 58, 0.34) 100%);
}
.admin-notice-stack {
  display: grid;
  gap: 10px;
}
.admin-notice {
  padding: 14px 16px;
  font-weight: 600;
}
.admin-notice-error {
  border-color: #efb8b0;
  color: #8a241b;
  background: #fff5f3;
}
.admin-notice-success {
  border-color: #b5dcbf;
  color: #195c28;
  background: #f3fbf5;
}
.admin-action-deck {
  background:
    linear-gradient(180deg, #f9fbfc 0%, #f3f7f9 100%);
}
.admin-action-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 12px;
  margin-top: 14px;
}
.admin-action-panel {
  border: 1px solid #d7e1e7;
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 252, 0.98) 100%);
}
.admin-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
}
.admin-source-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d2dfe6;
  border-radius: 14px;
  background: #fbfcfd;
  color: #163443;
  padding: 12px 14px;
}
.admin-source-pill-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}
.admin-source-pill-meta {
  display: block;
}
.admin-source-pill-error {
  color: #a52a2a;
}
.admin-source-pill.is-selected {
  border-color: #0d8a86;
  background: #0d8a86;
  color: #fff;
}
.admin-source-pill.is-selected .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.admin-source-pill.is-selected .small {
  color: rgba(255, 255, 255, 0.86);
}
.admin-source-pill.is-selected .admin-source-pill-error {
  color: #ffd7d7;
}
.admin-activity-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.admin-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #dde5eb;
  background: #fcfdfe;
}
.admin-mini-divider {
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, rgba(191, 212, 216, 0), rgba(189, 203, 212, 1), rgba(191, 212, 216, 0));
}
.admin-section {
  margin-top: 12px;
}
.admin-theme-root .small,
.admin-theme-root .admin-task-card-muted,
.admin-theme-root .admin-ops-eyebrow {
  color: var(--admin-muted);
}
.admin-theme-root .card,
.admin-theme-root .admin-monitoring-shell .card {
  border-color: var(--admin-border);
  background:
    linear-gradient(180deg, rgba(20, 38, 45, 0.94) 0%, rgba(12, 24, 29, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--admin-shadow);
}
.admin-theme-root .admin-table th,
.admin-theme-root .admin-task-mini-table th {
  background: rgba(18, 36, 43, 0.96);
  color: var(--admin-muted-strong);
}
.admin-theme-root .admin-table td,
.admin-theme-root .admin-table th,
.admin-theme-root .admin-task-mini-table td,
.admin-theme-root .admin-task-mini-table th {
  border-bottom-color: var(--admin-border-soft);
}
.admin-theme-root .admin-table tbody tr:nth-child(even),
.admin-theme-root .admin-monitoring-shell .admin-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}
.admin-theme-root .admin-table tbody tr:hover {
  background: rgba(79, 216, 200, 0.08);
}
.admin-theme-root .table-sort {
  color: inherit;
}
.admin-theme-root .status-ok,
.admin-theme-root .level-low {
  background: var(--admin-ok-soft);
  border-color: var(--admin-ok-border);
  color: #9cf4b8;
}
.admin-theme-root .status-warn,
.admin-theme-root .level-moderate {
  background: var(--admin-warn-soft);
  border-color: var(--admin-warn-border);
  color: #ffda86;
}
.admin-theme-root .status-danger,
.admin-theme-root .level-high,
.admin-theme-root .level-very_high {
  background: var(--admin-danger-soft);
  border-color: var(--admin-danger-border);
  color: #ffae9f;
}
.admin-theme-root .status-info {
  background: var(--admin-info-soft);
  border-color: var(--admin-info-border);
  color: #9ccfff;
}
.admin-theme-root .status-muted {
  background: rgba(151, 174, 179, 0.14);
  border-color: var(--admin-border-soft);
  color: var(--admin-muted-strong);
}
.admin-theme-root .admin-ops-strip,
.admin-theme-root .admin-action-deck,
.admin-theme-root .admin-task-card-primary {
  background:
    radial-gradient(circle at top right, rgba(79, 216, 200, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(18, 38, 45, 0.98) 0%, rgba(9, 20, 25, 0.98) 100%);
}
.admin-theme-root .admin-ops-card,
.admin-theme-root .admin-task-summary-item,
.admin-theme-root .admin-task-advanced,
.admin-theme-root .admin-task-advanced-panel,
.admin-theme-root .admin-task-card-panel,
.admin-theme-root .admin-task-card-row,
.admin-theme-root .admin-task-lot-card,
.admin-theme-root .admin-task-rail-panel,
.admin-theme-root .admin-action-panel,
.admin-theme-root .admin-activity-item {
  border-color: var(--admin-border);
  background: var(--admin-surface-soft);
}
.admin-theme-root .admin-task-summary-item.tone-danger {
  border-color: var(--admin-danger-border);
  background: var(--admin-danger-soft);
}
.admin-theme-root .admin-task-summary-item.tone-warn,
.admin-theme-root .admin-ops-card-warning {
  border-color: var(--admin-warn-border);
  background: var(--admin-warn-soft);
}
.admin-theme-root .admin-task-summary-item.tone-info {
  border-color: var(--admin-info-border);
  background: var(--admin-info-soft);
}
.admin-theme-root .admin-task-summary-item.tone-ok {
  border-color: var(--admin-ok-border);
  background: var(--admin-ok-soft);
}
.admin-theme-root .admin-task-advanced > summary {
  color: var(--admin-text);
}
.admin-theme-root .admin-drawer {
  border-color: var(--admin-border);
  background:
    radial-gradient(circle at top right, rgba(79, 216, 200, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(20, 38, 45, 0.98) 0%, rgba(8, 17, 21, 0.98) 100%);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.52);
}
.admin-theme-root .admin-drawer-pre {
  border-color: var(--admin-border-soft);
  background: rgba(5, 11, 13, 0.72);
  color: var(--admin-muted-strong);
}
.admin-theme-root .admin-drawer-backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.admin-theme-root .admin-confirm-dialog {
  border-color: var(--admin-warn-border);
  background:
    radial-gradient(circle at top right, rgba(247, 195, 92, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(33, 29, 18, 0.98) 0%, rgba(12, 19, 20, 0.98) 100%);
}
.admin-theme-root .admin-confirm-eyebrow {
  color: #ffda86;
}
.admin-theme-root .admin-monitoring-shell button:not(.table-sort):not(.day-toggle),
.admin-theme-root button:not(.table-sort):not(.day-toggle) {
  background: linear-gradient(180deg, #34c9ba 0%, #149484 100%);
  color: #041113;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 26px rgba(20, 148, 132, 0.18);
}
.admin-theme-root .admin-monitoring-shell .day-toggle {
  background: rgba(18, 36, 43, 0.92);
  border-color: var(--admin-border);
  color: var(--admin-muted-strong);
}
.admin-theme-root .admin-monitoring-shell .day-toggle.active {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #041113;
}
.admin-theme-root .admin-command-center {
  border-color: rgba(79, 216, 200, 0.22);
  background:
    radial-gradient(circle at 90% 0%, rgba(79, 216, 200, 0.22), transparent 34%),
    radial-gradient(circle at 8% 0%, rgba(247, 195, 92, 0.1), transparent 26%),
    linear-gradient(145deg, #061014 0%, #0c2027 58%, #102d36 100%);
}
.admin-theme-root .admin-command-kicker {
  color: var(--admin-accent-strong);
}
.admin-theme-root .admin-command-subtitle,
.admin-theme-root .admin-command-center .small,
.admin-theme-root .admin-command-center .admin-ops-eyebrow {
  color: rgba(237, 248, 247, 0.74);
}
.admin-theme-root .admin-summary-card {
  border-color: var(--admin-border-soft);
  background: rgba(255, 255, 255, 0.055);
}
.admin-theme-root .admin-summary-card-danger {
  border-color: var(--admin-danger-border);
  background: linear-gradient(180deg, rgba(91, 31, 25, 0.56) 0%, rgba(48, 18, 17, 0.46) 100%);
}
.admin-theme-root .admin-summary-card-warn {
  border-color: var(--admin-warn-border);
  background: linear-gradient(180deg, rgba(83, 60, 17, 0.5) 0%, rgba(45, 34, 13, 0.42) 100%);
}
.admin-theme-root .admin-summary-card-live {
  border-color: var(--admin-info-border);
  background: linear-gradient(180deg, rgba(17, 54, 82, 0.56) 0%, rgba(10, 31, 48, 0.44) 100%);
}
.admin-theme-root .admin-notice-error {
  border-color: var(--admin-danger-border);
  color: #ffb0a2;
  background: var(--admin-danger-soft);
}
.admin-theme-root .admin-notice-success {
  border-color: var(--admin-ok-border);
  color: #9cf4b8;
  background: var(--admin-ok-soft);
}
.admin-theme-root .admin-source-pill {
  border-color: var(--admin-border);
  background: rgba(10, 22, 27, 0.92);
  color: var(--admin-text);
}
.admin-theme-root .admin-source-pill-error {
  color: #ffae9f;
}
.admin-theme-root .admin-source-pill.is-selected {
  border-color: var(--admin-accent);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #1dc6b6 0%, #118a7c 100%);
  color: #041113;
}
.admin-theme-root .admin-source-pill.is-selected .badge {
  background: rgba(4, 17, 19, 0.14);
  color: #041113;
}
.admin-theme-root .admin-source-pill.is-selected .small,
.admin-theme-root .admin-source-pill.is-selected .admin-source-pill-error {
  color: rgba(4, 17, 19, 0.82);
}
.admin-theme-root .admin-mini-divider {
  background: linear-gradient(90deg, transparent, rgba(126, 169, 176, 0.42), transparent);
}
@media (max-width: 1024px) {
  .admin-task-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .admin-task-dashboard-rail {
    position: static;
  }
  .admin-task-card-head {
    flex-direction: column;
  }
  .admin-task-card-row {
    flex-direction: column;
  }
  .admin-task-mini-table {
    display: block;
    overflow-x: auto;
  }
  .admin-task-advanced-grid {
    padding: 0 12px 12px;
  }
  .admin-task-summary-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-drawer-backdrop {
    place-items: end center;
  }
  .admin-drawer {
    width: min(100vw - 16px, 720px);
    max-height: calc(100vh - 16px);
  }
}
@media (max-width: 520px) {
  .admin-task-summary-bar {
    grid-template-columns: 1fr;
  }
  .admin-task-card {
    padding: 14px;
  }
  .admin-task-advanced > summary {
    padding: 10px 12px;
  }
  .admin-drawer-backdrop {
    padding: 8px;
  }
  .admin-drawer {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }
}
.table-sort {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
  font-weight: inherit;
  cursor: pointer;
}

.indicator-grid {
  display: grid;
  gap: 18px;
  align-items: start;
  grid-template-columns: 1fr;
}

.indicator-grid > .indicator-card {
  min-width: 0;
}

.indicator-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(179, 211, 214, 0.72);
  border-top: 3px solid var(--indicator-accent, #d5e5e7);
  background:
    radial-gradient(circle at top right, rgba(215, 240, 239, 0.48), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 252, 0.9));
  box-shadow: 0 14px 34px rgba(16, 50, 60, 0.08);
  overflow: hidden;
}

.indicator-card--unavailable {
  border-top-color: #94a3b8;
  background:
    radial-gradient(circle at top right, rgba(226, 232, 240, 0.72), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 250, 0.96));
  box-shadow: 0 10px 24px rgba(71, 85, 105, 0.08);
}

.indicator-card .indicator-head {
  align-items: flex-start;
}

.indicator-card .indicator-title {
  font-size: clamp(1.0rem, 0.94rem + 0.18vw, 1.12rem);
}

.indicator-card .indicator-level-badge {
  font-size: 0.76rem;
  padding: 5px 9px;
}

.indicator-card .indicator-drinking-water-status {
  color: #5b7680;
  font-size: 0.82rem;
  line-height: 1.1;
}

.indicator-card .indicator-advice {
  background: rgba(244, 249, 251, 0.96);
}

.indicator-card--unavailable .indicator-advice {
  background: rgba(241, 245, 249, 0.98);
  border-color: #d7dee6;
}

.indicator-card--unavailable .indicator-advice-title,
.indicator-card--unavailable .indicator-advice-text,
.indicator-card--unavailable .indicator-meta,
.indicator-card--unavailable .indicator-drinking-water-status {
  color: #64748b;
}

.indicator-card .indicator-meta {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.indicator-card .indicator-sub-indicators-block {
  margin-top: 2px;
}

.indicator-card .sub-indicator-metric-note {
  margin: 5px 0 0;
  color: #5b7680;
}

.indicator-card .sub-indicator-metric-value-muted {
  color: #6b8791;
}

.drinking-water-conformity-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.drinking-water-conformity-item {
  border: 1px solid #dbe8ec;
  background: #fbfdfe;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.drinking-water-conformity-status {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  line-height: 1;
}

.drinking-water-conformity-status--good .drinking-water-conformity-status {
  color: #166534;
  background: #dcfce7;
}

.drinking-water-conformity-status--warning .drinking-water-conformity-status {
  color: #92400e;
  background: #fef3c7;
}

.drinking-water-conformity-status--danger .drinking-water-conformity-status {
  color: #991b1b;
  background: #fee2e2;
}

.drinking-water-conformity-status--neutral .drinking-water-conformity-status {
  color: #475569;
  background: #e2e8f0;
}

.indicator-card .scale-wrap {
  max-width: 840px;
}

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

.indicator-head-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.indicator-title {
  font-size: clamp(1.0rem, 0.93rem + 0.18vw, 1.16rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.indicator-level-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.indicator-main-value {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: #0f3e45;
}

.indicator-main-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.indicator-advice {
  background: rgba(244, 249, 251, 0.96);
  border: 1px solid #d6e6eb;
  border-radius: 14px;
  padding: 12px 14px;
}

.indicator-advice-title {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #19566a;
}

.indicator-advice-text {
  margin: 0;
  color: #284a58;
}

.indicator-actions {
  margin: -2px 0 0 18px;
  display: grid;
  gap: 8px;
}

.uv-hourly-block {
  border: 1px solid #dbe8ec;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fbfc;
}

.uv-hourly-title {
  margin: 0 0 10px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #234c56;
}

.uv-hourly-chart {
  width: 100%;
  height: 226px;
  display: block;
  cursor: crosshair;
}

.uv-hourly-tooltip-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.uv-hourly-axis-label {
  font-size: 15px;
  fill: rgba(51, 83, 93, 0.78);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.uv-risk-label,
.uv-scale-label {
  fill: rgba(51, 83, 93, 0.68);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.uv-scale-label {
  font-size: 14px;
}

.uv-peak-label {
  fill: #234c56;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.uv-hourly-area {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.uv-hourly-line,
.uv-peak-dot {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.36));
}

.indicator-meta {
  display: block;
  border-top: 1px dashed #dbe7ea;
  padding-top: 10px;
  margin-top: 10px;
  opacity: 0.9;
}

.indicator-meta-line {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.indicator-meta-label {
  color: #69818a;
}

.indicator-meta-sep {
  color: #8ca1a8;
  margin: 0 2px;
}

.indicator-summary {
  cursor: pointer;
  font-weight: 700;
  color: #234c56;
}

.indicator-sub-indicators-title {
  font-weight: 700;
  color: #234c56;
  margin: 0 0 10px;
}

.indicator-details-block {
  border-top: 1px dashed #d8e6ea;
  padding-top: 8px;
}

.indicator-collapsible-block {
  padding-top: 10px;
}

.indicator-collapsible-block[open] {
  background: #f8fbfc;
  border: 1px solid #dbe8ec;
  border-radius: 14px;
  padding: 12px 14px;
}

.indicator-collapsible-block[open] summary {
  margin-bottom: 10px;
}

.indicator-sub-indicators-block {
  background: #f8fbfc;
  border: 1px solid #dbe8ec;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 4px;
}

.indicator-sub-indicators-stack {
  display: grid;
  gap: 10px;
}

.indicator-sub-indicators-toggle {
  align-self: start;
  justify-self: start;
  min-height: 36px;
  padding: 7px 12px;
  line-height: 1;
  list-style: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.indicator-sub-indicators-toggle::-webkit-details-marker {
  display: none;
}

.indicator-sub-indicators-toggle-label--open {
  display: none;
}

.indicator-sub-indicators-disclosure[open] .indicator-sub-indicators-toggle-label--closed {
  display: none;
}

.indicator-sub-indicators-disclosure[open] .indicator-sub-indicators-toggle-label--open {
  display: inline;
}

.indicator-sub-indicators-disclosure {
  display: grid;
  gap: 8px;
}

.indicator-sub-indicators-disclosure-content {
  margin-top: 2px;
}

.sub-indicator-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sub-indicator-item {
  border: 1px solid #dbe8ec;
  background: #fbfdfe;
  border-radius: 14px;
  padding: 10px 12px;
}

.sub-indicator-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: center;
  font-size: 13px;
}

.sub-indicator-label {
  color: #2b4953;
}

.sub-indicator-risk-label {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8f4f5;
  color: #19566a;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.indicator-glossary-title {
  margin-bottom: 4px;
}

.indicator-glossary-list {
  margin-top: 0;
}

.indicator-stale {
  color: #cc3d2f;
  margin: 0;
  padding-top: 2px;
}

@media (min-width: 920px) {
  .indicator-grid {
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scale-wrap {
  margin: 10px 0 12px;
}

.scale-bar-row {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 8px;
}

.sub-scale-bar-row {
  grid-template-columns: 18px 1fr 18px;
}

.scale-end-label {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.scale-track {
  height: 12px;
  border-radius: 999px;
  position: relative;
  background: #d9e3e7;
}

.scale-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.scale-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(16, 44, 53, 0.3);
  line-height: 1;
}

.recosante-marker {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.recosante-sub-marker {
  width: 20px;
  height: 20px;
  font-size: 11px;
  border-width: 1px;
}

.sub-scale-wrap {
  margin-top: -2px;
}

.sub-scale-track {
  height: 8px;
}

.sub-scale-fill {
  height: 8px;
}

.sub-scale-marker {
  top: 50%;
}

.loading-banner {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f4f5;
  color: #285862;
  font-size: 0.9rem;
}

.nav-pending-overlay {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  pointer-events: none;
}

.nav-pending-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #cfe4e6;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(14, 73, 83, 0.14);
  color: #285862;
  font-size: 0.95rem;
  pointer-events: none;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #99c3c8;
  border-top-color: #0d8a86;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.skeleton-card {
  min-height: 150px;
}

.skeleton-line {
  width: 100%;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e9eff1 25%, #f7fbfc 37%, #e9eff1 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-title {
  height: 16px;
  width: 72%;
  margin-bottom: 14px;
}

.skeleton-value {
  height: 26px;
  width: 48%;
  margin-bottom: 14px;
}

.skeleton-card .skeleton-line + .skeleton-line {
  margin-top: 10px;
}

.landing-content {
  margin-top: 10px;
  display: grid;
  gap: 14px;
}

.landing-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(13, 138, 134, 0.22), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(255, 225, 155, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(242, 251, 251, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid #cfe4e6;
}

.landing-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d6d77;
  font-weight: 800;
}

.landing-title {
  margin: 0 0 8px;
  line-height: 1.2;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem);
}

.landing-lead,
.landing-cta {
  margin: 0;
  color: #234750;
}

.landing-trustline {
  margin: 10px 0 0;
}

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

.landing-panel {
  border: 1px solid #d7e8eb;
  background: rgba(255, 255, 255, 0.86);
}

.landing-panel h3,
.landing-trust h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.landing-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.landing-trust {
  border-left: 4px solid #0d8a86;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 250, 250, 0.88) 100%);
}

.public-footer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(240, 247, 248, 0.84);
  border: 1px solid #cfe1e4;
  display: grid;
  gap: 10px;
}

.public-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.public-footer a {
  color: #145a66;
  font-weight: 600;
  text-decoration: none;
}

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

.public-footer-copy {
  margin: 0;
  color: #5c7178;
  font-size: 0.85rem;
}

.ambiguity-shell {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.ambiguity-shell h1 {
  margin: 0;
}

.ambiguity-intro {
  margin: 0;
  max-width: 64ch;
}

.ambiguity-list {
  display: grid;
  gap: 12px;
}

.ambiguity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #d9e7e9;
  background: rgba(255, 255, 255, 0.74);
}

.ambiguity-item-main {
  display: grid;
  gap: 4px;
}

.ambiguity-item-main p {
  margin: 0;
}

.ambiguity-link {
  text-decoration: none;
}

.legal-top-bar .brand-link {
  color: inherit;
  text-decoration: none;
}

.legal-page {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.explainer-page {
  margin-top: 12px;
  display: grid;
  gap: 16px;
}

.explainer-page h1,
.explainer-page h2 {
  margin: 0;
}

.explainer-page p {
  margin: 0 0 8px;
}

.explainer-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d6d77;
  font-weight: 800;
}

.explainer-intro {
  margin-top: -4px;
  max-width: 70ch;
}

.explainer-source-box {
  border-left: 4px solid #0d8a86;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(242, 250, 250, 0.9);
  border: 1px solid #d7e8eb;
}

.explainer-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-page h2 {
  margin: 0;
}

.legal-page h3 {
  margin: 0 0 8px;
}

.legal-page p {
  margin: 0 0 8px;
}

.legal-intro {
  margin-top: -4px;
}

.legal-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.indicator-explainer-link {
  margin: 8px 0 0;
}

.indicator-explainer-link a {
  color: #145a66;
  font-weight: 700;
  text-decoration: none;
}

.indicator-explainer-link a:hover {
  text-decoration: underline;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .admin-ops-grid { grid-template-columns: 1fr; }
  .admin-monitoring-shell {
    padding: 18px 16px 30px;
  }
  .admin-command-head,
  .admin-activity-item {
    flex-direction: column;
  }
  .admin-command-actions {
    justify-content: flex-start;
  }
  .admin-summary-grid,
  .admin-source-grid,
  .admin-action-layout {
    grid-template-columns: 1fr;
  }
  .landing-grid { grid-template-columns: 1fr; }
  main { padding: 16px; }
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-shell {
    gap: 12px;
  }
  .hero-brand-block {
    max-width: none;
  }
  .top-bar-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
  }
  .ambiguity-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand-lockup {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
  }
  .brand-mark {
    width: 94px;
    height: 94px;
  }
  .brand-copy {
    gap: 2px;
    display: grid;
    align-content: center;
  }
  .brand-name {
    font-size: 1.65rem;
    line-height: 1;
    text-align: left;
  }
  .brand-subtitle {
    max-width: none;
    font-size: 0.92rem;
  }
  .lang-switch {
    align-self: start;
    justify-self: end;
    gap: 4px;
    padding: 4px;
  }
  .lang-btn {
    min-width: 40px;
    padding: 5px 8px;
    font-size: 0.9rem;
  }
  .main-selected {
    padding-top: 12px;
  }
  .search-module-selected {
    padding: 12px;
  }
  .search-module-selected .row {
    gap: 8px;
  }
  .search-submit {
    width: 100%;
  }
  .search-module {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .search-row {
    flex-wrap: wrap;
  }
  .search-module-selected input {
    min-width: 0 !important;
  }
  .quick-picks-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quick-picks-hidden-mobile {
    display: none;
  }
  .indicator-toolbar {
    position: sticky;
    top: 8px;
    z-index: 1;
    padding: 12px;
    border-radius: 16px;
    background: rgba(245, 248, 249, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 18px rgba(16, 50, 60, 0.08);
  }
  .indicator-toolbar .title-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 8px;
  }
  .indicator-toolbar h2 {
    font-size: 1.08rem;
    line-height: 1.25;
    min-width: 0;
  }
  .day-toggle-row {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .day-toggle {
    width: 100%;
    text-align: center;
    padding: 7px 8px;
    font-size: 0.94rem;
    line-height: 1.2;
    min-height: 46px;
  }
  .indicator-card {
    gap: 12px;
    padding: 16px;
  }
  .indicator-head {
    gap: 8px;
  }
  .indicator-title {
    font-size: 0.98rem;
  }
  .indicator-level-badge {
    font-size: 0.76rem;
    padding: 5px 9px;
  }
  .indicator-advice {
    padding: 10px 12px;
  }
  .indicator-collapsible-block[open] {
    padding: 10px 12px;
  }
  .share-pill {
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    border-radius: 999px;
  }
  .share-menu {
    right: auto;
    left: 0;
    min-width: 156px;
  }
  .favorite-star {
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 12px;
    font-size: 1.4rem;
  }
.indicator-grid {
  order: 3;
}
}

.popular-city-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.popular-city-link {
  text-decoration: none;
  justify-content: center;
}

.seo-summary {
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.seo-details {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.seo-summary h1,
.seo-summary h2 {
  color: #17343f;
}

.seo-summary h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.seo-summary h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.seo-summary-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a7787;
}

.seo-summary-intro,
.seo-summary-highlight p,
.seo-summary-grid p {
  margin: 0;
  color: #294b57;
}

.seo-summary-highlight {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(42, 119, 135, 0.12), rgba(233, 244, 246, 0.88));
  border: 1px solid rgba(42, 119, 135, 0.16);
}

.seo-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.seo-summary-grid article,
.seo-detail-card,
.seo-summary-links {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 251, 251, 0.92);
  border: 1px solid rgba(23, 52, 63, 0.08);
}

.seo-summary-links ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.seo-summary-links a {
  color: #1b6f82;
  text-decoration-thickness: 0.08em;
}

.seo-summary-popular-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.main-selected {
  max-width: 1380px;
}

.city-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: start;
}

.city-page-shell-slot {
  min-width: 0;
}

.city-page-shell-main,
.city-page-shell-sources {
  grid-column: 1;
}

.city-page-shell-main {
  display: grid;
  gap: 18px;
  align-content: start;
}

.city-page-shell-summary .seo-summary {
  margin-top: 0;
}

.city-page-shell-nearby,
.city-page-shell-featured,
.city-page-shell-ad,
.city-page-shell-rail {
  grid-column: 2;
}

.city-page-shell-rail {
  grid-row: 1;
  align-self: start;
  display: grid;
  gap: 18px;
}

.city-page-rail-card {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
}

.city-page-rail-card h2,
.city-sources-details h2 {
  margin: 0;
  font-size: 1.08rem;
  color: #0f2f3a;
}

.city-page-rail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.city-page-rail-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(227, 244, 243, 0.95), rgba(214, 236, 235, 0.92));
  border: 1px solid rgba(160, 206, 209, 0.9);
  color: #18727e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.city-page-rail-title-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.city-page-link-list {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.city-page-link-list li {
  display: grid;
  gap: 3px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(191, 219, 222, 0.7);
}

.city-page-link-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.city-page-link-list a {
  color: #1b6f82;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.city-page-link-list a:hover {
  color: #0f5665;
}

.city-page-link-list a:focus-visible {
  outline: 2px solid rgba(20, 132, 134, 0.34);
  outline-offset: 3px;
  border-radius: 4px;
  color: #0f5665;
}

.city-page-ad-slot {
  min-height: 220px;
  width: 100%;
  min-width: 0;
  pointer-events: none;
  opacity: 0;
}

.city-page-ad-slot-compact {
  min-height: 120px;
}

@media (max-width: 720px) {
  .http-error-card {
    padding: 22px 18px;
  }

  .http-error-search-form {
    grid-template-columns: 1fr;
  }

  .http-error-status-row {
    gap: 8px;
  }

  .http-error-actions {
    display: grid;
  }

  .http-error-primary,
  .http-error-secondary,
  .http-error-button {
    width: 100%;
    justify-content: center;
  }

  .seo-summary {
    gap: 14px;
  }

  .seo-summary-grid {
    grid-template-columns: 1fr;
  }

  .seo-summary-popular-list li:nth-child(n+9) {
    display: none;
  }
}

@media (max-width: 1180px) {
  .city-page-shell {
    grid-template-columns: 1fr;
  }

  .city-page-shell-summary,
  .city-page-shell-main,
  .city-page-shell-rail,
  .city-page-shell-nearby,
  .city-page-shell-ad,
  .city-page-shell-featured,
  .city-page-shell-sources {
    grid-column: 1;
    grid-row: auto;
  }

  .main-selected {
    max-width: 1100px;
  }
}

/* Static city page anchor controls keep the React button visual language. */
.day-toggle, .lang-btn, .share-pill { text-decoration: none; }
.search-module-selected { position: relative; }
[data-infosante-static-city-page="true"] .search-row { align-items: center; }
[data-infosante-static-city-page="true"] .search-input { min-width: 280px; flex: 1; }
[data-infosante-static-city-page="true"] .title-row h2 { margin: 0; }
