/* AIOS Demo — Command Centre styles (tokens from design-system.css linked in HTML) */
/* ─── Onboarding ─── */
.onboarding {
  min-height: 100vh;
  background: var(--brand-950);
  background-image:
    radial-gradient(ellipse 70% 55% at 15% 10%, hsl(42 55% 45% / 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, hsl(160 35% 28% / 0.3), transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.onboarding-card {
  background: var(--cream-50);
  border: 1px solid hsl(42 30% 86% / 0.7);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 1080px;
  width: 100%;
  padding: 2.25rem 1.75rem;
  animation: fadeIn 0.4s var(--ease-lux);
}
.onboarding-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.onboarding-step-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--gray-200);
  transition: background 0.3s;
}
.onboarding-step-dot.active { background: var(--brand-700); }
.onboarding-step-dot.done { background: var(--brand-400); }

.persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-height: min(68vh, 720px);
  overflow-y: auto;
  padding-right: 0.25rem;
}
@media (min-width: 640px) {
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
}
.persona-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.persona-card:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.persona-card:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 2px;
}
.persona-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}
.persona-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.persona-card:hover .persona-media img {
  transform: scale(1.04);
}
.persona-body {
  padding: 0.75rem 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.persona-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.persona-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  color: var(--gray-900);
  line-height: 1.25;
}
.persona-desc {
  font-size: 0.71875rem;
  color: var(--gray-500);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.persona-highlights {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.persona-highlights li {
  font-size: 0.65625rem;
  color: var(--gray-600);
  line-height: 1.3;
  padding-left: 0.7rem;
  position: relative;
}
.persona-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-500);
}

.logo-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.logo-preset {
  aspect-ratio: 1;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--gray-500);
  font-size: 0.625rem;
  font-weight: 600;
}
.logo-preset img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.logo-preset:hover { border-color: var(--brand-400); }
.logo-preset.selected {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 1px var(--brand-700);
  background: white;
}
.logo-preset-upload { min-height: 64px; }
.logo-live-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.logo-live-preview img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--gray-200);
}

.logo-upload {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.logo-upload:hover { border-color: var(--brand-400); }
.logo-upload.has-logo { border-style: solid; border-color: var(--brand-200); }
.logo-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  background: var(--gray-50);
}

/* Boot sequence */
.boot-screen {
  min-height: 100vh;
  background: var(--brand-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: white;
}
.boot-content { max-width: 420px; width: 100%; text-align: center; }
.boot-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-300);
}
.boot-steps { text-align: left; margin-top: 2rem; }
.boot-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  opacity: 0.35;
  transition: opacity 0.3s;
  font-size: 0.9375rem;
}
.boot-step.active { opacity: 1; }
.boot-step.done { opacity: 0.7; }
.boot-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--brand-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}
.boot-step-icon .icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}
.boot-step.done .boot-step-icon {
  background: var(--green-600);
  border-color: var(--green-600);
  color: white;
}
.boot-step.active .boot-step-icon {
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-300) 28%, transparent);
  animation: pulse 1.2s ease-in-out infinite;
}
.boot-progress {
  height: 4px;
  background: var(--brand-800);
  border-radius: 2px;
  margin-top: 2rem;
  overflow: hidden;
}
.boot-progress-bar {
  height: 100%;
  background: var(--gold-500);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* ─── App Shell ─── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--brand-900), var(--brand-950));
  color: var(--cream-50);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.25s ease, width 0.25s ease;
  border-right: 1px solid hsl(42 40% 50% / 0.12);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gold-300);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-brand-text { overflow: hidden; }
.sidebar-brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.sidebar-brand-sub {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-lg);
  color: var(--brand-100);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  position: relative;
  transition: all 0.15s;
}
.nav-item:hover {
  background: hsl(42 40% 70% / 0.12);
  color: var(--cream-50);
}
.nav-item.active {
  background: var(--brand-700);
  color: var(--cream-50);
  box-shadow: var(--shadow-lg);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gold-400);
  border-radius: 0 2px 2px 0;
}
.nav-item .icon { opacity: 0.85; }
.nav-item.active .icon { opacity: 1; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: var(--brand-200);
}

