/* ─────────────────────────────────────────────────────────────
   Adam OS — Design System v2 (F2AI-faithful rebuild)
   Dark sidebar · warm cream main · 3D character forward
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* F2AI palette */
  --sidebar: #1A1A22;
  --sidebar-hover: #2A2A35;
  --sidebar-active: #353541;
  --sidebar-text: #FFFFFF;
  --sidebar-muted: #6E6E78;

  --bg: #F1EBE2;
  --bg-warm: #EAE3D6;
  --card: #FFFFFF;
  --card-soft: #FAF6EE;
  --border: #E5DFD2;
  --border-strong: #D6CFBE;

  --ink: #1A1A22;
  --ink-soft: #3A3A45;
  --muted: #8B8B95;
  --muted-soft: #B5B5BD;

  /* Vibrant accents */
  --lime: #DCFC4F;
  --lime-soft: #ECFD8C;
  --peach: #FFB088;
  --peach-soft: #FFD4B8;
  --coral: #FF7F6E;
  --pink: #FFA3C7;
  --violet: #B8A0FF;
  --mint: #A0E8C8;
  --sky: #A0D0FF;

  /* Status */
  --green: #4ADE80;
  --amber: #FBBF24;
  --red: #F87171;

  /* Brand kits — switched on tab */
  --accent: var(--lime);
  --accent-ink: var(--ink);

  /* Type */
  --font-display: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-card: 0 1px 2px rgba(26, 26, 34, 0.04), 0 8px 24px rgba(26, 26, 34, 0.06);
  --shadow-hover: 0 2px 4px rgba(26, 26, 34, 0.06), 0 16px 40px rgba(26, 26, 34, 0.10);
  --shadow-sidebar: 4px 0 24px rgba(0, 0, 0, 0.04);
}

/* Brand kits */
[data-brand="wh"] {
  --accent: #98E4D8;
  --accent-ink: #0A4448;
  --bg: #EFEAE0;
  --hero-bg: #0A4448;
  --hero-accent: #98E4D8;
  --tag-bg: rgba(10, 68, 72, 0.1);
  --tag-color: #0A4448;
}
[data-brand="af"] {
  --accent: #D5FF1E;
  --accent-ink: #0040FF;
  --bg: #F0EDE6;
  --hero-bg: #0A1A35;
  --hero-accent: #D5FF1E;
  --tag-bg: rgba(0, 64, 255, 0.1);
  --tag-color: #0040FF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ═══════════════════ APP SHELL ═══════════════════ */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ═══════════════════ SIDEBAR ═══════════════════ */
.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 32px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-name em {
  font-style: normal;
  color: var(--lime);
}

.nav-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--sidebar-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 12px;
  margin: 24px 0 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--sidebar-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text);
}

.nav-item.active::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--lime);
  border-radius: 2px;
  margin-right: -4px;
  margin-left: -8px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-icon img { width: 22px; height: 22px; object-fit: contain; }

.nav-badge {
  margin-left: auto;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
}

.sidebar-spacer { flex: 1; }

.user-card {
  background: var(--sidebar-hover);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 600; font-size: 13px; color: var(--sidebar-text); }
.user-meta { font-size: 11px; color: var(--sidebar-muted); }

/* ═══════════════════ MAIN ═══════════════════ */
.main {
  padding: 24px;
  background: var(--bg);
}

.workspace {
  background: var(--card-soft);
  border-radius: var(--r-xl);
  padding: 28px 32px 32px;
  min-height: calc(100vh - 48px);
}

/* ═══════════════════ TOP BAR ═══════════════════ */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.topbar-greeting {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.topbar-greeting span {
  color: var(--muted);
  font-weight: 400;
}

.topbar-spacer { flex: 1; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  width: 320px;
  transition: all 0.15s;
}

.search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(26, 26, 34, 0.06);
}

.search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.search input::placeholder { color: var(--muted-soft); }

.kbd {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-warm);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 6px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-pill:hover { transform: translateY(-1px); }
.btn-pill:active { transform: translateY(0); }

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}
.btn-lime:hover { background: var(--lime-soft); }

.btn-dark {
  background: var(--ink);
  color: var(--card);
}
.btn-dark:hover { background: var(--ink-soft); }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--bg-warm); }

