/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #0b1120;
  --panel: #111827;
  --panel-soft: #172033;
  --border: rgba(148, 163, 184, 0.2);
  --text: #e5edf7;
  --muted: #95a3b8;
  --accent: #38bdf8;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #f87171;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.13), transparent 34rem),
    linear-gradient(135deg, #0b1120 0%, #101827 52%, #111827 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

main {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-gap: 24px;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  margin: 0;
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 16px 0 0;
}

.freshness {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.78);
  padding: 16px;
}

.freshness span,
.freshness small {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.freshness strong {
  display: block;
  font-size: 24px;
  margin: 7px 0;
}

.heroActions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.heroActions a {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
}

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

.panel {
  min-width: 0;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.9);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  padding: 16px;
}

.panel.wide {
  grid-column: span 2;
}

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

.panelHeader svg {
  color: var(--accent);
  flex: 0 0 auto;
}

.panelIndex {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

h2 {
  font-size: 20px;
  margin: 0;
}

.panelDescription {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 7px 0 0;
  max-width: 620px;
}

.readinessLayout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 12px;
}

.scoreBlock {
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.04));
  padding: 16px;
}

.scoreLabel {
  color: var(--muted);
  font-size: 13px;
}

.scoreBlock strong {
  display: block;
  font-size: 64px;
  line-height: 0.95;
  margin-top: 8px;
}

.scoreBlock p {
  color: #bbf7d0;
  font-weight: 700;
  line-height: 1.3;
  margin: 10px 0 0;
}

.kpiGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 14px;
}

.kpiGrid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpiGrid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpiGrid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.verticalMetrics {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.kpi {
  min-height: 118px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.kpi span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.kpi strong {
  display: block;
  font-size: 28px;
  line-height: 1.05;
  margin: 9px 0 5px;
  overflow-wrap: anywhere;
}

.kpi small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.kpi em {
  color: #cbd5e1;
  display: block;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  margin-top: auto;
  padding-top: 8px;
}

.kpi.good strong {
  color: var(--green);
}

.kpi.warn strong {
  color: var(--amber);
}

.kpi.bad strong {
  color: var(--red);
}

.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.empty {
  align-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  justify-content: center;
  min-height: 150px;
  padding: 20px;
  text-align: center;
}

.chartSvg {
  display: block;
  height: var(--chart-height, 280px);
  overflow: visible;
  width: 100%;
}

.compactChart {
  height: var(--chart-height, 170px);
}

.svgGrid line {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
}

.svgLabels text {
  fill: var(--muted);
  font-size: 14px;
}

.areaDaily {
  fill: rgba(56, 189, 248, 0.14);
}

.lineDaily,
.lineAtl,
.lineCtl,
.lineReadiness,
.lineWeight {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.lineDaily {
  stroke: #38bdf8;
}

.lineAtl {
  stroke: #f97316;
}

.lineCtl {
  stroke: #22c55e;
}

.lineReadiness,
.dotReadiness {
  stroke: #22c55e;
}

.lineWeight,
.dotWeight {
  stroke: #f97316;
}

.metricLine {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.dotReadiness,
.dotWeight {
  fill: #111827;
  stroke-width: 3;
}

.barChart,
.macroChart {
  align-items: flex-end;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  gap: 8px;
  padding-top: 12px;
}

.barColumn,
.macroGroup {
  align-items: center;
  display: flex;
  flex: 1 1;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  justify-content: flex-end;
  min-width: 20px;
}

.barFill {
  border-radius: 5px 5px 0 0;
  min-height: 4px;
  width: 100%;
}

.barFill.sleep {
  background: #818cf8;
}

.barColumn span,
.macroGroup span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.macroBars {
  align-items: flex-end;
  display: flex;
  gap: 3px;
  height: calc(100% - 18px);
  justify-content: center;
  width: 100%;
}

.macroBars div {
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  width: 30%;
}

.miniList {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.bodyFacts {
  margin-top: 12px;
}

.bodyHero h1 {
  max-width: 980px;
}

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

.bodyGrid .wide {
  grid-column: span 2;
}

.bodyLead {
  align-items: stretch;
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  grid-template-columns: 230px minmax(0, 1fr);
  margin-bottom: 14px;
}

.bodyLead > div:first-child {
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0.04));
  padding: 16px;
}

.bodyLead span,
.bodyLead small,
.goalProgress span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.bodyLead strong {
  display: block;
  font-size: 44px;
  line-height: 1;
  margin: 9px 0 6px;
}

.goalProgress {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 16px;
}

.goalProgress > div:first-child {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.goalProgress strong {
  font-size: 38px;
}

.goalTrack {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.goalTrack div {
  background: linear-gradient(90deg, #f97316, #22c55e);
  border-radius: inherit;
  height: 100%;
}

.miniRow {
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 90px 1fr auto;
  min-height: 42px;
  padding-bottom: 8px;
}

.miniRow span,
.miniRow small {
  color: var(--muted);
  font-size: 13px;
}

.miniRow strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activityTable {
  display: grid;
  grid-gap: 0;
  gap: 0;
  overflow-x: auto;
}

.tableHead,
.tableRow {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: 72px minmax(160px, 1fr) 80px 100px 80px 80px;
  min-width: 650px;
}

.tableHead {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0 0 10px;
  text-transform: uppercase;
}

.tableRow {
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 14px;
  min-height: 44px;
}

.tableRow strong {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stackList {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 14px;
}

.stackRow {
  align-items: center;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 82px minmax(0, 1fr) 48px;
}

.stackRow span {
  color: var(--muted);
  font-size: 13px;
  text-transform: capitalize;
}

.stackRow strong {
  font-size: 13px;
  text-align: right;
}

.stackTrack {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.stackTrack div {
  border-radius: inherit;
  height: 100%;
}

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

@media (max-width: 820px) {
  main {
    width: min(100% - 24px, 720px);
    padding-top: 20px;
  }

  .hero,
  .dashboardGrid,
  .readinessLayout {
    grid-template-columns: 1fr;
  }

  .panel.wide {
    grid-column: span 1;
  }

  .kpiGrid,
  .kpiGrid.three,
  .kpiGrid.four,
  .kpiGrid.two {
    grid-template-columns: 1fr;
  }

  .bodyGrid,
  .bodyLead {
    grid-template-columns: 1fr;
  }

  .bodyGrid .wide {
    grid-column: span 1;
  }

  .barChart {
    gap: 4px;
    overflow: hidden;
  }

  .barColumn span {
    font-size: 10px;
  }

  .tableHead {
    display: none;
  }

  .tableRow {
    background: rgba(23, 32, 51, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    font-size: 12px;
    gap: 8px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
    min-height: 0;
    min-width: 0;
    padding: 12px;
  }

  .tableRow strong {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .tableRow span:first-child {
    color: var(--accent);
    font-weight: 800;
  }

  h1 {
    font-size: 36px;
  }

  .scoreBlock strong {
    font-size: 56px;
  }
}

