:root {
  --canvas: #f3f5ee;
  --surface: #fbfcf8;
  --surface-strong: #ffffff;
  --ink: #17221c;
  --ink-soft: #3f4d44;
  --muted: #738078;
  --line: #dce2d8;
  --line-strong: #c4cec2;
  --jade: #18775f;
  --jade-deep: #0c5141;
  --jade-soft: #d9e9df;
  --citron: #dce98d;
  --coral: #ed9b7c;
  --coral-soft: #f7dfd3;
  --sky: #88b7c9;
  --sky-soft: #deedf0;
  --sun: #edc66f;
  --rose: #c67a8c;
  --danger: #a74435;
  --shadow: 0 20px 50px rgba(25, 43, 33, 0.1);
  --sidebar-width: 226px;
  --radius: 8px;
  --body-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display-font: "Avenir Next", "Futura", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(24, 119, 95, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 119, 95, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 38px 38px;
  color: var(--ink);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
label:focus-within {
  outline: 3px solid rgba(24, 119, 95, 0.28);
  outline-offset: 3px;
}

svg {
  display: block;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 26px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(248, 250, 244, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  width: 17px;
  height: 4px;
  border-radius: 4px;
  background: var(--citron);
  transform-origin: center;
}

.brand-mark span:first-child {
  transform: translateY(-6px) rotate(-8deg);
}

.brand-mark span:nth-child(2) {
  width: 22px;
  transform: rotate(7deg);
}

.brand-mark span:last-child {
  width: 13px;
  transform: translateY(7px) rotate(-5deg);
  background: var(--coral);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.main-nav {
  display: grid;
  gap: 5px;
  margin-top: 48px;
}

.nav-item,
.mobile-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 14px;
  text-align: left;
}

.nav-item svg,
.mobile-nav svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(220, 233, 141, 0.22);
}

.nav-item.is-active {
  background: var(--ink);
  color: #f7faef;
}

.nav-item.is-active svg {
  color: var(--citron);
}

.sidebar-foot {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.privacy-note {
  display: flex;
  gap: 10px;
  padding: 13px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--jade);
}

.privacy-note div {
  display: grid;
  gap: 3px;
}

.privacy-note strong {
  font-size: 12px;
  font-weight: 600;
}

.privacy-note span {
  color: var(--muted);
  font-size: 11px;
}

.source-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 7px;
  border: 0;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.source-button:hover {
  color: var(--jade);
}

.source-button svg {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--muted);
}

.source-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}

.source-dot.is-imported {
  background: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-soft);
}

.app-column {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 245, 238, 0.86);
  backdrop-filter: blur(14px);
}

.topbar-copy {
  min-width: 0;
}

.topbar-copy p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.topbar-copy h1 {
  overflow: hidden;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 580;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.range-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.55);
}

