@font-face {
  font-family: "DM Serif Display";
    src: url("../assets/fonts/DMSerifDisplay-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
    src: url("../assets/fonts/DMSerifDisplay-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
  font-family: "Sora";
    src: url("../assets/fonts/Sora-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
  font-family: "Sora";
    src: url("../assets/fonts/Sora-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
  font-family: "Sora";
    src: url("../assets/fonts/Sora-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
  font-family: "Sora";
    src: url("../assets/fonts/Sora-800.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(119, 230, 200, 0.45);
  outline-offset: 3px;
}

.metric-card {
  border-radius: 26px;
  padding: 1.02rem 1.08rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.18),
    0 4px 12px rgba(2, 6, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 28px rgba(140, 168, 255, 0.035);
}

.metric-card > * {
  position: relative;
  z-index: 1;
}

.is-secondary-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.is-secondary-card::after {
  display: none;
}

.section-phase {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 168, 255, 0.16);
  background: rgba(140, 168, 255, 0.1);
  color: rgba(214, 226, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.is-secondary-card .section-meta {
  margin-top: 0.45rem;
  font-size: 0.88rem;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .actions-row {
    width: 100%;
  }
}

body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100dvh;
  padding: env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}

.app-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 80rem;
  min-height: 100dvh;
  margin-inline: auto;
  padding: 1.5rem 1rem;
}

.noscript-message {
  max-width: 36rem;
  margin-inline: auto;
  padding: 2rem 1rem;
  color: #ffffff;
  text-align: center;
}

.top-dashboard {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 1.05rem;
}

.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .app-main {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .app-main {
    padding-inline: 2rem;
  }
}

.metric-card, .hero-control-panel {
  background: rgba(8, 16, 29, 0.92);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  contain: layout paint;
}

.hero-metrics {
  display: grid;
  gap: 0.9rem;
  margin-top: 0;
}

@media (min-width: 880px) {
  .hero-metrics {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: stretch;
  }
}

.metric-card-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%);
  pointer-events: none;
  opacity: 0.7;
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-label-city {
  margin-left: 0.42rem;
  padding-left: 0.42rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 241, 250, 0.82);
}

.metric-value {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.metric-value-year {
  display: block;
  font-size: 0.48em;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
  color: rgba(232, 238, 249, 0.72);
}

.metric-card-primary .metric-label {
  position: relative;
  z-index: 2;
  align-self: flex-start;
}

.metric-card-primary .metric-value {
  display: grid;
  gap: 0.28rem;
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(1.12rem, 1.62vw, 1.68rem);
  max-width: min(17ch, calc(100% - 7.2rem));
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-shadow: 0 10px 26px rgba(2, 6, 23, 0.18);
  text-wrap: pretty;
}

.metric-card-primary .metric-clock {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.metric-card-primary .metric-analog-clock {
  z-index: 0;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 0.65rem;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.18);
}

.progress-track-meter {
  height: 2.25rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02),
    inset 0 1px 2px rgba(15, 23, 42, 0.18);
}

.progress-track-meter::before {
  content: "";
  position: absolute;
  inset: 0.4rem 0.5rem;
  border-radius: 999px;
  background: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 18%
    );
  opacity: 0.22;
  pointer-events: none;
}

.progress-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22%;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
  opacity: 0.7;
  transform: skewX(-18deg);
  animation: trackSheen 6.5s ease-in-out infinite;
  pointer-events: none;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(90deg, rgba(99, 210, 255, 0.96), rgba(133, 224, 203, 0.9), rgba(126, 164, 255, 0.88));
  box-shadow: 0 0 18px rgba(99, 210, 255, 0.2),
    0 0 30px rgba(133, 224, 203, 0.14);
  transition: width 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0.45;
  animation: progressGlowFlow 4.8s ease-in-out infinite;
}

.progress-inline-value {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.8rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(248, 251, 255, 0.96);
  text-shadow: 0 1px 1px rgba(2, 6, 23, 0.5),
    0 0 14px rgba(2, 6, 23, 0.24);
  mix-blend-mode: normal;
  pointer-events: none;
}

.hero-control-panel > * {
  position: relative;
  z-index: 1;
}

.hero-control-panel::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 0.65rem rgba(255, 255, 255, 0.012);
  opacity: 0.7;
}

.hero-control-badge.is-unset {
  color: rgba(240, 246, 255, 0.82);
}

.hero-lower-grid {
  display: grid;
  gap: 0.95rem;
  align-items: stretch;
}

@media (min-width: 980px) {
  .hero-lower-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 3fr);
    align-items: stretch;
  }
}

.hero-scenario-layout {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
  align-self: center;
  width: 100%;
}

@media (min-width: 660px) {
  .scenario-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .scenario-toggle {
    gap: 0.45rem;
  }
}

@media (max-width: 760px) {
  .hero-control-top, .control-progress-head {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 760px) {
  .hero-control-badge {
    justify-self: start;
  }
}

.control-progress-panel .progress-track {
  height: 2.25rem;
  margin-top: 0;
}

@keyframes trackSheen {
  0%,
    20% {
      transform: translateX(0) skewX(-18deg);
      opacity: 0;
    }
    40%,
    60% {
      transform: translateX(650%) skewX(-18deg);
      opacity: 0.75;
    }
    100% {
      transform: translateX(650%) skewX(-18deg);
      opacity: 0;
    }
}

@keyframes progressGlowFlow {
  0%,
    100% {
      transform: translateX(-10%);
      opacity: 0.28;
    }
    50% {
      transform: translateX(14%);
      opacity: 0.56;
    }
}

@keyframes buttonSheen {
  0%,
    18% {
      transform: translateX(0) rotate(18deg);
      opacity: 0;
    }
    34%,
    52% {
      transform: translateX(520%) rotate(18deg);
      opacity: 0.62;
    }
    100% {
      transform: translateX(520%) rotate(18deg);
      opacity: 0;
    }
}

@media (max-width: 640px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

.analog-clock-ring, .analog-clock-marker, .analog-clock-hand, .analog-clock-center {
  position: absolute;
}

.analog-clock-marker {
  inset: 0;
  transform-origin: 50% 50%;
}

.analog-clock-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.56rem;
  width: 0.12rem;
  height: 1.05rem;
  margin-left: -0.06rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.54), rgba(246, 250, 255, 0.14));
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.analog-clock-marker-top {
  transform: rotate(0deg);
}

.analog-clock-marker-right {
  transform: rotate(90deg);
}

.analog-clock-marker-bottom {
  transform: rotate(180deg);
}

.analog-clock-marker-left {
  transform: rotate(270deg);
}

.analog-clock-hand {
  inset: 0;
  transform-origin: 50% 50%;
  z-index: 2;
}

.analog-clock-hand::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
}

.analog-clock-hand-hour {
  transform: rotate(var(--analog-hour-rotation));
  z-index: 2;
}

.analog-clock-hand-hour::before {
  width: 0.28rem;
  height: 2rem;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.92), rgba(197, 215, 246, 0.26));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08),
    inset 0 -0.3rem 0.4rem rgba(5, 11, 20, 0.2);
}

.analog-clock-hand-minute {
  transform: rotate(var(--analog-minute-rotation));
  z-index: 3;
}

.analog-clock-hand-minute::before {
  width: 0.2rem;
  height: 2.82rem;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(186, 210, 246, 0.16));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08),
    inset 0 -0.4rem 0.45rem rgba(5, 11, 20, 0.22);
}

.analog-clock-hand-second {
  transform: rotate(var(--analog-second-rotation));
  z-index: 4;
}

.clock-group, .clock-separator, .clock-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.metric-clock .clock-group {
  flex: 1 1 0;
}

.clock-group-seconds .clock-digit {
  min-height: 2.25rem;
  font-size: 0.7em;
}

.clock-digit, .clock-separator {
  min-width: 0.72rem;
}

.clock-separator {
  min-width: 0.65rem;
  font-size: 1.12rem;
  color: rgba(230, 237, 248, 0.28);
  align-self: center;
  transition: color 80ms linear, opacity 80ms linear;
  opacity: 0.28;
}

@keyframes clockFlip {
  from {
      opacity: 0;
      transform: translateY(14px) scale(0.9);
      filter: blur(6px);
    }
    55% {
      opacity: 1;
      transform: translateY(-2px) scale(1.02);
      filter: blur(0);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
}

@media (max-width: 640px) {
  .metric-clock {
    width: 100%;
    justify-content: center;
  }
}

body::before, .page-shell::after, .ambient {
  filter: none;
  animation: none;
  will-change: auto;
}

.page-shell, .page-shell::after, .ambient {
  transition: background 420ms ease,
    opacity 420ms ease,
    filter 420ms ease;
}

.page-shell.weather-mood-clear::after {
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(255, 215, 126, 0.12),
      rgba(133, 224, 203, 0.06),
      rgba(255, 255, 255, 0)
    );
}

.page-shell.weather-mood-clear .ambient-one {
  background: rgba(255, 214, 120, 0.16);
}

.page-shell.weather-mood-clear .ambient-two {
  background: rgba(140, 168, 255, 0.1);
}

.page-shell.weather-mood-partly::after {
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(133, 224, 203, 0.08),
      rgba(140, 168, 255, 0.08),
      rgba(255, 255, 255, 0)
    );
}

.page-shell.weather-mood-cloudy::after, .page-shell.weather-mood-fog::after {
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(198, 211, 233, 0.07),
      rgba(140, 168, 255, 0.05),
      rgba(255, 255, 255, 0)
    );
  opacity: 0.46;
}

.page-shell.weather-mood-cloudy .ambient-one, .page-shell.weather-mood-fog .ambient-one {
  background: rgba(184, 198, 223, 0.12);
}

.page-shell.weather-mood-rain::after, .page-shell.weather-mood-storm::after {
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(94, 124, 197, 0.1),
      rgba(140, 168, 255, 0.08),
      rgba(255, 255, 255, 0)
    );
}

.page-shell.weather-mood-rain .ambient-one, .page-shell.weather-mood-storm .ambient-one {
  background: rgba(95, 126, 198, 0.15);
}

.page-shell.weather-mood-rain .ambient-two, .page-shell.weather-mood-storm .ambient-two {
  background: rgba(150, 180, 255, 0.1);
}

.page-shell.weather-mood-snow::after {
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(222, 234, 255, 0.11),
      rgba(172, 204, 255, 0.07),
      rgba(255, 255, 255, 0)
    );
}

.page-shell.weather-mood-snow .ambient-one {
  background: rgba(229, 241, 255, 0.14);
}

.page-shell.weather-mood-night::after {
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(106, 129, 208, 0.1),
      rgba(91, 111, 176, 0.08),
      rgba(255, 255, 255, 0)
    );
}

.metric-card-primary::before, .metric-card-weather::before, .hero-control-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.05), transparent 36%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.04), transparent 26%);
  pointer-events: none;
}

.metric-card-primary .metric-label, .metric-card-weather #weatherCardHeading, .hero-control-panel #scenarioHeading {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(8, 16, 29, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 18px rgba(2, 6, 23, 0.14);
}

.metric-card-weather, .hero-control-panel {
  position: relative;
  overflow: hidden;
}

.metric-card-weather {
  min-height: 14rem;
  padding: 0;
  background: radial-gradient(circle at top left, rgba(140, 168, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.9), rgba(8, 16, 29, 0.72));
}

.metric-card-weather #weatherCardHeading {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  color: rgba(246, 250, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.42), rgba(9, 17, 31, 0.2)),
    rgba(9, 17, 31, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(2, 6, 23, 0.18);
  text-shadow: 0 10px 22px rgba(2, 6, 23, 0.26);
}

.weather-panel {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 100%;
  padding: 0;
  border-radius: inherit;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.weather-panel::before, .weather-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.weather-scene, .weather-copy {
  position: relative;
  z-index: 2;
}

.weather-scene {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: inherit;
}

.weather-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}

.weather-rain-system, .weather-snow-system, .weather-fog-system, .weather-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.weather-aura, .weather-horizon, .weather-sun-halo, .weather-sun-rays, .weather-sun, .weather-moon, .weather-cloud, .weather-rain, .weather-snow, .weather-stars {
  position: absolute;
}

.weather-sun-halo, .weather-sun-rays {
  top: -0.15rem;
  left: -0.45rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  opacity: 0;
}

.weather-sun-halo {
  background: radial-gradient(circle, rgba(255, 227, 152, 0.22), rgba(255, 227, 152, 0.05) 44%, transparent 68%);
  filter: blur(14px);
}

.weather-sun-rays {
  background: repeating-conic-gradient(
      from 0deg,
      rgba(255, 231, 165, 0.14) 0deg 10deg,
      rgba(255, 231, 165, 0) 10deg 28deg
    );
  mask: radial-gradient(circle, transparent 26%, rgba(0, 0, 0, 0.9) 42%, transparent 67%);
  filter: blur(4px);
  transform-origin: center;
}

.weather-sun-rays::before, .weather-sun-rays::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.weather-sun-rays::before {
  background: radial-gradient(circle, rgba(255, 237, 190, 0.12), transparent 60%);
  filter: blur(10px);
}

.weather-sun-rays::after {
  inset: 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 176, 0.2);
  opacity: 0.45;
}

.weather-aura {
  inset: auto auto 0.4rem 0.4rem;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 72%);
  filter: blur(14px);
  opacity: 0;
}

.weather-horizon {
  left: -8%;
  right: -8%;
  bottom: -2.6rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  filter: blur(4px);
  opacity: 0.42;
}

.weather-sun, .weather-moon {
  top: 1.2rem;
  left: 1.3rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 999px;
  opacity: 0;
}

.weather-moon {
  background: radial-gradient(circle at 35% 35%, #fff7db, #adc3ff 70%);
  box-shadow: 0 0 20px rgba(165, 190, 255, 0.24);
}

.weather-moon::after {
  content: "";
  position: absolute;
  top: 0.22rem;
  right: -0.02rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(13, 22, 39, 0.92);
}

.weather-cloud::before {
  left: 0.7rem;
  bottom: 1.1rem;
  width: 3rem;
  height: 3rem;
}

.weather-cloud::after {
  right: 0.9rem;
  bottom: 0.88rem;
  width: 2.4rem;
  height: 2.4rem;
}

.weather-rain, .weather-snow {
  inset: auto 1.2rem 0.9rem 0.8rem;
  height: 5.2rem;
  opacity: 0;
  pointer-events: none;
}

.weather-rain {
  background: none;
  animation: none;
  filter: none;
}

.weather-snow {
  background: none;
  animation: none;
  filter: none;
}

.weather-rain::before, .weather-rain::after, .weather-snow::before, .weather-snow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.weather-rain::before {
  opacity: 0;
  background: repeating-linear-gradient(
    118deg,
    transparent 0 0.92rem,
    rgba(210, 226, 255, 0.4) 0.92rem 1.02rem,
    transparent 1.02rem 1.54rem
  );
  animation: none;
}

.weather-rain::after {
  inset: auto 0 -0.3rem 0;
  height: 1.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(168, 200, 255, 0.16), transparent 70%);
  filter: blur(4px);
  opacity: 0;
}

.weather-snow::before {
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 0.11rem, transparent 0.13rem) 0.1rem 0.2rem / 1.4rem 1.4rem,
    radial-gradient(circle, rgba(245, 250, 255, 0.9) 0 0.12rem, transparent 0.14rem) 0.9rem 0.85rem / 1.6rem 1.6rem,
    radial-gradient(circle, rgba(255, 255, 255, 0.74) 0 0.08rem, transparent 0.1rem) 0.5rem 0.35rem / 1rem 1rem;
  animation: none;
}

.weather-snow::after {
  inset: auto 0 0 0;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  filter: blur(4px);
  opacity: 0;
}

.weather-lightning-system {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 3;
}

.weather-flash, .weather-bolt {
  position: absolute;
  opacity: 0;
}

