/* Dashboard-specific styles. Imports design tokens from design-tokens.css.
   Slack Block Kit cannot render this; we can. */

* { box-sizing: border-box; }
body.bsd {
  margin: 0;
  font-family: var(--bsd-font-sans);
  color: var(--bsd-fg-1);
  background: var(--bsd-bg-2);
  min-height: 100vh;
}

/* Buttons */
.bsd-button {
  display: inline-flex;
  align-items: center;
  gap: var(--bsd-space-2);
  padding: var(--bsd-space-3) var(--bsd-space-5);
  border-radius: var(--bsd-radius-md);
  border: 1px solid transparent;
  font-family: var(--bsd-font-sans);
  font-weight: var(--bsd-w-semibold);
  font-size: var(--bsd-size-body-sm);
  cursor: pointer;
  transition: background var(--bsd-dur-fast) var(--bsd-ease),
              box-shadow var(--bsd-dur-fast) var(--bsd-ease),
              transform var(--bsd-dur-fast) var(--bsd-ease);
  text-decoration: none;
}
.bsd-button[disabled] { opacity: 0.5; cursor: not-allowed; }
.bsd-button-primary {
  background: var(--bsd-blue);
  color: var(--bsd-fg-on-blue);
  box-shadow: var(--bsd-shadow-blue);
}
.bsd-button-primary:hover:not([disabled]) {
  background: var(--bsd-blue-hover);
  transform: translateY(-1px);
}

/* Inputs */
.bsd-input {
  padding: var(--bsd-space-3) var(--bsd-space-4);
  border-radius: var(--bsd-radius-md);
  border: 1px solid var(--bsd-border);
  background: var(--bsd-bg-1);
  font-family: var(--bsd-font-sans);
  font-size: var(--bsd-size-body-sm);
  color: var(--bsd-fg-1);
  transition: border-color var(--bsd-dur-fast) var(--bsd-ease),
              box-shadow var(--bsd-dur-fast) var(--bsd-ease);
  width: 100%;
}
.bsd-input:focus {
  outline: none;
  border-color: var(--bsd-blue);
  border-width: 1.5px;
  box-shadow: var(--bsd-ring-focus);
}

/* App shell */
.dash-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  background: var(--bsd-ink-900);
  color: var(--bsd-white);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
/* Brand zone: matches the topbar height/border on the right so the
   logo lines up visually with the page title on the eyebrow bar. */
.dash-sidebar-brand {
  display: flex;
  align-items: center;
  padding: var(--bsd-space-5) var(--bsd-space-5);
  border-bottom: 1px solid var(--bsd-ink-800);
  min-height: 88px;
}
.dash-sidebar-logo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}
.dash-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--bsd-space-1);
  padding: var(--bsd-space-5);
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: var(--bsd-space-3);
  padding: var(--bsd-space-3) var(--bsd-space-4);
  border-radius: var(--bsd-radius-md);
  color: var(--bsd-ink-200);
  text-decoration: none;
  font-weight: var(--bsd-w-medium);
  font-size: var(--bsd-size-body-sm);
  transition: background var(--bsd-dur-fast) var(--bsd-ease), color var(--bsd-dur-fast) var(--bsd-ease);
}
.dash-nav-item .bsd-icon { color: var(--bsd-ink-300); transition: color var(--bsd-dur-fast) var(--bsd-ease); }
.dash-nav-item:hover { background: var(--bsd-ink-800); color: var(--bsd-white); }
.dash-nav-item:hover .bsd-icon { color: var(--bsd-white); }
.dash-nav-item.is-active { background: var(--bsd-blue); color: var(--bsd-white); }
.dash-nav-item.is-active .bsd-icon { color: var(--bsd-white); }

/* Sidebar user block. The .dash-platform-pills section above it owns the
   margin-top: auto that anchors the bottom group, so this just sits
   directly below the pills. */
