:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f2;
  color: #163629;
  --green-950: #082c1c;
  --green-900: #0b3a25;
  --green-800: #0f4d31;
  --green-700: #16633f;
  --green-100: #e2f2e8;
  --green-50: #f0f8f3;
  --sunrise: #f3a83a;
  --sunrise-soft: #fff0d8;
  --amber: #b66c00;
  --amber-soft: #fff2d5;
  --red: #b83b36;
  --red-soft: #fde7e4;
  --slate: #607066;
  --line: #dce6de;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(15, 77, 49, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 90% 0%, rgba(243, 168, 58, 0.14), transparent 30rem),
    linear-gradient(180deg, #eef6f0 0%, #f7f9f6 34%, #f4f7f2 100%);
}

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.topbar,
.section-header,
.status-heading,
.goal-meta,
.topbar-actions,
.details-toggle,
footer {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--green-800), var(--green-950));
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 6px;
}

.eyebrow,
.section-label {
  margin-bottom: 4px;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-actions {
  gap: 10px;
}

.freshness {
  color: var(--slate);
  font-size: 13px;
}

.refresh-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-800);
  cursor: pointer;
  font-weight: 700;
}

.refresh-button:hover {
  border-color: #b6cabb;
  background: var(--white);
}

.card {
  border: 1px solid rgba(215, 229, 218, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 18px;
}

.status-card,
.goal-card {
  min-height: 230px;
  padding: 26px;
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 241, 0.96));
}

.status-heading {
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 0 6px rgba(22, 99, 63, 0.12);
}

.status-dot.yellow {
  background: var(--sunrise);
  box-shadow: 0 0 0 6px rgba(243, 168, 58, 0.14);
}

.status-dot.red {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(184, 59, 54, 0.13);
}

.status-dot.gate {
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(182, 108, 0, 0.13);
}

.muted {
  color: var(--slate);
}

.progress-orbit {
  flex: 0 0 auto;
}

.progress-ring {
  display: grid;
  width: 122px;
  height: 122px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--sunrise) 0deg, var(--green-100) 0deg);
  box-shadow: inset 0 0 0 1px rgba(15, 77, 49, 0.06);
}

.progress-ring > div {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--white);
}

.progress-ring strong {
  font-size: 26px;
  line-height: 1;
}

.progress-ring span {
  margin-top: 4px;
  color: var(--slate);
  font-size: 11px;
}

.goal-card {
  background:
    linear-gradient(140deg, rgba(8, 44, 28, 0.98), rgba(15, 77, 49, 0.96));
  color: var(--white);
}

.goal-card .section-label {
  color: #aee1bf;
}

.goal-card .muted {
  color: #bfd1c6;
}

.goal-meta {
  gap: 10px;
  margin-top: 18px;
}

.pill,
.team-state,
.path-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-green {
  background: #dff5e6;
  color: #14613a;
}

.pill-yellow {
  background: var(--sunrise-soft);
  color: #8c5500;
}

.pill-red {
  background: var(--red-soft);
  color: var(--red);
}

.goal-track {
  height: 7px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.goal-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3a83a, #ffd37f);
  transition: width 280ms ease;
}

.goal-summary {
  max-width: 70ch;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.section {
  margin-top: 24px;
}

.section-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-header.compact {
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 22px;
}

.legend {
  color: var(--slate);
  font-size: 12px;
}

.legend-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green-700);
}

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

.team-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.team-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 800;
}

.team-card h3 {
  font-size: 15px;
}

.team-state {
  margin-top: 9px;
  background: var(--green-100);
  color: var(--green-700);
}

.team-state.verify,
.team-state.watch,
.team-state.hold {
  background: var(--sunrise-soft);
  color: #8c5500;
}

.team-state.blocked,
.team-state.fail {
  background: var(--red-soft);
  color: var(--red);
}

.team-age {
  margin-top: 10px;
  color: var(--slate);
  font-size: 11px;
}

.path-card {
  padding: 22px;
}

.critical-path {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.path-node {
  position: relative;
  min-width: 150px;
  flex: 1 0 150px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafcf9;
}

.path-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -8px;
  z-index: 2;
  width: 8px;
  height: 2px;
  background: #bdcbbf;
  content: "";
}

.path-node strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.path-state {
  padding: 4px 7px;
  background: #edf1ee;
  color: #66746a;
}

.path-state.run,
.path-state.pass {
  background: var(--green-100);
  color: var(--green-700);
}

.path-state.gate {
  background: var(--amber-soft);
  color: var(--amber);
}


.command-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.command-status-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.command-status-heading h2 {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.command-status-copy .mono {
  margin: 8px 0 0;
}

.command-status-link {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.command-status-link:hover {
  background: var(--green-100);
}

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

.today-card,
.cost-card,
.milestone-card {
  min-height: 174px;
  padding: 22px;
}

.today-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.today-number strong,
.cost-value strong {
  font-size: 42px;
  letter-spacing: -0.05em;
}

.today-number span,
.cost-value span {
  color: var(--slate);
  font-size: 13px;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.summary-chip {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 700;
}

.summary-chip.bad {
  background: var(--red-soft);
  color: var(--red);
}

.cost-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.alert-banner {
  margin-bottom: 14px;
  border-radius: 18px;
  padding: 15px 18px;
  font-weight: 700;
  line-height: 1.45;
}

.alert-red {
  border: 1px solid #efc3bf;
  background: var(--red-soft);
  color: #8e2b27;
}

.alert-amber {
  border: 1px solid #efd29d;
  background: var(--amber-soft);
  color: #805000;
}

.alert-stale {
  border: 1px solid #d9dedb;
  background: #eef1ef;
  color: #526158;
}

.details-card {
  overflow: hidden;
}

.details-toggle {
  width: 100%;
  justify-content: space-between;
  border: 0;
  padding: 20px 22px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.details-toggle strong {
  display: block;
}

.details-panel {
  border-top: 1px solid var(--line);
  padding: 10px 22px 22px;
}

.details-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 13px;
}

.details-list dt {
  color: var(--slate);
}

.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 2px 0;
  color: var(--slate);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar {
    align-items: flex-start;
  }

  .freshness {
    display: none;
  }

  .status-card {
    align-items: flex-start;
  }

  .progress-ring {
    width: 100px;
    height: 100px;
  }

  .progress-ring > div {
    width: 72px;
    height: 72px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .command-status-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-status-link {
    width: 100%;
    text-align: center;
  }

  .details-list {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .details-list dd {
    margin-bottom: 10px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