.weather-flash {
  inset: 0;
  background: radial-gradient(circle at 73% 21%, rgba(255, 247, 214, 0.64), transparent 15%),
    radial-gradient(circle at 61% 26%, rgba(204, 225, 255, 0.34), transparent 18%),
    radial-gradient(circle at 78% 30%, rgba(170, 206, 255, 0.2), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
}

.weather-flash::before, .weather-flash::after {
  content: "";
  position: absolute;
  opacity: 0.85;
}

.weather-flash::before {
  top: 1.2rem;
  right: 4.8rem;
  width: 11rem;
  height: 3.8rem;
  border-radius: 999px;
  background: radial-gradient(circle at 24% 50%, rgba(255, 246, 206, 0.3), transparent 30%),
    radial-gradient(circle at 56% 46%, rgba(214, 232, 255, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  filter: blur(14px);
}

.weather-flash::after {
  top: 3.2rem;
  right: 8rem;
  width: 6rem;
  height: 7.4rem;
  background: linear-gradient(180deg, rgba(255, 244, 213, 0.22), rgba(255, 255, 255, 0));
  clip-path: polygon(44% 0, 61% 0, 54% 22%, 68% 22%, 45% 56%, 56% 56%, 34% 100%, 44% 68%, 31% 68%);
  filter: blur(10px);
}

.weather-bolt {
  --bolt-base-transform: scale(1) rotate(0deg);
  width: 4rem;
  height: 7.8rem;
  filter: drop-shadow(0 0 12px rgba(255, 244, 213, 0.58))
    drop-shadow(0 0 28px rgba(255, 204, 92, 0.42))
    drop-shadow(0 0 44px rgba(162, 208, 255, 0.16));
  transform-origin: 50% 0;
  will-change: transform, opacity, filter;
}

.weather-bolt::before, .weather-bolt::after {
  content: "";
  position: absolute;
  background: linear-gradient(
    180deg,
    rgba(255, 251, 239, 1),
    rgba(255, 237, 185, 0.98) 40%,
    rgba(255, 198, 103, 0.68) 72%,
    rgba(164, 208, 255, 0.22)
  );
  filter: drop-shadow(0 0 6px rgba(255, 248, 222, 0.55));
}

.weather-bolt::before {
  inset: 0 1.34rem 0 1.06rem;
  clip-path: polygon(42% 0, 72% 0, 54% 18%, 73% 18%, 46% 45%, 64% 45%, 33% 78%, 46% 78%, 14% 100%, 28% 62%, 9% 62%);
}

.weather-bolt::after {
  left: 0.7rem;
  top: 2.05rem;
  width: 1.8rem;
  height: 3rem;
  clip-path: polygon(35% 0, 62% 0, 52% 22%, 74% 22%, 38% 64%, 56% 64%, 20% 100%, 28% 72%, 12% 72%);
  transform: rotate(13deg);
  opacity: 0.96;
}

.weather-bolt-one {
  top: 1.4rem;
  right: 8.4rem;
  --bolt-base-transform: scale(1) rotate(2deg);
}

.weather-bolt-two {
  top: 1.9rem;
  right: 12.8rem;
  --bolt-base-transform: scale(0.82) rotate(-7deg);
}

.weather-bolt-three {
  top: 2rem;
  right: 5.7rem;
  --bolt-base-transform: scale(0.68) rotate(9deg);
}

.weather-stars {
  top: 1rem;
  right: 1.4rem;
  width: 3.6rem;
  height: 2.8rem;
  opacity: 0;
}

.weather-stars::before, .weather-stars::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.weather-stars::before {
  top: 0.15rem;
  left: 0.2rem;
  width: 0.24rem;
  height: 0.24rem;
  box-shadow: 0.9rem 0.8rem 0 -0.03rem rgba(255, 255, 255, 0.62),
    1.4rem 0.18rem 0 -0.05rem rgba(255, 255, 255, 0.44);
}

.weather-stars::after {
  top: 0.92rem;
  left: 1rem;
  width: 0.18rem;
  height: 0.18rem;
}

.weather-rain-layer, .weather-rain-drop, .weather-fog-layer, .weather-star-dot, .weather-snow-piece {
  position: absolute;
}

.weather-rain-layer {
  inset: 0;
  opacity: 0;
}

.weather-rain-drop {
  left: var(--drop-left);
  top: -12%;
  width: 2px;
  height: var(--drop-height);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(221, 235, 255, 0), rgba(188, 215, 255, 0.84), rgba(188, 215, 255, 0));
  transform: skewX(-18deg);
  animation: rainDropFall var(--drop-duration) linear infinite;
  animation-delay: var(--drop-delay);
  animation-play-state: paused;
}

.weather-rain-drop.is-far {
  width: 1px;
  opacity: 0.58;
  filter: blur(0.3px);
}

.weather-snow-piece {
  left: var(--piece-left);
  top: -10%;
  width: var(--piece-size);
  height: var(--piece-size);
  overflow: visible;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.14));
  animation: snowPieceFall var(--piece-duration) linear infinite;
  animation-delay: var(--piece-delay);
  animation-play-state: paused;
}

.weather-fog-layer {
  top: var(--fog-top);
  left: 50%;
  width: var(--fog-width);
  height: 2.8rem;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(236, 243, 255, 0.34), rgba(236, 243, 255, 0.12) 52%, transparent 74%);
  filter: blur(10px);
  opacity: 0;
  transform: translateX(-50%);
  animation: fogLayerGlide 9.6s ease-in-out infinite;
  animation-delay: var(--fog-delay);
  animation-play-state: paused;
}

.weather-star-dot {
  left: var(--star-left);
  top: var(--star-top);
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.26);
  opacity: 0;
  animation: weatherTwinkle 4.6s ease-in-out infinite;
  animation-delay: var(--star-delay);
  animation-play-state: paused;
}

.weather-copy {
  min-height: 14rem;
  max-width: 25.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 2.85rem 1.25rem 1.25rem;
}

.weather-summary-item {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.72rem 0.86rem;
}

.weather-summary-item + .weather-summary-item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-summary .weather-title {
  display: block;
  margin-top: 0;
  max-width: 15ch;
  font-size: 0.92rem;
  font-weight: 800;
  color: rgba(248, 251, 255, 0.98);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
}

.weather-summary .weather-temp {
  display: block;
  margin-top: 0;
  font-size: clamp(1.42rem, 2.15vw, 1.9rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(249, 252, 255, 0.98);
  text-shadow: 0 12px 26px rgba(2, 6, 23, 0.32);
  white-space: nowrap;
}

.weather-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.78rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 16, 29, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(2, 6, 23, 0.12);
}

.weather-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.56rem 0.68rem 0.6rem;
}

.weather-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.56rem;
  right: 0;
  bottom: 0.56rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.weather-stat:nth-child(3n)::after {
  display: none;
}

.weather-stat:nth-child(-n + 3) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: rgba(216, 224, 236, 0.62);
  white-space: nowrap;
}

