﻿:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-alt: #0d1218;
  --surface: rgba(21, 27, 36, 0.96);
  --surface-soft: rgba(28, 35, 45, 0.94);
  --surface-strong: rgba(35, 43, 55, 0.98);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --text-muted: #aab5c7;
  --text-soft: #7e8aa1;
  --mint: #25dc7d;
  --teal: #2dbce5;
  --violet: #8377ff;
  --orange: #ff9e3d;
  --red: #ff6868;
  --yellow: #ffd65a;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --font-stack: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(56, 102, 255, 0.16), transparent 26%),
    radial-gradient(circle at top left, rgba(37, 220, 125, 0.12), transparent 20%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  color: var(--text);
  font-family: var(--font-stack);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1480px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

#view-overview [data-android-panel="overview"],
#view-overview .overview-sync-grid,
#view-overview .section-shell:has(.overview-sync-grid),
#view-overview .section-shell:has([data-android-panel="overview"]) {
  display: none !important;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 28px 30px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(20, 25, 33, 0.96), rgba(12, 16, 23, 0.98)),
    linear-gradient(135deg, rgba(45, 188, 229, 0.06), rgba(37, 220, 125, 0.06));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow,
.status-label,
.section-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.topbar h1,
.section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.topbar p,
.section-subtitle,
.status-card p,
.card-note,
.metric-note,
.detail-note,
.table-note,
.form-help,
.sync-copy,
.empty-state p {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.primary-button,
.ghost-button,
.small-button,
.tab-chip,
.segment-chip {
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.view-tab:hover,
.tab-chip:hover,
.segment-chip:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: #04150d;
  background: linear-gradient(135deg, var(--mint), #9bf7c3);
  font-weight: 800;
}

.ghost-button,
.small-button,
.segment-chip {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.status-card,
.panel-card,
.metric-card,
.summary-card,
.chart-card,
.detail-card,
.record-card,
.form-card,
.sync-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.status-card {
  padding: 18px 20px;
}

.status-card strong,
.metric-value,
.summary-value,
.detail-value {
  display: block;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.view-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 20px 0 24px;
  padding-bottom: 4px;
}

.view-tabs::-webkit-scrollbar {
  height: 6px;
}

.view-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
}

.view-tab {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 700;
}

.view-tab.active {
  color: #04150d;
  background: linear-gradient(135deg, var(--mint), #9bf7c3);
  border-color: transparent;
}

.source-pending-tab-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--orange);
  vertical-align: super;
}

.view-tab.active .source-pending-tab-marker {
  color: rgba(4, 21, 13, 0.72);
}

.source-pending-strip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: -6px 0 24px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 166, 77, 0.2);
  background: linear-gradient(180deg, rgba(255, 166, 77, 0.1), rgba(255, 166, 77, 0.04));
  color: var(--text-muted);
}

.source-pending-strip strong {
  color: var(--text);
  white-space: nowrap;
}

.source-pending-strip p {
  margin: 0;
  line-height: 1.6;
}

.source-pending-banner {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 166, 77, 0.32);
  background: rgba(255, 166, 77, 0.07);
}

.source-pending-banner strong {
  color: var(--text);
  font-size: 0.95rem;
}

.source-pending-banner p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
}

.hero-card,
.section-shell {
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(17, 23, 31, 0.96), rgba(10, 14, 19, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card::before,
.section-shell::before,
.chart-card::before,
.detail-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--orange));
}

.hero-grid,
.summary-grid,
.detail-grid,
.record-grid,
.running-grid,
.split-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-grid,
.running-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-grid,
.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.summary-card,
.detail-card,
.record-card,
.form-card,
.sync-card,
.chart-card {
  padding: 22px;
}

.metric-card,
.summary-card {
  min-height: 148px;
}

.metric-head,
.card-head,
.table-head,
.form-head,
.sync-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.metric-label,
.summary-label,
.detail-label,
.record-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.metric-value,
.summary-value {
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 800;
}

.metric-note,
.summary-note {
  font-size: 0.92rem;
}

.pill-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-stack {
  display: grid;
  gap: 12px;
  margin: 14px 0 16px;
}

