/* /Pages/About.razor.rz.scp.css */
.about-page[b-u7x86xqqtl] {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-hero[b-u7x86xqqtl] {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 2.5rem;
}

.about-hero > div > p:not(.eyebrow)[b-u7x86xqqtl] {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-actions[b-u7x86xqqtl] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.about-actions a[b-u7x86xqqtl] {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.about-callout[b-u7x86xqqtl] {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.8rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-callout strong[b-u7x86xqqtl] {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.about-callout span[b-u7x86xqqtl] {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.about-index[b-u7x86xqqtl] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: -1rem;
}

.about-index a[b-u7x86xqqtl] {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.about-index a:hover[b-u7x86xqqtl] {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.about-section[b-u7x86xqqtl] {
  scroll-margin-top: 95px;
}

.about-section > h2[b-u7x86xqqtl] {
  margin-bottom: 1rem;
}

.about-grid[b-u7x86xqqtl] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.about-grid.three-up[b-u7x86xqqtl] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid article[b-u7x86xqqtl],
.term-list > div[b-u7x86xqqtl] {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.about-grid h3[b-u7x86xqqtl],
.about-warning h3[b-u7x86xqqtl] {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.about-grid p[b-u7x86xqqtl],
.about-note[b-u7x86xqqtl],
.term-list dd[b-u7x86xqqtl],
.legal-section > p[b-u7x86xqqtl] {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.about-number[b-u7x86xqqtl] {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 0.8rem;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.about-note[b-u7x86xqqtl] {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
}

.term-list[b-u7x86xqqtl] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.term-list dt[b-u7x86xqqtl] {
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.term-list dd[b-u7x86xqqtl] {
  margin-left: 0;
}

.legal-section > p[b-u7x86xqqtl] {
  max-width: 900px;
  margin-bottom: 0.75rem;
}

.legal-section > p strong[b-u7x86xqqtl] {
  color: var(--ink);
}

.terms-version[b-u7x86xqqtl] {
  font-size: 0.74rem !important;
}

.about-warning[b-u7x86xqqtl] {
  scroll-margin-top: 95px;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid #d9bd7a;
  border-radius: 14px;
  background: #fff7e5;
  color: #5f4c24;
}

.about-warning p[b-u7x86xqqtl] {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.about-warning p:last-child[b-u7x86xqqtl] {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .about-page[b-u7x86xqqtl] {
    gap: 2rem;
  }

  .about-hero[b-u7x86xqqtl],
  .about-grid[b-u7x86xqqtl],
  .about-grid.three-up[b-u7x86xqqtl],
  .term-list[b-u7x86xqqtl] {
    grid-template-columns: 1fr;
  }

  .about-hero[b-u7x86xqqtl] {
    gap: 1.2rem;
  }

  .about-hero > div > p:not(.eyebrow)[b-u7x86xqqtl] {
    font-size: 0.88rem;
  }

  .about-callout[b-u7x86xqqtl] {
    padding: 1rem;
    box-shadow: none;
  }

  .about-index[b-u7x86xqqtl] {
    flex-wrap: nowrap;
    margin-top: -0.5rem;
    padding-bottom: 0.35rem;
    overflow-x: auto;
  }

  .about-index a[b-u7x86xqqtl] {
    flex: 0 0 auto;
  }
}

@media (prefers-color-scheme: dark) {
  .about-warning[b-u7x86xqqtl] {
    border-color: #806d3c;
    background: #362f1f;
    color: #eadcae;
  }
}
/* /Pages/Stats.razor.rz.scp.css */
.stats-page[b-u8g7sebpl4] {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}

.stats-heading[b-u8g7sebpl4] {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.stats-intro[b-u8g7sebpl4] {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.stats-range[b-u8g7sebpl4] {
  flex: 0 0 auto;
}

.stats-loading[b-u8g7sebpl4],
.chart-empty[b-u8g7sebpl4] {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.stats-empty[b-u8g7sebpl4] {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.75rem;
}

.stats-empty p[b-u8g7sebpl4] {
  margin: 0;
}

.stats-action[b-u8g7sebpl4] {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  text-decoration: none;
}

.local-summary[b-u8g7sebpl4] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: -1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.local-indicator[b-u8g7sebpl4] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #278167;
  box-shadow: 0 0 0 4px rgb(39 129 103 / 13%);
}

.metric-section[b-u8g7sebpl4],
.chart-section[b-u8g7sebpl4],
.histogram-section[b-u8g7sebpl4] {
  min-width: 0;
}

.stats-section-heading[b-u8g7sebpl4] {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-grid[b-u8g7sebpl4] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-card[b-u8g7sebpl4] {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 145px;
  flex-direction: column;
  padding: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(30 52 49 / 4%);
}

.metric-card[b-u8g7sebpl4]::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: #a7bbb5;
  content: "";
}

.metric-card.intake-metric[b-u8g7sebpl4]::before {
  background: #3b8dbd;
}

.metric-card.output-metric[b-u8g7sebpl4]::before {
  background: #705ca8;
}

.metric-card > span[b-u8g7sebpl4] {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card strong[b-u8g7sebpl4] {
  margin: auto 0 0.5rem;
  overflow-wrap: anywhere;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.metric-card small[b-u8g7sebpl4] {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.chart-title[b-u8g7sebpl4] {
  align-items: center;
  margin-bottom: 0.55rem;
}

.chart-description[b-u8g7sebpl4],
.chart-note[b-u8g7sebpl4] {
  max-width: 800px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.chart-description[b-u8g7sebpl4] {
  margin-bottom: 1rem;
}

.chart-note[b-u8g7sebpl4] {
  margin: 0.8rem 0 0;
}

.chart-legend[b-u8g7sebpl4] {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.chart-legend span[b-u8g7sebpl4] {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch[b-u8g7sebpl4] {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.legend-swatch.intake[b-u8g7sebpl4],
.volume-bar.intake[b-u8g7sebpl4] {
  background: #4c9cc7;
}

.legend-swatch.output[b-u8g7sebpl4],
.volume-bar.output[b-u8g7sebpl4] {
  background: #7964b2;
}

.volume-chart[b-u8g7sebpl4] {
  display: grid;
  min-height: 310px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1rem 1rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(to bottom, transparent 0, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px), transparent 100%),
    var(--surface);
}

.volume-scale[b-u8g7sebpl4] {
  display: flex;
  width: 58px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0.5rem 1.65rem 0;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: right;
}

.volume-plot[b-u8g7sebpl4] {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(var(--day-count), minmax(10px, 1fr));
  gap: 0.28rem;
}

.volume-day[b-u8g7sebpl4] {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(230px, 1fr) 1.4rem;
}

.volume-bars[b-u8g7sebpl4] {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.volume-bar[b-u8g7sebpl4] {
  width: min(12px, 44%);
  min-height: 0;
  border-radius: 4px 4px 1px 1px;
  transition: height 180ms ease;
}

.volume-day time[b-u8g7sebpl4] {
  overflow: visible;
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: 0.6rem;
  text-align: center;
  white-space: nowrap;
}

.chart-data[b-u8g7sebpl4] {
  margin-top: 0.8rem;
  border-color: var(--line);
  background: var(--surface);
}

.chart-data summary[b-u8g7sebpl4] {
  font-size: 0.78rem;
}

.table-scroll[b-u8g7sebpl4] {
  margin-top: 0.8rem;
  overflow-x: auto;
}

.chart-data table[b-u8g7sebpl4] {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.chart-data th[b-u8g7sebpl4],
.chart-data td[b-u8g7sebpl4] {
  padding: 0.55rem 0.65rem;
  border-top: 1px solid var(--line);
  text-align: right;
}

.chart-data th:first-child[b-u8g7sebpl4],
.chart-data td:first-child[b-u8g7sebpl4] {
  text-align: left;
}

.balance-panel[b-u8g7sebpl4] {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.balance-title[b-u8g7sebpl4] {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.balance-title h3[b-u8g7sebpl4] {
  margin: 0;
  font-size: 1.2rem;
}

.balance-date[b-u8g7sebpl4] {
  flex: 0 0 auto;
}

.balance-legend[b-u8g7sebpl4] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.balance-legend span[b-u8g7sebpl4] {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.line-swatch[b-u8g7sebpl4] {
  width: 22px;
  height: 0;
  border-top: 3px solid #176f68;
}

.line-swatch.estimated[b-u8g7sebpl4] {
  border-top-color: #a06a24;
  border-top-style: dashed;
}

.range-swatch[b-u8g7sebpl4] {
  width: 22px;
  height: 10px;
  border: 1px solid rgb(160 106 36 / 35%);
  border-radius: 3px;
  background: rgb(225 183 103 / 28%);
}

.balance-chart-wrap[b-u8g7sebpl4] {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.balance-chart[b-u8g7sebpl4] {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

.balance-grid[b-u8g7sebpl4] {
  stroke: var(--line);
  stroke-width: 1;
}

.balance-zero[b-u8g7sebpl4] {
  stroke: var(--muted);
  stroke-dasharray: 4 5;
  stroke-width: 1;
  opacity: 0.65;
}

.balance-range[b-u8g7sebpl4] {
  fill: rgb(225 183 103 / 28%);
  stroke: none;
}

.balance-line[b-u8g7sebpl4] {
  fill: none;
  stroke: #176f68;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.balance-line.estimated[b-u8g7sebpl4] {
  stroke: #a06a24;
  stroke-dasharray: 7 5;
}

.balance-point[b-u8g7sebpl4] {
  fill: var(--surface);
  stroke: #176f68;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.balance-point.estimated[b-u8g7sebpl4] {
  stroke: #a06a24;
}

.balance-axis-value[b-u8g7sebpl4],
.balance-axis-time[b-u8g7sebpl4] {
  fill: var(--muted);
  font-family: inherit;
  font-size: 11px;
}

.balance-summary[b-u8g7sebpl4] {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.balance-summary strong[b-u8g7sebpl4] {
  color: var(--ink);
}

.balance-data[b-u8g7sebpl4] {
  margin-top: 0.65rem;
}

.compact-empty[b-u8g7sebpl4] {
  padding: 1.2rem;
}

.histogram-grid[b-u8g7sebpl4] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.histogram-card[b-u8g7sebpl4] {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(30 52 49 / 4%);
}

.histogram-card header[b-u8g7sebpl4] {
  min-height: 72px;
  margin-bottom: 0.8rem;
}

.histogram-card h3[b-u8g7sebpl4] {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.histogram-card header p[b-u8g7sebpl4],
.mini-empty[b-u8g7sebpl4] {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.mini-empty[b-u8g7sebpl4] {
  padding: 1.2rem 0;
}

.histogram-row[b-u8g7sebpl4] {
  display: grid;
  min-height: 35px;
  grid-template-columns: minmax(82px, 1.25fr) minmax(70px, 2fr) 2rem;
  align-items: center;
  gap: 0.5rem;
}

.histogram-label[b-u8g7sebpl4] {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.histogram-track[b-u8g7sebpl4] {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--primary-soft);
}

.histogram-track i[b-u8g7sebpl4] {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.output-histogram .histogram-track i[b-u8g7sebpl4] {
  background: #7964b2;
}

.urge-histogram .histogram-track i[b-u8g7sebpl4] {
  background: #b25f91;
}

.time-histogram .histogram-track i[b-u8g7sebpl4] {
  background: #3b8f83;
}

.histogram-row strong[b-u8g7sebpl4] {
  font-size: 0.78rem;
  text-align: right;
}

@media (max-width: 900px) {
  .metric-grid[b-u8g7sebpl4],
  .histogram-grid[b-u8g7sebpl4] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-histogram[b-u8g7sebpl4] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .stats-page[b-u8g7sebpl4] {
    gap: 1.7rem;
  }

  .stats-heading[b-u8g7sebpl4] {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
  }

  .stats-intro[b-u8g7sebpl4] {
    font-size: 0.85rem;
  }

  .stats-range[b-u8g7sebpl4] {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .local-summary[b-u8g7sebpl4] {
    margin-top: -0.8rem;
  }

  .metric-grid[b-u8g7sebpl4] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .metric-card[b-u8g7sebpl4] {
    min-height: 126px;
    padding: 0.85rem;
    border-radius: 14px;
  }

  .metric-card strong[b-u8g7sebpl4] {
    font-size: 1.45rem;
  }

  .metric-card small[b-u8g7sebpl4] {
    font-size: 0.66rem;
  }

  .chart-title[b-u8g7sebpl4] {
    align-items: flex-start;
    flex-direction: column;
  }

  .balance-panel[b-u8g7sebpl4] {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
  }

  .balance-title[b-u8g7sebpl4] {
    align-items: stretch;
    flex-direction: column;
  }

  .balance-date[b-u8g7sebpl4] {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .balance-chart-wrap[b-u8g7sebpl4] {
    border-radius: 14px;
  }

  .balance-chart[b-u8g7sebpl4] {
    min-width: 640px;
  }

  .volume-chart[b-u8g7sebpl4] {
    min-height: 260px;
    padding: 0.8rem 0.6rem 0.4rem;
    overflow-x: auto;
  }

  .volume-scale[b-u8g7sebpl4] {
    position: sticky;
    z-index: 2;
    left: 0;
    width: 46px;
    background: var(--surface);
  }

  .volume-plot[b-u8g7sebpl4] {
    width: max(100%, calc(var(--day-count) * 18px));
  }

  .volume-day[b-u8g7sebpl4] {
    grid-template-rows: minmax(190px, 1fr) 1.4rem;
  }

  .histogram-grid[b-u8g7sebpl4] {
    grid-template-columns: 1fr;
  }

  .time-histogram[b-u8g7sebpl4] {
    grid-column: auto;
  }
}
