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

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

@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);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(88, 157, 255, 0.14), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(133, 224, 203, 0.12), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(242, 196, 134, 0.11), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
}

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.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: radial-gradient(circle at center, black 24%, transparent 88%);
  opacity: 0.28;
  pointer-events: none;
}

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

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

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

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

.hero-panel,
.side-card,
.status-summary,
.day-card,
.section-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 100%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.day-card::before,
.section-card::before,
.side-card::before,
.status-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 34%);
  pointer-events: none;
}

.hero-panel {
  display: block;
  border-radius: 32px;
  padding: 1.45rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(140, 168, 255, 0.14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(242, 196, 134, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 32%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.hero-ornament {
  position: absolute;
  pointer-events: none;
}

.hero-ornament-orbit {
  top: -8.2rem;
  right: -5.4rem;
  width: 29rem;
  height: 29rem;
  border-radius: 999px;
  background: conic-gradient(
    from 210deg,
    transparent 0deg,
    rgba(140, 168, 255, 0.08) 68deg,
    rgba(133, 224, 203, 0.28) 128deg,
    rgba(255, 255, 255, 0.06) 164deg,
    transparent 212deg
  );
  mask: radial-gradient(circle, transparent 61%, black 63%, black 67%, transparent 69%);
  opacity: 0.9;
  will-change: transform;
  animation: orbitSpin 40s linear infinite;
}

.hero-ornament-beam {
  top: 8.1rem;
  left: 1.6rem;
  width: min(62vw, 38rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.1),
    rgba(133, 224, 203, 0.4),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.8;
}

.hero-ornament-beam::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), rgba(140, 168, 255, 0.95));
  transform: translateY(-50%);
  box-shadow: 0 0 0 8px rgba(133, 224, 203, 0.06);
  animation: beaconPulse 4.8s ease-in-out infinite;
}

.hero-ornament-glow {
  right: 17%;
  bottom: -3.4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 196, 134, 0.12), transparent 72%);
  filter: blur(12px);
  opacity: 0.9;
  will-change: transform, opacity;
  animation: glowDrift 10s ease-in-out infinite alternate;
}

@media (min-width: 980px) {
  .hero-panel {
    padding: 1.7rem;
  }
}

.hero-copy,
.main-grid,
.content-column,
.sidebar-column,
.stack-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  max-width: 100%;
}

.eyebrow,
.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);
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), rgba(126, 164, 255, 0.95));
  box-shadow: 0 0 0 6px rgba(119, 230, 200, 0.12);
}

.hero-title,
.section-title {
  margin: 0;
  line-height: 1.05;
}

.hero-title {
  margin-top: 0.8rem;
  font-size: clamp(2.35rem, 3vw, 3.75rem);
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  max-width: 10ch;
}

.hero-subtitle,
.section-description,
.metric-meta,
.pill-note,
.empty-copy {
  color: var(--text-soft);
}

.hero-subtitle {
  max-width: 40rem;
  margin: 0.2rem 0 0;
  font-size: 0.99rem;
  line-height: 1.85;
}

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

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

.metric-card,
.summary-pill,
.timeline-item,
.history-item {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  backdrop-filter: blur(18px);
}