.dash-sidebar-user {
  padding: var(--bsd-space-4) var(--bsd-space-5) var(--bsd-space-5);
  border-top: 1px solid var(--bsd-ink-800);
}
.dash-user-card {
  display: flex;
  align-items: center;
  gap: var(--bsd-space-3);
  min-width: 0;
}
.dash-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--bsd-radius-pill);
  background: var(--bsd-blue);
  color: var(--bsd-white);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  font-weight: var(--bsd-w-bold);
  font-size: var(--bsd-size-caption);
  letter-spacing: 0.02em;
}
.dash-user-avatar-initials { background: var(--bsd-blue-700); }
.dash-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.dash-user-name {
  color: var(--bsd-white);
  font-weight: var(--bsd-w-semibold);
  font-size: var(--bsd-size-body-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-signout-icon {
  color: var(--bsd-ink-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--bsd-radius-md);
  flex-shrink: 0;
  transition: background var(--bsd-dur-fast) var(--bsd-ease), color var(--bsd-dur-fast) var(--bsd-ease);
}
.dash-signout-icon:hover { background: var(--bsd-ink-800); color: var(--bsd-white); }

/* Main */
.dash-main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.dash-topbar {
  background: var(--bsd-bg-1);
  border-bottom: 1px solid var(--bsd-border);
  padding: var(--bsd-space-5) var(--bsd-space-8);
}
.dash-topbar-title h1 { margin: 0; }
.dash-topbar-title .bsd-eyebrow { display: block; margin-bottom: var(--bsd-space-1); }
.dash-content { padding: var(--bsd-space-8); flex: 1; }
.dash-footer {
  padding: var(--bsd-space-6) var(--bsd-space-8);
  text-align: center;
  color: var(--bsd-fg-3);
  border-top: 1px solid var(--bsd-border);
}
.dash-footer .bsd-caption { color: var(--bsd-fg-3); font-size: var(--bsd-size-micro); }

/* Toolbar */
.dash-toolbar {
  display: flex;
  gap: var(--bsd-space-4);
  align-items: center;
  margin-bottom: var(--bsd-space-6);
}
.dash-search { max-width: 420px; }

/* Table */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bsd-bg-1);
  border-radius: var(--bsd-radius-md);
  border: 1px solid var(--bsd-border);
  box-shadow: var(--bsd-shadow-sm);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.dash-table th, .dash-table td {
  padding: var(--bsd-space-3) var(--bsd-space-4);
  text-align: left;
  font-size: var(--bsd-size-body-sm);
  border-bottom: 1px solid var(--bsd-border);
}
.dash-table th {
  background: var(--bsd-ink-50);
  font-weight: var(--bsd-w-semibold);
  color: var(--bsd-fg-2);
  font-size: var(--bsd-size-caption);
  text-transform: uppercase;
  letter-spacing: var(--bsd-track-wide);
}
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover { background: var(--bsd-bg-brand-soft); }
.dash-table-actions { text-align: right; }
.dash-cell-primary { font-weight: var(--bsd-w-semibold); color: var(--bsd-fg-1); }

/* Pills */
.role-pill {
  display: inline-block;
  padding: 2px var(--bsd-space-2);
  border-radius: var(--bsd-radius-pill);
  font-size: var(--bsd-size-micro);
  font-weight: var(--bsd-w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--bsd-track-wide);
}
.role-admin  { background: var(--bsd-blue-100); color: var(--bsd-blue-700); }
.role-leader { background: var(--bsd-ink-100); color: var(--bsd-ink-700); }

/* Audit log: action-pill styles mirror the role-pill shape. */
.action-pill {
  display: inline-block;
  padding: 2px var(--bsd-space-2);
  border-radius: var(--bsd-radius-pill);
  font-size: var(--bsd-size-micro);
  font-weight: var(--bsd-w-semibold);
  font-family: var(--bsd-font-mono);
  letter-spacing: 0;
  text-transform: none;
}
.action-pill-success { background: var(--bsd-green-100); color: var(--bsd-green-600); }
.action-pill-danger  { background: var(--bsd-red-100); color: var(--bsd-red-600); }
.action-pill-info    { background: var(--bsd-blue-100); color: var(--bsd-blue-700); }
.action-pill-neutral { background: var(--bsd-ink-100); color: var(--bsd-ink-700); }
.audit-details { max-width: 360px; }
.audit-details .bsd-caption { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.active-pill {
  display: inline-block;
  padding: 2px var(--bsd-space-2);
  border-radius: var(--bsd-radius-pill);
  font-size: var(--bsd-size-micro);
  font-weight: var(--bsd-w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--bsd-track-wide);
}
.active-pill.is-on  { background: var(--bsd-green-100); color: var(--bsd-green-600); }
.active-pill.is-off { background: var(--bsd-ink-100); color: var(--bsd-ink-600); }

/* Toggle variant: same look, but clickable to flip the active flag
   without opening the modal. Used in the client table. */
.active-pill.is-toggle {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--bsd-dur-fast) var(--bsd-ease), border-color var(--bsd-dur-fast) var(--bsd-ease);
}
.active-pill.is-toggle:hover {
  border-color: currentColor;
}
.active-pill.is-toggle:disabled {
  opacity: 0.5;
  cursor: wait;
}

.phase-note { margin-top: var(--bsd-space-6); font-style: italic; }
.load-error { color: var(--bsd-red-600); }

/* Icon buttons (table row actions) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--bsd-radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--bsd-fg-2);
  cursor: pointer;
  transition: background var(--bsd-dur-fast) var(--bsd-ease), color var(--bsd-dur-fast) var(--bsd-ease), border-color var(--bsd-dur-fast) var(--bsd-ease);
}
.icon-btn:hover {
  background: var(--bsd-ink-50);
  color: var(--bsd-fg-1);
  border-color: var(--bsd-border);
}
.icon-btn.icon-btn-danger:hover {
  background: var(--bsd-red-50);
  color: var(--bsd-red-600);
  border-color: var(--bsd-red-100);
}
.icon-btn-group { display: inline-flex; gap: var(--bsd-space-1); }

/* Modal */
[x-cloak] { display: none !important; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 18, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--bsd-space-6);
  z-index: 100;
}
.modal-card {
  background: var(--bsd-bg-1);
  border-radius: var(--bsd-radius-lg);
  box-shadow: var(--bsd-shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
}
.modal-card-lg { max-width: 720px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bsd-space-4);
  padding: var(--bsd-space-6) var(--bsd-space-6) var(--bsd-space-4);
}
.modal-header .bsd-eyebrow { display: block; margin-bottom: var(--bsd-space-1); }
.modal-header h2 { margin: 0; }
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--bsd-radius-md);
  border: none;
  background: transparent;
  color: var(--bsd-fg-2);
  cursor: pointer;
}
.modal-close:hover { background: var(--bsd-ink-50); color: var(--bsd-fg-1); }
.modal-body {
  padding: var(--bsd-space-2) var(--bsd-space-6) var(--bsd-space-4);
  overflow-y: auto;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--bsd-space-3);
  padding: var(--bsd-space-4) var(--bsd-space-6) var(--bsd-space-6);
  border-top: 1px solid var(--bsd-border);
}
.modal-confirm-body {
  padding: var(--bsd-space-4) var(--bsd-space-6) var(--bsd-space-2);
}
.modal-confirm-body p { margin: 0 0 var(--bsd-space-2); }
.bsd-button-secondary {
  background: var(--bsd-bg-1);
  color: var(--bsd-fg-1);
  border: 1px solid var(--bsd-border);
}
.bsd-button-secondary:hover:not([disabled]) { background: var(--bsd-ink-50); border-color: var(--bsd-border-strong); }
.bsd-button-danger {
  background: var(--bsd-red-500);
  color: var(--bsd-white);
}
.bsd-button-danger:hover:not([disabled]) { background: var(--bsd-red-600); }

