:root {
  --sidebar-width: 248px;
  --shell-bg: #111827;
  --shell-bg-soft: #1f2937;
  --shell-text: #e5edf7;
  --shell-muted: #9ca3af;
}

.shell-sidebar,
.shell-mobile-nav {
  display: none;
}

body.is-dashboard .shell-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: var(--shell-bg);
  color: var(--shell-text);
}

.sidebar-brand {
  display: grid;
  gap: 4px;
  padding: 6px 6px 12px;
}

.sidebar-brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.sidebar-brand span,
.sidebar-footer span {
  color: var(--shell-muted);
  font-size: 12px;
}

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

.sidebar-nav button,
.shell-mobile-nav button {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sidebar-nav button {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: #cbd5e1;
}

.sidebar-nav button:hover,
.sidebar-nav button.active {
  background: var(--shell-bg-soft);
  color: #fff;
}

.sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

body.is-dashboard .topbar {
  margin-left: var(--sidebar-width);
}

body.is-dashboard main {
  width: min(1180px, calc(100vw - var(--sidebar-width) - 32px));
  margin: 22px 16px 36px calc(var(--sidebar-width) + 16px);
}

.dashboard-pane {
  scroll-margin-top: 76px;
}

body.is-dashboard .metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.is-dashboard .metric {
  min-height: 96px;
}

body.is-dashboard .section {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

body.is-dashboard table {
  font-size: 13px;
}

.setup-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-list li {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.setup-list li span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.setup-list li strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.setup-list li.complete {
  border-color: #b9e2c6;
  background: #f1fbf4;
}

@media (max-width: 1200px) {
  body.is-dashboard .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.is-dashboard .shell-sidebar {
    display: none;
  }

  body.is-dashboard .topbar {
    margin-left: 0;
  }

  body.is-dashboard main {
    width: calc(100vw - 20px);
    margin: 16px auto 30px;
  }

  body.is-dashboard .shell-mobile-nav {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: #fff;
    padding: 8px 10px;
  }

  .shell-mobile-nav button {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    background: var(--surface);
    font-size: 12px;
  }

  .shell-mobile-nav button.active {
    border-color: var(--accent);
    background: #e7f8f3;
    color: var(--accent);
  }
}

@media (max-width: 720px) {
  body.is-dashboard .metrics {
    grid-template-columns: 1fr;
  }

  .setup-list {
    grid-template-columns: 1fr;
  }
}
