:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #102033;
  --muted: #5c6b7a;
  --line: #d9e2ec;
  --primary: #3525a7;
  --primary-soft: #ede9fe;
  --blue: #175cd3;
  --blue-soft: #e8f1ff;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --success: #067647;
  --success-soft: #ecfdf3;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --shadow: 0 10px 26px rgba(16, 32, 51, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, #ede9fe 0, #f4f7fb 34%, #f4f7fb 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.founder-shell {
  width: 100%;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 96px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.dashboard-main {
  min-width: 0;
}

.sidebar,
.top-header,
.hero,
.snapshot-card,
.attention-panel,
.dashboard-card,
.quick-launch,
.runtime-details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.sidebar-nav {
  display: grid;
  gap: 7px;
}

.sidebar-nav a {
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.sidebar-nav a:first-child,
.sidebar-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.top-header h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.hero { padding: 18px; margin-bottom: 16px; }

.brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #3525a7, #175cd3);
  font-weight: 900;
}

.alpha-pill,
.status-chip,
.health-chip,
.priority-chip { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 850; }

.alpha-pill { margin-left: auto; padding: 7px 11px; color: #fff; background: var(--warning); letter-spacing: 0.02em; }

.brand-name,
.brand-mode,
h1,
h2,
p { margin-top: 0; }

.brand-name { margin-bottom: 2px; font-weight: 900; }

.brand-mode,
.card-note,
.card-item span,
.hero-copy,
.snapshot-note,
.attention-meta,
.observation-note { color: var(--muted); }

.hero h1 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.01em; }

h2 { margin-bottom: 0; font-size: 1.12rem; }

.hero-copy { max-width: 720px; margin-bottom: 14px; font-size: 1.05rem; }

.guardrail-strip { display: flex; flex-wrap: wrap; gap: 8px; }

.guardrail-strip span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; background: var(--surface-soft); color: var(--muted); font-size: 0.8rem; font-weight: 800; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-heading.compact { align-items: start; flex-direction: column; gap: 2px; }

.eyebrow { margin: 0; color: var(--primary); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.07em; }

.executive-snapshot,
.attention-panel,
.quick-launch,
.runtime-details { margin-bottom: 16px; }

.snapshot-grid,
.dashboard-grid,
.health-grid,
.quick-link-grid { display: grid; gap: 12px; }

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

.snapshot-card { min-height: 138px; padding: 16px; border-left: 5px solid var(--blue); }
.snapshot-card strong { display: block; margin: 9px 0 4px; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 0.95; }
.snapshot-card.healthy { border-left-color: var(--success); }
.snapshot-card.warn { border-left-color: var(--warning); }
.snapshot-card.info { border-left-color: var(--primary); }
.snapshot-card.blue { border-left-color: var(--blue); }
.snapshot-label { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; }

.attention-panel,
.quick-launch,
.runtime-details,
.dashboard-card { padding: 16px; }
.attention-list { display: grid; gap: 10px; }
.attention-item { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.priority-rail { width: 6px; height: 100%; min-height: 58px; border-radius: 999px; background: var(--blue); }
.priority-high .priority-rail { background: var(--warning); }
.priority-medium .priority-rail { background: var(--blue); }
.priority-ready .priority-rail { background: var(--success); }
.attention-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 5px; }
.attention-title strong { font-size: 1.02rem; }
.priority-chip { padding: 4px 8px; font-size: 0.72rem; }
.priority-high .priority-chip { color: var(--warning); background: var(--warning-soft); }
.priority-medium .priority-chip { color: var(--blue); background: var(--blue-soft); }
.priority-ready .priority-chip { color: var(--success); background: var(--success-soft); }
.suggested-action { margin: 6px 0 0; font-weight: 850; }
.level-two { margin-bottom: 16px; }
.health-grid { grid-template-columns: 1fr; }
.health-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfdff; }
.health-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.health-chip { padding: 4px 8px; font-size: 0.72rem; }
.health-healthy .health-chip { color: var(--success); background: var(--success-soft); }
.health-attention .health-chip { color: var(--warning); background: var(--warning-soft); }
.health-critical .health-chip { color: var(--danger); background: var(--danger-soft); }
.health-info .health-chip { color: var(--blue); background: var(--blue-soft); }
.observation-preview { display: grid; gap: 10px; }
.observation-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfdff; }
.placeholder-button { width: 100%; margin-top: 12px; padding: 13px; border: 1px dashed var(--primary); border-radius: 10px; color: var(--primary); background: var(--primary-soft); font: inherit; font-weight: 900; }
.quick-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-link-grid a { border: 1px solid var(--line); border-radius: 12px; padding: 13px; color: var(--primary); background: var(--surface-soft); font-weight: 900; text-decoration: none; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-note { margin-bottom: 12px; }
.card-list { display: grid; gap: 8px; }
.card-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfe; }
.card-item strong { text-align: right; }
.status-chip { flex: 0 0 auto; padding: 4px 8px; color: var(--blue); background: var(--blue-soft); font-size: 0.72rem; }
.founder-sathi-fab { position: fixed; right: 16px; bottom: 16px; z-index: 20; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; color: #fff; background: var(--primary); box-shadow: 0 12px 30px rgba(53, 37, 167, 0.32); font: inherit; font-weight: 950; }
.screen-reader-anchor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (min-width: 720px) {
  .snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .snapshot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dashboard-layout { display: block; }
  .sidebar { position: static; margin-bottom: 14px; }
  .sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-header { align-items: flex-start; flex-direction: column; }
  .top-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .founder-shell { padding: 14px 12px 92px; }
  .hero,
  .attention-panel,
  .dashboard-card,
  .quick-launch,
  .runtime-details { padding: 14px; }
  .snapshot-grid,
  .dashboard-grid,
  .quick-link-grid { grid-template-columns: 1fr; }
  .sidebar-nav { grid-template-columns: 1fr; }
  .snapshot-card { min-height: 116px; }
  .attention-item { grid-template-columns: 1fr; }
  .priority-rail { width: 100%; height: 5px; min-height: 5px; }
  .founder-sathi-fab { right: 12px; bottom: 12px; }
}
