:root {
  color-scheme: light;
  --bg: #f4f6f1;
  --surface: #ffffff;
  --surface-2: #eef2e8;
  --ink: #1d2520;
  --muted: #68736b;
  --line: #d8dfd4;
  --green: #2f6f4e;
  --blue: #315c7d;
  --amber: #a96f22;
  --red: #9b3d35;
  --shadow: 0 10px 30px rgba(31, 43, 35, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.topbar,
.section-heading,
.command-strip,
.panel,
.system-health {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 8px;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.98;
}

h2 {
  font-size: 1rem;
}

.system-pill {
  min-width: 150px;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface-2);
  color: var(--green);
  font-weight: 800;
  text-align: center;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 8px;
}

.command-strip > div {
  min-height: 82px;
  padding: 18px;
  background: var(--surface);
}

.command-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.grid,
.work-grid,
.lower-grid,
.system-health {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 8px 8px 0 0;
  border-bottom: 0;
  color: var(--muted);
}

.section-heading h2 {
  color: var(--ink);
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.executive-tile {
  min-height: 106px;
  padding: 16px;
  background: var(--surface);
}

.executive-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--green);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.15fr;
  gap: 18px;
}

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

.panel,
.system-health {
  border-radius: 8px;
  padding: 18px;
}

.panel h2 {
  margin-bottom: 14px;
}

.item-list,
.activity-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.item-list li,
.activity-list li,
.health-card,
.integration-card {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.item-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.item-list strong {
  color: var(--blue);
}

.activity-list li {
  color: var(--muted);
}

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

.integration-card strong,
.health-card strong {
  display: block;
  margin-bottom: 4px;
}

.integration-card span,
.health-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.system-health {
  padding: 0;
  overflow: hidden;
}

.system-health .health-grid {
  padding: 18px;
}

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

.tone-critical {
  color: var(--red);
}

@media (max-width: 1100px) {
  .dashboard-shell {
    width: min(100% - 28px, 960px);
  }

  .command-strip,
  .work-grid,
  .lower-grid,
  .executive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-strip,
  .work-grid,
  .lower-grid,
  .executive-grid,
  .integration-grid,
  .health-grid {
    grid-template-columns: 1fr;
  }
}