.pushup-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.pushup-quick-button {
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.pushup-quick-reps {
  font-weight: 800;
}

.pushup-quick-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pushup-mobile-live-bar {
  display: none;
}

.pushup-mobile-live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pushup-mobile-live-primary {
  display: grid;
  gap: 4px;
}

.pushup-mobile-live-primary strong {
  font-size: 1.35rem;
  line-height: 1;
}

.pushup-mobile-live-primary span,
.pushup-mobile-live-meta {
  color: var(--text-muted);
}

.pushup-mobile-live-status {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 220, 125, 0.2);
  background: rgba(37, 220, 125, 0.1);
  color: #dff7ea;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.pushup-mobile-live-meta {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.pushup-mobile-live-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pushup-mobile-action {
  min-height: 42px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.pushup-set-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pushup-set-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.pushup-set-meta {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pushup-set-count {
  font-size: 1.1rem;
  color: var(--mint);
}

.pushup-filter-bar {
  top: 18px;
  z-index: 13;
}

.pushup-edit-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(45, 188, 229, 0.24);
  background: rgba(45, 188, 229, 0.08);
}

.pushup-edit-banner strong {
  display: block;
  margin-bottom: 6px;
  color: #dff9ff;
}

.pushup-edit-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pushup-set-main {
  min-width: 0;
}

.pushup-set-actions,
.pushup-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.pushup-inline-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.record-readonly-note {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.running-filter-dock {
  position: sticky;
  top: 18px;
  z-index: 14;
  margin: 14px 0 16px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(15, 20, 28, 0.96), rgba(10, 14, 20, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.filter-dock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.filter-dock-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.filter-dock-summary {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.filter-stack--running {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.running-toolbar {
  position: sticky;
  top: 14px;
  z-index: 12;
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 20, 28, 0.96), rgba(10, 14, 20, 0.98));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.running-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.running-toolbar-copy {
  min-width: 0;
}

.running-toolbar-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.running-toolbar-summary {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.running-range-row {
  justify-content: flex-end;
  gap: 6px;
}

.running-range-row .segment-chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
}


.running-toolbar-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.running-filter-field {
  display: grid;
  gap: 5px;
}

.running-filter-label {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.running-filter-select {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  font-size: 0.9rem;
}

.running-filter-select:focus {
  border-color: rgba(45, 188, 229, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 188, 229, 0.12);
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-label {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tab-chip,
.segment-chip {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.tab-chip.active,
.segment-chip.active {
  color: #04150d;
  background: linear-gradient(135deg, var(--teal), #8ff0ff);
  border-color: transparent;
}

.chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-meta,
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.chart-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-right: 8px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text-soft);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.surface-pill,
.source-pill,
.delta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.surface-pill.outdoor {
  background: rgba(45, 188, 229, 0.16);
  color: #8be8ff;
}

.surface-pill.treadmill {
  background: rgba(255, 158, 61, 0.18);
  color: #ffc07a;
}

.source-pill.garmin {
  background: rgba(131, 119, 255, 0.18);
  color: #c1bbff;
}

.source-pill.galaxy {
  background: rgba(37, 220, 125, 0.16);
  color: #9af3bf;
}

.source-pill.health-connect {
  background: rgba(38, 208, 140, 0.16);
  color: #89ffcd;
}

.table-cell-stack {
  display: grid;
  gap: 6px;
  align-items: start;
}

.cell-subnote {
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.35;
  white-space: normal;
}

.delta-pill.up {
  background: rgba(37, 220, 125, 0.16);
  color: #9af3bf;
}

.delta-pill.down {
  background: rgba(255, 104, 104, 0.16);
  color: #ffb0b0;
}

.delta-pill.flat {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.chart-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 22, 0.94);
  color: #eef4ff;
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
  white-space: nowrap;
}

.chart-tooltip.show {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.chart-card [data-tooltip] {
  cursor: crosshair;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.wide {
  grid-column: 1 / -1;
}

label {
  color: var(--text-soft);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.empty-state {
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 21, 28, 0.92), rgba(10, 14, 19, 0.98));
  border: 1px dashed var(--line-strong);
}

.muted {
  color: var(--text-muted);
}

.debug-banner {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-button,
.page-ellipsis {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
}

.page-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.page-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.page-button.active {
  border-color: rgba(45, 188, 229, 0.38);
  background: rgba(45, 188, 229, 0.16);
  color: #dff9ff;
}

.page-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.page-ellipsis {
  color: var(--text-soft);
}

.app-sync-panel {
  border-color: rgba(45, 188, 229, 0.28);
  background: linear-gradient(180deg, rgba(18, 27, 38, 0.96), rgba(10, 15, 21, 0.98));
}

#view-overview .app-sync-panel,
#view-overview [data-android-sync],
#view-overview [data-app-sync],
#view-overview .overview-redesign-meta,
#view-overview .section-subtitle {
  display: none !important;
}

.app-sync-grid {
  margin-top: 18px;
}

code {
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 0.88em;
  color: #b7f2ff;
}

@media (max-width: 1180px) {
  .topbar,
  .hero-grid,
  .summary-grid,
  .detail-grid,
  .record-grid,
  .running-grid,
  .split-grid,
  .settings-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .filter-stack--running {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .running-toolbar-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 16px;
  }

  .topbar,
  .hero-card,
  .section-shell,
  .metric-card,
  .summary-card,
  .detail-card,
  .record-card,
  .form-card,
  .sync-card,
  .chart-card {
    padding: 20px;
  }

  .topbar-actions,
  .actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .table-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .running-filter-dock {
    position: static;
    top: auto;
  }

  .running-toolbar {
    position: static;
    top: auto;
  }

  .filter-dock-head,
  .filter-stack--running {
    grid-template-columns: 1fr;
  }

  .filter-dock-head,
  .running-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }

  .running-toolbar-controls {
    grid-template-columns: 1fr;
  }

  .view-tab {
    min-height: 48px;
    padding: 0 18px;
  }

  .source-pending-strip {
    display: grid;
  }
}

.running-toolbar {
  padding: 10px 12px;
}

.running-toolbar-top {
  align-items: flex-start;
}


.running-range-row {
  flex-wrap: nowrap;
}

.running-range-row .segment-chip {
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.8rem;
}


.running-filter-field {
  gap: 4px;
}

.running-filter-label {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.running-filter-select {
  min-height: 36px;
  font-size: 0.86rem;
}

.running-filter-select option,
.running-filter-select optgroup {
  color: #10161f;
  background: #f4f7fb;
}

.view-filter-bar {
  position: sticky;
  top: 14px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  margin: 6px 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 17, 24, 0.96), rgba(9, 13, 19, 0.98));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.view-filter-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.view-filter-title {
  color: #f4f7fb;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.view-filter-summary {
  margin: 0;
  color: #8e9db5;
  font-size: 0.78rem;
  line-height: 1.45;
}

.view-filter-range-row {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.view-filter-range-row .segment-chip {
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .running-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }


  .view-filter-bar {
    grid-template-columns: 1fr;
  }

  .view-filter-range-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {

  .view-filter-bar {
    position: static;
    top: auto;
    padding: 12px 14px;
  }
}

.running-filter-select,
.filter-inline-select {
  color: #f4f7fb;
}

.running-filter-select option,
.running-filter-select optgroup,
.filter-inline-select option,
.filter-inline-select optgroup,
select option,
select optgroup {
  color: #10161f !important;
  background: #f4f7fb !important;
}

.topbar {
  gap: 20px;
}

.topbar-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  line-height: 1.02;
}

#topbar-summary {
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.running-toolbar {
  padding: 10px 12px;
}

.running-toolbar-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.running-toolbar-copy {
  display: grid;
  gap: 3px;
}

.running-toolbar-title {
  font-size: 0.8rem;
}

.running-toolbar-summary {
  font-size: 0.76rem;
  line-height: 1.35;
}

.running-toolbar-controls.running-toolbar-controls--inline {
  position: static;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.running-filter-field {
  gap: 3px;
}

.running-filter-label {
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.running-filter-select {
  min-height: 34px;
  padding: 0 34px 0 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #f4f7fb;
  color-scheme: dark;
}

.running-range-row {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.running-range-row .segment-chip {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.running-filter-select option,
.running-filter-select optgroup,
.filter-inline-select option,
.filter-inline-select optgroup,
select option,
select optgroup {
  color: #10161f !important;
  background: #f4f7fb !important;
}

@media (max-width: 1080px) {
  .running-toolbar-controls.running-toolbar-controls--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .running-toolbar-top {
    grid-template-columns: 1fr;
  }

  .running-range-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .running-toolbar-controls.running-toolbar-controls--inline {
    grid-template-columns: 1fr;
  }
}

.status-card strong {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
}

.status-card p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.overview-shell {
  display: grid;
  gap: 22px;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.overview-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.overview-copy .section-title {
  font-size: clamp(2.5rem, 4vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.overview-copy .section-subtitle {
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.7;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-pill-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.overview-meta-grid,
.overview-sync-grid,
.overview-kpi-grid,
.overview-digest-grid {
  display: grid;
  gap: 14px;
}

.overview-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-sync-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-digest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-stat-card,
.overview-highlight-card,
.overview-compact-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(20, 28, 39, 0.94), rgba(16, 22, 31, 0.98)),
    radial-gradient(circle at top right, rgba(77, 228, 255, 0.14), transparent 58%);
}

.overview-stat-card .metric-label,
.overview-stat-card .record-label {
  color: #8fb3d8;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-stat-value {
  font-size: clamp(1.42rem, 2.2vw, 2.15rem);
  line-height: 1.16;
  font-weight: 800;
  color: #f4f7fb;
}

.overview-stat-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.overview-side-column {
  display: grid;
  gap: 14px;
}

.overview-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.overview-highlight-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 29, 41, 0.96), rgba(13, 18, 27, 0.98));
}

.overview-highlight-card strong {
  color: #f4f7fb;
  font-size: 1.35rem;
  line-height: 1.24;
}

.overview-highlight-card p,
.overview-compact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.overview-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.overview-block-head strong {
  color: #f4f7fb;
  font-size: 1.15rem;
  line-height: 1.25;
}

.overview-block-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.overview-compact-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.overview-compact-card strong {
  color: #f4f7fb;
  font-size: 1.05rem;
  line-height: 1.3;
}

.view-filter-bar {
  top: 14px;
  gap: 12px;
  padding: 12px 14px;
}

.view-filter-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.view-filter-title {
  font-size: 0.8rem;
}

.view-filter-summary {
  font-size: 0.76rem;
}

.view-filter-range-row .segment-chip {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.topbar {
  gap: 18px;
}

.topbar-copy h1 {
  font-size: clamp(2.15rem, 3.2vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

#topbar-summary {
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.62;
}

.status-card strong {
  font-size: clamp(1.12rem, 1.65vw, 1.38rem);
  line-height: 1.2;
}

.status-card p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.overview-shell {
  display: grid;
  gap: 20px;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.92fr);
  gap: 16px;
  align-items: stretch;
}

.overview-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.overview-copy .section-title {
  font-size: clamp(2.2rem, 3.1vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.overview-copy .section-subtitle {
  max-width: 66ch;
  font-size: 0.96rem;
  line-height: 1.66;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-pill-button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.overview-side-column,
.overview-pipeline-grid,
.overview-sync-grid,
.overview-summary-grid,
.overview-highlight-grid {
  display: grid;
  gap: 14px;
}

.overview-side-column {
  grid-template-columns: 1fr;
}

.overview-pipeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-sync-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-stat-card,
.overview-pipeline-card,
.overview-summary-card,
.overview-highlight-card,
.overview-digest-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 29, 41, 0.96), rgba(13, 18, 27, 0.98));
}

.overview-stat-card,
.overview-pipeline-card,
.overview-summary-card,
.overview-highlight-card,
.overview-digest-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.overview-stat-card .metric-label,
.overview-pipeline-card .metric-label,
.overview-summary-card .metric-label,
.overview-highlight-card .metric-label,
.overview-digest-card .metric-label {
  color: #8fb3d8;
  font-size: 0.76rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.overview-stat-card strong,
.overview-pipeline-card strong,
.overview-summary-card strong,
.overview-highlight-card strong,
.overview-digest-card strong {
  color: #f4f7fb;
}

.overview-stat-card strong {
  font-size: 1.28rem;
  line-height: 1.2;
}

.overview-pipeline-card strong {
  font-size: 1.24rem;
  line-height: 1.28;
}

.overview-summary-card strong {
  font-size: 1.56rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.overview-highlight-card strong,
.overview-digest-card strong {
  font-size: 1.08rem;
  line-height: 1.28;
}

.overview-stat-card p,
.overview-pipeline-card p,
.overview-summary-card p,
.overview-highlight-card p,
.overview-digest-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.overview-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.overview-block-head strong {
  color: #f4f7fb;
  font-size: 1.08rem;
  line-height: 1.24;
}

.overview-block-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.56;
}

.overview-pipeline-card {
  position: relative;
  overflow: hidden;
}

.overview-pipeline-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(77, 228, 255, 0.7), rgba(255, 188, 77, 0.85));
  opacity: 0.9;
}

.overview-pipeline-card.accent-green::before {
  background: linear-gradient(90deg, rgba(53, 222, 132, 0.95), rgba(137, 255, 182, 0.75));
}

.overview-pipeline-card.accent-orange::before {
  background: linear-gradient(90deg, rgba(255, 180, 70, 0.92), rgba(255, 118, 86, 0.82));
}

.overview-pipeline-card.accent-violet::before {
  background: linear-gradient(90deg, rgba(137, 119, 255, 0.92), rgba(212, 110, 255, 0.78));
}

@media (max-width: 1220px) {
  .overview-hero,
  .overview-pipeline-grid,
  .overview-sync-grid,
  .overview-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .overview-hero,
  .overview-pipeline-grid,
  .overview-sync-grid,
  .overview-summary-grid,
  .overview-highlight-grid {
    grid-template-columns: 1fr;
  }

  .overview-copy .section-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 1180px) {
  .overview-hero,
  .overview-meta-grid,
  .overview-sync-grid,
  .overview-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .overview-hero,
  .overview-meta-grid,
  .overview-sync-grid,
  .overview-kpi-grid,
  .overview-highlight-grid,
  .overview-digest-grid {
    grid-template-columns: 1fr;
  }

  .overview-copy .section-title {
    font-size: 2.4rem;
  }
}

.overview-shell {
  gap: 18px;
}

.overview-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.overview-copy {
  gap: 14px;
}

.overview-copy .section-title {
  font-size: clamp(2.6rem, 3.1vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.overview-copy .section-subtitle {
  max-width: 760px;
  color: #b5c1d2;
  font-size: 1rem;
  line-height: 1.65;
}

.overview-actions {
  gap: 8px;
}

.overview-pill-button {
  padding: 11px 16px;
  font-size: 0.92rem;
}

.overview-side-column {
  display: grid;
  gap: 12px;
}

.overview-pipeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-sync-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-highlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-stat-card,
.overview-pipeline-card,
.overview-summary-card,
.overview-highlight-card,
.overview-digest-card,
.overview-compact-card {
  border-radius: 18px;
  padding: 18px 18px 16px;
}

.overview-stat-card .metric-label,
.overview-pipeline-card .metric-label,
.overview-summary-card .metric-label,
.overview-highlight-card .metric-label,
.overview-digest-card .metric-label,
.overview-compact-card .metric-label {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.overview-stat-value {
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
  line-height: 1.22;
}

.overview-stat-note,
.overview-summary-card p,
.overview-highlight-card p,
.overview-digest-card p,
.overview-compact-card p {
  font-size: 0.88rem;
  line-height: 1.58;
}

.overview-summary-card strong {
  font-size: clamp(1.22rem, 1.65vw, 1.68rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.overview-highlight-card strong,
.overview-digest-card strong,
.overview-compact-card strong {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.34;
}

[data-google-sheets-card] .sync-copy {
  max-width: 62ch;
}

[data-google-sheets-card] .actions-row {
  flex-wrap: wrap;
}

[data-google-sheets-card] .primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.overview-block-head {
  margin-bottom: 12px;
}

.overview-block-head strong {
  font-size: 1rem;
}

.overview-block-head p {
  font-size: 0.9rem;
}

@media (max-width: 1220px) {
  .overview-hero,
  .overview-pipeline-grid,
  .overview-sync-grid,
  .overview-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .overview-hero,
  .overview-pipeline-grid,
  .overview-sync-grid,
  .overview-summary-grid,
  .overview-highlight-grid {
    grid-template-columns: 1fr;
  }

  .overview-copy .section-title {
    font-size: 2.3rem;
  }
}

.settings-shell {
  display: grid;
  gap: 20px;
}

.settings-shell-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.settings-status-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
}

.sync-status-pill-ready {
  border-color: rgba(59, 220, 142, 0.35);
  color: #8cf0bb;
}

.sync-status-pill-live {
  border-color: rgba(87, 197, 255, 0.35);
  color: #8ad7ff;
}

.sync-status-pill-warning {
  border-color: rgba(255, 190, 90, 0.4);
  color: #ffd18a;
}

.sync-status-pill-idle {
  color: var(--text-dim);
}

.settings-section-grid {
  display: grid;
  gap: 18px;
}

.settings-card {
  display: grid;
  gap: 14px;
}

.settings-action-row,
.settings-file-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.settings-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-step-list {
  display: grid;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.settings-step-list span::before {
  content: "??;
  display: inline-block;
  margin-right: 8px;
  color: var(--accent-cyan);
}

.settings-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-info-label {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.settings-info-value {
  color: var(--text-main);
  font-size: 0.98rem;
}

.sync-diagnostic-output {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 0.84rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .settings-action-grid {
    grid-template-columns: 1fr;
  }
}

/* Final overview pass */
.status-strip {
  display: none !important;
}

.topbar {
  padding-bottom: 24px;
}

.topbar-copy h1 {
  font-size: clamp(2.35rem, 3.2vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

#topbar-summary {
  max-width: 920px;
  color: #c1cbda;
  font-size: 0.96rem;
  line-height: 1.55;
}

.overview-shell--compact {
  display: grid;
  gap: 22px;
}

.overview-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.overview-head-copy {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.overview-shell--compact .section-title {
  margin: 0;
  font-size: clamp(2.15rem, 2.9vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.overview-shell--compact .section-subtitle {
  margin: 0;
  color: #aeb9c9;
  font-size: 0.98rem;
  line-height: 1.6;
}

.overview-head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-head-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: #d7e0ec;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.overview-head-badge-cyan {
  border-color: rgba(87, 197, 255, 0.28);
  color: #9edcff;
}

.overview-head-badge-green {
  border-color: rgba(59, 220, 142, 0.28);
  color: #9df2bf;
}

.overview-head-badge-violet {
  border-color: rgba(149, 130, 255, 0.28);
  color: #c7bcff;
}

.overview-head-badge-orange {
  border-color: rgba(255, 181, 92, 0.28);
  color: #ffd08f;
}

.overview-actions-minimal {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.overview-actions-minimal .overview-pill-button {
  min-height: 40px;
  padding: 0 15px;
  font-size: 0.88rem;
}

.overview-kpi-grid--compact {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-kpi-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(21, 27, 37, 0.96), rgba(18, 23, 32, 0.98));
  overflow: hidden;
}

.overview-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(87, 197, 255, 0.9), rgba(255, 170, 88, 0.9));
  opacity: 0.95;
}

.overview-kpi-card-cyan::before {
  background: linear-gradient(90deg, #44c7ff, #2ce58f);
}

.overview-kpi-card-green::before {
  background: linear-gradient(90deg, #2ce58f, #8be35d);
}

.overview-kpi-card-violet::before {
  background: linear-gradient(90deg, #8c7dff, #c96fff);
}

.overview-kpi-card-orange::before {
  background: linear-gradient(90deg, #ffb45e, #ff7f6f);
}

.overview-kpi-card-coral::before {
  background: linear-gradient(90deg, #ff7d7d, #ffb15a);
}

.overview-kpi-card-sky::before {
  background: linear-gradient(90deg, #49d2ff, #3df18d);
}

.overview-kpi-card strong {
  color: #f6f8fb;
  font-size: clamp(1.28rem, 1.55vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.overview-kpi-card p {
  margin: 0;
  color: #a8b4c6;
  font-size: 0.9rem;
  line-height: 1.52;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.overview-trend-shell {
  display: grid;
  gap: 18px;
}

.overview-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.overview-section-head h3 {
  margin: 6px 0 0;
  color: #f6f8fb;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.overview-section-head p {
  margin: 0;
  max-width: 560px;
  color: #98a6bb;
  font-size: 0.92rem;
  line-height: 1.55;
}

.overview-trend-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-trend-card {
  display: grid;
  gap: 12px;
  padding: 18px 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 24, 34, 0.96);
}

.overview-trend-head {
  display: grid;
  gap: 5px;
}

.overview-trend-head strong {
  color: #f2f5fa;
  font-size: 1.05rem;
  line-height: 1.25;
}

.overview-trend-head span {
  color: #8f9eb4;
  font-size: 0.84rem;
  line-height: 1.45;
}

.overview-mini-chart .empty-state {
  min-height: 220px;
}

@media (max-width: 1180px) {
  .overview-kpi-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .overview-trend-grid,
  .overview-kpi-grid--compact {
    grid-template-columns: 1fr;
  }

  .overview-head-row,
  .overview-section-head {
    align-items: flex-start;
  }

  .overview-actions-minimal {
    justify-content: flex-start;
  }
}

.overview-redesign-shell,
.overview-flow-shell {
  display: grid;
  gap: 20px;
}

.overview-redesign-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.overview-redesign-copy {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.overview-redesign-copy .section-title {
  margin: 0;
  font-size: clamp(2.25rem, 3vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.overview-redesign-copy .section-subtitle {
  margin: 0;
  color: #b4c0d2;
  font-size: 0.98rem;
  line-height: 1.58;
}

.overview-redesign-meta {
  margin: 0;
  color: #8e9cb2;
  font-size: 0.88rem;
  line-height: 1.5;
}

.overview-redesign-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.overview-redesign-actions .overview-pill-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.overview-delta-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-delta-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  min-height: 234px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(20, 26, 37, 0.98), rgba(16, 21, 31, 0.98));
  overflow: hidden;
}

.overview-delta-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #44c7ff, #29e18f);
  opacity: 0.95;
}

.overview-delta-card-green::before {
  background: linear-gradient(90deg, #2fe48f, #9be35f);
}

.overview-delta-card-violet::before {
  background: linear-gradient(90deg, #8b7dff, #cb6cff);
}

.overview-delta-card-orange::before {
  background: linear-gradient(90deg, #ffb35d, #ff7f6f);
}

.overview-delta-card-coral::before {
  background: linear-gradient(90deg, #ff7a7a, #ffb25a);
}

.overview-delta-card-sky::before {
  background: linear-gradient(90deg, #48d1ff, #3ee78a);
}

.overview-delta-label {
  color: #7fbdf8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.overview-delta-bars {
  display: grid;
  gap: 9px;
  margin-top: -2px;
}

.overview-delta-bar-row {
  display: grid;
  gap: 6px;
}

.overview-delta-bar-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.overview-delta-bar-label,
.overview-delta-bar-value {
  font-size: 0.74rem;
  line-height: 1.2;
}

.overview-delta-bar-label {
  color: rgba(220, 230, 243, 0.82);
  font-weight: 600;
}

.overview-delta-bar-value {
  color: #f4f8fd;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.overview-delta-bar-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  overflow: hidden;
}

.overview-delta-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: none;
}

.overview-delta-bar-row.is-current .overview-delta-bar-fill {
  background: linear-gradient(90deg, #dfe6f2, #9eafc9);
}

.overview-delta-bar-row.is-previous .overview-delta-bar-fill {
  background: linear-gradient(90deg, #73839b, #4d596d);
}

.overview-delta-bar-row.is-current .overview-delta-bar-label {
  color: rgba(244, 248, 253, 0.92);
}

.overview-delta-bar-row.is-previous .overview-delta-bar-label {
  color: rgba(173, 187, 206, 0.82);
}

.overview-delta-bar-row.is-previous .overview-delta-bar-value {
  color: #ccd7e7;
}

.overview-delta-value {
  color: #f7f9fc;
  font-size: clamp(1.35rem, 1.55vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.overview-delta-change,
.overview-delta-footnote {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.overview-delta-change {
  color: #dce6f3;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
}

.overview-delta-footnote {
  color: #94a3ba;
  font-size: 0.86rem;
  line-height: 1.5;
}

.overview-delta-footnote-secondary {
  margin-top: -2px;
  color: #7f90a9;
}

.overview-delta-rich {
  margin: 0;
  color: #dce6f3;
  font-size: 0.95rem;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.overview-delta-primary {
  color: #dfe8f5;
}

.overview-delta-primary strong,
.overview-delta-compare strong,
.overview-delta-footnote-block strong {
  color: #f7f9fc;
  font-weight: 800;
}

.overview-delta-compare {
  color: #b9c8dd;
}

.overview-delta-footnote-block {
  color: #92a3bb;
  font-size: 0.9rem;
}

.trend-up {
  color: #ff6b7f;
  font-weight: 800;
}

.trend-down {
  color: #4fb3ff;
  font-weight: 800;
}

.trend-flat {
  color: #8e9cb2;
  font-weight: 700;
}

.overview-flow-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-flow-card {
  display: grid;
  gap: 14px;
  padding: 18px 18px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 24, 34, 0.96);
}

.overview-flow-head {
  display: grid;
  gap: 4px;
}

.overview-flow-head strong {
  color: #f4f7fb;
  font-size: 1.02rem;
  line-height: 1.25;
}

.overview-flow-head span {
  color: #96a5bb;
  font-size: 0.84rem;
  line-height: 1.45;
}

.overview-flow-chart .empty-state {
  min-height: 220px;
}

@media (max-width: 1180px) {
  .overview-delta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .overview-delta-grid,
  .overview-flow-grid {
    grid-template-columns: 1fr;
  }

  .overview-redesign-head,
  .overview-section-head {
    align-items: flex-start;
  }
}

/* Mobile hybrid UI pass */
.mobile-status-inline,
.topbar-mobile-toggle {
  display: none;
}

.mobile-disclosure {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.mobile-disclosure-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.mobile-disclosure-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.mobile-disclosure-copy strong {
  font-size: 0.96rem;
}

.mobile-disclosure-copy span {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.mobile-disclosure-icon {
  color: #dff7ea;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-disclosure-body {
  display: grid;
  gap: 12px;
}

.mobile-disclosure-body[hidden] {
  display: none !important;
}

.mobile-disclosure-body:not([hidden]) {
  display: grid;
}

.mobile-card-disclosure .detail-card {
  margin: 0;
}

.mobile-card-disclosure .detail-card .card-head {
  display: none;
}

.mobile-record-list {
  display: grid;
  gap: 12px;
}

.mobile-record-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-record-head {
  display: grid;
  gap: 4px;
}

.mobile-record-title {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.mobile-record-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.mobile-record-grid {
  display: grid;
  gap: 10px;
}

.mobile-record-row {
  display: grid;
  gap: 6px;
}

.mobile-record-key {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-record-value {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.48;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.mobile-record-footer,
.mobile-inline-meta {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

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

.mobile-summary-grid-secondary {
  grid-template-columns: 1fr;
}

.mobile-record-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-history-shell .table-wrap {
  display: none;
}

.mobile-history-shell .table-pagination {
  margin-top: 6px;
}

.mobile-debug-muted {
  font-size: 0.82rem;
  line-height: 1.45;
}

.running-toolbar-mobile .mobile-disclosure {
  margin-top: 10px;
}

.running-toolbar-mobile .mobile-disclosure-toggle {
  min-height: 44px;
  padding: 10px 12px;
}

.mobile-single-stack {
  grid-template-columns: 1fr;
}

.mobile-filter-disclosure {
  position: sticky;
  top: 66px;
  z-index: 16;
  margin: 10px 0 14px;
}

.mobile-filter-disclosure .mobile-disclosure-toggle {
  min-height: 48px;
  padding: 11px 13px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(16, 21, 28, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mobile-filter-disclosure .mobile-disclosure-body {
  gap: 10px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 24, 32, 0.97);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.mobile-filter-disclosure .view-filter-bar,
.mobile-filter-disclosure .running-toolbar,
.mobile-filter-disclosure .pushup-filter-bar {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.mobile-filter-disclosure .view-filter-copy,
.mobile-filter-disclosure .running-toolbar-copy {
  display: none;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(calc(100vw - 14px), 100%);
    padding: 14px 0 40px;
  }

  .topbar {
    display: none !important;
  }

  .source-pending-strip,
  .source-pending-banner {
    display: none !important;
  }

  .mobile-filter-disclosure {
    top: 62px;
  }

  .mobile-status-inline {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-x: auto;
    white-space: nowrap;
  }

  .topbar[data-mobile-actions-open="true"] .mobile-status-inline {
    display: flex;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar-mobile-toggle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .topbar-actions .primary-button,
  .topbar-actions .ghost-button,
  .topbar-mobile-toggle {
    width: 100%;
    min-height: 52px;
  }

  .topbar:not([data-mobile-actions-open="true"]) #refresh-bundle-button,
  .topbar:not([data-mobile-actions-open="true"]) #export-state-button {
    display: none;
  }

  .view-tabs {
    position: sticky;
    top: 8px;
    z-index: 20;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 6px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 17, 0.88);
    backdrop-filter: blur(14px);
    scroll-snap-type: x proximity;
  }

  .view-tab {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    scroll-snap-align: center;
    white-space: nowrap;
  }

  .view.active {
    gap: 14px;
  }

  .section-shell,
  .hero-card,
  .metric-card,
  .summary-card,
  .detail-card,
  .record-card,
  .chart-card,
  .form-card,
  .sync-card {
    padding: 18px;
    border-radius: 22px;
  }

  .section-shell::before,
  .chart-card::before,
  .detail-card::before {
    height: 4px;
    margin-bottom: 14px;
  }

  .summary-grid,
  .detail-grid,
  .record-grid,
  .split-grid,
  .settings-grid {
    gap: 12px;
  }

  .summary-grid,
  .detail-grid,
  .record-grid,
  .split-grid,
  .settings-grid,
  .mobile-record-grid-compact {
    grid-template-columns: 1fr;
  }

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

  .view-filter-bar,
  .running-toolbar,
  .pushup-filter-bar {
    position: static !important;
    top: auto !important;
    z-index: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }

  .view-filter-range-row,
  .running-range-row {
    justify-content: flex-start;
  }

  .running-toolbar-top {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .running-toolbar-controls.running-toolbar-controls--inline {
    grid-template-columns: 1fr;
  }

  .table-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .table-pagination .page-button {
    min-height: 46px;
  }

  .pushup-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .pushup-set-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .pushup-section-shell {
    padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px));
  }

  .pushup-mobile-live-bar {
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 18;
    display: grid;
    gap: 10px;
    margin: 10px 0 14px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.96), rgba(12, 17, 24, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
  }

  .pushup-section-shell .split-grid > .sync-card {
    display: none;
  }

  .pushup-desktop-actions {
    display: none;
  }

  .pushup-section-shell .form-head .form-help {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .pushup-section-shell .form-grid {
    gap: 10px;
  }

  .pushup-section-shell .form-field input,
  .pushup-section-shell .form-field textarea {
    min-height: 44px;
    padding: 10px 12px;
  }

  .pushup-section-shell .form-field textarea {
    min-height: 76px;
  }

  .pushup-quick-button.small-button {
    min-height: 48px;
    padding: 8px 6px;
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(calc(100vw - 10px), 100%);
    padding-top: 10px;
  }

  .topbar,
  .section-shell,
  .hero-card,
  .metric-card,
  .summary-card,
  .detail-card,
  .record-card,
  .chart-card,
  .form-card,
  .sync-card,
  .mobile-record-card {
    padding: 16px;
    border-radius: 20px;
  }

  .summary-grid.mobile-summary-grid,
  .pushup-quick-grid {
    grid-template-columns: 1fr;
  }

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

  .pushup-quick-hint {
    display: none;
  }

  .pushup-mobile-live-bar {
    gap: 8px;
    padding: 12px;
  }

  .pushup-mobile-live-head {
    align-items: center;
  }

  .pushup-mobile-live-primary strong {
    font-size: 1.2rem;
  }

  .pushup-mobile-live-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pushup-mobile-action {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .mobile-filter-disclosure {
    top: 58px;
  }

  .view-tab {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.86rem;
  }
}

@media (min-width: 901px) {
  :root {
    color-scheme: light;
    --bg: #eef3ef;
    --bg-alt: #f8fbf8;
    --surface: rgba(255, 255, 255, 0.98);
    --surface-soft: rgba(247, 250, 247, 0.98);
    --surface-strong: #ffffff;
    --line: rgba(37, 53, 42, 0.10);
    --line-strong: rgba(3, 199, 90, 0.18);
    --text: #1f252d;
    --text-muted: #66726e;
    --text-soft: #8a9691;
    --mint: #03c75a;
    --teal: #03c75a;
    --violet: #63b7a1;
    --orange: #d6c36b;
    --red: #ff6b57;
    --yellow: #ffd76b;
    --shadow: 0 18px 46px rgba(58, 76, 62, 0.08);
  }

  html,
  body {
    background:
      radial-gradient(circle at top center, rgba(3, 199, 90, 0.12), transparent 24%),
      radial-gradient(circle at top left, rgba(139, 201, 160, 0.12), transparent 18%),
      linear-gradient(180deg, #f8fbf8, #edf3ee);
    color: var(--text);
  }

  .topbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 247, 0.98));
    border: 1px solid rgba(3, 199, 90, 0.18);
    box-shadow: 0 18px 48px rgba(58, 76, 62, 0.08);
  }

  .eyebrow,
  .status-label,
  .section-kicker {
    color: #03c75a;
  }

  .topbar h1,
  .section-title,
  .overview-section-head h3,
  .overview-flow-head strong,
  .status-card strong {
    color: #1f252d;
  }

  .topbar p,
  #topbar-summary,
  .status-card p,
  .overview-redesign-copy .section-subtitle,
  .overview-flow-head span,
  .overview-delta-primary,
  .overview-delta-compare,
  .overview-delta-footnote-block {
    color: #64706c;
  }

  .primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #03c75a, #19d66b);
    box-shadow: 0 12px 24px rgba(3, 199, 90, 0.18);
  }

  .ghost-button,
  .small-button,
  .segment-chip {
    color: #314037;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(53, 71, 58, 0.12);
    box-shadow: 0 10px 24px rgba(58, 76, 62, 0.04);
  }

  .status-card,
  .panel-card,
  .metric-card,
  .summary-card,
  .chart-card,
  .detail-card,
  .record-card,
  .form-card,
  .sync-card,
  .empty-state {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 247, 0.98));
    border-color: rgba(53, 71, 58, 0.09);
    box-shadow: 0 12px 30px rgba(58, 76, 62, 0.05);
  }

  .view-tabs {
    margin-top: 18px;
    padding: 8px;
    border: 1px solid rgba(53, 71, 58, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(58, 76, 62, 0.04);
    backdrop-filter: blur(14px);
  }

  .view-tab {
    background: #fbfcfb;
    border-color: rgba(53, 71, 58, 0.08);
    color: #66726d;
  }

  .view-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #03c75a, #19d66b);
    box-shadow: 0 12px 22px rgba(3, 199, 90, 0.16);
  }

  .hero-card,
  .section-shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 248, 0.98));
    border-color: rgba(53, 71, 58, 0.08);
    box-shadow: 0 18px 42px rgba(58, 76, 62, 0.06);
  }

  .hero-card::before,
  .section-shell::before,
  .chart-card::before,
  .detail-card::before {
    background: linear-gradient(90deg, #03c75a 0%, #8cdaa8 56%, #dff4e6 100%);
  }

  #view-overview .overview-redesign-shell,
  #view-overview .overview-flow-shell {
    gap: 18px;
  }

  #view-overview .overview-delta-card {
    border: 1px solid rgba(53, 71, 58, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 249, 0.98));
    box-shadow: 0 12px 28px rgba(58, 76, 62, 0.05);
  }

  #view-overview .overview-delta-card::before {
    height: 4px;
    opacity: 1;
  }

  #view-overview .overview-delta-card::before,
  #view-overview .overview-delta-card-green::before {
    background: linear-gradient(90deg, #03c75a, #8ddcab);
  }

  #view-overview .overview-delta-card-violet::before {
    background: linear-gradient(90deg, #55b8a0, #b7e6d8);
  }

  #view-overview .overview-delta-card-orange::before {
    background: linear-gradient(90deg, #96b78f, #dce9d7);
  }

  #view-overview .overview-delta-card-coral::before {
    background: linear-gradient(90deg, #b8bf7a, #ecefce);
  }

  #view-overview .overview-delta-card-sky::before {
    background: linear-gradient(90deg, #24b97a, #a9e0c5);
  }

  #view-overview .overview-delta-label {
    color: #0d9d50;
  }

  #view-overview .overview-delta-bar-track {
    background: #edf2ed;
  }

  #view-overview .overview-delta-bar-row.is-current .overview-delta-bar-fill {
    background: linear-gradient(90deg, #03c75a, #30d06e);
  }

  #view-overview .overview-delta-bar-row.is-previous .overview-delta-bar-fill {
    background: linear-gradient(90deg, #cfdbd1, #b6c4b9);
  }

  #view-overview .overview-delta-bar-row.is-current .overview-delta-bar-label,
  #view-overview .overview-delta-bar-row.is-current .overview-delta-bar-value,
  #view-overview .overview-delta-primary strong,
  #view-overview .overview-delta-compare strong,
  #view-overview .overview-delta-footnote-block strong {
    color: #1f252d;
  }

  #view-overview .overview-delta-bar-row.is-previous .overview-delta-bar-label {
    color: #7b887f;
  }

  #view-overview .overview-delta-bar-row.is-previous .overview-delta-bar-value {
    color: #6b7770;
  }

  #view-overview .overview-flow-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 248, 0.98));
    border-color: rgba(53, 71, 58, 0.08);
    box-shadow: 0 12px 28px rgba(58, 76, 62, 0.04);
  }

  #view-overview .chart-legend,
  #view-overview .chart-legend span,
  #view-overview .overview-flow-head span {
    color: #708077;
  }

  .trend-up {
    color: #ff6b57;
  }

  .trend-down {
    color: #119464;
  }

  .running-filter-dock,
  .running-toolbar,
  .view-filter-bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 247, 0.98));
    border-color: rgba(53, 71, 58, 0.10);
    box-shadow: 0 16px 34px rgba(58, 76, 62, 0.08);
    backdrop-filter: blur(14px);
  }

  .running-toolbar-title,
  .view-filter-title,
  .filter-dock-title {
    color: #25312b;
  }

  .running-toolbar-summary,
  .view-filter-summary,
  .filter-dock-summary {
    color: #67736e;
  }

  .running-filter-label,
  .filter-label {
    color: #7a8680;
  }

  .running-filter-select,
  .filter-inline-select {
    background: #ffffff;
    border-color: rgba(53, 71, 58, 0.12);
    color: #26322c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color-scheme: light;
  }

  .running-filter-select:focus,
  .filter-inline-select:focus {
    border-color: rgba(3, 199, 90, 0.35);
    box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.10);
  }

  .running-toolbar .segment-chip,
  .view-filter-bar .segment-chip,
  .running-toolbar .tab-chip,
  .view-filter-bar .tab-chip {
    background: #ffffff;
    border-color: rgba(53, 71, 58, 0.10);
    color: #5d6a64;
    box-shadow: 0 8px 16px rgba(58, 76, 62, 0.04);
  }

  .running-toolbar .segment-chip.active,
  .view-filter-bar .segment-chip.active,
  .running-toolbar .tab-chip.active,
  .view-filter-bar .tab-chip.active {
    color: #ffffff;
    background: linear-gradient(135deg, #03c75a, #20d66b);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(3, 199, 90, 0.16);
  }

  .surface-pill.outdoor {
    background: #dff3ff;
    color: #2387bc;
    font-weight: 800;
  }

  .surface-pill.treadmill {
    background: #ffe8d2;
    color: #d47b24;
    font-weight: 800;
  }

  table[data-table-key="running-records"] {
    table-layout: fixed;
    min-width: 1120px;
  }

  table[data-table-key="running-records"] th,
  table[data-table-key="running-records"] td {
    padding: 13px 14px;
    vertical-align: top;
  }

  table[data-table-key="running-records"] th:nth-child(1),
  table[data-table-key="running-records"] td:nth-child(1) {
    width: 14%;
  }

  table[data-table-key="running-records"] th:nth-child(2),
  table[data-table-key="running-records"] td:nth-child(2) {
    width: 10%;
  }

  table[data-table-key="running-records"] th:nth-child(3),
  table[data-table-key="running-records"] td:nth-child(3) {
    width: 28%;
  }

  table[data-table-key="running-records"] th:nth-child(4),
  table[data-table-key="running-records"] td:nth-child(4),
  table[data-table-key="running-records"] th:nth-child(5),
  table[data-table-key="running-records"] td:nth-child(5),
  table[data-table-key="running-records"] th:nth-child(6),
  table[data-table-key="running-records"] td:nth-child(6),
  table[data-table-key="running-records"] th:nth-child(7),
  table[data-table-key="running-records"] td:nth-child(7),
  table[data-table-key="running-records"] th:nth-child(8),
  table[data-table-key="running-records"] td:nth-child(8),
  table[data-table-key="running-records"] th:nth-child(9),
  table[data-table-key="running-records"] td:nth-child(9) {
    width: 8%;
  }

  table[data-table-key="running-records"] .table-cell-stack {
    gap: 4px;
    max-width: 290px;
  }

  table[data-table-key="running-records"] .cell-subnote {
    color: #5f6c67;
    font-size: 0.74rem;
    line-height: 1.32;
  }

  table[data-table-key="running-records"] .source-pill {
    min-height: 24px;
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 800;
  }

  table[data-table-key="running-records"] .source-pill.garmin {
    background: #dcd8fb;
    color: #51439e;
  }

  table[data-table-key="running-records"] .source-pill.galaxy {
    background: #d8f2e3;
    color: #1f7a48;
  }

  table[data-table-key="running-records"] .source-pill.health-connect {
    background: #d9f3e7;
    color: #167a56;
  }
}

@media (max-width: 900px) {
  :root {
    color-scheme: light;
    --bg: #eef3ef;
    --bg-alt: #f8fbf8;
    --surface: rgba(255, 255, 255, 0.98);
    --surface-soft: rgba(247, 250, 247, 0.98);
    --surface-strong: #ffffff;
    --line: rgba(37, 53, 42, 0.10);
    --line-strong: rgba(3, 199, 90, 0.18);
    --text: #1f252d;
    --text-muted: #66726e;
    --text-soft: #8a9691;
    --mint: #03c75a;
    --teal: #03c75a;
    --violet: #63b7a1;
    --orange: #d6c36b;
    --red: #ff6b57;
    --yellow: #ffd76b;
    --shadow: 0 14px 36px rgba(58, 76, 62, 0.08);
  }

  html,
  body {
    background:
      radial-gradient(circle at top center, rgba(3, 199, 90, 0.12), transparent 24%),
      radial-gradient(circle at top left, rgba(139, 201, 160, 0.12), transparent 18%),
      linear-gradient(180deg, #f8fbf8, #edf3ee);
    color: var(--text);
  }

  .eyebrow,
  .status-label,
  .section-kicker,
  .overview-delta-label {
    color: #03c75a;
  }

  .section-title,
  .metric-value,
  .summary-value,
  .detail-value,
  .status-card strong,
  .metric-card strong,
  .summary-card strong,
  .detail-card strong,
  .record-card strong,
  .form-card strong,
  .sync-card strong,
  .table-head strong,
  .card-head strong,
  .form-head strong,
  .sync-head strong,
  .mobile-disclosure-copy strong,
  .mobile-record-title,
  .pushup-mobile-live-primary strong {
    color: #1f252d;
  }

  .section-subtitle,
  .topbar p,
  .card-note,
  .metric-note,
  .detail-note,
  .table-note,
  .form-help,
  .sync-copy,
  .empty-state p,
  .muted,
  .mobile-record-subtitle,
  .mobile-record-footer,
  .mobile-inline-meta,
  .mobile-disclosure-copy span,
  .mobile-disclosure-icon,
  .pushup-mobile-live-primary span,
  .pushup-mobile-live-meta,
  .chart-legend,
  .chart-legend span,
  .record-readonly-note {
    color: #67736e;
  }

  .metric-label,
  .summary-label,
  .detail-label,
  .record-label,
  label,
  .mobile-record-key,
  .running-filter-label,
  .filter-label {
    color: #7a8680;
  }

  .view-tabs {
    border-color: rgba(53, 71, 58, 0.08);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(58, 76, 62, 0.04);
    backdrop-filter: blur(14px);
  }

  .view-tabs::-webkit-scrollbar-thumb {
    background: rgba(68, 84, 73, 0.16);
  }

  .view-tab {
    background: #fbfcfb;
    border-color: rgba(53, 71, 58, 0.08);
    color: #66726d;
    box-shadow: 0 8px 16px rgba(58, 76, 62, 0.03);
  }

  .view-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #03c75a, #19d66b);
    box-shadow: 0 12px 22px rgba(3, 199, 90, 0.16);
  }

  .view-tab.active .source-pending-tab-marker {
    color: rgba(255, 255, 255, 0.88);
  }

  .section-shell,
  .hero-card,
  .metric-card,
  .summary-card,
  .detail-card,
  .record-card,
  .chart-card,
  .form-card,
  .sync-card,
  .mobile-record-card,
  .overview-stat-card,
  .overview-pipeline-card,
  .overview-summary-card,
  .overview-highlight-card,
  .overview-digest-card,
  .overview-compact-card,
  .empty-state,
  .debug-banner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 247, 0.98));
    border-color: rgba(53, 71, 58, 0.09);
    box-shadow: 0 12px 30px rgba(58, 76, 62, 0.05);
    color: var(--text);
  }

  .hero-card::before,
  .section-shell::before,
  .chart-card::before,
  .detail-card::before {
    background: linear-gradient(90deg, #03c75a 0%, #8cdaa8 56%, #dff4e6 100%);
  }

  .overview-stat-card .metric-label,
  .overview-pipeline-card .metric-label,
  .overview-summary-card .metric-label,
  .overview-highlight-card .metric-label,
  .overview-digest-card .metric-label,
  .overview-compact-card .metric-label {
    color: #0d9d50;
  }

  .overview-stat-card strong,
  .overview-pipeline-card strong,
  .overview-summary-card strong,
  .overview-highlight-card strong,
  .overview-digest-card strong,
  .overview-compact-card strong {
    color: #1f252d;
  }

  .overview-stat-card p,
  .overview-pipeline-card p,
  .overview-summary-card p,
  .overview-highlight-card p,
  .overview-digest-card p,
  .overview-compact-card p {
    color: #66726e;
  }

  #view-overview .overview-delta-card {
    border: 1px solid rgba(53, 71, 58, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 249, 0.98));
    box-shadow: 0 12px 28px rgba(58, 76, 62, 0.05);
  }

  #view-overview .overview-delta-card::before,
  #view-overview .overview-delta-card-green::before {
    background: linear-gradient(90deg, #03c75a, #8ddcab);
  }

  #view-overview .overview-delta-card-violet::before {
    background: linear-gradient(90deg, #55b8a0, #b7e6d8);
  }

  #view-overview .overview-delta-card-orange::before {
    background: linear-gradient(90deg, #96b78f, #dce9d7);
  }

  #view-overview .overview-delta-card-coral::before {
    background: linear-gradient(90deg, #b8bf7a, #ecefce);
  }

  #view-overview .overview-delta-card-sky::before {
    background: linear-gradient(90deg, #24b97a, #a9e0c5);
  }

  #view-overview .overview-delta-primary,
  #view-overview .overview-delta-compare,
  #view-overview .overview-delta-footnote-block,
  #view-overview .overview-flow-head span {
    color: #64706c;
  }

  #view-overview .overview-delta-primary strong,
  #view-overview .overview-delta-compare strong,
  #view-overview .overview-delta-footnote-block strong,
  #view-overview .overview-flow-head strong {
    color: #1f252d;
  }

  #view-overview .overview-delta-bar-track {
    background: #edf2ed;
  }

  #view-overview .overview-delta-bar-row.is-current .overview-delta-bar-fill {
    background: linear-gradient(90deg, #03c75a, #30d06e);
  }

  #view-overview .overview-delta-bar-row.is-previous .overview-delta-bar-fill {
    background: linear-gradient(90deg, #cfdbd1, #b6c4b9);
  }

  #view-overview .overview-delta-bar-row.is-current .overview-delta-bar-label,
  #view-overview .overview-delta-bar-row.is-current .overview-delta-bar-value {
    color: #1f252d;
  }

  #view-overview .overview-delta-bar-row.is-previous .overview-delta-bar-label {
    color: #7b887f;
  }

  #view-overview .overview-delta-bar-row.is-previous .overview-delta-bar-value {
    color: #6b7770;
  }

  #view-overview .overview-flow-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 248, 0.98));
    border-color: rgba(53, 71, 58, 0.08);
    box-shadow: 0 12px 28px rgba(58, 76, 62, 0.04);
  }

  .primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #03c75a, #19d66b);
    box-shadow: 0 12px 24px rgba(3, 199, 90, 0.18);
  }

  .ghost-button,
  .small-button,
  .tab-chip,
  .segment-chip,
  .page-button {
    color: #314037;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(53, 71, 58, 0.12);
    box-shadow: 0 8px 18px rgba(58, 76, 62, 0.04);
  }

  .tab-chip.active,
  .segment-chip.active,
  .page-button.active {
    color: #ffffff;
    background: linear-gradient(135deg, #03c75a, #20d66b);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(3, 199, 90, 0.16);
  }

  .page-ellipsis {
    color: #6b7770;
  }

  input,
  textarea,
  select,
  .running-filter-select,
  .filter-inline-select {
    background: #ffffff;
    border-color: rgba(53, 71, 58, 0.12);
    color: #26322c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  input::placeholder,
  textarea::placeholder,
  select::placeholder {
    color: #95a099;
  }

  .mobile-disclosure-toggle,
  .mobile-filter-disclosure .mobile-disclosure-toggle,
  .mobile-filter-disclosure .mobile-disclosure-body,
  .pushup-mobile-live-bar,
  .mobile-status-inline {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 247, 0.98));
    border-color: rgba(53, 71, 58, 0.10);
    box-shadow: 0 14px 28px rgba(58, 76, 62, 0.08);
    color: var(--text);
  }

  .pushup-mobile-live-status {
    border-color: rgba(3, 199, 90, 0.18);
    background: rgba(3, 199, 90, 0.10);
    color: #0d9d50;
  }

  .surface-pill.outdoor {
    background: #dff3ff;
    color: #2387bc;
    font-weight: 800;
  }

  .surface-pill.treadmill {
    background: #ffe8d2;
    color: #d47b24;
    font-weight: 800;
  }

  .source-pill.garmin {
    background: #dcd8fb;
    color: #51439e;
  }

  .source-pill.galaxy {
    background: #d8f2e3;
    color: #1f7a48;
  }

  .source-pill.health-connect {
    background: #d9f3e7;
    color: #167a56;
  }

  .delta-pill.up {
    background: rgba(3, 199, 90, 0.10);
    color: #0d9d50;
  }

  .delta-pill.down {
    background: rgba(255, 107, 87, 0.12);
    color: #d65745;
  }

  .delta-pill.flat {
    background: rgba(80, 95, 86, 0.08);
    color: #67736e;
  }

  .chart-tooltip {
    border-color: rgba(53, 71, 58, 0.12);
    background: rgba(255, 255, 255, 0.98);
    color: #1f252d;
    box-shadow: 0 16px 34px rgba(58, 76, 62, 0.12);
  }

  .trend-up {
    color: #ff6b57;
  }

  .trend-down {
    color: #119464;
  }
}

.cholesterol-guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.cholesterol-guide-card {
  min-height: 0;
}

.cholesterol-guide-card .metric-label {
  margin-bottom: 10px;
}

.cholesterol-guide-card .metric-value {
  font-size: clamp(1.08rem, 1.35vw, 1.62rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.cholesterol-guide-card .metric-note {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

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

  .cholesterol-guide-card .metric-value {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .cholesterol-guide-grid {
    grid-template-columns: 1fr;
  }
}