.range-switcher button {
  min-width: 49px;
  height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.range-switcher button:hover {
  color: var(--ink);
}

.range-switcher button.is-active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 34, 28, 0.1);
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button {
  min-height: 39px;
  gap: 8px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 550;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-dark {
  background: var(--ink);
  color: #f7faef;
}

.button-dark:hover {
  background: var(--jade-deep);
}

.button-light {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-light:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.button:active,
.icon-button:active {
  transform: translateY(1px);
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: transparent;
}

.icon-button:hover {
  background: rgba(23, 34, 28, 0.07);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

[data-tooltip]::after {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 50;
  width: max-content;
  max-width: 180px;
  padding: 6px 8px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: 150ms ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.mobile-brand,
.mobile-nav,
.mobile-only {
  display: none;
}

#mainContent {
  padding: 0 clamp(24px, 4vw, 58px) 64px;
  outline: none;
}

.view-enter {
  animation: view-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sample-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  margin-top: 20px;
  padding: 8px 13px;
  border: 1px solid #e8d4bd;
  border-radius: var(--radius);
  background: #fbf4e8;
  color: #765a34;
  font-size: 12px;
}

.sample-banner svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.sample-banner button {
  margin-left: auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #765a34;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 348px;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.22fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding: 42px 0 38px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 40px;
  left: 46%;
  width: 1px;
  height: calc(100% - 80px);
  background: linear-gradient(transparent, var(--line-strong), transparent);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 600;
}

.kicker::before {
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h2 {
  max-width: 590px;
  margin: 17px 0 15px;
  font-family: var(--display-font);
  font-size: clamp(30px, 3.5vw, 49px);
  font-weight: 540;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h2 em {
  color: var(--jade);
  font-style: normal;
}

.hero-description {
  max-width: 470px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 27px;
}

.hero-fact {
  display: grid;
  gap: 2px;
}

.hero-fact strong {
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 620;
}

.hero-fact span {
  color: var(--muted);
  font-size: 11px;
}

.rhythm-wrap {
  position: relative;
  min-width: 0;
}

.rhythm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.rhythm-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line,
.legend-dot {
  display: inline-block;
  flex: 0 0 auto;
}

.legend-line {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--jade);
}

.legend-line.sleep {
  background: var(--sky);
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.rhythm-chart {
  width: 100%;
  height: 220px;
  overflow: visible;
}

.chart-grid-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.chart-axis-label {
  fill: var(--muted);
  font-family: var(--body-font);
  font-size: 10px;
}

.rhythm-bar {
  fill: var(--jade);
  opacity: 0.2;
  transition:
    opacity 160ms ease,
    y 300ms ease,
    height 300ms ease;
}

.rhythm-bar:hover {
  opacity: 0.42;
}

.rhythm-line {
  fill: none;
  stroke: var(--sky);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  filter: drop-shadow(0 3px 4px rgba(136, 183, 201, 0.24));
}

.rhythm-line-area {
  fill: url(#sleepArea);
}

.rhythm-point {
  fill: var(--surface);
  stroke: var(--sky);
  stroke-width: 2;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metric {
  position: relative;
  min-width: 0;
  padding: 28px 24px 26px clamp(20px, 2.2vw, 33px);
  border-right: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border-right: 0;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.metric-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade);
}

.metric:nth-child(2) .metric-icon {
  background: var(--sky-soft);
  color: #4e8499;
}

.metric:nth-child(3) .metric-icon {
  background: var(--coral-soft);
  color: #a85c41;
}

.metric:nth-child(4) .metric-icon {
  background: #f7edce;
  color: #997322;
}

.metric-icon svg {
  width: 15px;
  height: 15px;
}

.metric-value {
  display: flex;
  min-height: 55px;
  align-items: baseline;
  gap: 6px;
  margin-top: 17px;
}

.metric-value strong {
  font-family: var(--display-font);
  font-size: clamp(31px, 3.2vw, 43px);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-value span {
  color: var(--muted);
  font-size: 12px;
}

.metric-foot {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

.delta svg {
  width: 12px;
  height: 12px;
}

.delta.up {
  color: var(--jade);
}

.delta.down {
  color: var(--danger);
}

.delta.neutral {
  color: var(--muted);
}

.content-section {
  padding: 36px 0 8px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2,
.view-intro h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
}

.section-link:hover {
  color: var(--jade);
}

.section-link svg {
  width: 14px;
  height: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.9);
  overflow: hidden;
}

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

.panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.panel-total {
  text-align: right;
}

.panel-total strong {
  display: block;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 580;
}

.panel-total span {
  color: var(--muted);
  font-size: 10px;
}

.chart-shell {
  width: 100%;
  min-width: 0;
}

.chart-shell svg {
  width: 100%;
  overflow: visible;
}

.bar-chart {
  height: 226px;
}

.bar-rect {
  fill: var(--jade);
  opacity: 0.82;
  transition:
    opacity 150ms ease,
    filter 150ms ease;
}

.bar-rect.is-today {
  fill: var(--citron);
  stroke: var(--jade);
  stroke-width: 1;
}

.bar-rect:hover {
  opacity: 1;
  filter: brightness(1.03);
}

.chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.chart-tooltip {
  position: fixed;
  z-index: 80;
  min-width: 130px;
  max-width: 210px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: var(--ink);
  color: #f8faf3;
  font-size: 11px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 100ms ease;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 1px;
  color: var(--citron);
  font-size: 12px;
  font-weight: 600;
}

.activity-panel {
  display: flex;
  min-height: 314px;
  flex-direction: column;
}

.ring-wrap {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 205px;
  place-items: center;
}

.ring-chart {
  width: 188px;
  height: 188px;
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 9;
}

.ring-value {
  fill: none;
  stroke-linecap: round;
  stroke-width: 9;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.ring-center {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
}

.ring-center strong {
  font-family: var(--display-font);
  font-size: 34px;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ring-center span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.ring-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ring-legend-item {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ring-legend-item span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.ring-legend-item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.ring-legend-item strong {
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 600;
}

.insight-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 0;
}

.insight-hero {
  position: relative;
  flex: 1;
  min-height: 248px;
  padding: 26px;
  background: var(--ink);
  color: #f3f7ec;
  overflow: hidden;
}

.insight-hero::after {
  position: absolute;
  right: -42px;
  bottom: -55px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(220, 233, 141, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 0 23px rgba(220, 233, 141, 0.05),
    0 0 0 51px rgba(220, 233, 141, 0.035);
  content: "";
}

.insight-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--citron);
  font-size: 11px;
}

.insight-label svg {
  width: 15px;
  height: 15px;
}

.insight-hero h3 {
  max-width: 280px;
  margin: 22px 0 12px;
  font-family: var(--display-font);
  font-size: 25px;
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.insight-hero p {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin: 0;
  color: rgba(243, 247, 236, 0.63);
  font-size: 12px;
  line-height: 1.8;
}

.insight-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 18px 25px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(243, 247, 236, 0.7);
  font-size: 10px;
}

.insight-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.insight-foot svg {
  width: 13px;
  height: 13px;
  color: var(--citron);
}

.sleep-chart {
  display: grid;
  gap: 11px;
  min-height: 216px;
}

.sleep-row {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.sleep-day,
.sleep-value {
  color: var(--muted);
  font-size: 10px;
}

.sleep-value {
  text-align: right;
}

.sleep-track {
  display: flex;
  height: 12px;
  gap: 2px;
  border-radius: 3px;
  background: #edf0e9;
  overflow: hidden;
}

.sleep-segment {
  height: 100%;
  min-width: 0;
}

.sleep-deep {
  background: #456d91;
}

.sleep-core {
  background: var(--sky);
}

.sleep-rem {
  background: #b1c9c6;
}

.sleep-awake {
  background: var(--coral);
}

.sleep-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 10px;
}

.sleep-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sleep-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.workout-list {
  display: grid;
}

.workout-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}

.workout-row:last-child {
  border-bottom: 0;
}

.workout-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade);
}

.workout-icon svg {
  width: 16px;
  height: 16px;
}

.workout-copy {
  min-width: 0;
}

.workout-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workout-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.workout-stats {
  color: var(--ink-soft);
  font-family: var(--display-font);
  font-size: 12px;
  text-align: right;
}

.empty-mini {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.view-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--line);
}

.view-intro p {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.view-intro-metric {
  flex: 0 0 auto;
  text-align: right;
}

.view-intro-metric strong {
  display: block;
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.view-intro-metric span {
  color: var(--muted);
  font-size: 10px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.line-chart {
  height: 206px;
}

.line-path {
  fill: none;
  stroke: var(--jade);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.line-path.heart {
  stroke: var(--coral);
}

.line-area {
  fill: url(#jadeFade);
}

.line-area.heart {
  fill: url(#coralFade);
}

.line-dot {
  fill: var(--surface);
  stroke: var(--jade);
  stroke-width: 2;
}

.line-dot.heart {
  stroke: var(--coral);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stat-strip div {
  display: grid;
  gap: 4px;
}

.stat-strip span {
  color: var(--muted);
  font-size: 10px;
}

.stat-strip strong {
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 600;
}

.sleep-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  margin-top: 16px;
}

.sleep-score-panel {
  position: relative;
  min-height: 335px;
  padding: 28px;
  border-radius: var(--radius);
  background: #203b46;
  color: #f3f7f7;
  overflow: hidden;
}

.sleep-score-panel::after {
  position: absolute;
  right: -55px;
  bottom: -84px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(222, 237, 240, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(222, 237, 240, 0.035);
  content: "";
}

.sleep-score-panel .kicker {
  color: #c8dfe4;
}

.sleep-score-panel .kicker::before {
  background: #c8dfe4;
}

.sleep-score-value {
  position: relative;
  z-index: 1;
  margin-top: 42px;
  font-family: var(--display-font);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sleep-score-value span {
  margin-left: 5px;
  font-size: 14px;
  letter-spacing: 0;
}

.sleep-score-panel h3 {
  position: relative;
  z-index: 1;
  margin: 24px 0 9px;
  font-family: var(--display-font);
  font-size: 23px;
  font-weight: 520;
}

.sleep-score-panel p {
  position: relative;
  z-index: 1;
  max-width: 270px;
  margin: 0;
  color: rgba(243, 247, 247, 0.64);
  font-size: 12px;
  line-height: 1.8;
}

.sleep-detail-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

.sleep-detail-meta div {
  display: grid;
  gap: 3px;
}

.sleep-detail-meta strong {
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 600;
}

.sleep-detail-meta span {
  color: rgba(243, 247, 247, 0.5);
  font-size: 10px;
}

.activity-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.summary-tile {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-tile span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.summary-tile strong {
  display: block;
  margin-top: 12px;
  font-family: var(--display-font);
  font-size: 27px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.summary-tile small {
  color: var(--muted);
  font-size: 10px;
}

.report-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
  margin-top: 16px;
}

.report-paper {
  min-height: 580px;
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.report-paper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.report-paper-head h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 27px;
  font-weight: 560;
}

.report-paper-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.report-stamp {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--jade);
  border-radius: 50%;
  color: var(--jade);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transform: rotate(7deg);
}

.report-lead {
  max-width: 640px;
  margin: 30px 0 0;
  font-family: var(--display-font);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.report-summary div {
  display: grid;
  gap: 5px;
}

.report-summary span {
  color: var(--muted);
  font-size: 10px;
}

.report-summary strong {
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
}

.report-notes {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.report-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
}

.report-note > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade);
}

.report-note svg {
  width: 12px;
  height: 12px;
}

.report-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.report-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.report-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.report-actions .button {
  width: 100%;
  justify-content: flex-start;
}

.report-meta {
  margin-top: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.8);
}

.report-meta h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
}

.report-meta dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.report-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.report-meta dt {
  color: var(--muted);
  font-size: 10px;
}

.report-meta dd {
  margin: 0;
  font-size: 10px;
  text-align: right;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 25, 20, 0.34);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.drawer-scrim.is-open {
  opacity: 1;
}

.import-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(480px, 100vw);
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 320ms;
}

.import-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 21px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 10px 0 0;
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: 560;
}

.drawer-body {
  padding: 26px 28px 34px;
}

.privacy-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid #cfe0d7;
  border-radius: var(--radius);
  background: #edf5f0;
  color: var(--ink-soft);
}

.privacy-callout svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--jade);
}

.privacy-callout p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.drawer-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.step-number {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 10px;
}

.drawer-step h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.drawer-step p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

code {
  padding: 1px 4px;
  border-radius: 3px;
  background: #e9ede5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.93em;
}

.drop-zone {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin-top: 26px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(220, 233, 141, 0.08), transparent 52%),
    #f7f9f4;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--jade);
  background-color: #f0f7f1;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.drop-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--citron);
}

.drop-icon svg {
  width: 19px;
  height: 19px;
}

.drop-zone strong {
  font-size: 13px;
  font-weight: 600;
}

.drop-zone > span:last-child {
  color: var(--muted);
  font-size: 10px;
}

.import-progress {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-strong);
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 11px;
}

.progress-label strong {
  font-family: var(--display-font);
  font-weight: 600;
}

.progress-track {
  height: 5px;
  margin-top: 11px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
  transition: width 180ms ease;
}

.import-error {
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid #ecc8bf;
  border-radius: 6px;
  background: #fbefeb;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.65;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--jade);
}

.text-button.danger {
  color: var(--danger);
}

.text-button svg {
  width: 14px;
  height: 14px;
}

.cloud-sync-panel {
  margin-top: 24px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(220, 233, 141, 0.16), transparent 58%),
    #f7f9f4;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.cloud-sync-panel.is-connected {
  border-color: #b9d3c5;
  background:
    linear-gradient(135deg, rgba(220, 233, 141, 0.2), transparent 58%),
    #f3f8f3;
}

.cloud-sync-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cloud-sync-head > div {
  display: grid;
  gap: 5px;
}

.cloud-sync-head strong {
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 600;
}

.cloud-sync-dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--line-strong);
}

