:root {
  --bg: #dff3ff;
  --bg-2: #f8fbff;
  --card: rgba(255, 255, 255, 0.76);
  --card-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(22, 91, 183, 0.14);
  --text: #16314d;
  --muted: #5f748b;
  --primary: #1f6ad6;
  --primary-2: #0f53bd;
  --accent: #ffc84d;
  --success: #2b8f3a;
  --shadow: 0 20px 50px rgba(17, 76, 156, 0.14);
  --radius: 28px;
  --hero-width: min(1432px, calc(100vw - 16px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Barlow, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.92), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(199, 233, 255, 0.75), transparent 24%),
    linear-gradient(180deg, #d9efff 0%, #f8fbff 38%, #edf7ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.route-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.route-window {
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(17, 76, 156, 0.16);
  padding: 34px;
}

.route-logo {
  width: 156px;
  height: auto;
  display: block;
  margin-bottom: 26px;
}

.route-window h1 {
  margin: 0 0 10px;
  color: #1c56aa;
  font-size: 2rem;
  line-height: 1.1;
}

.route-address {
  font-weight: 800;
  color: var(--text);
  margin: 0 0 18px;
}

.route-copy {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2d82ef, #145ed0);
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.route-button.secondary {
  background: rgba(25, 88, 182, 0.1);
  color: var(--primary-2);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(200deg, rgba(21, 107, 208, 0.05), transparent 40%);
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 22vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(19, 92, 185, 0.08));
}

.secret-admin-hotspot {
  position: fixed;
  left: 0;
  bottom: 12px;
  width: 14px;
  height: 64px;
  border: 0;
  padding: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(23, 102, 205, 0.08), rgba(23, 102, 205, 0.18));
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 24px rgba(17, 76, 156, 0.1);
  cursor: pointer;
}

.secret-admin-hotspot::after {
  content: "";
  position: absolute;
  inset: 12px 4px 12px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.page-shell {
  width: var(--hero-width);
  margin: 4px auto 0;
}

.glass {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topbar,
.editor,
.panel,
.hero-media,
.quick-link {
  border-radius: var(--radius);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 7px 38px;
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(17, 76, 156, 0.11);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 122px;
  height: auto;
  image-rendering: auto;
}

.brand-title {
  color: #1c56aa;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  min-width: 0;
}

.status-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(211, 245, 220, 0.88);
  color: #186826;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-open {
  background: rgba(211, 245, 220, 0.88);
  color: #186826;
}

.status-pill.is-warning,
.status-pill.is-weather {
  background: rgba(255, 240, 192, 0.94);
  color: #865400;
}

.status-pill.is-closed,
.status-pill.is-danger {
  background: rgba(255, 222, 222, 0.96);
  color: #8f1f1f;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1c8f2c;
  box-shadow: 0 0 0 4px rgba(28, 143, 44, 0.12);
}

.status-pill.is-warning .dot,
.status-pill.is-weather .dot {
  background: #c98400;
  box-shadow: 0 0 0 4px rgba(201, 132, 0, 0.14);
}

.status-pill.is-closed .dot,
.status-pill.is-danger .dot {
  background: #bf3030;
  box-shadow: 0 0 0 4px rgba(191, 48, 48, 0.14);
}

.hero {
  display: grid;
  gap: 10px;
}

.status-alert {
  display: grid;
  gap: 8px;
  border: 2px solid rgba(31, 106, 214, 0.22);
  border-left-width: 12px;
  border-radius: 24px;
  padding: 22px 26px;
  margin-bottom: 8px;
}

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

.status-alert-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.status-alert strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.8rem, 1.1rem + 2vw, 3.2rem);
  line-height: 1;
}

.status-alert p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(1.1rem, 0.98rem + 0.5vw, 1.45rem);
  font-weight: 850;
  line-height: 1.35;
}

.status-alert.is-warning,
.status-alert.is-weather {
  background: rgba(255, 247, 218, 0.96);
  border-color: #d59a00;
}