.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, hsl(45 55% 78% / 0.28), transparent 55%),
    radial-gradient(ellipse 50% 30% at 90% 0%, hsl(160 30% 65% / 0.1), transparent 50%),
    var(--cream-50);
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
}
.header-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.header-title { font-size: 1.125rem; font-weight: 600; color: var(--gray-800); }
.header-date { font-size: 0.8125rem; color: var(--gray-500); }
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.persona-dd {
  position: relative;
  flex-shrink: 0;
  z-index: 40;
}
.persona-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  color: var(--gray-800);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-width: 9.5rem;
  max-width: 13rem;
}
.persona-dd-trigger:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}
.persona-dd.open .persona-dd-trigger {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 22%, transparent);
}
.persona-dd-trigger .icon {
  margin-left: auto;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.persona-dd.open .persona-dd-trigger .icon {
  transform: rotate(180deg);
  color: var(--brand-600);
}
.persona-dd-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
}
.persona-dd-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.15;
}
.persona-dd-kicker {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.persona-dd-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 8.5rem;
}
.persona-dd-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(280px, calc(100vw - 2rem));
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 18px 40px -20px rgba(20, 29, 77, 0.28);
  padding: 0.4rem;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  animation: personaDdIn 0.16s ease;
}
@keyframes personaDdIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.persona-dd-panel-head {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 0.45rem 0.65rem 0.35rem;
}
.persona-dd-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.55rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--gray-800);
  transition: background 0.12s;
}
.persona-dd-option:hover {
  background: var(--brand-50);
}
.persona-dd-option.selected {
  background: var(--brand-50);
}
.persona-dd-option img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
}
.persona-dd-option-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 0.1rem;
}
.persona-dd-option-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-900);
}
.persona-dd-option-sub {
  font-size: 0.6875rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.persona-dd-check {
  color: var(--brand-700);
  display: inline-flex;
  flex-shrink: 0;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--green-700);
  font-weight: 500;
}
.live-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
  animation: pulse 2s ease-in-out infinite;
}

.content {
  flex: 1;
  padding: 1.5rem;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
}
.content > * { animation: fadeIn 0.3s ease; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-700);
  padding: 0.25rem;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
}

@media (max-width: 767px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .sidebar-backdrop.open { display: block; }
  .persona-dd { display: inline-flex; }
  .content { padding: 1rem; }
}

/* ─── Dashboard ─── */
.stats-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.stats-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stats-card.hero {
  border-left: 3px solid var(--gold-500);
}
.stats-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.stats-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stats-icon.brand { background: var(--brand-100); color: var(--brand-700); }
.stats-icon.green { background: var(--green-100); color: var(--green-700); }
.stats-icon.gold { background: var(--gold-100); color: var(--gold-700); }
.stats-icon.red { background: var(--red-100); color: var(--red-700); }
.stats-trend {
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}
.stats-trend.up { color: var(--green-600); }
.stats-trend.down { color: var(--red-600); }
.stats-hint { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 1024px) {
  .dashboard-grid { grid-template-columns: 2fr 1fr; }
}

.feed-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.feed-item:last-child { border-bottom: none; }
.feed-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.feed-icon.urgent { background: var(--red-100); color: var(--red-700); }
.feed-icon.info { background: var(--brand-100); color: var(--brand-700); }
.feed-icon.success { background: var(--green-100); color: var(--green-700); }
.feed-icon.warning { background: var(--gold-100); color: var(--gold-700); }
.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: 0.875rem; font-weight: 500; color: var(--gray-900); }
.feed-meta { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.125rem; }

.attention-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 900px) {
  .attention-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1rem;
  }
}

.schedule-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-700);
  width: 56px;
  flex-shrink: 0;
  padding-top: 0.125rem;
}
.schedule-content { flex: 1; }
.schedule-title { font-size: 0.875rem; font-weight: 500; }
.schedule-meta { font-size: 0.75rem; color: var(--gray-500); }

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.15rem;
  background: var(--gray-100);
  border-radius: 999px;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}