.btn-soft {
  background: var(--bg-warm);
  color: var(--ink);
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-card {
  background: var(--ink);
  color: var(--card);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(220, 252, 79, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-pre {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-pre .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(220, 252, 79, 0.2);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(220, 252, 79, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(220, 252, 79, 0.0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  max-width: 480px;
}

.hero-title em {
  font-style: italic;
  color: var(--lime);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.5;
  max-width: 460px;
}

.hero-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.hero-companion {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-companion::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(220, 252, 79, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.companion-img {
  width: 144px;
  height: 144px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(26, 26, 34, 0.18));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.companion-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-top: 8px;
}

.companion-status {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.companion-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ═══════════════════ SECTION ═══════════════════ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 32px 0 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head .meta { font-size: 12px; color: var(--muted); }

/* ═══════════════════ TASK CARDS GRID ═══════════════════ */
.task-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.task {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 20px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.18s;
  cursor: pointer;
}

.task:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.task.featured {
  grid-column: span 2;
  background: var(--card);
  border: 1px solid var(--ink);
}

.task-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.task-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.task-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(26, 26, 34, 0.12));
}

.task-icon.peach { background: var(--peach-soft); }
.task-icon.lime  { background: var(--lime-soft); }
.task-icon.violet { background: rgba(184, 160, 255, 0.18); }
.task-icon.mint  { background: rgba(160, 232, 200, 0.22); }
.task-icon.pink  { background: rgba(255, 163, 199, 0.18); }
.task-icon.sky   { background: rgba(160, 208, 255, 0.22); }

.task-meta { flex: 1; min-width: 0; }

.task-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-warm);
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.task-tag.tag-wh { background: rgba(10, 68, 72, 0.08); color: #0A4448; }
.task-tag.tag-af { background: rgba(0, 64, 255, 0.08); color: #0040FF; }
.task-tag.tag-personal { background: var(--lime-soft); color: var(--ink); }

.task-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
}

.featured .task-title { font-size: 19px; }

.task-context {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.task-suggest {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
}

.task-suggest::before {
  content: "Adam's plan";
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--ink);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-sm);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--bg-warm);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s;
}

.btn-action:hover { background: var(--ink); color: var(--card); }

.btn-action.primary { background: var(--ink); color: var(--card); }
.btn-action.primary:hover { background: var(--lime); color: var(--ink); }

.btn-action.lime { background: var(--lime); color: var(--ink); }
.btn-action.lime:hover { background: var(--lime-soft); }

.btn-action img { width: 14px; height: 14px; }

/* ═══════════════════ ACTIVITY RAIL (right) ═══════════════════ */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 32px;
}

.body-snapshot {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--border);
}

.body-snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.body-snapshot-head h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.organ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.organ {
  background: var(--card-soft);
  border-radius: var(--r-md);
  padding: 14px 10px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.15s;
}

.organ:hover {
  background: var(--bg-warm);
  transform: translateY(-2px);
}

.organ-img {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 3px 6px rgba(26, 26, 34, 0.1));
}

.organ-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 2px;
}

.organ-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.organ.alert { background: rgba(248, 113, 113, 0.1); }
.organ.alert .organ-value { color: var(--red); }

.organ.warn { background: rgba(251, 191, 36, 0.12); }
.organ.warn .organ-value { color: #B45309; }

.organ.good { background: rgba(74, 222, 128, 0.12); }
.organ.good .organ-value { color: #166534; }

/* ═══════════════════ FEED ═══════════════════ */
.feed {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--border);
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feed-head h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.feed-item:first-child { padding-top: 0; }

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

.feed-avatar.peach { background: var(--peach-soft); }
.feed-avatar.violet { background: rgba(184, 160, 255, 0.4); }
.feed-avatar.mint { background: rgba(160, 232, 200, 0.45); }
.feed-avatar.pink { background: rgba(255, 163, 199, 0.4); }
.feed-avatar.sky { background: rgba(160, 208, 255, 0.45); }

.feed-body { flex: 1; min-width: 0; }
.feed-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.feed-msg {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.feed-time { font-size: 11px; color: var(--muted-soft); margin-top: 4px; }

/* ═══════════════════ QUICK ═══════════════════ */
.quick-fire {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  margin-top: 24px;
}

.quick-fire input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--card);
  font-family: inherit;
  font-size: 14px;
  padding: 8px 0;
}

.quick-fire input::placeholder { color: rgba(255, 255, 255, 0.45); }

.quick-fire-go {
  background: var(--lime);
  color: var(--ink);
  border: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-fire-go:hover { background: var(--lime-soft); }

/* Responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }
  .task.featured { grid-column: span 1; }
}

@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .organ-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════
   PAGE COMPONENTS — added for Body / WH / AstraForm
   ═══════════════════════════════════════════════════════ */

/* ─── Page hero (used by WH + AstraForm) ─── */
.page-hero {
  background: var(--hero-bg, var(--ink));
  color: var(--card);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 24px;
  align-items: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-pre {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hero-accent, var(--lime));
  margin-bottom: 10px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  max-width: 520px;
}

.page-hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  max-width: 520px;
  line-height: 1.5;
}

.page-hero-img {
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25));
  position: relative;
  z-index: 2;
}

/* ─── KPI tiles ─── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.kpi-delta {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kpi-delta.up { color: #166534; }
.kpi-delta.down { color: #B91C1C; }
.kpi-delta.flat { color: var(--muted); }

.kpi-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  opacity: 0.75;
}

/* ─── Two-column page layout ─── */
.cols-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-head h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.panel-head .meta { font-size: 12px; color: var(--muted); }

