:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #17181c;
  --muted: #5f6673;
  --line: #e4e7ec;
  --blue: #0b74ff;
  --green: #25b46b;
  --shadow: 0 16px 45px rgba(21, 26, 36, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(11,116,255,.08), rgba(37,180,107,.05) 38%, transparent 70%),
    var(--bg);
}
a { color: inherit; }
.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.sidebar {
  position: sticky;
  top: 28px;
  height: calc(100vh - 56px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}
.brand {
  display: grid;
  gap: 6px;
  padding: 8px 4px 20px;
}
.brand-mark {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.brand small { color: var(--muted); }
.side-nav {
  display: grid;
  gap: 8px;
}
.side-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}
.side-link.active, .side-link:hover {
  background: #101114;
  color: #fff;
}
.workspace { min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
  overflow-x: auto;
}
.tab {
  flex: 0 0 auto;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font-weight: 700;
}
.tab.active {
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 8px 26px rgba(23,24,28,.08);
}
.hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}
.hero.compact { box-shadow: var(--shadow); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}
h2 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}
.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.primary, .secondary, .button, .card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}
.primary, .button {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}
.secondary, .card-link, .button.muted {
  background: #fff;
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
.card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
}
.card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.45;
}
.card-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status-card {
  background: #101114;
  color: #fff;
}
.status-card p, .status-card .card-kicker { color: rgba(255,255,255,.7); }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; width: min(100vw - 24px, 1180px); padding-top: 18px; }
  .sidebar { position: static; height: auto; }
  .side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-link { text-align: center; }
  .topbar { display: grid; }
  .topbar-actions { justify-content: flex-start; }
  .hero { padding: 24px; border-radius: 20px; }
  h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
}