.view-toggle-btn .icon { width: 0.875rem; height: 0.875rem; }
.view-toggle-btn:hover { color: var(--gray-800); }
.view-toggle-btn.active {
  background: white;
  color: var(--brand-800);
  box-shadow: var(--shadow-sm);
}

.schedule-body { min-height: 0; }
.schedule-card .schedule-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 720px) {
  .schedule-card .schedule-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
  }
}
.empty-inline {
  padding: 1.25rem 0.25rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: center;
}

/* ─── Week schedule calendar (Booking_Calendar_Guide pattern) ─── */
.schedule-card .card-section-header { margin-bottom: 0.75rem; }
.week-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.week-cal-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.week-cal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--brand-200);
}
.week-cal-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
}
.week-cal-range {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.1rem;
}
.week-cal-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.week-cal-nav {
  display: inline-flex;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}
.week-cal-nav-btn {
  border: none;
  background: white;
  color: var(--gray-600);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.week-cal-nav-btn + .week-cal-nav-btn { border-left: 1px solid var(--gray-300); }
.week-cal-nav-btn:hover { background: var(--gray-50); color: var(--gray-900); }

.week-cal { margin-top: 0.25rem; }
.week-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--gray-200);
  border-bottom: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  background: var(--gray-50);
}
.week-cal-weekday {
  padding: 0.5rem 0.35rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.week-cal-weekday .short { display: none; }
@media (max-width: 640px) {
  .week-cal-weekday .full { display: none; }
  .week-cal-weekday .short { display: inline; }
}

.week-cal-body {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: white;
}
.week-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: absolute;
  inset: 0;
  height: 100%;
}
.week-cal-day {
  position: relative;
  min-width: 0;
  background: white;
}
.week-cal-day.has-border { border-left: 1px solid var(--gray-100); }
.week-cal-day.is-today { background: color-mix(in srgb, var(--brand-50) 55%, white); }
.week-cal-daynum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0.4rem 0 auto;
  float: right;
  height: 1.5rem;
  min-width: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
}
.week-cal-daynum.today {
  background: var(--brand-700);
  color: white;
}
.week-cal-more {
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.25rem;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: left;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  cursor: pointer;
}
.week-cal-more:hover {
  color: var(--brand-700);
  background: var(--gray-100);
}