.status-alert.is-closed {
  background: rgba(255, 235, 235, 0.96);
  border-color: #c83333;
}

.status-alert.is-danger {
  background: #fff0f0;
  border-color: #b80000;
  box-shadow: 0 22px 70px rgba(145, 0, 0, 0.18);
}

.status-alert.is-danger strong {
  color: #a60000;
}

.hero-media {
  position: relative;
  min-height: 425px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 95%, rgba(87, 208, 255, 0.42), transparent 18%),
    linear-gradient(180deg, rgba(126, 207, 255, 0.94) 0%, rgba(43, 170, 239, 0.88) 48%, rgba(37, 123, 214, 0.86) 100%);
  border-radius: 0;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.hero-media::before {
  left: -7%;
  bottom: -10%;
  width: 40%;
  height: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.52), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  filter: blur(6px);
  border-radius: 50%;
  transform: rotate(12deg);
  opacity: 0.85;
}

.hero-media::after {
  inset: auto 0 0 0;
  height: 28%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.6), transparent 55%);
  clip-path: ellipse(115% 100% at 50% 100%);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(190, 233, 255, 0.72) 0%, rgba(190, 233, 255, 0.3) 32%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 84% 20%, rgba(0, 0, 0, 0.06), transparent 16%);
  opacity: 0.9;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(430px, 558px) 1fr;
  align-items: end;
  gap: 20px;
  padding: 22px 104px 0 106px;
}

.hero-card {
  position: relative;
  z-index: 3;
  margin-top: 0;
  margin-bottom: 54px;
  padding: 28px 50px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 46px rgba(16, 61, 126, 0.18);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: #1f4f9b;
  font-weight: 800;
}

.kicker-icon {
  font-size: 1.45rem;
}

.temperature {
  margin-top: 8px;
  font-size: 6.35rem;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #1c58b6;
}

.temperature-trend {
  height: 14px;
  margin: 7px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(70, 173, 255, 0.32), transparent);
  border-radius: 999px;
  position: relative;
}

.temperature-trend::after {
  content: "";
  position: absolute;
  inset: 3px 0 3px;
  background: linear-gradient(90deg, transparent 8%, rgba(56, 158, 235, 0.35) 20%, transparent 36%, rgba(56, 158, 235, 0.35) 50%, transparent 68%, rgba(56, 158, 235, 0.35) 82%, transparent);
  border-radius: 999px;
  mask: linear-gradient(180deg, black, black);
}

.hero-meta,
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-foot {
  flex-wrap: wrap;
}

.hero-note {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  font-weight: 800;
}

.hero-status,
.small-badge {
  background: rgba(216, 243, 218, 0.95);
  color: #1f6d2d;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.source-badge {
  display: none;
}

.hero-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
}

.pool-visual {
  position: static;
  min-height: 360px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(116, 205, 250, 0.36) 0%, rgba(255, 255, 255, 0.02) 32%),
    url("./hero-pool.png");
  background-size: cover;
  background-position: center 46%;
  filter: saturate(1.06) contrast(1.02);
  transform: none;
  opacity: 1;
  box-shadow: none;
  overflow: hidden;
  z-index: 0;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(221, 246, 255, 0.62) 0%, rgba(221, 246, 255, 0.2) 36%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08));
}

.pool-waterline {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.34), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.2), transparent 16%),
    radial-gradient(circle at 75% 42%, rgba(255, 255, 255, 0.3), transparent 13%);
  opacity: 0.75;
  z-index: 2;
}

.pool-waterline::before,
.pool-waterline::after {
  content: "";
  position: absolute;
  inset: auto 0 18px 0;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.52) 15%, transparent 30%, rgba(255, 255, 255, 0.46) 47%, transparent 62%, rgba(255, 255, 255, 0.5) 78%, transparent 100%);
  filter: blur(0.5px);
}

.pool-waterline::after {
  inset: auto 0 32px 0;
  opacity: 0.7;
}