/* Form layout in modals */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bsd-space-4);
}
.form-grid-full { grid-column: 1 / -1; }
.form-section-title {
  grid-column: 1 / -1;
  margin: var(--bsd-space-4) 0 0;
  padding-top: var(--bsd-space-3);
  border-top: 1px solid var(--bsd-border);
  font-size: var(--bsd-size-caption);
  font-weight: var(--bsd-w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--bsd-track-wide);
  color: var(--bsd-blue);
}
.form-section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.form-field { display: flex; flex-direction: column; gap: var(--bsd-space-2); }
.form-field label {
  font-size: var(--bsd-size-caption);
  font-weight: var(--bsd-w-semibold);
  color: var(--bsd-fg-2);
}
.form-field textarea.bsd-input { min-height: 72px; font-family: inherit; resize: vertical; }
.form-field select.bsd-input { appearance: none; padding-right: var(--bsd-space-8); background-image: linear-gradient(45deg, transparent 50%, var(--bsd-fg-2) 50%), linear-gradient(135deg, var(--bsd-fg-2) 50%, transparent 50%); background-position: calc(100% - 16px) center, calc(100% - 10px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form-toggle { display: flex; align-items: center; gap: var(--bsd-space-3); }
.form-toggle input { width: 18px; height: 18px; accent-color: var(--bsd-blue); }
.form-help { font-size: var(--bsd-size-micro); color: var(--bsd-fg-3); }
.form-error {
  font-size: var(--bsd-size-micro);
  color: var(--bsd-red-600);
  font-weight: var(--bsd-w-medium);
}
.bsd-input.is-invalid { border-color: var(--bsd-red-500); border-width: 1.5px; }
.bsd-input.is-invalid:focus {
  border-color: var(--bsd-red-500);
  box-shadow: 0 0 0 3px rgba(224, 56, 76, 0.18);
}

/* Autocomplete dropdown. The input lives in a relative wrapper so the
   absolute dropdown can position itself directly underneath. */
.autocomplete { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bsd-bg-1);
  border: 1px solid var(--bsd-border);
  border-radius: var(--bsd-radius-md);
  box-shadow: var(--bsd-shadow-md);
  max-height: 240px;
  overflow-y: auto;
}
.autocomplete-option {
  padding: var(--bsd-space-2) var(--bsd-space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: background var(--bsd-dur-fast) var(--bsd-ease);
}
.autocomplete-option:hover { background: var(--bsd-blue-50); }
.autocomplete-option-primary { font-weight: var(--bsd-w-semibold); color: var(--bsd-fg-1); font-size: var(--bsd-size-body-sm); }
.autocomplete-option-meta {
  font-size: var(--bsd-size-micro);
  color: var(--bsd-fg-3);
  text-transform: lowercase;
  letter-spacing: 0;
}
.autocomplete-meta {
  padding: var(--bsd-space-3);
  font-size: var(--bsd-size-caption);
  color: var(--bsd-fg-3);
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  bottom: var(--bsd-space-6);
  right: var(--bsd-space-6);
  background: var(--bsd-ink-900);
  color: var(--bsd-white);
  padding: var(--bsd-space-3) var(--bsd-space-5);
  border-radius: var(--bsd-radius-md);
  box-shadow: var(--bsd-shadow-lg);
  font-size: var(--bsd-size-body-sm);
  z-index: 200;
  max-width: 360px;
}
.toast.toast-error { background: var(--bsd-red-600); }
.toast.toast-info { background: var(--bsd-ink-900); }

/* Login + access-denied */
.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--bsd-space-6);
  background: var(--bsd-bg-2);
}
.login-card {
  background: var(--bsd-bg-1);
  border: 1px solid var(--bsd-border);
  border-radius: var(--bsd-radius-lg);
  box-shadow: var(--bsd-shadow-md);
  padding: var(--bsd-space-10);
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--bsd-space-5);
}
.login-card .bsd-h3, .login-card .bsd-h2 { margin: 0; }
.login-brand { display: flex; flex-direction: column; gap: var(--bsd-space-1); }
.login-error { color: var(--bsd-red-600); }
.login-meta { color: var(--bsd-fg-3); }