.metric-card {
  border-radius: 24px;
  padding: 1rem 1.08rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.metric-card-primary {
  position: relative;
  overflow: hidden;
  min-height: 11.8rem;
  background:
    radial-gradient(circle at top right, rgba(140, 168, 255, 0.16), transparent 32%),
    radial-gradient(circle at bottom left, rgba(133, 224, 203, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(2, 6, 23, 0.18);
}

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

.metric-card-primary::before {
  content: "";
  position: absolute;
  right: 1.15rem;
  bottom: 1rem;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1rem rgba(255, 255, 255, 0.015);
  will-change: transform, opacity;
  animation: orbPulse 8s ease-in-out infinite;
}

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

.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-card-primary .metric-value {
  margin-top: 0.55rem;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  max-width: 18ch;
}

.metric-meta {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.96rem;
}

.metric-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  width: fit-content;
  margin-top: 0.85rem;
  padding: 0.5rem 0.55rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(2, 6, 23, 0.12);
}

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

.clock-group {
  gap: 0.12rem;
}

.clock-group-seconds {
  margin-left: 0.08rem;
  opacity: 0.84;
}

.clock-group-seconds .clock-digit {
  min-width: 1.55rem;
  font-size: 0.8em;
}

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

.clock-digit {
  min-width: 2rem;
  min-height: 2.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  letter-spacing: -0.04em;
}

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

.clock-separator {
  color: var(--text-soft);
  animation: clockBlink 1.4s ease-in-out infinite;
}

.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::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 {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(126, 164, 255, 0.88));
  box-shadow: 0 0 18px rgba(133, 224, 203, 0.24);
  transition: width 240ms ease;
}

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

.hero-scenario-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.9rem;
  margin-top: 0.2rem;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(133, 224, 203, 0.1), transparent 30%),
    radial-gradient(circle at bottom right, rgba(140, 168, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.hero-scenario-panel::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 5.8rem;
  height: 5.8rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 58%),
    radial-gradient(circle at 30% 30%, rgba(133, 224, 203, 0.12), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.55;
  transform: rotate(12deg);
}

@media (min-width: 980px) {
  .hero-scenario-panel {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-top: 0;
  }
}

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

.hero-scenario-title {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-description {
  margin: 0.55rem 0 0;
  line-height: 1.6;
}

.scenario-toggle {
  display: grid;
  gap: 0.7rem;
  padding: 0.28rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
}

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

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

.scenario-btn,
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.scenario-btn {
  min-height: 3.4rem;
  padding: 0.82rem 0.95rem;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  font-weight: 700;
  justify-content: flex-start;
}

.scenario-btn.is-active {
  border-color: rgba(119, 230, 200, 0.44);
  background:
    radial-gradient(circle at top left, rgba(242, 196, 134, 0.12), transparent 45%),
    linear-gradient(135deg, rgba(119, 230, 200, 0.18), rgba(126, 164, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(119, 230, 200, 0.12);
}

.scenario-btn:active,
.section-action:active {
  transform: scale(0.985);
}

.scenario-btn i,
.side-card-header i,
.section-action i {
  width: 1rem;
  height: 1rem;
}

.scenario-btn span {
  font-size: 0.94rem;
  line-height: 1.3;
}

.feedback {
  position: fixed;
  top: 1.35rem;
  left: 50%;
  z-index: 60;
  display: flex;
  justify-content: center;
  width: min(100% - 2rem, 38rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.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.24);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 55%),
    rgba(255, 210, 125, 0.12);
  color: var(--warning);
  box-shadow:
    0 18px 40px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  animation: toastIn 220ms ease both;
}

.feedback-badge.success {
  border-color: rgba(119, 230, 200, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 55%),
    rgba(119, 230, 200, 0.12);
  color: var(--accent);
}

.feedback-badge {
  position: relative;
  overflow: hidden;
}

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

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

@media (min-width: 1100px) {
  .main-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    align-items: start;
  }
}

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

@media (min-width: 1100px) {
  .sidebar-column {
    position: sticky;
    top: 1.35rem;
  }
}

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

.day-card {
  background:
    radial-gradient(circle at top right, rgba(140, 168, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 32%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.94), rgba(8, 16, 29, 0.82));
}

.section-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.82), rgba(8, 16, 29, 0.58));
}

.is-primary-card {
  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);
}

.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 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 22%);
}

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

.card-shell {
  position: relative;
}

.card-shell > :not(.card-ornament) {
  position: relative;
  z-index: 1;
}

.card-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.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.28), transparent);
  pointer-events: none;
}

.card-ornament {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  z-index: 0;
  width: 6.8rem;
  height: 6.8rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.card-ornament-ring,
.card-ornament-index {
  position: absolute;
}

.card-ornament-ring {
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(
    from 220deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.03) 48deg,
    rgba(133, 224, 203, 0.22) 116deg,
    rgba(140, 168, 255, 0.12) 164deg,
    transparent 222deg
  );
  mask: radial-gradient(circle, transparent 60%, black 62%, black 66%, transparent 68%);
}

.is-primary-card .card-ornament-ring {
  will-change: transform;
  animation: orbitSpin 24s linear infinite reverse;
}

.card-ornament-index {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.09);
}

.is-secondary-ornament {
  width: 5.4rem;
  height: 5.4rem;
  top: 0.78rem;
}

.is-secondary-ornament .card-ornament-index {
  font-size: 1.55rem;
}

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

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

.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-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: 14ch;
}

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

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

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

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

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

.pill-note {
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.is-secondary-card .pill-note {
  font-size: 0.9rem;
}

.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-grid {
  gap: 0.72rem;
}

@media (min-width: 640px) {
  .regimen-grid {
    grid-template-columns: repeat(2, 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-primary-card .regimen-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
}

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

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

.regimen-note {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.87rem;
  color: var(--text-muted);
}

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

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

.section-action {
  position: relative;
  overflow: hidden;
  min-height: 3.5rem;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  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;
}

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

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

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

.side-card {
  border-radius: 28px;
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.82), rgba(8, 16, 29, 0.58));
}

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

.disclosure-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(133, 224, 203, 0.34), transparent);
  opacity: 0.75;
}