.week-cal-bars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.week-cal-bar-wrap {
  position: absolute;
  padding: 0 2px;
  pointer-events: auto;
}
.week-cal-bar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  padding: 0 0.35rem 0 0.2rem;
  transition: background 0.12s, box-shadow 0.12s;
}
.week-cal-bar.cont-left { border-left: 0; border-radius: 0 6px 6px 0; }
.week-cal-bar.cont-right { border-right: 0; border-radius: 6px 0 0 6px; }
.week-cal-bar.cont-left.cont-right { border-radius: 0; }
.week-cal-accent {
  width: 3px;
  align-self: stretch;
  border-radius: 99px;
  flex-shrink: 0;
  margin: 2px 0 2px 2px;
}
.week-cal-accent-spacer { width: 4px; flex-shrink: 0; }
.week-cal-bar-label {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.week-cal-bar-label strong { font-weight: 700; }

.week-cal-bar.status-pending {
  background: var(--amber-100);
  border-color: var(--amber-200);
  color: var(--amber-900);
}
.week-cal-bar.status-pending .week-cal-accent { background: #f59e0b; }
.week-cal-bar.status-approved {
  background: var(--green-100);
  border-color: var(--green-100);
  color: var(--green-800);
}
.week-cal-bar.status-approved .week-cal-accent { background: var(--green-600); }
.week-cal-bar.status-in_progress,
.week-cal-bar.status-scheduled {
  background: var(--brand-100);
  border-color: var(--brand-200);
  color: var(--brand-900);
}
.week-cal-bar.status-in_progress .week-cal-accent,
.week-cal-bar.status-scheduled .week-cal-accent { background: var(--brand-600); }
.week-cal-bar.status-on-hire {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1e40af;
}
.week-cal-bar.status-on-hire .week-cal-accent { background: #2563eb; }
.week-cal-bar.status-completed {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-700);
}
.week-cal-bar.status-completed .week-cal-accent { background: var(--gray-400); }
.week-cal-bar:hover { box-shadow: var(--shadow-sm); filter: brightness(0.98); }

.week-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--gray-500);
  font-weight: 500;
}
.week-cal-legend .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.week-cal-legend .dot.pending { background: #f59e0b; }
.week-cal-legend .dot.approved { background: var(--green-600); }
.week-cal-legend .dot.in_progress { background: var(--brand-600); }
.week-cal-legend .dot.on-hire { background: #2563eb; }

/* ─── Chat ─── */
.chat-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h) - 3rem);
  max-height: 800px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-msg {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  animation: fadeIn 0.25s ease;
}
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
}
.chat-msg.assistant .chat-avatar {
  background: var(--brand-700);
  color: var(--gold-300);
}
.chat-msg.user .chat-avatar {
  background: var(--gray-200);
  color: var(--gray-700);
}
.chat-bubble {
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.chat-msg.assistant .chat-bubble {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-top-left-radius: 4px;
  color: var(--gray-800);
}
.chat-msg.user .chat-bubble {
  background: var(--brand-700);
  color: white;
  border-top-right-radius: 4px;
}
.chat-bubble p + p { margin-top: 0.5rem; }
.chat-bubble strong { font-weight: 600; }
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: pulse 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

.chat-rich-card {
  margin-top: 0.75rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-rich-card-header {
  padding: 0.625rem 0.875rem;
  background: var(--brand-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.chat-rich-card-body { padding: 0.875rem; }
.chat-table { width: 100%; font-size: 0.8125rem; border-collapse: collapse; }
.chat-table th {
  text-align: left;
  padding: 0.375rem 0.5rem;
  color: var(--gray-500);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
}
.chat-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}
.chat-draft {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  font-size: 0.8125rem;
  white-space: pre-wrap;
  color: var(--gray-700);
  margin-top: 0.5rem;
}
.chat-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.5rem 0.75rem;
}
.chat-suggestion {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 9999px;
  cursor: pointer;
  color: var(--gray-700);
  transition: all 0.15s;
}
.chat-suggestion:hover {
  border-color: var(--brand-700);
  color: var(--brand-700);
  background: var(--brand-50);
}

.chat-input-bar {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: white;
}
.chat-input-bar .input { flex: 1; }

/* ─── Inbox ─── */
.inbox-list { display: flex; flex-direction: column; }
.inbox-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.15s;
  align-items: flex-start;
}
.inbox-item:hover { background: var(--gray-50); }
.inbox-item.selected { background: var(--brand-50); }
.inbox-item.unread .inbox-subject { font-weight: 600; }
.inbox-priority {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.inbox-priority.high { background: var(--red-600); }
.inbox-priority.medium { background: var(--gold-500); }
.inbox-priority.low { background: var(--gray-300); }
.inbox-meta { flex: 1; min-width: 0; }
.inbox-from { font-size: 0.8125rem; color: var(--gray-500); }
.inbox-subject { font-size: 0.875rem; color: var(--gray-900); margin-top: 0.125rem; }
.inbox-preview { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-time { font-size: 0.75rem; color: var(--gray-400); flex-shrink: 0; }
.inbox-detail {
  border-top: 1px solid var(--gray-200);
  padding: 1.25rem;
  background: var(--gray-50);
}
.inbox-detail-body {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  white-space: pre-wrap;
  margin: 1rem 0;
}

/* ─── Financials ─── */
.chart-container {
  position: relative;
  height: 240px;
  width: 100%;
}
.aging-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gray-100);
  margin: 0.75rem 0;
}
.aging-segment { height: 100%; }
.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}
.invoice-row:last-child { border-bottom: none; }

/* ─── Briefings ─── */
.brief-tabs {
  display: inline-flex;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.125rem;
}
.brief-tab {
  padding: 0.5rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.brief-tab .icon { width: 0.875rem; height: 0.875rem; flex-shrink: 0; display: block; }
.brief-tab.active {
  background: var(--brand-700);
  color: white;
  box-shadow: var(--shadow-sm);
}
.brief-doc {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  max-width: 720px;
}
.brief-doc h2 { margin-bottom: 0.25rem; }
.brief-doc .brief-date { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.brief-section { margin-bottom: 1.5rem; }
.brief-section h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-700);
  margin-bottom: 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--brand-100);
}
.brief-section ul { list-style: none; }
.brief-section li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.brief-section li::before {
  content: '•';
  position: absolute;
  left: 0.25rem;
  color: var(--gold-500);
  font-weight: 700;
}
.brief-highlight {
  background: var(--brand-50);
  border-left: 3px solid var(--brand-700);
  padding: 0.875rem 1rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 0.875rem;
  color: var(--brand-900);
  margin: 1rem 0;
}