.badge-circle {
  position: absolute;
  right: 122px;
  top: 32px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  border: 6px solid rgba(31, 148, 48, 0.92);
  z-index: 4;
}

.badge-circle-inner {
  text-align: center;
  color: #1b8a33;
  font-weight: 900;
}

.badge-circle.is-closed {
  border-color: rgba(191, 48, 48, 0.92);
}

.badge-circle.is-closed .badge-circle-inner {
  color: #a82424;
}

.badge-circle.is-maintenance {
  border-color: rgba(201, 132, 0, 0.92);
}

.badge-circle.is-maintenance .badge-circle-inner {
  color: #8a5a00;
}

.badge-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.badge-text {
  margin-top: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(640px, calc(100% - 360px));
  justify-self: center;
  gap: 16px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.quick-link {
  text-decoration: none;
  color: var(--text);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 22px;
  font-weight: 800;
  border-radius: 12px;
}

.quick-icon {
  font-size: 1.4rem;
}

.arrow {
  color: var(--primary-2);
  font-size: 1.8rem;
  line-height: 1;
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1.05fr 1fr;
  gap: 14px;
  margin-top: 0;
}

.panel {
  background: var(--card-strong);
  padding: 20px 24px;
  min-height: 270px;
  border-radius: 16px;
}

.panel.wide {
  min-height: 270px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h2,
.editor .panel-head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.panel-head span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.weather-grid {
  display: grid;
  gap: 8px;
}

.weather-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(243, 248, 255, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(21, 85, 169, 0.08);
  font-size: 1.02rem;
}

.weather-summary {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(232, 248, 235, 0.95);
  color: #1f7a2d;
  font-weight: 900;
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
  margin: 8px 0 0;
}

.chart-wrap {
  width: 100%;
  height: 214px;
  position: relative;
  margin-top: -2px;
}

.line-chart {
  width: 100%;
  height: 100%;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
  opacity: 0;
  background: rgba(18, 47, 86, 0.94);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(18, 47, 86, 0.22);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.chart-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 18px));
}

.bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.bar-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(30, 114, 223, 0.12);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2c82ef, #1360cb);
}

.bar-value {
  font-weight: 800;
}

.opening {
  display: flex;
  flex-direction: column;
}

.opening-hours {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(229, 247, 255, 0.84), rgba(244, 250, 255, 0.92)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 85, 169, 0.09);
}

.opening-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(21, 85, 169, 0.1);
}

.opening-row.primary {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 2px 0 18px;
  border-top: 0;
}

.opening-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.opening-row strong {
  color: #1a2740;
  font-weight: 900;
  line-height: 1.12;
  text-align: right;
}

.opening-row.primary strong {
  font-size: clamp(1.5rem, 1.1rem + 0.95vw, 1.95rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 22px;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(17, 76, 156, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer strong {
  color: var(--text);
}

.footer-links {
  display: inline-flex;
  gap: 14px;
}

.footer-links a {
  color: var(--primary-2);
  font-weight: 800;
  text-decoration: none;
}

.editor {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(9, 31, 63, 0.32);
  backdrop-filter: blur(8px);
  margin: 0;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 24px;
}

.editor.is-open {
  opacity: 1;
  pointer-events: auto;
}

.editor-surface {
  width: min(1100px, 100%);
  margin: 36px 0;
  background: rgba(247, 251, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  box-shadow: 0 32px 100px rgba(3, 24, 49, 0.24);
  padding: 24px;
}

.editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.editor-head h1,
.editor-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.5rem, 1rem + 1.2vw, 2.2rem);
}

.editor-head p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 106, 214, 0.1);
  color: var(--primary-2);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
}

.admin-close {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  background: rgba(31, 106, 214, 0.1);
  color: var(--primary-2);
  cursor: pointer;
}