.weather-stat-value {
  font-size: 0.86rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-stat-direction {
  padding-right: 0.68rem;
}

.weather-stat-value-direction {
  max-width: 12ch;
  white-space: normal;
  line-height: 1.08;
}

.weather-note {
  color: var(--text-muted);
  margin-top: 0.48rem;
  font-size: 0.8rem;
  max-width: 26ch;
  line-height: 1.5;
}

.weather-panel.is-loading .weather-scene {
  background: linear-gradient(180deg, rgba(140, 168, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.weather-panel.is-clear {
  border-color: rgba(255, 210, 125, 0.18);
}

.weather-panel.is-clear .weather-aura {
  opacity: 0.74;
}

.weather-panel.is-clear .weather-sun-halo, .weather-panel.is-clear .weather-sun-rays, .weather-panel.is-partly .weather-sun-halo {
  opacity: 1;
}

.weather-panel.is-clear .weather-sun-rays {
  animation: sunRaySpin 34s linear infinite;
}

.weather-panel.is-night {
  border-color: rgba(140, 168, 255, 0.18);
}

.weather-panel.is-night .weather-scene {
  background: radial-gradient(circle at top left, rgba(156, 179, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(22, 33, 62, 0.88), rgba(10, 16, 31, 0.62));
}

.weather-panel.has-night-sky .weather-stars {
  animation: weatherTwinkle 4.2s ease-in-out infinite;
}

.weather-panel.has-night-sky .weather-star-dot {
  animation-play-state: running;
}

.weather-panel.is-partly {
  border-color: rgba(133, 224, 203, 0.16);
}

.weather-panel.is-partly .weather-cloud-one, .weather-panel.is-partly .weather-cloud-two, .weather-panel.is-partly .weather-cloud-three {
  opacity: 0.96;
}

.weather-panel.is-partly .weather-aura {
  opacity: 0.5;
}

.weather-panel.is-cloudy, .weather-panel.is-fog {
  border-color: rgba(214, 224, 241, 0.16);
}

.weather-panel.is-cloudy .weather-scene, .weather-panel.is-fog .weather-scene {
  background: radial-gradient(circle at top left, rgba(214, 224, 241, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(44, 53, 75, 0.78), rgba(20, 25, 36, 0.5));
}

.weather-panel.is-cloudy .weather-cloud-one, .weather-panel.is-cloudy .weather-cloud-two, .weather-panel.is-cloudy .weather-cloud-three, .weather-panel.is-fog .weather-cloud-one, .weather-panel.is-fog .weather-cloud-two, .weather-panel.is-fog .weather-cloud-three {
  opacity: 1;
}

.weather-panel.is-rain {
  border-color: rgba(140, 168, 255, 0.18);
}

.weather-panel.is-rain .weather-cloud-one, .weather-panel.is-rain .weather-cloud-two, .weather-panel.is-rain .weather-cloud-three, .weather-panel.is-storm .weather-cloud-one, .weather-panel.is-storm .weather-cloud-two, .weather-panel.is-storm .weather-cloud-three {
  opacity: 1;
}

.weather-panel.is-rain .weather-rain, .weather-panel.is-storm .weather-rain, .weather-panel.is-rain .weather-rain-layer, .weather-panel.is-storm .weather-rain-layer {
  opacity: 0.82;
}

.weather-panel.is-rain .weather-horizon, .weather-panel.is-storm .weather-horizon {
  opacity: 0.3;
  transform: translateY(0.4rem);
}

.weather-panel.is-snow {
  border-color: rgba(215, 232, 255, 0.2);
}

.weather-panel.is-snow .weather-cloud-one, .weather-panel.is-snow .weather-cloud-two, .weather-panel.is-snow .weather-cloud-three, .weather-panel.is-snow .weather-snow, .weather-panel.is-snow .weather-snow-piece {
  opacity: 1;
}

.weather-panel.is-fog .weather-cloud-one, .weather-panel.is-fog .weather-cloud-two, .weather-panel.is-fog .weather-cloud-three {
  opacity: 0.52;
  filter: blur(1px);
}

.weather-panel.is-storm {
  border-color: rgba(255, 210, 125, 0.18);
}

.weather-panel.is-storm .weather-scene {
  background: radial-gradient(circle at 74% 22%, rgba(255, 243, 196, 0.16), transparent 14%),
    radial-gradient(circle at 60% 24%, rgba(170, 202, 255, 0.18), transparent 20%),
    radial-gradient(circle at 78% 34%, rgba(105, 141, 225, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(42, 54, 88, 0.96), rgba(14, 19, 31, 0.68));
}

.weather-panel.is-storm .weather-cloud-one, .weather-panel.is-storm .weather-cloud-two, .weather-panel.is-storm .weather-cloud-three {
  opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 30px rgba(2, 6, 23, 0.2),
    0 0 20px rgba(181, 204, 255, 0.08);
}

.weather-panel.is-storm .weather-bolt-one {
  animation-delay: 0s;
}

.weather-panel.is-storm .weather-bolt-two {
  animation-delay: 0.18s;
}

.weather-panel.is-storm .weather-bolt-three {
  animation-delay: 0.32s;
}

.weather-panel.is-storm .weather-cloud-two {
  animation: cloudDrift 9.6s ease-in-out infinite reverse,
    stormCloudPulse 5.2s linear infinite;
}

.weather-panel.is-storm .weather-cloud-three {
  animation: cloudDrift 11.2s ease-in-out infinite,
    stormCloudPulse 5.2s linear infinite;
}

.weather-panel.is-storm .weather-cloud-one {
  animation: cloudDrift 7.8s ease-in-out infinite,
    stormCloudPulse 5.2s linear infinite;
}

.weather-panel.is-storm .weather-rain-drop {
  opacity: 0.96;
  filter: drop-shadow(0 0 5px rgba(188, 219, 255, 0.3));
}

.weather-panel.is-neutral .weather-scene {
  background: radial-gradient(circle at top left, rgba(180, 196, 222, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(34, 46, 76, 0.66), rgba(15, 21, 34, 0.34));
}

.weather-panel.is-neutral .weather-cloud-one {
  opacity: 0.84;
}

@keyframes weatherBackGlow {
  0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 0.58;
    }
    50% {
      transform: translate3d(-0.35rem, 0.25rem, 0) scale(1.04);
      opacity: 0.76;
    }
}

@keyframes weatherFloat {
  0%,
    100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(0, -0.18rem, 0);
    }
}

@keyframes sunRaySpin {
  from {
      transform: rotate(0deg) scale(1);
    }
    50% {
      transform: rotate(180deg) scale(1.05);
    }
    to {
      transform: rotate(360deg) scale(1);
    }
}

@keyframes cloudDrift {
  0%,
    100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(-0.65rem, 0.18rem, 0);
    }
}

@keyframes fogLayerGlide {
  0%,
    100% {
      transform: translateX(-50%) translateY(0) scaleX(1);
    }
    50% {
      transform: translateX(calc(-50% + var(--fog-drift))) translateY(-0.2rem) scaleX(1.06);
    }
}

@keyframes rainDropFall {
  from {
      transform: translate3d(0, -0.4rem, 0) skewX(-18deg);
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    to {
      transform: translate3d(-0.85rem, 8.4rem, 0) skewX(-18deg);
      opacity: 0;
    }
}

@keyframes snowPieceFall {
  from {
      transform: translate3d(0, -0.3rem, 0) rotate(0deg);
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    50% {
      transform: translate3d(calc(var(--piece-drift) * 0.45), 4.2rem, 0) rotate(120deg);
      opacity: 0.92;
    }
    to {
      transform: translate3d(var(--piece-drift), 8.6rem, 0) rotate(280deg);
      opacity: 0;
    }
}

@keyframes stormBoltStrike {
  0%,
    73%,
    100% {
      opacity: 0;
      transform: var(--bolt-base-transform) translate3d(0, -0.9rem, 0) scaleY(0.72);
    }
    74% {
      opacity: 1;
      transform: var(--bolt-base-transform) translate3d(0, 0, 0) scaleY(1.04);
    }
    75.5% {
      opacity: 0.92;
      transform: var(--bolt-base-transform) translate3d(0.1rem, 0.12rem, 0) scaleY(0.98);
    }
    77% {
      opacity: 0;
      transform: var(--bolt-base-transform) translate3d(-0.08rem, -0.18rem, 0) scaleY(0.9);
    }
    80% {
      opacity: 0.82;
      transform: var(--bolt-base-transform) translate3d(0, -0.08rem, 0) scaleY(0.96);
    }
    81.2% {
      opacity: 0;
      transform: var(--bolt-base-transform) translate3d(0.04rem, -0.28rem, 0) scaleY(0.82);
    }
    84.4% {
      opacity: 1;
      transform: var(--bolt-base-transform) translate3d(0, 0, 0) scaleY(1.02);
    }
    85.2% {
      opacity: 0.86;
      transform: var(--bolt-base-transform) translate3d(-0.06rem, 0.04rem, 0) scaleY(0.97);
    }
    86.4% {
      opacity: 0;
      transform: var(--bolt-base-transform) translate3d(0.08rem, -0.22rem, 0) scaleY(0.82);
    }
}

@keyframes stormSkyFlash {
  0%,
    72%,
    100% {
      opacity: 0;
    }
    73.5% {
      opacity: 0.06;
    }
    74.2% {
      opacity: 0.34;
    }
    75.8% {
      opacity: 0.18;
    }
    79.8% {
      opacity: 0.12;
    }
    80.8% {
      opacity: 0;
    }
    84.2% {
      opacity: 0.28;
    }
    85% {
      opacity: 0.14;
    }
    86.2% {
      opacity: 0;
    }
}

@keyframes stormCloudPulse {
  0%,
    72%,
    100% {
      filter: brightness(1) saturate(1);
    }
    74.2% {
      filter: brightness(1.14) saturate(1.08);
    }
    75.8% {
      filter: brightness(1.04) saturate(1.02);
    }
    84.6% {
      filter: brightness(1.18) saturate(1.1);
    }
    85.6% {
      filter: brightness(1.03) saturate(1.01);
    }
}

@keyframes weatherTwinkle {
  0%,
    100% {
      opacity: 0.45;
    }
    50% {
      opacity: 0.95;
    }
}

@media (max-width: 640px) {
  .weather-scene {
    min-height: 7rem;
  }
}

@media (max-width: 640px) {
  .weather-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .weather-stat:nth-child(3n)::after {
    display: block;
  }
}

@media (max-width: 640px) {
  .weather-stat:nth-child(2)::after, .weather-stat:nth-child(4)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .weather-stat:nth-child(-n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .weather-stat:nth-child(-n + 4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  margin: 0;
  line-height: 1.05;
  margin-top: 0.45rem;
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-main);
  letter-spacing: -0.045em;
}

.main-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 1100px) {
  .main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1100px) {
  .main-grid.is-completed-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.day-card, .section-card {
  border-radius: 28px;
  padding: 1.2rem;
}

.day-card {
  background: radial-gradient(circle at 12% 16%, rgba(119, 230, 200, 0.12), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(126, 164, 255, 0.14), transparent 22%),
    radial-gradient(circle at 78% 92%, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.94), rgba(8, 16, 29, 0.82));
}

.section-card {
  background: radial-gradient(circle at 12% 16%, rgba(119, 230, 200, 0.1), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(126, 164, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.88), rgba(8, 16, 29, 0.72));
}

@media (min-width: 768px) {
  .day-card, .section-card {
    padding: 1.3rem;
  }
}

.card-shell {
  position: relative;
}

.card-shell > * {
  position: relative;
  z-index: 1;
}

.card-shell::after {
  display: none;
}

.is-primary-card.card-shell::after {
  opacity: 0.92;
}

.card-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.15rem;
  right: 1.15rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}

.card-lead {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.is-primary-card .card-head {
  padding-right: 5.6rem;
}

.is-secondary-card .section-card-head {
  padding-right: 4.2rem;
}

.card-title {
  margin: 0.4rem 0 0;
  font-size: clamp(1.65rem, 2vw, 2.35rem);
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.05em;
  max-width: none;
}

.card-time {
  margin-top: 0.65rem;
  font-size: 0.94rem;
}

.is-secondary-card .section-title {
  font-size: 1.22rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.3rem;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-status-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  align-items: center;
}

.surface-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 196, 134, 0.18);
  background: rgba(242, 196, 134, 0.08);
  color: var(--accent-warm);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.surface-ribbon span {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.surface-ribbon small {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-chip.is-success {
  border-color: rgba(119, 230, 200, 0.22);
  background: rgba(119, 230, 200, 0.14);
  color: var(--accent);
}

.status-chip.is-warning {
  border-color: rgba(255, 210, 125, 0.22);
  background: rgba(255, 210, 125, 0.1);
  color: var(--warning);
}

.status-chip.is-muted {
  color: var(--text-muted);
}

.items-grid {
  display: grid;
  gap: 0.72rem;
  margin-top: 1rem;
}

.regimen-stack {
  display: grid;
  gap: 0;
}

.regimen-group {
  display: grid;
  gap: 0.72rem;
}

.regimen-grid {
  gap: 0.72rem;
}

.regimen-spacer {
  height: 0.8rem;
}

@media (min-width: 640px) {
  .regimen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.regimen-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.82rem 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.is-secondary-card .items-grid {
  margin-top: 0.9rem;
}

.is-secondary-card .regimen-item {
  gap: 0.78rem;
  padding: 0.72rem 0.78rem;
  border-radius: 16px;
}

.regimen-item.is-complete {
  border-color: rgba(119, 230, 200, 0.24);
  background: radial-gradient(circle at left center, rgba(119, 230, 200, 0.12), transparent 38%),
    rgba(119, 230, 200, 0.08);
}

.regimen-item.is-eat, .regimen-item.is-food {
  border-color: rgba(255, 210, 125, 0.16);
  background: radial-gradient(circle at top left, rgba(255, 210, 125, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.regimen-item.is-eat .regimen-marker, .regimen-item.is-food .regimen-marker {
  background: linear-gradient(135deg, rgba(255, 210, 125, 0.96), rgba(242, 196, 134, 0.9));
  box-shadow: 0 0 0 6px rgba(255, 210, 125, 0.08);
}

.regimen-item.is-drinks {
  border-color: rgba(120, 220, 255, 0.17);
  background: radial-gradient(circle at top left, rgba(120, 220, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.regimen-item.is-drinks .regimen-marker {
  background: linear-gradient(135deg, rgba(120, 220, 255, 0.95), rgba(119, 230, 200, 0.88));
  box-shadow: 0 0 0 6px rgba(120, 220, 255, 0.08);
}

.regimen-item.is-fitness, .regimen-item.is-cardio {
  border-color: rgba(126, 164, 255, 0.18);
  background: radial-gradient(circle at top left, rgba(126, 164, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.regimen-item.is-fitness .regimen-marker, .regimen-item.is-cardio .regimen-marker {
  background: linear-gradient(135deg, rgba(126, 164, 255, 0.95), rgba(119, 230, 200, 0.88));
  box-shadow: 0 0 0 6px rgba(126, 164, 255, 0.08);
}

.regimen-marker {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.42rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), rgba(126, 164, 255, 0.9));
  box-shadow: 0 0 0 6px rgba(133, 224, 203, 0.08);
}

.regimen-copy {
  flex: 1;
  min-width: 0;
}

.regimen-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.38rem;
  row-gap: 0.08rem;
}

.regimen-title {
  font-weight: 700;
  line-height: 1.42;
  font-size: 0.95rem;
}

.regimen-amount {
  color: rgba(235, 241, 250, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.card-footer, .section-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.section-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  overflow: hidden;
  min-height: 3.5rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  font-weight: 800;
  color: #041813;
  background: radial-gradient(circle at top left, rgba(242, 196, 134, 0.2), transparent 42%),
    linear-gradient(135deg, var(--accent), rgba(126, 164, 255, 0.9));
  box-shadow: 0 12px 26px rgba(60, 184, 156, 0.2);
  border-color: rgba(255, 255, 255, 0.16);
}

.section-action::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  opacity: 0.38;
  pointer-events: none;
}

.section-action::after {
  content: "";
  position: absolute;
  top: -120%;
  bottom: -120%;
  left: -18%;
  width: 42%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
  opacity: 0.62;
  pointer-events: none;
}

.section-action > * {
  position: relative;
  z-index: 1;
}

.section-action:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  box-shadow: none;
}

.is-primary-card .section-action {
  min-width: 15rem;
}

.section-action i {
  width: 1rem;
  height: 1rem;
  padding: 0;
  flex-shrink: 0;
  border-radius: 0;
  color: inherit;
  background: none;
  border: 0;
  box-shadow: none;
}

.section-action span {
  font-size: 0.94rem;
  line-height: 1.3;
}

.empty-state {
  margin-top: 1.15rem;
  border-radius: 22px;
  border: 1px dashed var(--line);
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
}

.empty-copy {
  color: rgba(231, 237, 249, 0.64);
  margin: 0;
  line-height: 1.65;
}

.inline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 207, 139, 0.2);
  background: rgba(255, 207, 139, 0.08);
  color: var(--accent-warm);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (max-width: 640px) {
  .card-status-wrap {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .section-action {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .is-primary-card .card-head, .is-secondary-card .section-card-head {
    padding-right: 0;
  }
}

.is-primary-card .card-head, .is-secondary-card .section-card-head {
  padding-right: 0;
}

.side-card, .day-card, .section-card {
  background: radial-gradient(circle at 12% 16%, rgba(119, 230, 200, 0.12), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(126, 164, 255, 0.14), transparent 22%),
    radial-gradient(circle at 78% 92%, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.92), rgba(8, 16, 29, 0.78));
  box-shadow: 0 28px 74px rgba(2, 6, 23, 0.28),
    0 8px 22px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 34px rgba(140, 168, 255, 0.035);
  contain: layout paint;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
}

.day-card::before, .section-card::before, .side-card::before {
  display: none;
}

.side-card::before {
  opacity: 0.88;
}

.top-dashboard, .main-grid, .content-column, .stack-grid {
  position: relative;
  z-index: 1;
}

.content-column, .stack-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 1100px) {
  .main-grid.is-completed-layout .content-column {
    grid-column: auto;
  }
}

.card-head, .section-card-head, .side-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.card-time, .section-meta {
  color: var(--text-muted);
}

.side-card {
  border-radius: 28px;
  padding: 1.1rem;
  background: radial-gradient(circle at 12% 16%, rgba(119, 230, 200, 0.12), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(126, 164, 255, 0.14), transparent 22%),
    radial-gradient(circle at 78% 92%, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.9), rgba(8, 16, 29, 0.72));
}

.side-card > * {
  position: relative;
  z-index: 1;
}

.disclosure-card {
  padding: 0.95rem 1rem 1rem;
}

.disclosure-card-wide {
  padding: 1rem 1.05rem 1.05rem;
}

.disclosure-toggle {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 180ms ease;
}

.disclosure-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.disclosure-preview {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.disclosure-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.disclosure-symbol i {
  width: 1rem;
  height: 1rem;
}

.disclosure-chevron {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.disclosure-body {
  min-height: 0;
  overflow: hidden;
  padding-top: 0.95rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease,
    transform 220ms ease,
    padding-top 220ms ease,
    border-color 220ms ease;
}

.disclosure-card.is-collapsed .disclosure-shell {
  grid-template-rows: 0fr;
}

.disclosure-card.is-collapsed .disclosure-body {
  padding-top: 0;
  opacity: 0;
  transform: translateY(-0.45rem);
  pointer-events: none;
}

.disclosure-card:not(.is-collapsed) .disclosure-chevron {
  transform: rotate(180deg);
  border-color: rgba(133, 224, 203, 0.3);
  background: radial-gradient(circle at top left, rgba(242, 196, 134, 0.12), transparent 46%),
    linear-gradient(135deg, rgba(119, 230, 200, 0.14), rgba(126, 164, 255, 0.14));
}

.side-card::after {
  display: none;
}

.side-card-header {
  align-items: center;
}

.side-card-header > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

@media (max-width: 640px) {
  .side-card, .day-card, .section-card {
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .card-head, .section-card-head, .side-card-header {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .disclosure-action {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .card-footer, .section-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.feedback {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0) + 1.35rem);
  left: 50%;
  z-index: 120;
  display: flex;
  justify-content: center;
  width: min(100% - 2rem, 38rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.feedback-badge.success {
  border-color: rgba(119, 230, 200, 0.58);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 55%),
    #0b2f2b;
  color: var(--accent);
}

.feedback-mark {
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.08rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.22rem rgba(255, 255, 255, 0.05);
}

.feedback-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 38%);
  pointer-events: none;
}

@keyframes toastIn {
  from {
      opacity: 0;
      transform: translateY(-10px) scale(0.98);
      filter: blur(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
}

@media (max-width: 640px) {
  .feedback {
    top: calc(env(safe-area-inset-top, 0) + 0.9rem);
    width: calc(100% - 1.2rem);
  }
}

.time-wheel-stage, .time-wheel-picker, .time-schedule-preview {
  contain: layout paint;
}

@media (min-width: 760px) {
  .time-schedule-copy small {
    display: block;
  }
}

@media (max-width: 420px) {
  .time-dialog-panel {
    max-height: calc(100dvh - 1.1rem);
    gap: 0.62rem;
    padding: 0.7rem;
    border-radius: 26px;
  }
}

@media (max-width: 420px) {
  .time-dialog-head {
    gap: 0.56rem;
  }
}

@media (max-width: 420px) {
  .time-dialog-current {
    min-width: 6.4rem;
    min-height: 2.72rem;
    padding-inline: 0.6rem;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .time-dialog-close {
    width: 2.52rem;
    height: 2.52rem;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .time-wheel-stage {
    padding: 0.62rem;
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .time-wheel-picker {
    --time-wheel-height: 9.35rem;
    --time-wheel-item-height: 2.55rem;
  }
}

@media (max-width: 420px) {
  .time-schedule-item {
    min-height: 5.8rem;
    padding: 0.62rem;
    justify-items: center;
    text-align: center;
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .time-schedule-icon {
    display: none;
  }
}

@media (max-width: 420px) {
  .time-schedule-copy {
    justify-items: center;
  }
}

@media (max-width: 420px) {
  .time-schedule-copy span {
    font-size: 0.72rem;
    line-height: 1.15;
  }
}

@media (max-width: 420px) {
  .time-dialog-actions {
    grid-template-columns: 1fr;
  }
}

body.has-time-dialog {
  overflow: hidden;
}

.time-dialog[hidden] {
  display: none;
}

@media (min-width: 720px) {
  .time-schedule-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .time-schedule-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

.time-schedule-copy span, .time-schedule-copy small {
  overflow-wrap: anywhere;
}

@media (min-width: 760px) {
  .time-dialog {
    place-items: center;
    padding: 1.15rem;
  }
}

@media (min-width: 760px) {
  .time-dialog-panel {
    width: min(100%, 42rem);
    max-height: min(90dvh, 39rem);
    gap: 0.92rem;
    padding: 0.9rem;
  }
}

@media (min-width: 760px) {
  .time-schedule-preview {
    align-content: stretch;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .time-schedule-item {
    min-height: 0;
    padding: 0.68rem 0.74rem;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    align-items: center;
  }
}

@media (min-width: 760px) {
  .time-schedule-copy {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (min-width: 760px) {
  .time-schedule-copy strong {
    font-size: 1.14rem;
  }
}

@media (min-width: 760px) {
  .time-schedule-copy span, .time-schedule-copy small {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .time-dialog-panel {
    gap: 0.58rem;
    padding: 0.64rem;
    border-radius: 26px;
  }
}

@media (max-width: 380px) {
  .time-dialog-head {
    gap: 0.46rem;
  }
}

@media (max-width: 380px) {
  .time-dialog-current {
    min-width: 5.85rem;
    min-height: 2.5rem;
    padding-inline: 0.52rem;
    border-radius: 16px;
    font-size: 1.48rem;
  }
}

@media (max-width: 380px) {
  .time-dialog-close {
    width: 2.42rem;
    height: 2.42rem;
    border-radius: 16px;
  }
}

@media (max-width: 380px) {
  .time-wheel-stage {
    padding: 0.52rem;
    border-radius: 22px;
  }
}

@media (max-width: 380px) {
  .time-wheel-picker {
    --time-wheel-height: 9rem;
    --time-wheel-item-height: 2.45rem;
  }
}

@media (max-width: 380px) {
  .time-schedule-item {
    min-height: 3.35rem;
    padding: 0.5rem 0.58rem;
    gap: 0.56rem;
  }
}

@media (max-width: 380px) {
  .time-schedule-copy small {
    display: none;
  }
}

@media (max-width: 380px) {
  .time-dialog-actions {
    grid-template-columns: 1fr;
  }
}

.time-dialog-title-block, .time-dialog-title {
  min-width: 0;
}

@media (min-width: 760px) {
  .time-dialog-body {
    grid-template-columns: minmax(0, 1.12fr) minmax(15rem, 0.88fr);
    align-items: stretch;
    gap: 0.8rem;
  }
}

@media (min-width: 760px) {
  .time-wheel-picker {
    --time-wheel-height: 11.75rem;
    --time-wheel-item-height: 3rem;
  }
}

.time-dialog {
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0))
    max(1rem, env(safe-area-inset-right, 0))
    max(1rem, env(safe-area-inset-bottom, 0))
    max(1rem, env(safe-area-inset-left, 0));
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  overflow: hidden;
  perspective: 1200px;
}

.time-dialog-panel::-webkit-scrollbar {
  display: none;
}

.time-dialog-grip {
  justify-self: center;
  width: 3rem;
  height: 0.26rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(223, 177, 105, 0.36), rgba(96, 212, 187, 0.3));
  box-shadow: 0 0 22px rgba(223, 177, 105, 0.16);
}

.time-dialog-current::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.24) 50%, transparent 82%);
  transform: translateX(-130%);
}

.time-dialog-current.is-time-updated::before {
  animation: timeValueSheen 640ms ease;
}

.time-dialog-close {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.035);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 252, 246, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    color 180ms ease;
}

.time-dialog-close:hover {
  border-color: rgba(223, 177, 105, 0.42);
  color: rgba(255, 252, 246, 1);
  transform: translateY(-1px);
}

.time-dialog-close i {
  width: 1rem;
  height: 1rem;
}

.time-wheel-picker::before, .time-wheel-picker::after {
  left: 0;
  right: 0;
  height: 3.1rem;
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.time-wheel-picker::before {
  top: 1.38rem;
  background: linear-gradient(180deg, rgba(8, 10, 11, 0.96), rgba(8, 10, 11, 0));
}

.time-wheel-picker::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(8, 10, 11, 0.96), rgba(8, 10, 11, 0));
}

.time-wheel-selection {
  left: 0;
  right: 0;
  top: calc(50% + 0.7rem);
  height: var(--time-wheel-item-height);
  border-radius: 16px;
  border-color: rgba(119, 230, 200, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.042)),
    linear-gradient(90deg, rgba(223, 177, 105, 0.18), rgba(94, 207, 181, 0.13));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 14px 28px rgba(0, 0, 0, 0.24);
  position: absolute;
  transform: translateY(-50%);
  border: 1px solid rgba(223, 177, 105, 0.35);
  pointer-events: none;
  z-index: 1;
}

.time-wheel-separator {
  top: calc(50% + 0.7rem);
  color: rgba(255, 252, 246, 0.9);
  font-size: 2rem;
  position: absolute;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  width: 1.2rem;
  text-align: center;
  text-shadow: 0 0 18px rgba(223, 177, 105, 0.28);
}

.time-wheel-column {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.56rem;
  min-width: 0;
  overflow: hidden;
}

.time-wheel-label {
  color: rgba(226, 222, 214, 0.56);
  font-size: 0.68rem;
  display: block;
  padding-inline: 0.25rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.time-wheel {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-padding-block: calc((var(--time-wheel-height) - var(--time-wheel-item-height)) / 2);
  touch-action: pan-y pinch-zoom;
  contain: layout paint;
  position: relative;
  height: var(--time-wheel-height);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 27%, black 73%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 27%, black 73%, transparent 100%);
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
}

.time-wheel::-webkit-scrollbar {
  display: none;
}

.time-wheel-spacer {
  display: block;
  height: calc((var(--time-wheel-height) - var(--time-wheel-item-height)) / 2);
}

.time-wheel-option {
  color: rgba(232, 225, 214, 0.36);
  font-size: clamp(1.55rem, 4vw, 2rem);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: color 150ms ease,
    opacity 150ms ease,
    transform 150ms ease,
    text-shadow 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--time-wheel-item-height);
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--font-main);
}

.time-wheel-option:not(.is-selected) {
  opacity: 0.5;
  transform: scale(0.92);
}

.time-wheel-option.is-selected {
  color: rgba(255, 252, 246, 1);
  transform: scale(1.08);
  opacity: 1;
  text-shadow: 0 0 22px rgba(223, 177, 105, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.26);
}

.time-schedule-item::before {
  background: linear-gradient(90deg, rgba(223, 177, 105, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(94, 207, 181, 0.08), transparent 72%);
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
}

.time-schedule-item.is-time-updated {
  animation: timeSchedulePulse 520ms ease;
}

.time-schedule-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(223, 177, 105, 0.3);
  color: rgba(223, 177, 105, 0.96);
  background: linear-gradient(180deg, rgba(223, 177, 105, 0.16), rgba(94, 207, 181, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.time-schedule-icon i {
  width: 1.03rem;
  height: 1.03rem;
}

.time-schedule-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.42rem;
  row-gap: 0.06rem;
  gap: 0.08rem;
  position: relative;
  z-index: 1;
}

.time-schedule-copy strong {
  font-size: 1.08rem;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 252, 246, 0.98);
  font-weight: 800;
}

.time-schedule-copy span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 252, 246, 0.88);
  font-size: 0.78rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.time-schedule-copy small {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  color: rgba(226, 222, 214, 0.58);
  font-size: 0.66rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.time-dialog-actions {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 0.7rem;
  display: grid;
}

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

.gym-time-actions .gym-rest-choice {
  order: 1;
}

.gym-time-actions .time-dialog-primary {
  order: 2;
}

.gym-time-actions [data-close-gym-time-dialog] {
  grid-column: 1 / -1;
  order: 3;
}

.gym-rest-choice {
  border-color: rgba(119, 230, 200, 0.18);
  background: linear-gradient(180deg, rgba(119, 230, 200, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(7, 18, 26, 0.68);
}

.time-dialog-primary, .time-dialog-secondary {
  min-height: 3.35rem;
  border-radius: 16px;
  padding: 0.78rem 0.96rem;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.56rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 800;
  min-width: 0;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.time-dialog-primary:hover, .time-dialog-secondary:hover {
  transform: translateY(-1px);
}

.time-dialog-primary:active, .time-dialog-secondary:active {
  filter: brightness(1.06);
  transform: scale(0.98);
}

.time-dialog-secondary {
  color: rgba(255, 252, 246, 0.76);
  background: linear-gradient(180deg, rgba(119, 230, 200, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(7, 18, 26, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.time-dialog-primary i {
  width: 1rem;
  height: 1rem;
}

.time-dialog-secondary i {
  width: 1rem;
  height: 1rem;
}

.plan-copy-button {
  min-height: 2.85rem;
  padding: 0.6rem 0.82rem;
  border-radius: 14px;
  color: rgba(218, 250, 244, 0.96);
  border-color: rgba(119, 230, 200, 0.2);
}

@media (max-width: 860px) {
  .time-dialog-panel {
    width: min(100%, 34rem);
    max-height: min(94dvh, 50rem);
  }
}

@media (max-width: 860px) {
  .time-dialog-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gym-time-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gym-time-widget {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gym-time-widget-value {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .time-dialog {
    align-items: end;
    padding: 0.58rem;
    place-items: end center;
  }
}

@media (max-width: 640px) {
  .time-dialog-current {
    min-width: 5.65rem;
    min-height: 2.46rem;
    border-radius: 14px;
    font-size: 1.44rem;
    padding-inline: 0.48rem;
  }
}

@media (max-width: 640px) {
  .time-dialog-close {
    grid-column: auto;
    width: 2.42rem;
    height: 2.42rem;
    border-radius: 13px;
  }
}

@media (max-width: 640px) {
  .time-wheel-selection, .time-wheel-separator {
    top: calc(50% + 0.62rem);
  }
}

@media (max-width: 640px) {
  .time-wheel-label {
    font-size: 0.62rem;
  }
}

@media (max-width: 640px) {
  .time-wheel-option {
    font-size: 1.54rem;
  }
}

@media (max-width: 640px) {
  .time-schedule-item {
    padding: 0.45rem;
    border-radius: 15px;
    grid-template-columns: 2.08rem minmax(0, 1fr);
    min-height: 3.08rem;
    gap: 0.42rem;
  }
}

@media (max-width: 640px) {
  .time-schedule-icon {
    width: 2.08rem;
    height: 2.08rem;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .time-schedule-icon i {
    width: 0.9rem;
    height: 0.9rem;
  }
}

@media (max-width: 640px) {
  .time-schedule-copy {
    grid-template-columns: 1fr;
    gap: 0.05rem;
  }
}

@media (max-width: 640px) {
  .time-schedule-copy strong, .time-schedule-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .time-schedule-copy strong {
    font-size: 0.98rem;
  }
}

@media (max-width: 640px) {
  .time-schedule-copy span {
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) {
  .time-schedule-copy small {
    display: none;
  }
}

@media (max-width: 640px) {
  .time-dialog-primary, .time-dialog-secondary {
    min-height: 2.92rem;
    border-radius: 14px;
  }
}

@media (max-width: 370px) {
  .time-dialog-panel {
    padding: 0.58rem;
  }
}

@media (max-width: 370px) {
  .time-dialog-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 370px) {
  .time-dialog-current {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 370px) {
  .time-dialog-close {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 370px) {
  .time-schedule-preview, .time-dialog-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes timeBackdropIn {
  from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
}

@keyframes timePanelIn {
  from {
      opacity: 0;
      transform: translateY(28px) rotateX(8deg) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotateX(0) scale(1);
    }
}

@keyframes timeValueSheen {
  from {
      transform: translateX(-130%);
    }
    to {
      transform: translateX(130%);
    }
}

@keyframes timeSchedulePulse {
  0% {
      transform: translateY(0);
      border-color: rgba(255, 255, 255, 0.12);
    }
    42% {
      transform: translateY(-2px);
      border-color: rgba(223, 177, 105, 0.42);
    }
    100% {
      transform: translateY(0);
      border-color: rgba(255, 255, 255, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
  .time-dialog-backdrop, .time-dialog-panel, .time-dialog-current.is-time-updated::before, .time-schedule-item.is-time-updated {
    animation: none !important;
  }
}

.time-dialog-panel::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 58%);
  opacity: 0.55;
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.time-dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.78rem;
  padding: 0.08rem 0.08rem 0;
  justify-content: space-between;
}

.time-dialog-title-block {
  min-width: 0;
  display: grid;
  gap: 0;
}

.time-dialog-title {
  max-width: none;
  margin: 0;
  color: rgba(255, 252, 246, 0.98);
  font-size: clamp(1.28rem, 3.4vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
  font-family: var(--font-main);
}

.time-dialog-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  min-height: 3.05rem;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(223, 177, 105, 0.36);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(8, 10, 11, 0.56);
  color: rgba(255, 253, 248, 0.98);
  font-size: clamp(1.55rem, 5vw, 2.18rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-family: var(--font-main);
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.time-dialog-body {
  min-height: 0;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.time-dialog-controls {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.72rem;
}

.time-wheel-stage {
  position: relative;
  overflow: hidden;
  padding: 0.86rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    rgba(5, 7, 8, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 16px 34px rgba(0, 0, 0, 0.2);
  width: 100%;
  min-width: 0;
  contain: layout paint;
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.time-wheel-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.2rem;
  bottom: 0.86rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(223, 177, 105, 0.34), transparent);
  pointer-events: none;
  z-index: 4;
}

.time-wheel-picker {
  --time-wheel-height: 12rem;
  --time-wheel-item-height: 3rem;
  gap: 0.78rem;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.time-schedule-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.56rem;
}

.time-schedule-item {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  align-items: center;
  gap: 0.64rem;
  min-width: 0;
  min-height: 4.1rem;
  padding: 0.66rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.032)),
    rgba(7, 9, 10, 0.58);
  align-content: start;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
}

@media (max-width: 640px) {
  .time-dialog-panel {
    width: 100%;
    max-height: calc(100dvh - 1rem);
    gap: 0.58rem;
    padding: 0.68rem;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .time-dialog-head {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.48rem;
  }
}

@media (max-width: 640px) {
  .time-dialog-title {
    font-size: clamp(1.1rem, 5vw, 1.34rem);
  }
}

@media (max-width: 640px) {
  .time-wheel-stage {
    padding: 0.58rem;
    border-radius: 19px;
  }
}

@media (max-width: 640px) {
  .time-wheel-stage::before {
    top: 1.9rem;
    bottom: 0.58rem;
  }
}

@media (max-width: 640px) {
  .time-wheel-picker {
    --time-wheel-height: 9.2rem;
    --time-wheel-item-height: 2.48rem;
    padding: 0.78rem;
    gap: 0.46rem;
  }
}

@media (max-width: 640px) {
  .time-schedule-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.46rem;
  }
}

@media (max-width: 640px) {
  .time-dialog-actions {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 0.5rem;
  }
}

@keyframes fadeUp {
  from {
      opacity: 0;
      transform: translate3d(0, 18px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
}

@keyframes listLift {
  from {
      opacity: 0;
      transform: translate3d(0, 10px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
}

@keyframes auroraRibbon {
  0% {
      transform: rotate(-8deg) translate3d(0, 0, 0) scaleX(1);
      opacity: 0.42;
    }
    100% {
      transform: rotate(-5deg) translate3d(1.2rem, -0.6rem, 0) scaleX(1.04);
      opacity: 0.7;
    }
}

@keyframes ambientFloat {
  0% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 0.6;
    }
    100% {
      transform: translate3d(1.4rem, -1rem, 0) scale(1.08);
      opacity: 0.82;
    }
}

:root {
  color-scheme: dark light;
  --bg: #071019;
  --bg-secondary: rgba(8, 16, 28, 0.78);
  --surface: rgba(8, 16, 29, 0.62);
  --surface-strong: rgba(9, 17, 32, 0.86);
  --surface-soft: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f7f7f2;
  --text-soft: rgba(231, 237, 249, 0.7);
  --text-muted: rgba(220, 228, 242, 0.52);
  --accent: #85e0cb;
  --accent-strong: #3cb89c;
  --accent-cool: #8ca8ff;
  --accent-warm: #f2c486;
  --danger: #ff8f89;
  --warning: #ffd27d;
  --shadow: 0 26px 70px rgba(2, 6, 23, 0.34);
  --shadow-soft: 0 14px 34px rgba(2, 6, 23, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-main: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", "Georgia", serif;
  --perf-panel: #08101d;
  --perf-panel-strong: #09111f;
  --perf-panel-soft: #0c1728;
  --perf-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
}

@property --water-progress-deg {
  syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(circle at 10% 0%, rgba(88, 157, 255, 0.09), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(133, 224, 203, 0.08), transparent 26%),
    var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.metric-card, .hero-control-panel, .side-card, .day-card, .section-card, .feedback-badge, .time-dialog-backdrop, .time-dialog-panel, .time-dialog-current, .time-wheel-stage, .time-schedule-item, .metric-card-water #waterHeading, .water-front-copy, .water-action-btn {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--perf-panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: var(--perf-shadow);
}

.metric-card-primary, .hero-control-panel, .side-card, .day-card, .section-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%),
    var(--perf-panel-strong);
  box-shadow: var(--perf-shadow);
}

.metric-card-primary, .hero-control-panel, .side-card, .day-card, .section-card, .metric-card-water, .metric-card-weather {
  contain: layout paint;
}

.metric-card-primary::before, .metric-card-primary::after, .hero-control-panel::before, .hero-control-panel::after, .metric-card-water::before, .water-card-face-front::after, .progress-track::after, .progress-fill::after, .weather-panel::after, .time-dialog-panel::before, .time-dialog-current::before {
  display: none !important;
}

.progress-fill, .water-progress-ring-core::before {
  transition-duration: 180ms;
  transition-timing-function: ease;
}

.animate-enter {
  animation: fadeUp 160ms ease-out both;
}

.disclosure-shell {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 300ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 180ms;
}

.disclosure-body, .disclosure-chevron, .scenario-btn, .section-action, .water-action-btn, .time-dialog-primary, .time-dialog-secondary, .time-wheel-option {
  transition-duration: 120ms;
}

.clock-digit.is-changing, .feedback-badge, .is-primary-card .section-action::after, .progress-track::after, .progress-fill::after, .water-card-face-front::before, .water-progress-ring, .water-progress-ring::after, .water-progress-ring-core::before, .water-progress-ring-core::after, .time-dialog-backdrop, .time-dialog-panel, .time-dialog-current.is-time-updated::before, .time-schedule-item.is-time-updated {
  animation: none !important;
}

.metric-card-water #waterHeading, .water-front-copy, .water-action-btn {
  background: rgba(7, 13, 18, 0.82);
}

.weather-sun-halo, .weather-sun-rays, .weather-flash::before, .weather-flash::after, .weather-fog-layer, .weather-panel.is-fog .weather-horizon, .weather-panel.is-fog .weather-cloud-one, .weather-panel.is-fog .weather-cloud-two, .weather-panel.is-fog .weather-cloud-three {
  filter: none !important;
}

.weather-cloud-one, .weather-cloud-two, .weather-cloud-three, .weather-stars, .weather-star-dot, .weather-rain-drop, .weather-snow-piece, .weather-fog-layer, .weather-flash, .weather-bolt, .weather-panel.is-storm .weather-cloud-one, .weather-panel.is-storm .weather-cloud-two, .weather-panel.is-storm .weather-cloud-three, .weather-panel.is-clear .weather-sun-rays, .weather-panel.has-night-sky .weather-stars, .weather-sun {
  animation: none !important;
}

.feedback-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 210, 125, 0.62);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 55%),
    #352812;
  color: var(--warning);
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.48),
    0 0 0 1px rgba(2, 6, 23, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  animation: toastIn 220ms ease both;
  position: relative;
  overflow: hidden;
  filter: none !important;
}

.weather-sun-rays::before, .weather-aura, .weather-horizon {
  filter: none !important;
}

.weather-rain-layer, .weather-snow-system, .weather-fog-system, .weather-starfield, .weather-lightning-system {
  display: none !important;
}

.time-dialog-backdrop {
  background: rgba(3, 8, 16, 0.92);
  -webkit-backdrop-filter: blur(26px) saturate(1.06);
  backdrop-filter: blur(26px) saturate(1.06);
  position: absolute;
  inset: 0;
  border: 0;
  animation: timeBackdropIn 460ms ease both;
}

.time-dialog-panel {
  width: min(100%, 43rem);
  max-height: min(92dvh, 41rem);
  overflow: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 10, 11, 0.48), rgba(8, 10, 11, 0.9)),
    url("../assets/images/gym-time-premium.optimized.jpg") center 42% / cover no-repeat,
    #080a0b;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
  scrollbar-width: none;
  contain: layout paint;
  position: relative;
  z-index: 1;
  isolation: isolate;
  max-width: 43rem;
  overflow-x: clip;
  overflow-y: auto;
  transform-origin: 50% 58%;
  animation: timePanelIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.time-dialog-current, .time-wheel-stage, .time-schedule-item, .time-dialog-secondary {
  background: rgba(7, 9, 10, 0.78);
}

.time-dialog-primary {
  color: #141008;
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(135deg, #8fe3cf, #f0ca89 92%),
    #8fe3cf;
  box-shadow: 0 10px 22px rgba(119, 230, 200, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.plan-list-dialog-panel {
  width: min(100%, 58rem);
  max-width: 58rem;
  max-height: min(92dvh, 48rem);
  background: radial-gradient(circle at 12% 0%, rgba(119, 230, 200, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(126, 164, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.98), rgba(6, 12, 21, 0.96)),
    #071019;
}

.water-dialog-panel {
  border-color: rgba(119, 230, 200, 0.18);
  background: radial-gradient(circle at 16% 4%, rgba(132, 230, 203, 0.16), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(242, 196, 134, 0.11), transparent 32%),
    linear-gradient(180deg, rgba(7, 20, 24, 0.98), rgba(5, 13, 17, 0.97)),
    #06111a;
}

.water-dialog-panel .time-dialog-current,
.water-dialog-panel .time-wheel-stage,
.water-dialog-panel .time-schedule-item,
.water-dialog-panel .time-dialog-secondary {
  border-color: rgba(132, 230, 203, 0.16);
  background: linear-gradient(180deg, rgba(132, 230, 203, 0.075), rgba(255, 255, 255, 0.024)),
    rgba(6, 18, 22, 0.82);
}

.water-dialog-panel .time-dialog-current {
  color: rgba(255, 252, 246, 0.98);
  border-color: rgba(242, 196, 134, 0.26);
  background: linear-gradient(180deg, rgba(242, 196, 134, 0.12), rgba(132, 230, 203, 0.055)),
    rgba(7, 18, 22, 0.9);
}

.water-dialog-panel .time-wheel-selection {
  border-color: rgba(242, 196, 134, 0.34);
  background: linear-gradient(90deg, rgba(242, 196, 134, 0.18), rgba(132, 230, 203, 0.16));
}

.water-dialog-panel .time-dialog-primary {
  background: linear-gradient(135deg, #8fe3cf, #f0ca89 92%);
}

.plan-list-body {
  min-height: 0;
}

.plan-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.86rem;
}

.plan-list-column {
  display: grid;
  align-content: start;
  gap: 0.82rem;
  min-width: 0;
  padding: 0.86rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(7, 9, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.plan-list-column.is-gym-plan {
  border-color: rgba(119, 230, 200, 0.2);
}

.plan-list-column.is-rest-plan {
  border-color: rgba(126, 164, 255, 0.2);
}

.plan-list-column-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.68rem;
}

.plan-list-column-icon {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 252, 246, 0.92);
  background: linear-gradient(135deg, rgba(119, 230, 200, 0.2), rgba(126, 164, 255, 0.16));
}

.plan-list-column-icon i, .plan-list-column-icon svg {
  width: 1.12rem;
  height: 1.12rem;
}

.plan-list-column-head strong {
  display: block;
  color: rgba(255, 252, 246, 0.98);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.plan-list-column-head small {
  display: block;
  margin-top: 0.16rem;
  color: rgba(235, 241, 250, 0.62);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.plan-list-items {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list-row {
  display: grid;
  grid-template-columns: 5.35rem 1.82rem minmax(0, 1fr);
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.68rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.plan-list-row.is-water {
  border-color: rgba(120, 220, 255, 0.17);
  background: radial-gradient(circle at top left, rgba(120, 220, 255, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.plan-list-row.is-eat {
  border-color: rgba(255, 210, 125, 0.16);
}

.plan-list-row.is-drinks {
  border-color: rgba(120, 220, 255, 0.17);
}

.plan-list-row.is-fitness, .plan-list-row.is-cardio {
  border-color: rgba(126, 164, 255, 0.17);
}

.plan-list-time {
  color: rgba(255, 252, 246, 0.86);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.plan-list-marker {
  width: 1.82rem;
  height: 1.82rem;
  color: rgba(255, 252, 246, 0.9);
  background: linear-gradient(135deg, rgba(119, 230, 200, 0.22), rgba(126, 164, 255, 0.18));
}

.plan-list-marker i, .plan-list-marker svg {
  width: 0.9rem;
  height: 0.9rem;
}

.plan-list-text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.plan-list-text strong {
  color: rgba(255, 252, 246, 0.88);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.plan-list-text span {
  color: rgba(235, 241, 250, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .plan-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .plan-list-row {
    grid-template-columns: 5.25rem 1.82rem minmax(0, 1fr);
  }

  .plan-list-time {
    grid-column: auto;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fb;
    --bg-secondary: rgba(245, 247, 251, 0.88);
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(15, 23, 42, 0.04);
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.14);
    --line-soft: rgba(15, 23, 42, 0.04);
    --text: #0f172a;
    --text-soft: rgba(15, 23, 42, 0.72);
    --text-muted: rgba(15, 23, 42, 0.5);
    --accent: #0f9f82;
    --accent-strong: #0a7f66;
    --accent-cool: #5672d9;
    --accent-warm: #b46d1a;
    --danger: #d64854;
    --warning: #b7791f;
    --shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);
    --perf-panel: #ffffff;
    --perf-panel-strong: #f8fafc;
    --perf-panel-soft: #eef2f7;
    --perf-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  }
}

@media (max-width: 640px) {
  .page-shell::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .metric-card, .hero-control-panel, .side-card, .day-card, .section-card {
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.16);
  }
}

.metric-card-water, .hero-control-panel {
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.028) 34%),
    linear-gradient(180deg, rgba(21, 24, 24, 0.98), rgba(6, 8, 10, 0.97));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36),
    0 14px 34px rgba(18, 14, 8, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.055);
}

.metric-card-water::before, .hero-control-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  display: block !important;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.15), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 42px);
  opacity: 0.28;
  pointer-events: none;
}

.metric-card-water::after, .hero-control-panel::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0.8rem auto;
  z-index: -1;
  display: block !important;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 210, 189, 0.18), rgba(223, 177, 105, 0.08) 38%, transparent 70%);
  filter: blur(2px);
  opacity: 0.88;
  pointer-events: none;
}

.metric-card-water #waterHeading, .hero-control-panel #scenarioHeading, .hero-control-badge {
  position: static !important;
  inset: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2rem;
  margin: 0;
  padding: 0.42rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 177, 105, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.034)),
    rgba(255, 255, 255, 0.035);
  color: rgba(255, 252, 246, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
}

.water-card-slider, .water-card-face, .water-card-face-front {
  min-height: 100%;
}

.water-card-face-front::before, .water-card-face-front::after {
  display: block !important;
  pointer-events: none;
}

.water-card-face-front::before {
  display: none !important;
}

.water-card-face-front::after {
  content: "";
  position: absolute;
  top: -120%;
  bottom: -120%;
  left: -36%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(18deg);
  animation: waterPremiumSheen 8s ease-in-out infinite !important;
}

.water-widget-head {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.water-percent-badge {
  min-width: 3.4rem;
  color: rgba(199, 249, 255, 0.96);
  border-color: rgba(105, 219, 208, 0.34);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.water-progress-ring-core::after {
  content: "";
  position: absolute;
  inset: 18% 21% auto auto;
  display: block !important;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(229, 253, 255, 0.82);
  box-shadow: -1.15rem 1.1rem 0 -0.1rem rgba(229, 253, 255, 0.58),
    0.48rem 2.1rem 0 -0.14rem rgba(229, 253, 255, 0.42);
  animation: waterBubbleRise 5.8s linear infinite !important;
}

.water-progress-glow {
  position: absolute;
  display: block !important;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.55;
}

.water-drop {
  position: absolute;
  display: block;
  width: 0.5rem;
  height: 0.7rem;
  border-radius: 999px 999px 999px 0;
  background: rgba(206, 249, 255, 0.88);
  transform: rotate(-45deg);
  box-shadow: 0 0 14px rgba(139, 232, 238, 0.44);
  opacity: 0.82;
  animation: waterDropFloat 5.8s ease-in-out infinite !important;
  will-change: transform, opacity;
}

.water-action-btn, .scenario-btn {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.water-action-btn {
  min-height: 3.1rem;
  padding: 0.78rem 0.82rem;
  color: rgba(255, 252, 246, 0.84);
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.032) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.water-action-btn:hover, .scenario-btn:hover {
  transform: translateY(-1px);
}

.water-action-btn:active, .scenario-btn:active {
  transform: scale(0.98);
  filter: brightness(1.06);
}

.water-action-btn.is-primary {
  background: linear-gradient(135deg, #dffcff, #60d2bd 76%, #e6bb74),
    #60d2bd !important;
  color: #111109;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 30px rgba(96, 210, 189, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.water-action-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  filter: saturate(0.72);
}

.metric-card-water::after {
  inset: -1.8rem -1.5rem -1.4rem;
  width: auto;
  height: auto;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 42%, rgba(111, 246, 230, 0.24), transparent 38%),
    radial-gradient(circle at 88% 88%, rgba(224, 183, 112, 0.11), transparent 34%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.035), transparent 44%);
  opacity: 1;
  animation: waterAmbientShift 10s ease-in-out infinite alternate !important;
}

.water-card-slider {
  display: block;
  width: 100%;
  overflow: hidden;
  transform: none;
  position: relative;
  height: 100%;
  min-height: inherit;
}

.water-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease;
}

.metric-card-water.is-water-slide-open .water-card-face-front {
  opacity: 0;
  transform: translateX(-104%);
  pointer-events: none;
}

.water-premium-body {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  align-self: stretch;
  gap: 0.85rem;
  min-height: 0;
  justify-self: stretch;
  justify-items: stretch;
  width: 100%;
}

.water-front-visual {
  position: relative;
  inset: auto;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
  justify-self: stretch;
  min-height: 12.2rem;
  justify-items: center;
}

.water-aura {
  position: absolute;
  z-index: 0;
  display: block;
  border-radius: 999px;
  pointer-events: none;
  mix-blend-mode: screen;
}

.water-aura-one {
  inset: 7% 12% 10%;
  background: radial-gradient(circle at 30% 34%, rgba(157, 255, 241, 0.28), transparent 30%),
    radial-gradient(circle at 74% 65%, rgba(121, 188, 255, 0.18), transparent 34%);
  filter: blur(16px);
  animation: waterAuraFlow 8.6s ease-in-out infinite !important;
}

.water-aura-two {
  inset: 18% 6% 16%;
  border: 1px solid rgba(184, 255, 244, 0.12);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 66%);
  filter: blur(3px);
  animation: waterOrbitGlow 11s linear infinite !important;
}

.water-orbit {
  position: absolute;
  z-index: 2;
  display: block;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(217, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(143, 242, 238, 0.58),
    0 0 22px rgba(118, 190, 255, 0.2);
  pointer-events: none;
}

.water-orbit-one {
  top: 12%;
  left: 28%;
  animation: waterOrbitOne 7.4s ease-in-out infinite !important;
}

.water-orbit-two {
  right: 18%;
  bottom: 23%;
  width: 0.42rem;
  height: 0.42rem;
  animation: waterOrbitTwo 8.8s ease-in-out infinite 0.4s !important;
}

.water-orbit-three {
  left: 16%;
  bottom: 31%;
  width: 0.28rem;
  height: 0.28rem;
  opacity: 0.78;
  animation: waterOrbitThree 6.9s ease-in-out infinite 0.9s !important;
}

.metric-card-water.is-water-complete .water-progress-ring {
  background: conic-gradient(
      from -90deg,
      #c8fff8 0deg,
      #77f0de 112deg,
      #66cfff 224deg,
      #b7fbff 314deg,
      #c8fff8 360deg
    );
  box-shadow: 0 0 52px rgba(111, 246, 230, 0.28),
    0 24px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.water-progress-ring::after {
  content: "";
  position: absolute;
  inset: -0.42rem;
  display: block !important;
  border-radius: inherit;
  border: 1px solid rgba(199, 249, 255, 0.16);
  background: linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, 0.22), transparent 32%),
    radial-gradient(circle at 72% 20%, rgba(123, 188, 255, 0.18), transparent 34%);
  opacity: 0.54;
  animation: waterRingSweep 7.6s linear infinite !important,
    waterPrismPulse 4.8s ease-in-out infinite !important;
  border-color: rgba(184, 255, 244, 0.18);
}

.water-progress-ring-panel::before {
  top: calc(100% - var(--water-fill-percent) - 0.42rem);
  animation: waterSurfaceDrift 4.8s ease-in-out infinite !important;
}

.water-progress-ring-panel::after {
  top: calc(100% - var(--water-fill-percent) + 0.28rem);
  opacity: 0.34;
  animation: waterSurfaceDrift 6.2s ease-in-out infinite reverse !important;
}

.water-bubble {
  position: absolute;
  z-index: 2;
  display: block;
  width: 0.32rem;
  height: 0.32rem;
  bottom: -0.6rem;
  border: 1px solid rgba(235, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(235, 255, 255, 0.18);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.42),
    0 0 10px rgba(183, 251, 255, 0.24);
  pointer-events: none;
}

.water-bubble-one {
  left: 27%;
  animation: waterBubbleRise 5.4s linear infinite !important;
}

.water-bubble-two {
  left: 48%;
  width: 0.22rem;
  height: 0.22rem;
  animation: waterBubbleRise 6.2s linear infinite 1.2s !important;
}

.water-bubble-three {
  left: 66%;
  width: 0.42rem;
  height: 0.42rem;
  animation: waterBubbleRiseSoft 7.1s linear infinite 0.5s !important;
}

.water-bubble-four {
  left: 38%;
  width: 0.18rem;
  height: 0.18rem;
  animation: waterBubbleRiseSoft 4.9s linear infinite 2s !important;
}

.water-bubble-five {
  left: 58%;
  width: 0.26rem;
  height: 0.26rem;
  animation: waterBubbleRise 6.8s linear infinite 2.7s !important;
}

.water-front-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
  width: 100%;
}

.water-card-face-back {
  display: grid;
  place-items: center;
  gap: 0;
  min-height: inherit;
  padding: 1rem;
  opacity: 0;
  transform: translateX(104%);
  pointer-events: none;
}

.metric-card-water.is-water-slide-open .water-card-face-back {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.water-edit-actions {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  width: min(100%, 12.4rem);
  margin-inline: auto;
}

.water-edit-actions .water-action-btn {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  width: 100%;
  min-height: 3.45rem;
  padding: 0.82rem 1rem;
  border-radius: 18px;
  color: rgba(222, 251, 255, 0.92);
  border: 1px solid rgba(184, 255, 244, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.026)),
    rgba(7, 24, 29, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.water-edit-actions .water-action-btn svg, .water-edit-actions .water-action-btn i {
  width: 1.2rem;
  height: 1.2rem;
  justify-self: center;
  color: currentColor;
  stroke-width: 2.4;
}

.water-edit-actions .water-action-btn span {
  display: block;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.water-edit-actions .water-action-btn.is-primary {
  color: #062225;
  border-color: rgba(218, 255, 250, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 42%),
    linear-gradient(135deg, #d8fff8 0%, #7ff0dd 48%, #69cfff 100%) !important;
  box-shadow: 0 18px 34px rgba(103, 231, 214, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.water-progress-glow-primary {
  inset: -14% -16% -12%;
  background: rgba(112, 227, 224, 0.28);
  animation: waterGlowBloom 6.8s ease-in-out infinite !important;
}

.water-progress-glow-secondary {
  inset: 52% -12% -20%;
  background: rgba(184, 246, 255, 0.2);
  animation: waterGlowBloom 7.8s ease-in-out infinite reverse !important;
}

.water-drop-one {
  right: 5%;
  top: 8%;
  width: 0.46rem;
  height: 0.64rem;
  opacity: 0.74;
  animation: waterDropDriftOne 6.2s ease-in-out infinite !important;
}

.water-drop-two {
  left: 5%;
  bottom: 14%;
  width: 0.36rem;
  height: 0.52rem;
  opacity: 0.56;
  animation-delay: 1.4s !important;
  animation: waterDropDriftTwo 7.4s ease-in-out infinite 0.8s !important;
}

.water-drop-three {
  top: 47%;
  right: 3%;
  width: 0.32rem;
  height: 0.46rem;
  opacity: 0.64;
  animation: waterDropDriftThree 6.8s ease-in-out infinite 1.2s !important;
}

.water-drop-four {
  top: 11%;
  left: 8%;
  width: 0.26rem;
  height: 0.38rem;
  opacity: 0.5;
  animation: waterDropDriftFour 8.2s ease-in-out infinite 1.6s !important;
}

.water-drop-five {
  right: 8%;
  bottom: 8%;
  width: 0.44rem;
  height: 0.62rem;
  opacity: 0.68;
  animation: waterDropDriftFive 7.8s ease-in-out infinite 2.2s !important;
}

.water-drop-six {
  left: 3%;
  top: 52%;
  width: 0.3rem;
  height: 0.44rem;
  opacity: 0.48;
  animation: waterDropDriftSix 8.6s ease-in-out infinite 0.2s !important;
}

.water-drop-seven {
  left: 27%;
  top: 5%;
  width: 0.24rem;
  height: 0.36rem;
  opacity: 0.44;
  animation: waterDropDriftSeven 7.2s ease-in-out infinite 1.1s !important;
}

.water-drop-eight {
  right: 2%;
  bottom: 31%;
  width: 0.28rem;
  height: 0.42rem;
  opacity: 0.52;
  animation: waterDropDriftEight 8.9s ease-in-out infinite 1.8s !important;
}

.water-drop-nine {
  left: 22%;
  bottom: 5%;
  width: 0.22rem;
  height: 0.34rem;
  opacity: 0.42;
  animation: waterDropDriftNine 7.9s ease-in-out infinite 2.5s !important;
}

.water-drop-ten {
  right: 24%;
  top: 15%;
  width: 0.2rem;
  height: 0.31rem;
  opacity: 0.36;
  animation: waterDropDriftTen 9.4s ease-in-out infinite 3s !important;
}

.metric-card-water.is-water-updated .water-progress-ring::after {
  animation: waterRingSweep 680ms ease-out 1 !important,
    waterActionFlash 680ms ease-out 1 !important;
}

.metric-card-water.is-water-updated .water-progress-ring-panel {
  animation: waterPanelFlash 760ms ease-out 1 !important;
}

.metric-card-water.is-water-added .water-bubble, .metric-card-water.is-water-removed .water-bubble {
  animation-duration: 2.2s !important;
}

.hero-control-panel {
  --mode-surface: rgba(8, 24, 28, 0.86);
  --mode-surface-strong: rgba(10, 35, 39, 0.92);
  --mode-line: rgba(132, 230, 203, 0.18);
  --mode-line-strong: rgba(132, 230, 203, 0.32);
  --mode-glow: rgba(132, 230, 203, 0.12);
  --mode-warm: rgba(242, 196, 134, 0.82);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: stretch;
  min-height: 18.4rem;
  padding: 1rem;
  border-radius: 26px;
  border: 1px solid var(--mode-line);
  background: linear-gradient(180deg, rgba(5, 13, 16, 0.84), rgba(4, 10, 13, 0.96)),
    radial-gradient(circle at 12% 16%, rgba(132, 230, 203, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(132, 230, 203, 0.1), rgba(242, 196, 134, 0.05) 42%, rgba(126, 164, 255, 0.035)),
    url("../assets/images/gym-time-premium.optimized.jpg") center 42% / cover no-repeat,
    #061014;
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.22),
    0 8px 18px rgba(2, 6, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 34px rgba(132, 230, 203, 0.035);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
}

@media (min-width: 700px) {
  .hero-control-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-control-top {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gym-time-widget {
    grid-column: 1;
    grid-row: 2;
  }

  .plan-list-button {
    grid-column: 2;
    grid-row: 2;
  }

  .control-progress-panel {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

.hero-control-top {
  display: grid;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 2.8rem;
  margin-top: 0;
  position: static;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0;
}

.hero-scenario-copy {
  display: grid;
  gap: 0.38rem;
  align-content: start;
}

.hero-control-title {
  margin: 0;
  font-size: clamp(1.42rem, 2vw, 1.92rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.06;
  color: rgba(255, 252, 246, 0.98);
  font-family: var(--font-main);
}

.hero-control-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--mode-line);
  background: linear-gradient(180deg, rgba(132, 230, 203, 0.12), rgba(255, 255, 255, 0.025)),
    var(--mode-surface);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 5.2rem;
  color: rgba(255, 252, 246, 0.86);
}

.hero-control-badge[hidden], .gym-time-widget-value[hidden] {
  display: none !important;
}

.hero-control-badge.is-gym {
  color: rgba(218, 250, 244, 0.98);
  border-color: var(--mode-line-strong);
  background: linear-gradient(180deg, rgba(132, 230, 203, 0.16), rgba(132, 230, 203, 0.04)),
    rgba(132, 230, 203, 0.06);
}

.hero-control-badge.is-rest {
  color: rgba(230, 238, 255, 0.98);
  border-color: rgba(139, 178, 255, 0.3);
  background: linear-gradient(180deg, rgba(107, 184, 255, 0.14), rgba(107, 184, 255, 0.04)),
    rgba(107, 184, 255, 0.06);
}

.scenario-toggle {
  display: grid;
  gap: 0.56rem;
  width: 100%;
  padding: 0.36rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.024)),
    rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: rgba(255, 255, 255, 0.1);
}

.scenario-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  min-width: 0;
  min-height: 3.2rem;
  padding: 0.74rem 0.78rem;
  border-radius: 16px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.076), rgba(255, 255, 255, 0.024)),
    rgba(255, 255, 255, 0.02);
  color: rgba(255, 252, 246, 0.78);
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.scenario-btn i, .scenario-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: rgba(223, 177, 105, 0.9);
}

.scenario-btn span {
  display: block;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.22;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.scenario-btn.is-active {
  border-color: rgba(223, 177, 105, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.042)),
    linear-gradient(90deg, rgba(223, 177, 105, 0.18), rgba(96, 210, 189, 0.13));
  color: rgba(255, 252, 246, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.gym-time-widget {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.74rem;
  width: 100%;
  min-height: 4.4rem;
  overflow: hidden;
  padding: 0.78rem 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--mode-line);
  background: radial-gradient(circle at 10% 16%, rgba(132, 230, 203, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(132, 230, 203, 0.075), rgba(255, 255, 255, 0.026)),
    var(--mode-surface-strong);
  color: rgba(255, 252, 246, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gym-time-widget.is-gym {
  border-color: var(--mode-line-strong);
  background: radial-gradient(circle at 12% 15%, rgba(132, 230, 203, 0.15), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03)),
    var(--mode-surface-strong);
}

.gym-time-widget.is-rest {
  border-color: rgba(242, 196, 134, 0.24);
  background: radial-gradient(circle at 12% 15%, rgba(242, 196, 134, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(119, 230, 200, 0.065), rgba(255, 255, 255, 0.03)),
    var(--mode-surface-strong);
}

.gym-time-widget:hover {
  border-color: rgba(223, 177, 105, 0.34);
  transform: translateY(-1px);
}

.gym-time-widget:active {
  transform: translateY(0) scale(0.99);
}

.gym-time-widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #8fe3cf, #f0ca89 92%);
  box-shadow: 0 0 0 0.36rem rgba(119, 230, 200, 0.08);
}

.gym-time-widget-icon i, .gym-time-widget-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.gym-time-widget-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  text-align: left;
}

.gym-time-widget-copy strong {
  color: rgba(255, 252, 246, 0.96);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.18;
}

.gym-time-widget-copy small {
  color: rgba(235, 241, 250, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.gym-time-widget-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.9rem;
  min-height: 2.25rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 252, 246, 0.92);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .gym-time-widget {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gym-time-widget-value {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
  }
}

.plan-list-button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 4.4rem;
  overflow: hidden;
  padding: 0.78rem 0.88rem;
  border-radius: 18px;
  border: 1px solid var(--mode-line);
  background: radial-gradient(circle at 12% 14%, rgba(132, 230, 203, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(10, 35, 39, 0.98), rgba(7, 20, 26, 0.98)),
    var(--mode-surface-strong);
  color: rgba(255, 252, 246, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 14px 30px rgba(0, 0, 0, 0.2);
}

.plan-list-button::after {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -25%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(18deg);
  opacity: 0.58;
  pointer-events: none;
}

.plan-list-button:hover {
  border-color: var(--mode-line-strong);
  transform: translateY(-1px);
}

.plan-list-button:active {
  transform: translateY(0) scale(0.99);
}

.plan-list-button > * {
  position: relative;
  z-index: 1;
}

.plan-list-button-icon, .plan-list-column-icon, .plan-list-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
}

.plan-list-button-icon {
  width: 2.55rem;
  height: 2.55rem;
  color: #041813;
  background: linear-gradient(135deg, #8fe3cf, #7ea4ff);
  box-shadow: 0 0 0 0.36rem rgba(119, 230, 200, 0.08);
}

.plan-list-button-icon i, .plan-list-button-icon svg,
.plan-list-button > i, .plan-list-button > svg {
  width: 1.12rem;
  height: 1.12rem;
}

.plan-list-button-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  text-align: left;
}

.plan-list-button-copy strong {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.18;
}

.plan-list-button-copy small {
  color: rgba(235, 241, 250, 0.64);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.control-progress-panel {
  display: grid;
  gap: 0.62rem;
  align-self: end;
  padding: 0.72rem;
  border-radius: 18px;
  border: 1px solid var(--mode-line);
  background: linear-gradient(180deg, rgba(132, 230, 203, 0.075), rgba(255, 255, 255, 0.025)),
    var(--mode-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.11);
}

.control-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.hero-control-panel .progress-track-meter {
  height: 1.9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.022)),
    linear-gradient(135deg, rgba(16, 24, 35, 0.86), rgba(5, 10, 15, 0.78)),
    rgba(5, 10, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.hero-control-panel .progress-track-meter::before {
  display: none !important;
}

.hero-control-panel .progress-fill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06) 42%, rgba(8, 18, 24, 0.12)),
    linear-gradient(90deg, #d8b978 0%, #8ed8c7 46%, #6fa9d8 100%);
  box-shadow: 0 0 16px rgba(216, 185, 120, 0.12),
    0 0 24px rgba(111, 169, 216, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-control-panel .progress-fill::after {
  display: none !important;
  animation: none !important;
}

.hero-control-panel .progress-inline-value {
  inset: 0.34rem auto 0.34rem 50%;
  width: max-content;
  max-width: calc(100% - 0.7rem);
  padding-inline: 0.64rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(7, 13, 18, 0.76), rgba(3, 8, 12, 0.62)),
    rgba(4, 8, 12, 0.66);
  color: rgba(255, 252, 246, 0.98);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.62),
    0 8px 18px rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 14px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

@keyframes waterPremiumSheen {
  0%,
    18% {
      transform: translateX(0) rotate(18deg);
      opacity: 0;
    }
    38%,
    54% {
      transform: translateX(560%) rotate(18deg);
      opacity: 0.58;
    }
    100% {
      transform: translateX(560%) rotate(18deg);
      opacity: 0;
    }
}

@keyframes waterPremiumBreath {
  0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.018);
    }
}

@keyframes waterAmbientShift {
  0% {
      transform: translate3d(-1.2%, -0.8%, 0) scale(1);
      opacity: 0.72;
    }
    100% {
      transform: translate3d(1.4%, 1%, 0) scale(1.04);
      opacity: 1;
    }
}

@keyframes waterHaloDrift {
  0%,
    100% {
      filter: saturate(1) brightness(1);
    }
    50% {
      filter: saturate(1.12) brightness(1.06);
    }
}

@keyframes waterPrismPulse {
  0%,
    100% {
      opacity: 0.44;
    }
    50% {
      opacity: 0.72;
    }
}

@keyframes waterSurfaceLight {
  0%,
    100% {
      filter: hue-rotate(0deg) brightness(1);
    }
    50% {
      filter: hue-rotate(8deg) brightness(1.08);
    }
}

@keyframes waterTextFloat {
  0%,
    100% {
      transform: translate(-50%, -50%);
    }
    50% {
      transform: translate(-50%, calc(-50% - 0.12rem));
    }
}

@keyframes waterGlowBloom {
  0%,
    100% {
      opacity: 0.44;
      transform: scale(0.96);
    }
    50% {
      opacity: 0.72;
      transform: scale(1.04);
    }
}

@keyframes waterAuraFlow {
  0%,
    100% {
      opacity: 0.52;
      transform: translate3d(-0.35rem, 0.2rem, 0) rotate(0deg) scale(0.96);
    }
    50% {
      opacity: 0.82;
      transform: translate3d(0.42rem, -0.28rem, 0) rotate(6deg) scale(1.04);
    }
}

@keyframes waterOrbitGlow {
  0% {
      opacity: 0.3;
      transform: rotate(0deg) scale(0.96);
    }
    50% {
      opacity: 0.68;
      transform: rotate(180deg) scale(1.03);
    }
    100% {
      opacity: 0.3;
      transform: rotate(360deg) scale(0.96);
    }
}

@keyframes waterOrbitOne {
  0%,
    100% {
      transform: translate3d(0, 0, 0);
      opacity: 0.66;
    }
    45% {
      transform: translate3d(1.35rem, 0.65rem, 0);
      opacity: 1;
    }
    70% {
      transform: translate3d(0.42rem, 1.18rem, 0);
    }
}

@keyframes waterOrbitTwo {
  0%,
    100% {
      transform: translate3d(0, 0, 0);
      opacity: 0.78;
    }
    44% {
      transform: translate3d(-1.25rem, -0.92rem, 0);
      opacity: 1;
    }
    76% {
      transform: translate3d(-0.48rem, -1.45rem, 0);
    }
}

@keyframes waterOrbitThree {
  0%,
    100% {
      transform: translate3d(0, 0, 0);
      opacity: 0.46;
    }
    50% {
      transform: translate3d(0.86rem, -0.84rem, 0);
      opacity: 0.95;
    }
}

@keyframes waterRingSweep {
  0% {
      transform: rotate(0deg);
      opacity: 0.34;
    }
    45% {
      opacity: 0.72;
    }
    100% {
      transform: rotate(360deg);
      opacity: 0.42;
    }
}

@keyframes waterActionFlash {
  0% {
      box-shadow: 0 0 0 rgba(137, 245, 239, 0);
      opacity: 0.52;
    }
    35% {
      box-shadow: 0 0 34px rgba(137, 245, 239, 0.46);
      opacity: 0.9;
    }
    100% {
      box-shadow: 0 0 0 rgba(137, 245, 239, 0);
      opacity: 0.52;
    }
}

@keyframes waterPanelFlash {
  0% {
      filter: brightness(1) saturate(1);
    }
    38% {
      filter: brightness(1.18) saturate(1.16);
    }
    100% {
      filter: brightness(1) saturate(1);
    }
}

@keyframes waterBodyWave {
  0%,
    100% {
      transform: translate3d(-0.14rem, 0, 0) skewX(-2deg);
      border-radius: 44% 46% 0 0 / 18% 16% 0 0;
    }
    50% {
      transform: translate3d(0.16rem, -0.08rem, 0) skewX(2deg);
      border-radius: 50% 42% 0 0 / 16% 20% 0 0;
    }
}

@keyframes waterSurfaceDrift {
  0%,
    100% {
      transform: translate3d(-0.46rem, 0, 0) scaleX(1);
    }
    50% {
      transform: translate3d(0.46rem, -0.08rem, 0) scaleX(1.04);
    }
}

@keyframes waterBubbleRise {
  0% {
      transform: translate3d(0, 0, 0) scale(0.72);
      opacity: 0;
    }
    15% {
      opacity: 0.72;
    }
    78% {
      opacity: 0.52;
    }
    100% {
      transform: translate3d(0.28rem, -7.1rem, 0) scale(1.08);
      opacity: 0;
    }
}

@keyframes waterBubbleRiseSoft {
  0% {
      transform: translate3d(0, 0, 0) scale(0.68);
      opacity: 0;
    }
    18% {
      opacity: 0.58;
    }
    100% {
      transform: translate3d(-0.34rem, -6.4rem, 0) scale(1);
      opacity: 0;
    }
}

@keyframes waterDropFloat {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg);
    }
    50% {
      transform: translate3d(0, -0.42rem, 0) rotate(-45deg);
    }
}

@keyframes waterDropDriftOne {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg) scale(1);
    }
    50% {
      transform: translate3d(-0.18rem, -0.7rem, 0) rotate(-45deg) scale(1.08);
    }
}

@keyframes waterDropDriftTwo {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg) scale(0.96);
    }
    50% {
      transform: translate3d(0.22rem, -0.46rem, 0) rotate(-45deg) scale(1.04);
    }
}

@keyframes waterDropDriftThree {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg);
    }
    42% {
      transform: translate3d(-0.16rem, 0.58rem, 0) rotate(-45deg);
    }
    76% {
      transform: translate3d(-0.24rem, -0.18rem, 0) rotate(-45deg);
    }
}

@keyframes waterDropDriftFour {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg) scale(0.94);
    }
    50% {
      transform: translate3d(0.16rem, -0.56rem, 0) rotate(-45deg) scale(1.02);
    }
}

@keyframes waterDropDriftFive {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg) scale(1);
    }
    50% {
      transform: translate3d(-0.14rem, 0.5rem, 0) rotate(-45deg) scale(1.06);
    }
}

@keyframes waterDropDriftSix {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg) scale(0.92);
      opacity: 0.36;
    }
    46% {
      transform: translate3d(0.18rem, -0.62rem, 0) rotate(-45deg) scale(1.04);
      opacity: 0.58;
    }
    72% {
      transform: translate3d(0.08rem, 0.34rem, 0) rotate(-45deg) scale(0.98);
    }
}

@keyframes waterDropDriftSeven {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg) scale(0.86);
      opacity: 0.32;
    }
    50% {
      transform: translate3d(-0.16rem, 0.48rem, 0) rotate(-45deg) scale(1);
      opacity: 0.5;
    }
}

@keyframes waterDropDriftEight {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg) scale(0.9);
      opacity: 0.38;
    }
    42% {
      transform: translate3d(-0.2rem, -0.3rem, 0) rotate(-45deg) scale(1.03);
      opacity: 0.58;
    }
    78% {
      transform: translate3d(-0.08rem, 0.46rem, 0) rotate(-45deg) scale(0.94);
    }
}

@keyframes waterDropDriftNine {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg) scale(0.82);
      opacity: 0.3;
    }
    50% {
      transform: translate3d(0.18rem, -0.36rem, 0) rotate(-45deg) scale(0.96);
      opacity: 0.46;
    }
}

@keyframes waterDropDriftTen {
  0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-45deg) scale(0.78);
      opacity: 0.26;
    }
    48% {
      transform: translate3d(-0.12rem, -0.52rem, 0) rotate(-45deg) scale(0.94);
      opacity: 0.42;
    }
}

@keyframes dayNodePulse {
  0%,
    100% {
      box-shadow:
        0 0 0 0.36rem rgba(223, 177, 105, 0.12),
        0 0 20px rgba(223, 177, 105, 0.3);
    }
    50% {
      box-shadow:
        0 0 0 0.52rem rgba(223, 177, 105, 0.06),
        0 0 28px rgba(223, 177, 105, 0.42);
    }
}

body::before {
  z-index: 0;
  background: radial-gradient(circle at 92% 6%, rgba(99, 210, 255, 0.11), transparent 24rem),
    radial-gradient(circle at 4% 94%, rgba(119, 230, 200, 0.09), transparent 23rem),
    linear-gradient(150deg, rgba(255, 255, 255, 0.025), transparent 42%, rgba(140, 168, 255, 0.025));
  filter: blur(2px);
  opacity: 0.78;
  animation: appBackgroundBreath 18s ease-in-out infinite alternate !important;
}

body::after {
  z-index: 20;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.32) 0 0.5px, transparent 0.7px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.24) 0 0.45px, transparent 0.7px);
  background-size: 3px 3px, 5px 5px;
  opacity: 0.024;
  mix-blend-mode: screen;
  animation: appGrainDrift 16s steps(6, end) infinite !important;
}

.page-shell::after {
  content: "";
  position: fixed;
  left: -12%;
  right: -12%;
  top: 28%;
  height: 18rem;
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(140, 168, 255, 0.07),
      rgba(133, 224, 203, 0.08),
      rgba(242, 196, 134, 0.06),
      rgba(255, 255, 255, 0)
    );
  filter: blur(42px);
  opacity: 0.58;
  transform: rotate(-8deg);
  pointer-events: none;
  will-change: transform, opacity;
  animation: appAuroraSweep 22s ease-in-out infinite alternate !important;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.7;
  pointer-events: none;
  will-change: transform, opacity;
  animation: ambientFloat 24s ease-in-out infinite alternate !important;
}

.ambient-one {
  top: 7%;
  left: -6%;
  width: 17rem;
  height: 17rem;
  background: rgba(119, 230, 200, 0.16);
  animation-duration: 22s !important;
}

.ambient-two {
  top: 26%;
  right: -4%;
  width: 22rem;
  height: 22rem;
  background: rgba(126, 164, 255, 0.14);
  animation-duration: 28s !important;
  animation-delay: -9s !important;
}

.ambient-three {
  bottom: 4%;
  left: 26%;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 207, 139, 0.12);
  animation-duration: 26s !important;
  animation-delay: -15s !important;
}

.weather-panel::after {
  right: -2.5rem;
  top: -2.5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle at 46% 44%, rgba(255, 255, 255, 0.18), transparent 58%),
    radial-gradient(circle at 68% 58%, rgba(127, 190, 255, 0.1), transparent 70%) !important;
  filter: blur(10px);
  opacity: 0.72;
  animation: weatherPanelBloom 14s ease-in-out infinite !important;
  display: block !important;
}

.weather-cloud-one {
  top: 1.4rem;
  animation: appleCloudDrift 8.4s ease-in-out infinite !important;
  --cloud-scale: 1;
  --cloud-glow: rgba(224, 238, 255, 0.14);
}

.weather-cloud-two {
  top: 4.8rem;
  right: 5.4rem;
  transform: scale(0.9);
  animation: appleCloudDriftWide 11s ease-in-out infinite reverse !important;
  --cloud-scale: 0.9;
  --cloud-glow: rgba(244, 249, 255, 0.1);
}

.weather-cloud-three {
  top: 2.5rem;
  right: 9.2rem;
  transform: scale(0.62);
  opacity: 0;
  animation: appleCloudDriftSoft 13.5s ease-in-out infinite !important;
  --cloud-scale: 0.62;
  --cloud-glow: rgba(203, 222, 255, 0.12);
}

.weather-cloud {
  z-index: 4;
  right: 1.2rem;
  width: 7rem;
  height: 2.8rem;
  border-radius: 999px;
  background: radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.94), rgba(178, 195, 224, 0.72)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(100, 123, 160, 0.12),
    0 18px 32px rgba(2, 6, 23, 0.18),
    0 0 34px var(--cloud-glow, rgba(210, 226, 255, 0.1)) !important;
  opacity: 0;
  will-change: transform, filter;
}

.weather-cloud::before, .weather-cloud::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 18px rgba(2, 6, 23, 0.08);
}

.weather-sun {
  transform: translate3d(-0.34rem, -0.12rem, 0);
  background: radial-gradient(circle at 35% 35%, #fff3ba, #ffbf4e 72%);
  box-shadow: 0 0 24px rgba(255, 202, 104, 0.32);
  animation: appleSunFloat 5.8s ease-in-out infinite !important;
}

.weather-panel.is-clear .weather-sun-rays, .weather-panel.is-partly .weather-sun-rays {
  animation: appleSunRaySpin 42s linear infinite !important;
}

.weather-panel.has-night-sky .weather-stars, .weather-panel.has-night-sky .weather-star-dot {
  opacity: 1;
  animation: weatherTwinkle 4.4s ease-in-out infinite !important;
}

.weather-panel.is-rain .weather-rain-layer, .weather-panel.is-storm .weather-rain-layer, .weather-panel.is-rain .weather-rain-system, .weather-panel.is-storm .weather-rain-system {
  display: block !important;
}

.weather-panel.is-snow .weather-snow-system {
  display: block !important;
}

.weather-panel.is-fog .weather-fog-system {
  display: block !important;
}

.weather-panel.has-night-sky .weather-starfield {
  display: block !important;
}

.weather-panel.is-storm .weather-lightning-system {
  display: block !important;
}

.weather-panel:not(.is-rain):not(.is-storm) .weather-rain-drop, .weather-panel:not(.is-snow) .weather-snow-piece, .weather-panel:not(.is-fog) .weather-fog-layer {
  animation: none !important;
  opacity: 0 !important;
}

.weather-panel.is-rain .weather-rain-drop, .weather-panel.is-storm .weather-rain-drop {
  animation-play-state: running;
  animation: appleRainDropFall var(--drop-duration) linear infinite !important;
}

.weather-panel.is-rain .weather-rain-drop.is-near, .weather-panel.is-storm .weather-rain-drop.is-near {
  opacity: 0.86;
  filter: drop-shadow(0 0 5px rgba(178, 216, 255, 0.18));
}

.weather-panel.is-rain .weather-rain-drop.is-far, .weather-panel.is-storm .weather-rain-drop.is-far {
  opacity: 0.46;
  filter: blur(0.35px);
}

.weather-panel.is-snow .weather-snow-piece {
  animation-play-state: running;
  animation: appleSnowPieceFall var(--piece-duration) linear infinite !important;
}

.weather-panel::before {
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 8, 15, 0.02), rgba(4, 8, 15, 0.46)),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.09), transparent 24%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.085), transparent 46%) !important;
}