/* ─── Automations ─── */
.auto-score {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.auto-score-card {
  flex: 1;
  min-width: 180px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.auto-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.auto-score-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.375rem;
}

.automation-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.automation-row:last-child { border-bottom: none; }
.automation-info { flex: 1; min-width: 0; }
.automation-name { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.automation-desc { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.125rem; }
.automation-meta { font-size: 0.75rem; color: var(--gray-400); text-align: right; }

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider { background: var(--brand-700); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ─── Connections ─── */
.conn-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .conn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .conn-grid { grid-template-columns: repeat(3, 1fr); } }

.conn-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.conn-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
}
.conn-info { flex: 1; }
.conn-name { font-size: 0.9375rem; font-weight: 600; }
.conn-status { font-size: 0.75rem; margin-top: 0.25rem; display: flex; align-items: center; gap: 0.375rem; }
.conn-status.connected { color: var(--green-700); }
.conn-status.connected::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}
.conn-detail { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.5rem; }

/* ─── On-the-go phone ─── */
.phone-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 0;
}
.phone-frame {
  width: 280px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-2xl);
}
.phone-screen {
  background: #0b141a;
  border-radius: 28px;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.375rem;
  font-size: 0.6875rem;
  color: white;
  font-weight: 600;
}
.phone-chat-header {
  background: #1f2c34;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}
.phone-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-300);
}
.phone-messages {
  flex: 1;
  padding: 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.phone-bubble {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.phone-bubble.incoming {
  background: #1f2c34;
  color: #e9edef;
  align-self: flex-start;
  border-top-left-radius: 2px;
}
.phone-bubble.outgoing {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 2px;
}
.phone-bubble .phone-time {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.5);
  text-align: right;
  margin-top: 0.25rem;
}
.phone-input-bar {
  background: #1f2c34;
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.phone-input-fake {
  flex: 1;
  background: #2a3942;
  border-radius: 20px;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
.phone-features {
  flex: 1;
  min-width: 260px;
  max-width: 400px;
}
.phone-features h2 { margin-bottom: 0.5rem; }
.phone-features p { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 1.5rem; }
.phone-feature-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.phone-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-feature-text h4 { font-size: 0.875rem; font-weight: 600; }
.phone-feature-text p { font-size: 0.75rem; color: var(--gray-500); margin: 0.125rem 0 0; }

@media (min-width: 768px) {
  .lg\:grid-3-dash { grid-template-columns: repeat(3, 1fr) !important; }
}
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--gray-500);
}
.empty-state .icon { margin: 0 auto 1rem; opacity: 0.4; }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--gray-900);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  animation: slideUp 0.3s ease;
}
.toast.success { background: var(--green-700); }

/* ─── Operations board ─── */
.ops-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}
.ops-source-chip {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--brand-50);
  color: var(--brand-800);
  border: 1px solid var(--brand-100);
}
.ops-board {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ops-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  align-items: start;
}
.ops-row:last-child { border-bottom: none; }
.ops-row:hover { background: var(--gray-50); }
.ops-title { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.ops-meta { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; }
.ops-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.375rem; }
.ops-owner { font-size: 0.75rem; color: var(--gray-600); }
.ops-due { font-size: 0.6875rem; color: var(--gray-400); }