.admin-message {
  min-height: 24px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.admin-message.is-success {
  color: #1f7a2d;
}

.admin-message.is-error {
  color: #a82424;
}

.settings-form,
.admin-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-form {
  margin-bottom: 18px;
}

.settings-form label {
  display: grid;
  gap: 8px;
}

.settings-form label span,
.admin-value span,
.json-box span {
  font-weight: 800;
  color: var(--muted);
}

.settings-form input,
.settings-form select {
  width: 100%;
  border: 1px solid rgba(25, 79, 156, 0.18);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 13px 15px;
  color: var(--text);
  font: inherit;
  outline: none;
}

.settings-form input:focus,
.settings-form select:focus {
  border-color: rgba(31, 106, 214, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 106, 214, 0.08);
}

.admin-values {
  margin-bottom: 18px;
}

.admin-value {
  display: grid;
  gap: 6px;
  min-height: 78px;
  border: 1px solid rgba(25, 79, 156, 0.14);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  padding: 14px 16px;
}

.admin-value strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.admin-value small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.health-card {
  border-left: 6px solid rgba(95, 116, 139, 0.35);
}

.health-card.is-ok {
  background: rgba(232, 248, 235, 0.95);
  border-color: #28a745;
}

.health-card.is-warning {
  background: rgba(255, 248, 224, 0.95);
  border-color: #d59a00;
}

.health-card.is-error {
  background: rgba(255, 235, 235, 0.95);
  border-color: #c83333;
}

.health-list {
  display: grid;
  gap: 10px;
}

.health-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(25, 79, 156, 0.14);
  border-left: 7px solid rgba(95, 116, 139, 0.35);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 14px 16px;
}

.health-row.is-ok {
  border-left-color: #28a745;
}

.health-row.is-warning {
  border-left-color: #d59a00;
  background: rgba(255, 250, 234, 0.94);
}

.health-row.is-error {
  border-left-color: #c83333;
  background: rgba(255, 239, 239, 0.94);
}

.health-row strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.health-row span {
  color: var(--muted);
  font-weight: 750;
}

.health-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.health-meta span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(31, 106, 214, 0.08);
  color: #294d79;
  padding: 6px 9px;
  font-size: 0.82rem;
}

.json-box {
  display: grid;
  gap: 8px;
}

.json-box textarea {
  resize: vertical;
  width: 100%;
  min-height: 240px;
  border: 1px solid rgba(25, 79, 156, 0.14);
  background: rgba(246, 250, 255, 0.9);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.45;
  outline: none;
}

@media (max-width: 1180px) {
  .topbar,
  .dashboard,
  .hero-content {
    grid-template-columns: 1fr;
  }

  .topbar {
    justify-items: start;
  }

  .status-pill {
    justify-self: start;
  }

  .quick-links {
    grid-template-columns: 1fr;
    margin-top: 0;
    width: 100%;
  }

  .hero-media {
    min-height: 640px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .pool-visual {
    min-height: 180px;
  }

  .badge-circle {
    right: 18px;
    top: 16px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 12px, 1400px);
    margin: 8px auto 16px;
  }

  .topbar {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    gap: 10px;
    max-width: 100%;
  }

  .brand-logo {
    width: 118px;
    flex: 0 1 auto;
  }

  .brand-title {
    font-size: clamp(1.18rem, 5.4vw, 1.55rem);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .status-pill {
    padding: 8px 14px;
  }

  .topbar,
  .hero-media,
  .panel,
  .editor {
    border-radius: 22px;
  }

  .hero-content {
    padding: 18px 16px 0;
  }

  .hero-card {
    padding: 24px 20px 18px;
    margin-bottom: 18px;
  }

  .temperature {
    font-size: clamp(3rem, 12vw, 4.6rem);
  }

  .hero-meta,
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-form,
  .admin-values {
    grid-template-columns: 1fr;
  }

  .editor {
    padding: 10px;
  }

  .editor-surface {
    margin: 8px 0;
    padding: 18px;
    border-radius: 24px;
  }

  .editor-head {
    flex-direction: column;
  }

  .health-row {
    grid-template-columns: 1fr;
  }

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

}