.weather-panel.is-clear .weather-scene {
  background: radial-gradient(circle at 17% 18%, rgba(255, 226, 139, 0.36), transparent 34%),
    radial-gradient(circle at 68% 70%, rgba(126, 190, 255, 0.16), transparent 38%),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(72, 105, 160, 0.72), rgba(22, 37, 66, 0.32)) !important;
}

.weather-panel.is-partly .weather-scene {
  background: radial-gradient(circle at 17% 20%, rgba(255, 220, 132, 0.2), transparent 30%),
    radial-gradient(circle at 78% 28%, rgba(212, 229, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(54, 79, 126, 0.78), rgba(20, 31, 54, 0.42)) !important;
}

.weather-panel.is-cloudy .weather-scene {
  background: radial-gradient(circle at 74% 18%, rgba(235, 242, 255, 0.18), transparent 30%),
    radial-gradient(circle at 22% 68%, rgba(150, 168, 202, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(76, 86, 112, 0.88), rgba(27, 32, 45, 0.62)) !important;
}

.weather-panel.is-rain .weather-scene, .weather-panel.is-storm .weather-scene {
  background: radial-gradient(circle at 72% 18%, rgba(175, 202, 255, 0.18), transparent 28%),
    radial-gradient(circle at 18% 74%, rgba(75, 112, 175, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(39, 52, 83, 0.98), rgba(11, 17, 29, 0.74)) !important;
}

.weather-panel.is-snow .weather-scene {
  background: radial-gradient(circle at 22% 22%, rgba(245, 250, 255, 0.24), transparent 34%),
    radial-gradient(circle at 72% 28%, rgba(185, 215, 255, 0.18), transparent 32%),
    radial-gradient(circle at 50% 92%, rgba(255, 255, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(92, 113, 160, 0.86), rgba(35, 43, 65, 0.56)) !important;
}

.weather-panel.is-fog .weather-scene {
  background: radial-gradient(circle at 50% 24%, rgba(238, 244, 255, 0.22), transparent 42%),
    radial-gradient(circle at 22% 74%, rgba(210, 222, 240, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(84, 95, 118, 0.9), rgba(31, 36, 49, 0.7)) !important;
}

.weather-panel.is-clear .weather-sun-halo, .weather-panel.is-partly .weather-sun-halo {
  animation: appleSunHalo 6.8s ease-in-out infinite !important;
}

.weather-panel.is-clear .weather-sun, .weather-panel.is-partly .weather-sun {
  opacity: 1;
  box-shadow: 0 0 24px rgba(255, 205, 92, 0.42),
    0 0 62px rgba(255, 205, 92, 0.18),
    inset -0.45rem -0.55rem 1rem rgba(198, 112, 35, 0.18),
    inset 0.45rem 0.4rem 0.9rem rgba(255, 255, 255, 0.28) !important;
}

.weather-panel.is-clear .weather-aura, .weather-panel.is-partly .weather-aura {
  animation: appleWeatherAura 9s ease-in-out infinite !important;
}

.weather-panel.is-clear .weather-horizon, .weather-panel.is-partly .weather-horizon {
  opacity: 0.52;
  animation: appleWeatherHorizon 12s ease-in-out infinite !important;
}

.weather-panel.is-cloudy .weather-cloud, .weather-panel.is-fog .weather-cloud {
  filter: saturate(0.86) brightness(0.98) contrast(1.03);
}

.weather-panel.is-cloudy .weather-aura {
  opacity: 0.28;
  animation: appleWeatherAura 11s ease-in-out infinite !important;
}

.weather-panel.is-cloudy .weather-horizon {
  opacity: 0.42;
  animation: appleCloudHorizon 13s ease-in-out infinite !important;
}

.weather-panel.is-rain .weather-cloud, .weather-panel.is-storm .weather-cloud {
  filter: saturate(0.82) brightness(0.9) contrast(1.06);
}

.weather-panel.is-snow .weather-cloud {
  filter: saturate(0.72) brightness(1.12);
}

.weather-panel.is-rain .weather-rain, .weather-panel.is-storm .weather-rain {
  opacity: 0.92 !important;
}

.weather-panel.is-rain .weather-rain::before, .weather-panel.is-storm .weather-rain::before {
  opacity: 0 !important;
  animation: none !important;
}

.weather-panel.is-rain .weather-rain::after, .weather-panel.is-storm .weather-rain::after {
  opacity: 0.82 !important;
  animation: appleRainGroundShimmer 2.8s ease-in-out infinite !important;
}

.weather-panel.is-snow .weather-snow {
  opacity: 0.88 !important;
}

.weather-panel.is-snow .weather-snow::before {
  opacity: 0.38 !important;
  animation: appleSnowDust 9s linear infinite !important;
}

.weather-panel.is-snow .weather-snow::after {
  opacity: 0.72 !important;
  animation: appleSnowGroundGlow 4.8s ease-in-out infinite !important;
}

.weather-panel.is-fog .weather-horizon {
  opacity: 0.56;
  filter: blur(8px);
  animation: appleFogHorizon 10s ease-in-out infinite !important;
}

.weather-panel.is-fog .weather-fog-layer {
  opacity: var(--fog-opacity);
  animation-play-state: running;
  animation: fogLayerGlide 9.6s ease-in-out infinite !important;
  filter: blur(13px);
}

.weather-panel.is-night .weather-moon {
  opacity: 1;
  animation: appleMoonFloat 7s ease-in-out infinite !important;
}

.weather-panel.is-storm .weather-flash {
  animation: stormSkyFlash 6s linear infinite both !important;
}

.weather-panel.is-storm .weather-bolt {
  animation: stormBoltStrike 6s linear infinite both !important;
}

.weather-panel.is-storm .weather-cloud {
  animation: appleCloudDrift 8.4s ease-in-out infinite,
    stormCloudPulse 6s linear infinite both !important;
}

.weather-summary {
  display: grid;
  align-items: stretch;
  justify-content: flex-start;
  grid-template-columns: auto minmax(0, 1fr);
  width: min(100%, 24rem);
  max-width: min(86%, 26rem);
  margin-top: 0.78rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 16, 29, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(2, 6, 23, 0.14);
  animation: weatherCopySettle 700ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.metric-card-primary {
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  min-height: 12.2rem;
  isolation: isolate;
  background: radial-gradient(circle at 18% 18%, rgba(164, 195, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(108, 137, 214, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.9), rgba(8, 16, 29, 0.72));
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.22),
    0 0 0 1px rgba(140, 168, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 32px rgba(140, 168, 255, 0.045);
  gap: 0.72rem;
  padding-top: 1.02rem;
  animation: none !important;
}

.metric-card-primary::before {
  display: none !important;
  animation: none !important;
}

.metric-analog-clock {
  --analog-hour-rotation: 0deg;
  --analog-minute-rotation: 0deg;
  --analog-second-rotation: 0deg;
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 8.8rem;
  height: 8.8rem;
  border-radius: 999px;
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
  animation: none !important;
}

.analog-clock-ring {
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(116, 188, 255, 0.06), transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 28px rgba(255, 255, 255, 0.02),
    0 0 0 0.65rem rgba(255, 255, 255, 0.018);
  animation: analogRingGlow 8s ease-in-out infinite !important;
}

.analog-clock-ring-inner {
  inset: 1.02rem;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 0.35rem rgba(255, 255, 255, 0.012);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 70%);
  animation-duration: 7.2s !important;
  animation-delay: -1.8s !important;
}

.analog-clock-hand-second::before {
  width: 0.1rem;
  height: 3.12rem;
  background: linear-gradient(180deg, rgba(120, 216, 255, 0.96), rgba(120, 216, 255, 0.18));
  box-shadow: 0 0 12px rgba(120, 216, 255, 0.16);
  animation: secondHandGlow 1s ease-in-out infinite !important;
}

.analog-clock-center {
  left: 50%;
  top: 50%;
  width: 0.76rem;
  height: 0.76rem;
  margin-left: -0.38rem;
  margin-top: -0.38rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98), rgba(181, 216, 255, 0.78));
  box-shadow: 0 0 0 0.28rem rgba(255, 255, 255, 0.06),
    0 0 14px rgba(161, 225, 255, 0.18);
  z-index: 6;
  animation: clockCenterPulse 2.4s ease-in-out infinite !important;
}

.metric-clock {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.34rem;
  width: 100%;
  margin-top: auto;
  padding: 0.44rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 25%),
    radial-gradient(circle at 82% 78%, rgba(112, 142, 219, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(8, 15, 28, 0.36);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 14px 28px rgba(2, 6, 23, 0.16);
  position: relative;
  overflow: hidden;
  border-color: rgba(151, 176, 218, 0.18);
}

.metric-clock .clock-separator {
  color: rgba(232, 239, 250, 0.62);
  opacity: 0.72;
  text-shadow: 0 0 12px rgba(143, 205, 255, 0.12);
  transition: color 180ms ease, opacity 180ms ease;
}

.metric-clock .clock-separator.is-visible {
  color: rgba(244, 248, 255, 0.82);
  opacity: 0.86;
}

.metric-clock::before {
  content: "";
  position: absolute;
  inset: 1px;
  display: block;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 42%);
  opacity: 0.38;
  pointer-events: none;
  animation: none !important;
}

.clock-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.14rem;
  justify-content: center;
  align-items: stretch;
  padding: 0.22rem;
  border-radius: 1rem;
  background: radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(7, 14, 27, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025),
    0 8px 18px rgba(2, 6, 23, 0.12);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: none !important;
}

.clock-group:nth-child(3) {
  animation-delay: -1.2s !important;
}

.clock-group-seconds {
  flex: 0.8 1 0;
  opacity: 0.82;
  animation-delay: -2.4s !important;
}

.clock-digit {
  min-width: 0;
  width: 100%;
  min-height: 2.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.065)),
    rgba(8, 15, 29, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 9px 16px rgba(2, 6, 23, 0.1);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(2, 6, 23, 0.22);
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(246, 249, 255, 0.96);
}

.clock-digit::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 38%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 58%);
  opacity: 0.28;
  pointer-events: none;
  animation: none !important;
}