.status-urgent { background: var(--red-100); color: var(--red-800); }
.status-in_progress { background: var(--brand-100); color: var(--brand-800); }
.status-on_track { background: var(--green-100); color: var(--green-800); }
.status-blocked { background: var(--orange-100); color: var(--orange-800); }
.status-pending { background: var(--gold-100); color: var(--gold-800); }
.status-waiting { background: var(--amber-100); color: var(--amber-800); }
.status-new { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); }
.status-open { background: var(--gold-100); color: var(--gold-800); }
.status-resolved { background: var(--green-100); color: var(--green-800); }
.status-live { background: var(--green-100); color: var(--green-800); }
.status-scheduled { background: var(--brand-100); color: var(--brand-800); }
.status-draft { background: var(--gray-100); color: var(--gray-700); }

/* ─── Social ─── */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .channel-grid { grid-template-columns: repeat(4, 1fr); } }
.channel-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.channel-name { font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.channel-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.channel-handle { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; }
.channel-metric { font-size: 0.8125rem; font-weight: 500; margin-top: 0.5rem; color: var(--gray-800); }
.post-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}
.post-row:last-child { border-bottom: none; }
.post-platform {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-700);
  min-width: 88px;
}
.mention-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}
.mention-row:last-child { border-bottom: none; }
.sentiment-positive { color: var(--green-700); }
.sentiment-negative { color: var(--red-700); }
.sentiment-neutral { color: var(--gray-500); }

/* ─── Customer requests ─── */
.request-filters {
  display: inline-flex;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.125rem;
}
.request-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
}
.request-filter .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  display: block;
  margin: 0 0.05rem 0 0;
}
.request-filter.active {
  background: var(--brand-700);
  color: white;
  box-shadow: var(--shadow-sm);
}
.request-item {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  align-items: flex-start;
  transition: background 0.15s;
}
.request-item:hover { background: var(--gray-50); }
.request-item.selected { background: var(--brand-50); }
.request-source-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-700);
  white-space: nowrap;
}
.request-source-badge.email { background: #fce8e6; color: #c5221f; }
.request-source-badge.ticket { background: #e6f4ea; color: #137333; }
.request-source-badge.form { background: var(--brand-100); color: var(--brand-800); }
.request-source-badge.phone { background: var(--amber-100); color: var(--amber-800); }
.request-source-badge.system { background: var(--gold-100); color: var(--gold-800); }
.request-detail {
  border-top: 1px solid var(--gray-200);
  padding: 1.25rem;
  background: var(--gray-50);
}
.ai-insight {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--brand-900);
  margin: 0.75rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* ─── Settings / Systems ─── */
.systems-category { margin-bottom: 1.75rem; }
.systems-category h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-700);
  margin-bottom: 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--brand-100);
}
.system-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
}
.system-row.disconnected { opacity: 0.7; }
.system-row .conn-icon { width: 40px; height: 40px; font-size: 0.75rem; }
.nav-section-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-400);
  padding: 0.75rem 0.875rem 0.375rem;
}
.unify-banner {
  background: linear-gradient(135deg, var(--brand-50), var(--gold-50));
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--brand-900);
}
.unify-banner strong { font-weight: 600; }

/* ═══════════════════════════════════════════════════
   Peacock / Apple UI primitives — UI overhaul
   ═══════════════════════════════════════════════════ */

body {
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.011em;
}

.content {
  padding: 1.5rem 1.5rem 2.5rem;
  max-width: 88rem;
}
@media (min-width: 768px) {
  .content { padding: 1.75rem 2rem 3rem; }
}

.top-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

/* ─── Pills ─── */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  min-height: 1.75rem;
  box-sizing: border-box;
}
.pill .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  display: block;
  margin: 0;
  /* Optical: Lucide strokes sit near the viewBox edge */
  margin-right: 0.125rem;
}
.pill-label {
  display: inline-block;
  line-height: 1.25;
  padding-left: 0.05rem;
}
.pill-brand { background: var(--brand-100); color: var(--brand-800); }
.pill-gold, .pill-amber { background: var(--gold-100); color: var(--gold-800); }
.pill-green { background: var(--green-100); color: var(--green-800); }
.pill-danger { background: var(--red-100); color: var(--red-800); }
.pill-gray { background: var(--gray-100); color: var(--gray-700); }
.pill-orange { background: var(--orange-100); color: var(--orange-800); }
.pill-outline {
  background: white;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ─── Page toolbar (no duplicate title — title lives in top header) ─── */
.page-hero {
  margin-bottom: 1rem;
  animation: fadeIn 0.35s ease;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.page-breadcrumb a, .page-breadcrumb button {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}
.page-breadcrumb a:hover, .page-breadcrumb button:hover { color: var(--brand-700); }
.page-breadcrumb .sep { opacity: 0.5; }
.page-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.page-hero-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}
.page-hero-title { display: none; }
.page-hero-meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.page-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
  margin-top: 0;
}