.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-shell {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.disclosure-body {
  min-height: 0;
  overflow: hidden;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  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;
  border-top-color: transparent;
  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 {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 7rem;
  height: 7rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(circle at 28% 28%, rgba(140, 168, 255, 0.08), transparent 56%);
  opacity: 0.45;
  transform: rotate(8deg);
  pointer-events: 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);
}

.timeline,
.history-list,
.summary-grid {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.95rem;
}

.timeline-item,
.history-item,
.summary-pill {
  border-radius: 18px;
  padding: 0.82rem 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.timeline-item,
.history-item {
  overflow: hidden;
}

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

.timeline-item,
.history-item {
  position: relative;
}

.timeline-item::before,
.history-item::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 0.82rem;
  bottom: 0.82rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(133, 224, 203, 0.42), transparent);
  opacity: 0.7;
}

.timeline-title,
.history-title {
  padding-left: 0.8rem;
}

.timeline-time,
.history-meta {
  padding-left: 0.8rem;
}

.timeline-title,
.history-title,
.summary-pill strong {
  display: block;
  font-weight: 800;
}

.timeline-time,
.history-meta,
.summary-pill span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.94rem;
}

.timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.timeline-status,
.history-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

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

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

.timeline-note {
  display: block;
  margin-top: 0.5rem;
  padding-left: 0.8rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.history-main {
  min-width: 0;
  flex: 1;
}

.history-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.history-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.history-score {
  font-weight: 800;
  padding: 0.45rem 0.68rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(133, 224, 203, 0.16), rgba(140, 168, 255, 0.12));
  border: 1px solid rgba(140, 168, 255, 0.16);
  color: var(--text);
}

.history-progress {
  width: 100%;
  height: 0.36rem;
  margin-top: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.history-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(140, 168, 255, 0.82));
  box-shadow: 0 0 14px rgba(133, 224, 203, 0.24);
}

.status-summary {
  margin-top: 1.25rem;
  border-radius: var(--radius-xl);
  padding: 1.35rem;
}

@media (min-width: 680px) {
  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.summary-pill {
  min-height: 7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.summary-pill span {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.summary-pill strong {
  margin-top: 0.6rem;
  font-size: 1.08rem;
}

.summary-pill.is-success {
  border-color: rgba(119, 230, 200, 0.22);
  background: rgba(119, 230, 200, 0.11);
}

.summary-pill.is-warning {
  border-color: rgba(255, 210, 125, 0.22);
  background: rgba(255, 210, 125, 0.08);
}

.summary-pill.is-muted {
  border-color: var(--line);
}

.hidden {
  display: none !important;
}

@keyframes clockFlip {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes clockBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

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

@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);
  }
}

@keyframes breatheGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(133, 224, 203, 0.08);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 10px rgba(133, 224, 203, 0.12),
      0 0 20px rgba(133, 224, 203, 0.2);
  }
}

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

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes glowDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.98);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(-0.8rem, -0.5rem, 0) scale(1.06);
    opacity: 0.96;
  }
}

@keyframes beaconPulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-50%) scale(1.22);
    opacity: 1;
  }
}

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

@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 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 (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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

  .card-head,
  .section-card-head,
  .side-card-header {
    flex-direction: column;
  }

  .hero-copy {
    gap: 0.75rem;
  }

  .feedback {
    top: 0.9rem;
    width: calc(100% - 1.2rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-ornament-orbit {
    top: -6.2rem;
    right: -7.5rem;
    width: 22rem;
    height: 22rem;
  }

  .hero-ornament-beam {
    top: 7rem;
    left: 1rem;
    width: 72%;
  }

  .metric-clock {
    width: 100%;
    justify-content: center;
  }

  .card-status-wrap {
    width: 100%;
    justify-content: flex-start;
  }

  .disclosure-action {
    width: 100%;
    justify-content: flex-start;
  }

  .card-footer,
  .section-card-footer,
  .history-item {
    flex-direction: column;
    align-items: stretch;
  }

  .actions-row {
    width: 100%;
  }

  .section-action {
    width: 100%;
  }

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

  .card-ornament {
    top: auto;
    right: 1rem;
    bottom: 1rem;
    width: 4.8rem;
    height: 4.8rem;
  }

  .card-ornament-index {
    font-size: 1.38rem;
  }

}