.clock-digit.is-changing {
  animation: clockFlip 360ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.clock-separator.is-visible {
  color: rgba(230, 237, 248, 0.78);
  opacity: 1;
  animation: none !important;
}

.is-primary-card {
  --active-reminder-intensity: 0;
  --active-reminder-green-alpha: calc(0.18 * (1 - var(--active-reminder-intensity)));
  --active-reminder-red-alpha: calc(0.07 + var(--active-reminder-intensity) * 0.25);
  --active-reminder-glow-alpha: calc(0.1 + var(--active-reminder-intensity) * 0.24);
  border-color: rgba(140, 168, 255, 0.22);
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.24),
    0 0 0 1px rgba(133, 224, 203, 0.06),
    0 0 42px rgba(133, 224, 203, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: activeBlockGlow 8.8s ease-in-out infinite !important;
}

.is-primary-card.is-reminder-active {
  border-color: color-mix(
    in srgb,
    rgba(119, 230, 200, 0.34),
    rgba(255, 92, 92, 0.58) calc(var(--active-reminder-intensity) * 100%)
  );
  background: radial-gradient(circle at 12% 16%, rgba(119, 230, 200, var(--active-reminder-green-alpha)), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(255, 92, 92, var(--active-reminder-red-alpha)), transparent 28%),
    radial-gradient(circle at 78% 92%, rgba(255, 205, 120, calc(var(--active-reminder-intensity) * 0.1)), transparent 30%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.96), rgba(8, 16, 29, 0.84));
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.24),
    0 0 0 1px color-mix(
      in srgb,
      rgba(119, 230, 200, 0.12),
      rgba(255, 92, 92, 0.34) calc(var(--active-reminder-intensity) * 100%)
    ),
    0 0 44px rgba(119, 230, 200, calc(0.1 * (1 - var(--active-reminder-intensity)))),
    0 0 58px rgba(255, 92, 92, var(--active-reminder-glow-alpha)),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: activeReminderGlow 2.8s ease-in-out infinite !important;
}