/* ─── Section tabs ─── */
.section-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
}
.section-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.section-tab:hover { color: var(--gray-800); }
.section-tab.active {
  color: var(--brand-700);
  border-bottom-color: var(--brand-700);
  font-weight: 600;
}
.section-tab .icon { width: 0.875rem; height: 0.875rem; }

/* ─── Callout rows (Needs Attention) — compact scan rows ─── */
.callout-stack { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
.callout-stack-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-700);
  margin-bottom: 0.125rem;
}
.callout-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
  text-align: left;
  width: 100%;
  background: var(--gold-50);
  border-color: var(--amber-200);
  color: var(--amber-900);
}
.callout-row:hover { background: var(--amber-100); }
.callout-row.brand {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-900);
}
.callout-row.brand:hover { background: var(--brand-100); }
.callout-row.danger {
  background: var(--red-50);
  border-color: var(--red-100);
  color: var(--red-800);
}
.callout-row.danger:hover { background: var(--red-100); }
.callout-row.success {
  background: var(--green-50);
  border-color: var(--green-100);
  color: var(--green-800);
}
.callout-row.success:hover { background: var(--green-100); }
.callout-row-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.7);
}
.callout-row-body {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.callout-row-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.75;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* ─── Stat tiles v2 (Peacock) ─── */
.stat-tile {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  animation: fadeIn 0.4s ease both;
}
.stat-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-tile.hero { border-left: 3px solid var(--gold-500); }
.stat-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}
.stat-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-tile-icon.brand { background: var(--brand-100); color: var(--brand-700); }
.stat-tile-icon.green { background: var(--green-100); color: var(--green-700); }
.stat-tile-icon.gold { background: var(--gold-100); color: var(--gold-700); }
.stat-tile-icon.red { background: var(--red-100); color: var(--red-700); }
.stat-tile-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}
.stat-tile-value {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--gray-900);
  line-height: 1.15;
  margin-top: 0.25rem;
}
.stat-tile-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.375rem;
}
.stat-tile-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}
.stat-tile-delta.up { background: var(--green-100); color: var(--green-700); }
.stat-tile-delta.down { background: var(--red-100); color: var(--red-700); }

/* ─── Stepper ─── */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1rem 0;
  overflow-x: auto;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 72px;
  position: relative;
  z-index: 1;
}
.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-500);
  border: 2px solid var(--gray-200);
}
.stepper-step.done .stepper-circle {
  background: var(--green-600);
  border-color: var(--green-600);
  color: white;
}
.stepper-step.active .stepper-circle {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: white;
  box-shadow: 0 0 0 4px hsl(42 62% 47% / 0.2);
}
.stepper-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gray-500);
  text-align: center;
}
.stepper-step.active .stepper-label,
.stepper-step.done .stepper-label { color: var(--gray-800); font-weight: 600; }
.stepper-line {
  flex: 1;
  height: 3px;
  background: var(--gray-200);
  min-width: 24px;
  margin: 0 0.25rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}
.stepper-line.done { background: var(--green-500); }

.checklist-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.checklist-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: var(--green-100);
  color: var(--green-800);
}
.checklist-pill .check-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Detail sidebar ─── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr 320px; }
  .detail-layout.wide-side { grid-template-columns: 1fr 360px; }
}
.detail-sidebar {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.detail-sidebar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
}
.detail-row:last-child { border-bottom: none; }
.detail-row-label { color: var(--gray-500); }
.detail-row-value { font-weight: 600; color: var(--gray-900); text-align: right; }
.detail-highlight {
  background: var(--gold-50);
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--amber-900);
}
.detail-total {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 0.5rem;
}