/* ── BSD Platform additions (Phase 0) ──────────────────────────────────── */

/* Platform label next to the logo */
.dash-sidebar-platform-label {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav divider between module items and admin items */
.dash-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: var(--space-2) var(--space-3);
}

/* "Soon" badge on coming-soon module cards */
.dash-nav-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 999px;
}

/* Platform pills (Strategy Tools / Pulse) anchored at the bottom of the sidebar.
   Visually distinct from .dash-nav-item: full-rounded, outlined, indicating
   "switch to a different surface" rather than a section within Config. */
.dash-platform-pills {
  margin-top: auto;
  padding: var(--bsd-space-4) var(--bsd-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--bsd-space-2);
  border-top: 1px solid var(--bsd-ink-800);
}
.dash-platform-pills-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bsd-ink-300);
  margin-bottom: var(--bsd-space-1);
}
.dash-platform-pill {
  display: flex;
  align-items: center;
  gap: var(--bsd-space-3);
  padding: var(--bsd-space-2) var(--bsd-space-4);
  border-radius: 9999px;
  border: 1px solid var(--bsd-ink-700);
  background: transparent;
  color: var(--bsd-ink-200);
  text-decoration: none;
  font-weight: var(--bsd-w-medium);
  font-size: var(--bsd-size-body-sm);
  transition: background var(--bsd-dur-fast) var(--bsd-ease), border-color var(--bsd-dur-fast) var(--bsd-ease), color var(--bsd-dur-fast) var(--bsd-ease);
}
.dash-platform-pill .bsd-icon { color: var(--bsd-ink-300); transition: color var(--bsd-dur-fast) var(--bsd-ease); }
.dash-platform-pill:hover { border-color: var(--bsd-ink-500, rgba(255,255,255,0.25)); background: rgba(255,255,255,0.04); color: var(--bsd-white); }
.dash-platform-pill:hover .bsd-icon { color: var(--bsd-white); }
.dash-platform-pill.is-active { border-color: transparent; background: var(--bsd-blue); color: var(--bsd-white); }
.dash-platform-pill.is-active .bsd-icon { color: var(--bsd-white); }
/* Inert pills for surfaces whose backend is not built yet (Pulse, Strategy Tools).
   Dead links: muted, no pointer, no hover affordance. */