.is-primary-card.is-reminder-active .status-chip.is-warning {
  border-color: color-mix(
    in srgb,
    rgba(255, 207, 139, 0.24),
    rgba(255, 92, 92, 0.46) calc(var(--active-reminder-intensity) * 100%)
  );
  background: color-mix(
    in srgb,
    rgba(255, 207, 139, 0.1),
    rgba(255, 92, 92, 0.17) calc(var(--active-reminder-intensity) * 100%)
  );
}

.is-primary-card.card-shell::before {
  animation: activeBlockLineFlow 4.8s ease-in-out infinite !important;
}

.is-primary-card .regimen-marker {
  animation: regimenMarkerPulse 2.8s ease-in-out infinite !important;
}

.is-primary-card .regimen-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.is-primary-card .regimen-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.is-primary-card .section-action::after {
  animation: buttonSheen 6.4s ease-in-out infinite !important;
}

.side-card, .day-card:not(.is-primary-card), .section-card:not(.is-primary-card) {
  animation: softCardGlow 12s ease-in-out infinite !important;
}

@keyframes appBackgroundBreath {
  0% {
      opacity: 0.56;
      transform: translate3d(-1%, -0.5%, 0) scale(1);
    }
    100% {
      opacity: 0.88;
      transform: translate3d(1.2%, 0.8%, 0) scale(1.035);
    }
}