/* ─── View toggle ─── */
.view-toggle {
  display: inline-flex;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0.2rem;
  gap: 0.125rem;
}
.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
}
.view-toggle button.active {
  background: var(--brand-700);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* ─── Top search ─── */
.top-search {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0.45rem 0.875rem;
  min-width: 200px;
  color: var(--gray-400);
  font-size: 0.8125rem;
}
@media (min-width: 900px) {
  .top-search { display: flex; }
}
.top-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 0.8125rem;
  color: var(--gray-800);
  min-width: 0;
}
.user-chip {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
}
@media (min-width: 1100px) {
  .user-chip { display: flex; }
}
.user-chip-text { text-align: right; }
.user-chip-name { font-size: 0.8125rem; font-weight: 600; color: var(--gray-800); line-height: 1.2; }
.user-chip-role { font-size: 0.6875rem; color: var(--gray-500); }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-700);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ─── Briefings redesign ─── */
.brief-hero-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--gold-500);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  animation: slideUp 0.4s ease;
}
.brief-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-100);
  color: var(--gold-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brief-hero-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.brief-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 900px) {
  .brief-section-grid { grid-template-columns: repeat(3, 1fr); }
}
.brief-panel {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeIn 0.4s ease both;
}
.brief-panel:nth-child(2) { animation-delay: 0.05s; }
.brief-panel:nth-child(3) { animation-delay: 0.1s; }
.brief-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.brief-panel-header h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brief-panel-body { padding: 0.5rem 0; }
.brief-item {
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.12s;
}
.brief-item:last-child { border-bottom: none; }
.brief-item:hover { background: var(--gray-50); }
.brief-item-text {
  font-size: 0.8125rem;
  color: var(--gray-800);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}
.brief-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}
.brief-insights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .brief-insights { grid-template-columns: repeat(2, 1fr); }
}
.brief-insight-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.brief-insight-card .stat-tile-value { font-size: 1.5rem; }
.brief-actions-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .brief-actions-row { grid-template-columns: repeat(3, 1fr); }
}
.brief-action-tile {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.125rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  width: 100%;
}
.brief-action-tile:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.brief-action-tile h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; }
.brief-action-tile p { font-size: 0.75rem; color: var(--gray-500); margin: 0; }
.brief-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.brief-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}
.brief-sources-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-right: 0.25rem;
}

/* ─── Avatar initials ─── */
.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-md {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Card section header ─── */
.card-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.card-section-header h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Ops list Peacock style ─── */
.ops-row-v2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.12s;
}
.ops-row-v2:last-child { border-bottom: none; }
.ops-row-v2:hover { background: var(--gray-50); }
.ops-row-v2 .ops-main { flex: 1; min-width: 0; }
.ops-row-v2 .ops-title { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.ops-row-v2 .ops-meta { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.2rem; }
.ops-row-v2 .ops-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Channel card upgrade */
.channel-card-v2 {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.125rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}
.channel-card-v2:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.channel-icon-sq {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Stagger fade + rise on mount */
.stagger > * {
  opacity: 0;
  animation: fadeIn 0.45s ease forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.04s; }
.stagger > *:nth-child(3) { animation-delay: 0.08s; }
.stagger > *:nth-child(4) { animation-delay: 0.12s; }
.stagger > *:nth-child(5) { animation-delay: 0.16s; }
.stagger > *:nth-child(6) { animation-delay: 0.2s; }

.brief-grid,
.brief-insights,
.brief-actions {
  animation: fadeIn 0.4s ease both;
}
.brief-grid { animation-delay: 0.06s; }
.brief-insights { animation-delay: 0.12s; }
.brief-actions { animation-delay: 0.18s; }

/* Page toolbar sits under header — keep content padding tight */
.content:has(.page-hero) { padding-top: 1rem; }

.section-gap { margin-bottom: 1.5rem; }

/* Shared luxury chrome transitions */
html {
  transition: none;
}
.sidebar,
.onboarding,
.boot-screen,
.btn-primary,
.nav-item.active,
.persona-select,
.persona-dd-trigger,
.onboarding-step-dot.active,
.sidebar-brand-logo {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

/* Thin gold accent under header */
.top-header {
  box-shadow: var(--shadow-sm), inset 0 -2px 0 var(--gold-400);
}
