/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: dark;
}

html,
body {
  padding: 0;
  margin: 0;
  background: #0b0f14;
  color: #e6edf3;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  /* leave room for the fixed elevation dock */
  padding-bottom: 210px;
}

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

.card {
  background: #0f1620;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px;
}

.muted {
  color: rgba(230, 237, 243, 0.65);
}

.kpi {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.kpiLabel {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 237, 243, 0.7);
}

/* Metric label semantics */
.metricLabelApi {
  color: rgba(230, 237, 243, 0.55);
}

.metricLabelCalc {
  color: rgba(88, 186, 255, 0.95);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0f14;
  color: #e6edf3;
}

/* Top nav + quality chiplets */
.topNav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 40;
  margin: -24px -24px 14px -24px;
  padding: 14px 24px;
  background: rgba(11, 15, 20, 0.72);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topNavInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topNavTitle {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topNavRight {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.topNavChipRow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.qchip {
  gap: 8px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.qdot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.qdotNone {
  background: rgba(255, 255, 255, 0.22);
}

.qdotProv {
  background: #ff9f43;
}

.qdotFinal {
  background: #2ecc71;
}

.qpopoverWrap {
  position: relative;
  display: inline-flex;
}

.qpopover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(520px, 86vw);
  display: none;
  padding: 12px;
}

.qpopoverWrap:hover .qpopover {
  display: block;
}

.qpopoverList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qpopoverRow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.qpopoverText {
  min-width: 0;
}

/* Stage timeline (below top nav) */
.timelineWrap {
  position: -webkit-sticky;
  position: sticky;
  top: 58px; /* below .topNav */
  z-index: 35;
  /* keep within container width (no full-bleed) */
  margin: 0 0 14px 0;
  padding: 28px 14px 34px 14px; /* extra top/bottom room for labels */
  border-radius: 10px;
  background: rgba(15, 22, 32, 0.72);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Elevation profile dock (fixed bottom) */
.elevDock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 34;
  padding: 0 24px 18px 24px;
  pointer-events: none; /* allow clicking through except on the card */
}

.elevCard {
  pointer-events: auto;
  border-radius: 10px;
  background: rgba(15, 22, 32, 0.72);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 12px 10px 12px;
}

.elevHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.elevTitle {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 237, 243, 0.78);
  font-weight: 800;
}

.elevMeta {
  font-size: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.elevPlotWrap {
  position: relative;
}

.elevSvg {
  width: 100%;
  height: 120px;
  display: block;
}

.elevMarker {
  stroke-width: 2;
  stroke: rgba(255, 255, 255, 0.18);
}

.elevMarkerSprint {
  stroke: rgba(255, 212, 81, 0.95);
}

.elevMarkerKom {
  stroke: rgba(99, 102, 241, 0.95);
}

.elevMarkerFinish {
  stroke: rgba(255, 255, 255, 0.42);
}

.elevDot {
  stroke: rgba(0, 0, 0, 0.42);
  stroke-width: 1.6;
}

.elevDotLead {
  fill: #ff4d4d;
}

.elevDotPeloton {
  fill: rgba(255, 255, 255, 0.9);
}

.elevGrid {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.elevGridStrong {
  stroke: rgba(255, 255, 255, 0.18);
}

.elevAxis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 54px; /* must match ElevationProfile padL */
  pointer-events: none;
}

.elevAxisLabel {
  position: absolute;
  left: 8px;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(230, 237, 243, 0.65);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.elevAxisLabelStrong {
  color: rgba(230, 237, 243, 0.78);
}

.timelineTrack {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  /* move the track down so top labels have headroom inside the card */
  margin-top: 10px;
}

.timelineItem {
  position: absolute;
  top: 0; /* positioned relative to the grey track */
  transform: translateX(-50%); /* center tick+label by default */
  pointer-events: none;
  z-index: 2;
}

.timelineItemLeft {
  transform: translateX(0);
}

.timelineItemRight {
  transform: translateX(-100%);
}

.timelineMarker {
  position: absolute;
  top: -8px;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  left: 0;
  transform: none; /* .timelineItem is centered */
}

.timelineItemLeft .timelineMarker {
  transform: none;
}

.timelineItemRight .timelineMarker {
  transform: none;
}

.timelineMarkerSprint {
  background: #ffd451;
}

.timelineMarkerKom {
  background: rgba(255, 255, 255, 0.35);
}

.timelineMarkerStart {
  background: rgba(255, 255, 255, 0.55);
}

.timelineLabel {
  position: absolute;
  left: 0;
  transform: translateX(-50%); /* centered on the tick by default */
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(230, 237, 243, 0.78);
  white-space: nowrap;
}

.timelineItemLeft .timelineLabel {
  /* START: keep label inside by rendering to the right of the tick */
  transform: translateX(6px);
}

.timelineItemRight .timelineLabel {
  /* far-right labels should render left of the tick to stay inside bounds */
  transform: translateX(calc(-100% - 6px));
  text-align: right;
}

.timelineLabelTop {
  top: -32px;
}

.timelineLabelBottom {
  top: 18px;
  color: rgba(230, 237, 243, 0.6);
}

.timelineProgress {
  position: absolute;
  /* sit above the grey track (bottom aligned to track top) */
  top: -15px;
  transform: translateX(-50%); /* centered unless edge-aligned */
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: #ff4d4d;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.18);
  z-index: 3;
}

.timelineProgressLeft {
  transform: translateX(0);
}

.timelineProgressRight {
  transform: translateX(-100%);
}

@media (max-width: 860px) {
  .timelineWrap {
    top: 52px;
    margin: 0 0 12px 0;
    padding: 24px 12px 30px 12px;
  }

  .timelineLabel {
    font-size: 11px;
  }
}

/* Mobile ergonomics */
@media (max-width: 860px) {
  .container {
    padding: 12px;
  }

  .grid {
    gap: 10px;
  }

  .card {
    padding: 12px;
  }

  .topNav {
    margin: -12px -12px 12px -12px;
    padding: 10px 12px;
  }

  .topNavInner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .topNavTitle {
    white-space: normal;
    line-height: 1.2;
  }

  .topNavRight {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .topNavChipRow {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .topNavChipRow::-webkit-scrollbar {
    display: none;
  }

  .qchip {
    white-space: nowrap;
  }

  .pill {
    padding: 3px 9px;
    font-size: 11px;
  }

  .dashLeft,
  .dashRight {
    grid-column: span 12 !important;
  }

  /* Stage summary KPI row: avoid overlap by forcing 2-up layout */
  .stageSummaryGrid > div {
    grid-column: span 6 !important;
  }

  /* Group cards: stack full-width on phones */
  .groupCard {
    grid-column: span 12 !important;
  }

  .kpi {
    font-size: 22px;
  }
}