.cloud-sync-dot.is-live {
  background: var(--jade);
  box-shadow: 0 0 0 5px rgba(24, 119, 95, 0.1);
}

.cloud-sync-panel.is-syncing .cloud-sync-dot {
  background: var(--jade);
  animation: cloud-sync-pulse 1.2s ease-in-out infinite;
}

.cloud-sync-panel > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.cloud-sync-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(196, 206, 194, 0.7);
}

.cloud-sync-actions .text-button:first-child {
  color: var(--jade-deep);
  font-weight: 600;
}

.cloud-auth {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(12, 34, 25, 0.2), rgba(12, 34, 25, 0.2)),
    rgba(17, 30, 23, 0.55);
  backdrop-filter: blur(9px);
  opacity: 0;
  overflow-y: auto;
  transition: opacity 220ms ease;
}

.cloud-auth[hidden] {
  display: none;
}

.cloud-auth.is-open {
  opacity: 1;
}

.cloud-auth-card {
  width: min(440px, 100%);
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(220, 233, 141, 0.16), transparent 48%),
    var(--surface);
  box-shadow: 0 30px 80px rgba(10, 25, 16, 0.3);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cloud-auth.is-open .cloud-auth-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cloud-auth-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  overflow: hidden;
}

.cloud-auth-mark span {
  position: absolute;
  width: 20px;
  height: 4px;
  border-radius: 4px;
  background: var(--citron);
}