/* ─── Pipeline kanban ─── */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.kanban-col {
  background: var(--card-soft);
  border-radius: var(--r-md);
  padding: 14px;
  min-height: 200px;
}

.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kanban-col.hot .kanban-col-head { color: #B91C1C; }
.kanban-col.warm .kanban-col-head { color: #B45309; }
.kanban-col.cold .kanban-col-head { color: var(--muted); }

.kanban-col-count {
  background: var(--card);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  font-size: 11px;
  color: var(--ink);
}

.deal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 0.12s;
}

.deal:hover { transform: translateY(-1px); border-color: var(--ink); }

.deal-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deal-img { width: 22px; height: 22px; }
.deal-meta { font-size: 11px; color: var(--muted); line-height: 1.4; }
.deal-bar {
  margin-top: 6px;
  height: 4px;
  background: var(--bg-warm);
  border-radius: 2px;
  overflow: hidden;
}
.deal-bar-fill {
  height: 100%;
  background: var(--accent-ink, var(--ink));
  border-radius: 2px;
}

/* ─── Team list ─── */
.team-list { display: flex; flex-direction: column; gap: 10px; }

.team-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background 0.12s;
}

.team-row:hover { background: var(--card-soft); }

.team-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.team-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}

.team-role { font-size: 11px; color: var(--muted); }

.team-stats { display: flex; gap: 8px; font-size: 11px; }
.team-stat {
  background: var(--card-soft);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-weight: 500;
}
.team-stat.alert { background: rgba(248,113,113,0.15); color: #B91C1C; }

/* ─── Email rows ─── */
.email-list { display: flex; flex-direction: column; }

.email-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.email-row:last-child { border-bottom: none; }
.email-row:hover { background: var(--card-soft); padding-left: 8px; padding-right: 8px; border-radius: var(--r-sm); }

.email-priority {
  width: 4px;
  background: var(--ink);
  border-radius: 2px;
  align-self: stretch;
}
.email-priority.hot { background: var(--red); }
.email-priority.warm { background: var(--amber); }

.email-from { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.email-subject { font-size: 13px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }
.email-time { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ─── Calendar week (compact) ─── */
.weekcal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekcal-day {
  background: var(--card-soft);
  border-radius: var(--r-sm);
  padding: 10px 8px;
  min-height: 100px;
  font-size: 11px;
}

.weekcal-day.today {
  background: var(--ink);
  color: var(--card);
}

.weekcal-day.today .weekcal-date,
.weekcal-day.today .weekcal-meet { color: var(--card); }

.weekcal-dow { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.65; }
.weekcal-date {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
}
.weekcal-meet {
  font-size: 10px;
  margin-top: 6px;
  padding: 3px 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--ink-soft);
}
.weekcal-day:not(.today) .weekcal-meet {
  background: var(--card);
  color: var(--ink-soft);
}
.weekcal-meet.priority { background: var(--lime); color: var(--ink); }

/* ─── WhatsApp threads ─── */
.wa-list { display: flex; flex-direction: column; gap: 4px; }
.wa-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.wa-row:hover { background: var(--card-soft); }

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 13px;
}

.wa-name { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.wa-msg {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.wa-time { font-size: 11px; color: var(--muted); white-space: nowrap; align-self: start; }
.wa-row.unread .wa-name::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin-left: 6px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   ADAM BODY PAGE — center stage + organs
   ═══════════════════════════════════════════════════════ */

.body-page {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.body-stage {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 720px;
}

.body-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(220, 252, 79, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(255, 176, 136, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.body-stage-head {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.body-stage-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.body-stage-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  max-width: 480px;
}

.body-figure {
  position: relative;
  z-index: 2;
  margin: 24px auto 0;
  width: 240px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.body-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(26, 26, 34, 0.18));
  animation: float 5s ease-in-out infinite;
}

.body-organs-ring {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.body-organ-btn {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}

.body-organ-btn:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  background: var(--card);
}

.body-organ-btn.active {
  background: var(--ink);
  border-color: var(--ink);
}
.body-organ-btn.active .body-organ-label,
.body-organ-btn.active .body-organ-value { color: var(--card); }
.body-organ-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--lime);
  border-radius: 2px 2px 0 0;
}

.body-organ-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.body-organ-img { width: 32px; height: 32px; flex-shrink: 0; }

.body-organ-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.body-organ-value {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.body-organ-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: auto;
}
.body-organ-status.green { background: var(--green); }
.body-organ-status.amber { background: var(--amber); }
.body-organ-status.red { background: var(--red); }
.body-organ-status.muted { background: var(--muted-soft); }

/* Drilldown panel */
.drilldown {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 24px;
}

.drilldown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.drilldown-head img { width: 44px; height: 44px; }

.drilldown-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.drilldown-head .sub { font-size: 12px; color: var(--muted); }

.drilldown-day {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 8px;
}

.drilldown-day:first-of-type { margin-top: 0; }