@keyframes appGrainDrift {
  0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(0.8rem, -0.6rem, 0);
    }
}

@keyframes appGridDrift {
  0% {
      background-position: 0 0;
    }
    100% {
      background-position: 72px 72px;
    }
}

@keyframes appAuroraSweep {
  0% {
      opacity: 0.36;
      transform: translate3d(-3%, -1%, 0) rotate(-9deg) scale(0.96);
    }
    50% {
      opacity: 0.64;
    }
    100% {
      opacity: 0.5;
      transform: translate3d(3%, 1%, 0) rotate(-5deg) scale(1.04);
    }
}

@keyframes weatherPanelBloom {
  0%,
    100% {
      opacity: 0.38;
      transform: scale(1);
    }
    50% {
      opacity: 0.58;
      transform: scale(1.04);
    }
}

@keyframes weatherSceneFloat {
  0%,
    100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(0.18rem, -0.28rem, 0);
    }
}

@keyframes appleCloudDrift {
  0%,
    100% {
      transform: translate3d(0, 0, 0) scale(var(--cloud-scale, 1));
    }
    50% {
      transform: translate3d(-0.72rem, 0.14rem, 0) scale(calc(var(--cloud-scale, 1) * 1.018));
    }
}

@keyframes appleCloudDriftWide {
  0%,
    100% {
      transform: translate3d(0, 0, 0) scale(var(--cloud-scale, 1));
    }
    50% {
      transform: translate3d(0.86rem, -0.1rem, 0) scale(calc(var(--cloud-scale, 1) * 1.025));
    }
}

@keyframes appleCloudDriftSoft {
  0%,
    100% {
      transform: translate3d(0, 0, 0) scale(var(--cloud-scale, 1));
    }
    50% {
      transform: translate3d(-0.42rem, -0.18rem, 0) scale(calc(var(--cloud-scale, 1) * 1.03));
    }
}

@keyframes weatherCloudFloatWide {
  0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
      transform: translate3d(-0.85rem, 0.18rem, 0) scale(1.025);
    }
}

@keyframes weatherCloudFloatSoft {
  0%,
    100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(0.62rem, -0.22rem, 0);
    }
}

@keyframes appleSunFloat {
  0%,
    100% {
      transform: translate3d(-0.34rem, -0.12rem, 0) scale(1);
    }
    50% {
      transform: translate3d(-0.18rem, -0.38rem, 0) scale(1.025);
    }
}

@keyframes appleSunHalo {
  0%,
    100% {
      opacity: 0.72;
      transform: scale(0.96);
    }
    50% {
      opacity: 1;
      transform: scale(1.06);
    }
}

@keyframes appleSunRaySpin {
  from {
      transform: rotate(0deg) scale(1);
      opacity: 0.72;
    }
    50% {
      transform: rotate(180deg) scale(1.045);
      opacity: 1;
    }
    to {
      transform: rotate(360deg) scale(1);
      opacity: 0.72;
    }
}

@keyframes appleWeatherAura {
  0%,
    100% {
      opacity: 0.42;
      transform: translate3d(0, 0, 0) scale(0.98);
    }
    50% {
      opacity: 0.74;
      transform: translate3d(0.28rem, -0.16rem, 0) scale(1.05);
    }
}

@keyframes appleWeatherHorizon {
  0%,
    100% {
      opacity: 0.38;
      transform: translate3d(0, 0, 0) scaleX(1);
    }
    50% {
      opacity: 0.58;
      transform: translate3d(0.36rem, -0.06rem, 0) scaleX(1.04);
    }
}

@keyframes appleCloudHorizon {
  0%,
    100% {
      opacity: 0.32;
      transform: translate3d(-0.24rem, 0, 0) scaleX(1.02);
    }
    50% {
      opacity: 0.5;
      transform: translate3d(0.34rem, -0.05rem, 0) scaleX(1.07);
    }
}

@keyframes appleRainCurtain {
  0% {
      background-position: 0 0;
      opacity: 0.28;
    }
    50% {
      opacity: 0.46;
    }
    100% {
      background-position: -1.1rem 2.4rem;
      opacity: 0.28;
    }
}

@keyframes appleRainDropFall {
  0% {
      transform: translate3d(0.12rem, -0.5rem, 0) skewX(-18deg) scaleY(0.86);
      opacity: 0;
    }
    10% {
      opacity: 0.92;
    }
    72% {
      opacity: 0.78;
    }
    100% {
      transform: translate3d(-0.95rem, 8.5rem, 0) skewX(-18deg) scaleY(1.08);
      opacity: 0;
    }
}

@keyframes appleSnowDust {
  0% {
      background-position:
        0.1rem 0.2rem,
        0.9rem 0.85rem,
        0.5rem 0.35rem;
      opacity: 0.24;
    }
    50% {
      opacity: 0.42;
    }
    100% {
      background-position:
        0.8rem 2.2rem,
        0.2rem 2.85rem,
        1.2rem 2.35rem;
      opacity: 0.24;
    }
}

@keyframes appleSnowPieceFall {
  0% {
      transform: translate3d(0, -0.4rem, 0) rotate(0deg) scale(0.82);
      opacity: 0;
    }
    12% {
      opacity: 0.9;
    }
    46% {
      transform: translate3d(calc(var(--piece-drift) * 0.36), 3.8rem, 0) rotate(96deg) scale(1);
      opacity: 0.96;
    }
    76% {
      opacity: 0.74;
    }
    100% {
      transform: translate3d(var(--piece-drift), 8.7rem, 0) rotate(240deg) scale(0.9);
      opacity: 0;
    }
}

