:root {
  --bg: #07141a;
  --bg-deep: #0d222a;
  --panel: rgba(9, 23, 30, 0.78);
  --panel-strong: rgba(12, 31, 40, 0.88);
  --ink: #eef5f2;
  --muted: #9cb4ad;
  --line: rgba(238, 245, 242, 0.12);
  --sand: #e3a15a;
  --teal: #3bc1b4;
  --coral: #ff7e63;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 126, 99, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(59, 193, 180, 0.18), transparent 30%),
    radial-gradient(circle at bottom center, rgba(227, 161, 90, 0.08), transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(238, 245, 242, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 245, 242, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
}

a {
  color: #8cc7ff;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.hero {
  margin-bottom: 18px;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.section-label,
.stat-label,
.snapshot-label,
.meter-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
}

.hero h1,
.panel h2,
.mini-meter-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.82fr);
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -50% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(227, 161, 90, 0.14), transparent 70%);
  border-radius: 50%;
}

.panel-main {
  padding: 32px;
}

.panel-side {
  background: rgba(9, 23, 30, 0.64);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.panel-header.compact {
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 2rem;
  margin-top: 6px;
}

.panel-main h2 {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
}

.current-date {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  color: var(--muted);
  max-width: 18ch;
  line-height: 1.3;
}

.current-time {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: -0.03em;
}

.current-day {
  font-size: 0.92rem;
}

.meter-block {
  padding: 28px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.meter-heading-row,
.meter-meta,
.mini-meter-head,
.snapshot-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.percent-large {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.meter {
  width: 100%;
  height: 30px;
  border-radius: 999px;
  background: rgba(238, 245, 242, 0.1);
  overflow: hidden;
  margin: 22px 0 16px;
}

.meter-fill,
.mini-meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 500ms ease;
}

.meter-fill {
  background: linear-gradient(90deg, var(--coral) 0%, var(--sand) 45%, var(--teal) 100%);
}

.meter-meta {
  color: var(--muted);
  font-size: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card,
.mini-meter-card,
.snapshot-item {
  position: relative;
  z-index: 1;
}

.stat-card {
  border-radius: 22px;
  padding: 18px;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.accent-sand {
  background: rgba(227, 161, 90, 0.16);
}

.accent-teal {
  background: rgba(59, 193, 180, 0.16);
}

.accent-coral {
  background: rgba(255, 126, 99, 0.16);
}

.stat-value {
  margin: 12px 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.stat-footnote {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.mini-meters {
  display: grid;
  gap: 14px;
}

.mini-meter-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(12, 31, 40, 0.72);
}

.mini-meter-head h3 {
  font-size: 1.28rem;
}

.mini-meter-head span {
  font-weight: 700;
}

.mini-meter {
  height: 14px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(238, 245, 242, 0.1);
  overflow: hidden;
}

.mini-meter-card:first-child .mini-meter-fill {
  background: linear-gradient(90deg, rgba(255, 126, 99, 0.9), rgba(227, 161, 90, 0.9));
}

.mini-meter-card:last-child .mini-meter-fill {
  background: linear-gradient(90deg, rgba(59, 193, 180, 0.9), rgba(227, 161, 90, 0.9));
}

.snapshot-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.snapshot-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 31, 40, 0.68);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
  }

  .current-date {
    align-items: flex-start;
    text-align: left;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 18px, 1120px);
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .panel {
    border-radius: 22px;
    padding: 18px;
  }

  .meter-block,
  .mini-meter-card,
  .snapshot-item,
  .stat-card {
    border-radius: 18px;
  }

  .meter-meta,
  .meter-heading-row,
  .snapshot-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(0.95rem, 4.8vw, 1.2rem);
  }
}