.dash-platform-pill.is-disabled { opacity: 0.45; cursor: default; }
.dash-platform-pill.is-disabled:hover { border-color: var(--bsd-ink-700); background: transparent; color: var(--bsd-ink-200); }
.dash-platform-pill.is-disabled:hover .bsd-icon { color: var(--bsd-ink-300); }
.dash-platform-pill-soon {
  margin-left: auto;
  padding: 0 var(--bsd-space-2);
  border-radius: 9999px;
  background: var(--bsd-ink-700);
  color: var(--bsd-ink-200);
  font-size: var(--bsd-size-caption, 0.6875rem);
  font-weight: var(--bsd-w-semibold, 600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ────────────────────────────────────────────────────────────────────────
   Strategy Tools + Pulse mockup components
   ──────────────────────────────────────────────────────────────────────── */

/* Card grid (Strategy Tools dashboard) */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--bsd-space-4);
}
.dash-card {
  display: flex;
  flex-direction: column;
  gap: var(--bsd-space-2);
  padding: var(--bsd-space-5);
  background: var(--bsd-white);
  border: 1px solid var(--bsd-ink-200, #e5e7eb);
  border-radius: var(--bsd-radius-lg, 12px);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--bsd-dur-fast) var(--bsd-ease), transform var(--bsd-dur-fast) var(--bsd-ease), box-shadow var(--bsd-dur-fast) var(--bsd-ease);
}
.dash-card:hover { border-color: var(--bsd-blue); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); }
.dash-card.is-disabled { opacity: 0.6; pointer-events: none; }
.dash-card-meta {
  margin-top: auto;
  padding-top: var(--bsd-space-3);
  font-size: 0.7rem;
  color: var(--bsd-ink-400, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Toolbar groups (filter rows above tables) */
.dash-toolbar-group {
  display: flex;
  flex-direction: column;
  gap: var(--bsd-space-1);
}
.dash-toolbar-group .bsd-input { min-width: 180px; }

/* Stat strip */
.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--bsd-space-3);
  margin-bottom: var(--bsd-space-5);
}
.dash-stat {
  display: flex;
  flex-direction: column;
  gap: var(--bsd-space-1);
  padding: var(--bsd-space-4);
  background: var(--bsd-white);
  border: 1px solid var(--bsd-ink-200, #e5e7eb);
  border-radius: var(--bsd-radius-md, 8px);
}
.dash-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bsd-ink-900, #0f172a);
  line-height: 1.1;
}
.dash-stat-meta {
  font-size: 0.78rem;
  color: var(--bsd-ink-400, #6b7280);
}

/* Two-column split (Creative Calculator inputs vs output) */
.dash-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: var(--bsd-space-6);
  align-items: start;
}
.dash-split-left, .dash-split-right { display: flex; flex-direction: column; gap: var(--bsd-space-3); }
.dash-block-button { width: 100%; }