@keyframes appleRainGroundShimmer {
  0%,
    100% {
      opacity: 0.48;
      transform: translate3d(-0.2rem, 0, 0) scaleX(0.96);
    }
    50% {
      opacity: 0.82;
      transform: translate3d(0.18rem, -0.06rem, 0) scaleX(1.04);
    }
}

@keyframes appleSnowGroundGlow {
  0%,
    100% {
      opacity: 0.48;
      transform: scaleX(0.98);
    }
    50% {
      opacity: 0.74;
      transform: scaleX(1.04);
    }
}

@keyframes appleMoonFloat {
  0%,
    100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(0.16rem, -0.22rem, 0);
    }
}

@keyframes appleFogHorizon {
  0%,
    100% {
      opacity: 0.48;
      transform: translate3d(0, 0, 0) scaleX(1);
    }
    50% {
      opacity: 0.66;
      transform: translate3d(0.28rem, 0, 0) scaleX(1.035);
    }
}

@keyframes weatherCopySettle {
  from {
      opacity: 0.72;
      transform: translate3d(0, 0.28rem, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
}

@keyframes clockCardGlow {
  0%,
    100% {
      box-shadow:
        var(--perf-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
      box-shadow:
        0 16px 36px rgba(91, 125, 190, 0.13),
        0 0 42px rgba(99, 210, 255, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }
}

@keyframes analogRingGlow {
  0%,
    100% {
      opacity: 0.68;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        inset 0 0 28px rgba(255, 255, 255, 0.02),
        0 0 0 0.65rem rgba(255, 255, 255, 0.018);
    }
    50% {
      opacity: 0.88;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.065),
        inset 0 0 32px rgba(120, 216, 255, 0.055),
        0 0 0 0.72rem rgba(120, 216, 255, 0.026);
    }
}

@keyframes clockInnerLight {
  0%,
    100% {
      opacity: 0.32;
      transform: translate3d(-0.3rem, 0, 0);
    }
    50% {
      opacity: 0.58;
      transform: translate3d(0.3rem, 0, 0);
    }
}

@keyframes clockGroupBreath {
  0%,
    100% {
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02),
        0 8px 18px rgba(2, 6, 23, 0.12);
    }
    50% {
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 10px 22px rgba(74, 125, 190, 0.13);
    }
}

@keyframes clockDigitGlass {
  0%,
    100% {
      opacity: 0.22;
    }
    50% {
      opacity: 0.42;
    }
}

@keyframes clockFlip {
  0% {
      opacity: 0.82;
      transform: translateY(0.16rem) scale(0.985);
      filter: blur(1.4px);
    }
    58% {
      opacity: 1;
      transform: translateY(-0.04rem) scale(1.01);
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
}

@keyframes clockSurfaceSweep {
  0%,
    100% {
      opacity: 0.42;
      transform: translateX(-2%);
    }
    50% {
      opacity: 0.72;
      transform: translateX(2%);
    }
}

@keyframes analogClockFloat {
  0%,
    100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(0, -0.22rem, 0);
    }
}

@keyframes analogRingPulse {
  0%,
    100% {
      opacity: 0.64;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 28px rgba(255, 255, 255, 0.02),
        0 0 0 0.65rem rgba(255, 255, 255, 0.018);
    }
    50% {
      opacity: 0.94;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 34px rgba(120, 216, 255, 0.08),
        0 0 0 0.82rem rgba(120, 216, 255, 0.035);
    }
}

@keyframes secondHandGlow {
  0%,
    100% {
      box-shadow: 0 0 10px rgba(120, 216, 255, 0.12);
    }
    50% {
      box-shadow: 0 0 18px rgba(120, 216, 255, 0.36);
    }
}

@keyframes clockCenterPulse {
  0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.08);
    }
}

@keyframes clockColonPulse {
  0%,
    100% {
      opacity: 0.45;
    }
    50% {
      opacity: 1;
    }
}

@keyframes activeBlockGlow {
  0%,
    100% {
      box-shadow:
        var(--perf-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    50% {
      box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.1),
        0 0 36px rgba(15, 159, 130, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
}

@keyframes activeReminderGlow {
  0%,
    100% {
      box-shadow: 0 24px 52px rgba(2, 6, 23, 0.24),
        0 0 0 1px color-mix(
          in srgb,
          rgba(119, 230, 200, 0.12),
          rgba(255, 92, 92, 0.34) calc(var(--active-reminder-intensity) * 100%)
        ),
        0 0 44px rgba(119, 230, 200, calc(0.1 * (1 - var(--active-reminder-intensity)))),
        0 0 58px rgba(255, 92, 92, var(--active-reminder-glow-alpha)),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    50% {
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12),
        0 0 0 1px color-mix(
          in srgb,
          rgba(119, 230, 200, 0.16),
          rgba(255, 92, 92, 0.48) calc(var(--active-reminder-intensity) * 100%)
        ),
        0 0 34px rgba(119, 230, 200, calc(0.08 * (1 - var(--active-reminder-intensity)))),
        0 0 78px rgba(255, 92, 92, calc(var(--active-reminder-glow-alpha) + 0.08)),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
}

@keyframes activeBlockLineFlow {
  0%,
    100% {
      opacity: 0.34;
      transform: translateX(-6%);
    }
    50% {
      opacity: 0.8;
      transform: translateX(6%);
    }
}

@keyframes regimenMarkerPulse {
  0%,
    100% {
      box-shadow: 0 0 0 6px rgba(133, 224, 203, 0.08);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 0 0 9px rgba(133, 224, 203, 0.12);
      transform: scale(1.08);
    }
}

@keyframes softCardGlow {
  0%,
    100% {
      box-shadow: var(--perf-shadow);
    }
    50% {
      box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.1),
        0 0 30px rgba(126, 164, 255, 0.055);
    }
}

@media (max-width: 860px) {
  .hero-control-panel {
    grid-template-rows: auto auto auto auto;
  }
}

@media (max-width: 640px) {
  .metric-card-water, .hero-control-panel {
    min-height: auto;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .metric-card-water {
    padding: 0;
    min-height: 22.1rem;
  }
}

@media (max-width: 640px) {
  .hero-control-panel {
    padding: 0.86rem;
  }
}

@media (max-width: 640px) {
  .water-card-face-front {
    padding: 0.86rem;
  }
}

@media (max-width: 640px) {
  .water-card-face-back {
    padding: 0.86rem;
  }
}

@media (max-width: 640px) {
  .water-premium-body {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    min-height: 100%;
  }
}

@media (max-width: 640px) {
  .water-progress-ring {
    width: min(82%, 13.9rem);
  }
}

@media (max-width: 640px) {
  .water-circle-value {
    font-size: 1.18rem;
  }
}

@media (max-width: 640px) {
  .water-front-actions, .scenario-toggle {
    gap: 0.46rem;
  }
}

@media (max-width: 640px) {
  .water-action-btn, .scenario-btn {
    min-height: 2.86rem;
    padding-inline: 0.62rem;
  }
}

@media (max-width: 640px) {
  .scenario-btn span {
    font-size: 0.76rem;
  }
}

@media (max-width: 640px) {
  .hero-control-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-control-title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .page-shell::before, .page-shell::after, .ambient, .weather-panel::after, .weather-scene, .weather-cloud, .weather-sun, .weather-sun-rays, .weather-stars, .weather-star-dot, .weather-rain-drop, .weather-snow-piece, .weather-fog-layer, .metric-card-primary, .metric-card-primary::before, .metric-analog-clock, .analog-clock-ring, .analog-clock-hand-second::before, .analog-clock-center, .clock-digit.is-changing, .clock-separator.is-visible, .is-primary-card, .is-primary-card.card-shell::before, .is-primary-card .regimen-marker, .is-primary-card .section-action::after, .side-card, .day-card, .section-card, .water-card-face-front::after, .water-progress-ring, .water-progress-ring::after, .water-progress-ring-core::before, .water-progress-ring-core::after, .water-progress-ring-panel, .water-progress-ring-panel::before, .water-progress-ring-panel::after, .water-aura, .water-orbit, .water-bubble, .water-drop, .hero-control-panel .progress-fill::after {
    animation: none !important;
  }
}

.water-progress-ring-core {
  position: absolute;
  inset: 1.18rem;
  overflow: hidden !important;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(9, 42, 48, 0.74), rgba(5, 24, 29, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 -12px 28px rgba(120, 239, 242, 0.1);
  z-index: 1;
  contain: paint;
  clip-path: circle(50% at 50% 50%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 70%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 70%, transparent 71%);
  transform: translateZ(0);
}

.water-progress-ring-core::before {
  will-change: auto;
  content: "";
  position: absolute;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border-radius: 42% 46% 0 0 / 10% 12% 0 0 !important;
  background: radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.5), transparent 17%),
    linear-gradient(180deg, rgba(194, 255, 247, 0.98), rgba(86, 231, 214, 0.96) 46%, rgba(50, 145, 184, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 12px 22px rgba(255, 255, 255, 0.08) !important;
  transform: translateZ(0) scaleY(var(--water-fill-ratio)) !important;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  animation: waterSurfaceLight 7.2s ease-in-out infinite !important;
  transform-origin: 50% 100% !important;
}

.water-progress-ring-panel {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.2), transparent 45%);
  pointer-events: none;
  overflow: hidden !important;
  clip-path: circle(50% at 50% 50%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 70%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 70%, transparent 71%);
}

.water-progress-ring-panel::before, .water-progress-ring-panel::after {
  content: "";
  position: absolute;
  left: -6% !important;
  right: -6% !important;
  display: block !important;
  height: 22%;
  border-radius: 46%;
  background: radial-gradient(ellipse at 22% 46%, rgba(255, 255, 255, 0.36), transparent 18%),
    radial-gradient(ellipse at 58% 36%, rgba(255, 255, 255, 0.22), transparent 16%),
    linear-gradient(90deg, transparent, rgba(221, 255, 255, 0.14), transparent);
  opacity: 0.58;
  mix-blend-mode: screen;
}

body::before, body::after, .page-shell::after, .ambient {
  display: none !important;
  animation: none !important;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: none;
  opacity: 0.16;
  pointer-events: none;
  animation: none !important;
}

.weather-panel::after, .weather-rain-system, .weather-snow-system, .weather-fog-system, .weather-starfield, .weather-lightning-system {
  display: none !important;
  animation: none !important;
}

.weather-panel.is-rain .weather-rain-system, .weather-panel.is-storm .weather-rain-system, .weather-panel.is-rain .weather-rain-layer, .weather-panel.is-storm .weather-rain-layer, .weather-panel.is-snow .weather-snow-system, .weather-panel.is-fog .weather-fog-system, .weather-panel.has-night-sky .weather-starfield, .weather-panel.is-storm .weather-lightning-system {
  display: none !important;
}

.weather-scene, .weather-cloud, .weather-sun, .weather-sun-halo, .weather-sun-rays, .weather-aura, .weather-horizon, .weather-moon, .weather-stars, .weather-star-dot, .weather-rain, .weather-rain::before, .weather-rain::after, .weather-rain-drop, .weather-snow, .weather-snow::before, .weather-snow::after, .weather-snow-piece, .weather-fog-layer, .weather-flash, .weather-bolt, .weather-summary {
  animation: none !important;
  filter: none !important;
  will-change: auto !important;
}

.weather-panel:not(.is-rain):not(.is-storm) .weather-rain-drop, .weather-panel:not(.is-snow) .weather-snow-piece, .weather-panel:not(.is-fog) .weather-fog-layer, .weather-panel.is-rain .weather-rain-drop, .weather-panel.is-storm .weather-rain-drop, .weather-panel.is-snow .weather-snow-piece, .weather-panel.is-fog .weather-fog-layer, .weather-panel.is-rain .weather-rain::before, .weather-panel.is-storm .weather-rain::before, .weather-panel.is-rain .weather-rain::after, .weather-panel.is-storm .weather-rain::after, .weather-panel.is-snow .weather-snow::before, .weather-panel.is-snow .weather-snow::after {
  opacity: 0 !important;
}

.weather-panel.is-rain .weather-rain-drop, .weather-panel.is-storm .weather-rain-drop, .weather-panel.is-snow .weather-snow-piece, .weather-panel.is-fog .weather-fog-layer {
  animation: none !important;
}

.metric-card-water {
  box-shadow: var(--perf-shadow);
  padding: 1rem !important;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%),
    var(--perf-panel-strong) !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  min-height: 18.4rem;
  border-radius: 26px;
}

.metric-card-water::before, .metric-card-water::after, .water-card-face-front::before, .water-card-face-front::after, .water-progress-ring::after, .water-progress-ring-core, .water-progress-ring-core::before, .water-progress-ring-core::after, .water-progress-ring-panel, .water-progress-glow, .water-drop, .water-bubble, .water-aura, .water-orbit {
  display: none !important;
  animation: none !important;
}

.water-card-face, .water-card-face-front {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: 100%;
  min-height: 16.3rem;
  justify-self: stretch;
  align-self: stretch;
  transform: none !important;
  opacity: 1 !important;
}

.water-card-face-front {
  position: relative;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 0.7rem !important;
  padding: 0 !important;
  background: transparent;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
  min-height: inherit;
  cursor: pointer;
  place-items: center;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: center;
}

.water-card-face-front:focus-visible {
  outline: 2px solid rgba(119, 230, 200, 0.72);
  outline-offset: 0.28rem;
  border-radius: 22px;
}

.metric-card-water #waterHeading {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 4;
  backdrop-filter: none !important;
  pointer-events: none;
}

.water-progress-ring {
  --water-progress-deg: 0deg;
  --water-fill-percent: 0%;
  --water-fill-ratio: 0;
  position: relative;
  width: min(100%, 13.2rem) !important;
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
  border-radius: 999px;
  background: radial-gradient(circle at center, var(--perf-panel-strong) 0 62%, transparent 63%),
    conic-gradient(
      from -90deg,
      rgba(119, 230, 200, 0.98) 0deg,
      rgba(126, 164, 255, 0.95) var(--water-progress-deg),
      rgba(255, 255, 255, 0.1) var(--water-progress-deg),
      rgba(255, 255, 255, 0.1) 360deg
    ) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 14px 28px rgba(2, 6, 23, 0.2) !important;
  filter: none !important;
  transition: --water-progress-deg 260ms ease !important;
  animation: none !important;
  max-width: 13.2rem;
  justify-self: center;
  margin-inline: auto;
  display: grid !important;
  place-items: center;
  align-self: center;
}

.water-progress-ring::before {
  content: "";
  position: absolute;
  inset: 0.72rem;
  display: block !important;
  border-radius: inherit;
  background: var(--perf-panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.water-front-copy {
  display: grid !important;
  justify-items: center;
  gap: 0.28rem !important;
  width: auto !important;
  max-width: 9.8rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  transform: none !important;
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  place-content: center;
  min-height: 0 !important;
  border-radius: 18px;
  -webkit-backdrop-filter: blur(14px) saturate(1.18) !important;
  backdrop-filter: blur(14px) saturate(1.18) !important;
  pointer-events: none;
  animation: none !important;
  place-items: center;
}

.water-circle-value {
  max-width: 100%;
  color: rgba(250, 253, 255, 0.98) !important;
  font-family: var(--font-main);
  font-size: clamp(2.1rem, 5vw, 3rem) !important;
  font-weight: 850;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  text-shadow: none !important;
}

.water-liters {
  display: block;
  color: rgba(235, 241, 250, 0.86);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.12;
}

.water-status {
  gap: 0.08rem !important;
  max-width: 9.4rem !important;
  color: rgba(202, 213, 229, 0.72) !important;
  font-size: 0.68rem !important;
  line-height: 1.24 !important;
  text-align: center !important;
  text-shadow: none !important;
  display: grid !important;
}

.water-status-line-secondary {
  color: rgba(202, 213, 229, 0.58) !important;
}

.water-edit-hint {
  justify-self: center;
  align-self: end;
  color: rgba(202, 213, 229, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.metric-card-water.is-water-updated .water-progress-ring, .metric-card-water.is-water-updated .water-progress-ring::after, .metric-card-water.is-water-updated .water-progress-ring-panel {
  animation: none !important;
}

.water-dialog .time-dialog-controls {
  display: grid;
  gap: 0.74rem;
}

.water-wheel-stage::before, .water-wheel-picker .time-wheel-separator {
  display: none !important;
}

.water-wheel-picker {
  grid-template-columns: minmax(0, 1fr) !important;
}

.water-wheel-column {
  min-width: 0;
}

.water-volume-wheel .time-wheel-option {
  font-size: clamp(1.42rem, 6vw, 1.86rem);
}

.water-dialog-current {
  min-width: 7.4rem;
}

.water-volume-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.water-volume-summary .time-schedule-item {
  min-width: 0;
  min-height: 3.18rem;
  padding: 0.46rem 0.58rem;
  gap: 0.46rem;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  align-content: center;
  border-color: rgba(119, 230, 200, 0.14);
  background: linear-gradient(180deg, rgba(119, 230, 200, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(7, 18, 26, 0.72);
}

.water-volume-summary .time-schedule-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 13px;
  border-color: rgba(242, 196, 134, 0.26);
  color: rgba(242, 196, 134, 0.94);
  background: linear-gradient(180deg, rgba(242, 196, 134, 0.14), rgba(119, 230, 200, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.water-volume-summary .time-schedule-copy {
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-content: center;
  column-gap: 0.32rem;
  row-gap: 0;
}

.water-volume-summary .time-schedule-copy strong {
  min-width: 0;
  font-size: 0.96rem;
  line-height: 1;
  white-space: nowrap;
}

.water-volume-summary .time-schedule-copy span, .water-volume-summary .time-schedule-copy small {
  min-width: 0;
  overflow: hidden;
  font-size: 0.62rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-dialog-primary:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (min-width: 760px) {
  .water-dialog-body, .water-dialog .time-dialog-controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