.cloud-auth-mark span:first-child {
  transform: translateY(-7px) rotate(-8deg);
}

.cloud-auth-mark span:nth-child(2) {
  width: 25px;
  transform: rotate(7deg);
}

.cloud-auth-mark span:last-child {
  width: 14px;
  transform: translateY(8px) rotate(-5deg);
  background: var(--coral);
}

.cloud-auth-card h2 {
  margin: 10px 0 0;
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: 560;
}

.cloud-auth-card > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.cloud-auth-card form {
  margin-top: 23px;
}

.cloud-auth-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.cloud-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cloud-token-row input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.cloud-token-row input:focus {
  border-color: var(--jade);
  outline: none;
  box-shadow: 0 0 0 3px rgba(24, 119, 95, 0.12);
}

.cloud-token-row .button {
  min-height: 44px;
  padding: 0 16px;
}

.cloud-token-row .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.cloud-auth-error {
  margin: 11px 0 0;
  padding: 9px 11px;
  border-radius: 5px;
  background: var(--coral-soft);
  color: var(--danger);
  font-size: 11px;
  line-height: 1.55;
}

.cloud-auth-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

@keyframes cloud-sync-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(24, 119, 95, 0.26);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(24, 119, 95, 0);
  }
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 15px;
  border-radius: 6px;
  background: var(--ink);
  color: #f7faef;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 202px;
  }

  .hero {
    grid-template-columns: minmax(250px, 0.82fr) minmax(360px, 1.18fr);
    gap: 36px;
  }

  .metric {
    padding-right: 17px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  }
}