/* Result cards (Creative Calculator output) */
.dash-result-card {
  padding: var(--bsd-space-5);
  background: var(--bsd-blue);
  color: var(--bsd-white);
  border-radius: var(--bsd-radius-md, 8px);
  display: flex;
  flex-direction: column;
  gap: var(--bsd-space-2);
}
.dash-result-card .bsd-eyebrow { color: rgba(255, 255, 255, 0.7); }
.dash-result-card .bsd-caption { color: rgba(255, 255, 255, 0.85); }
.dash-result-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
}
.dash-result-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--bsd-space-3);
}
.dash-result {
  display: flex;
  flex-direction: column;
  gap: var(--bsd-space-1);
  padding: var(--bsd-space-3) var(--bsd-space-4);
  background: var(--bsd-white);
  border: 1px solid var(--bsd-ink-200, #e5e7eb);
  border-radius: var(--bsd-radius-md, 8px);
}
.dash-result-value-sm { font-size: 1.15rem; font-weight: 700; color: var(--bsd-ink-900, #0f172a); }

/* Profile header (Pulse) */
.dash-profile-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--bsd-space-5);
  align-items: center;
  padding: var(--bsd-space-5);
  background: var(--bsd-white);
  border: 1px solid var(--bsd-ink-200, #e5e7eb);
  border-radius: var(--bsd-radius-md, 8px);
  margin-bottom: var(--bsd-space-5);
}
.dash-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bsd-blue);
  color: var(--bsd-white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-profile-meta { display: flex; flex-direction: column; gap: var(--bsd-space-2); }
.dash-profile-quick { display: flex; gap: var(--bsd-space-5); flex-wrap: wrap; font-size: 0.85rem; color: var(--bsd-ink-500, #475569); }
.dash-profile-actions { display: flex; gap: var(--bsd-space-2); }

/* Checklist (Pulse profile goals) */
.dash-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--bsd-space-2); }
.dash-checklist li {
  padding: var(--bsd-space-2) 0 var(--bsd-space-2) var(--bsd-space-6);
  position: relative;
  color: var(--bsd-ink-700, #2a2f38);
}
.dash-checklist li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--bsd-ink-400, #6b7280);
  font-weight: 700;
}
.dash-checklist li.is-complete { color: var(--bsd-ink-400, #6b7280); text-decoration: line-through; }
.dash-checklist li.is-complete::before { content: '✓'; color: var(--bsd-blue); }

/* Tag chips */
.dash-tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--bsd-space-2); }
.dash-tag {
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--bsd-ink-100, #f1f5f9);
  color: var(--bsd-ink-700, #2a2f38);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Feedback cards */
.dash-feedback-item {
  padding: var(--bsd-space-4);
  background: var(--bsd-white);
  border: 1px solid var(--bsd-ink-200, #e5e7eb);
  border-radius: var(--bsd-radius-md, 8px);
}
.dash-feedback-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--bsd-space-2); gap: var(--bsd-space-3); }

/* Activity timeline */
.dash-timeline { display: flex; flex-direction: column; gap: var(--bsd-space-5); }
.dash-timeline-day { display: flex; flex-direction: column; gap: var(--bsd-space-3); }
.dash-timeline-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--bsd-space-3);
  padding: var(--bsd-space-3) var(--bsd-space-4);
  background: var(--bsd-white);
  border: 1px solid var(--bsd-ink-200, #e5e7eb);
  border-radius: var(--bsd-radius-md, 8px);
}
.dash-timeline-entry > div { display: flex; flex-direction: column; gap: var(--bsd-space-1); }
.dash-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bsd-blue);
  margin-top: 6px;
}

/* Empty state for access-denied module pages */
.bsd-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-6);
  color: var(--text-muted);
}