@media (max-width: 960px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    display: none;
  }

  .app-column {
    margin-left: 0;
  }

  .topbar {
    min-height: 84px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .mobile-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    font-family: var(--display-font);
    font-size: 14px;
  }

  .mobile-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .mobile-brand .brand-mark span {
    width: 14px;
    height: 3px;
  }

  .mobile-brand .brand-mark span:nth-child(2) {
    width: 18px;
  }

  .topbar-copy {
    display: none;
  }

  #mainContent {
    padding-bottom: 94px;
  }

  .mobile-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
    border: 1px solid rgba(220, 226, 216, 0.8);
    border-radius: 9px;
    background: rgba(251, 252, 248, 0.94);
    box-shadow: 0 10px 28px rgba(23, 34, 28, 0.13);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    display: grid;
    min-height: 50px;
    place-items: center;
    align-content: center;
    gap: 4px;
    border-radius: 6px;
    font-size: 9px;
  }

  .mobile-nav button.is-active {
    background: var(--ink);
    color: #f7faef;
  }

  .mobile-nav button.is-active svg {
    color: var(--citron);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .hero::before {
    display: none;
  }

  .metric-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .metric:nth-child(3) {
    padding-left: 0;
  }

  .dashboard-grid,
  .sleep-summary,
  .report-shell {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    min-height: 310px;
  }

  .sleep-score-panel {
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .range-switcher button {
    min-width: 42px;
    padding: 0 7px;
  }

  #importButton {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  #mainContent {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sample-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 14px;
  }

  .sample-banner button {
    margin-left: 26px;
  }

  .hero {
    min-height: 0;
    padding: 32px 0 28px;
  }

  .hero h2 {
    font-size: clamp(31px, 10.4vw, 43px);
  }

  .hero-description {
    font-size: 13px;
  }

  .rhythm-chart {
    height: 190px;
  }

  .rhythm-bar {
    opacity: 0.32;
  }

  .rhythm-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .metric {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .metric-value strong {
    font-size: 32px;
  }

  .metric-value {
    min-height: 46px;
  }

  .content-section {
    padding-top: 28px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .panel {
    padding: 19px;
  }

  .detail-grid,
  .trend-grid {
    grid-template-columns: 1fr;
  }

  .activity-summary-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .view-intro {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 28px;
  }

  .view-intro-metric {
    text-align: left;
  }

  .report-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-paper {
    min-height: 0;
    padding: 23px 20px;
  }

  .report-paper-head h2 {
    font-size: 23px;
  }

  .report-stamp {
    width: 50px;
    height: 50px;
  }

  .drawer-head {
    padding: 22px 20px 18px;
  }

  .drawer-body {
    padding: 22px 20px 30px;
  }

  .cloud-auth {
    align-items: start;
    padding: 16px;
  }

  .cloud-auth-card {
    margin: 5vh 0 0;
    padding: 25px 21px;
  }

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

  .cloud-token-row .button {
    justify-content: center;
  }

  .toast {
    right: 20px;
    bottom: 86px;
    left: 20px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .mobile-brand strong {
    display: none;
  }

  .metric {
    padding-right: 12px;
    padding-left: 12px;
  }

  .metric:first-child,
  .metric:nth-child(3) {
    padding-left: 0;
  }

  .metric-head {
    font-size: 11px;
  }

  .metric-value strong {
    font-size: 28px;
  }

  .metric-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .sleep-row {
    grid-template-columns: 30px minmax(0, 1fr) 38px;
    gap: 7px;
  }

  .ring-legend {
    gap: 5px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .mobile-nav,
  .sample-banner,
  .report-actions,
  .report-meta {
    display: none !important;
  }

  .app-column {
    margin: 0;
  }

  #mainContent {
    padding: 0;
  }

  .report-shell {
    display: block;
    margin: 0;
  }

  .report-paper {
    min-height: 0;
    border: 0;
  }
}

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