/* ==========================================================================
   SaintsLink Content OS — Design Tokens
   Warm cream foundation, navy ink and accents, white surfaces
   ========================================================================== */

:root {
  /* Surfaces — dark charcoal foundation */
  --bg-canvas: #0E1013;
  --bg-surface: #16191F;
  --bg-surface-raised: #1C2028;
  --bg-surface-hover: #21262F;
  --bg-inset: #0B0D10;

  /* Navy accent family */
  --navy-900: #0E1A2E;
  --navy-700: #16294A;
  --navy-500: #2C4A78;
  --navy-400: #3E6099;
  --navy-300: #6B8CBF;

  /* Borders */
  --border-subtle: #23272F;
  --border-default: #2C313B;
  --border-strong: #3A4049;

  /* Type — white on charcoal */
  --text-primary: #F2F3F5;
  --text-secondary: #9AA1AC;
  --text-tertiary: #6B7280;
  --text-on-navy: #E8EEF7;

  /* Status */
  --status-idea: #6B7280;
  --status-draft: #8A93A3;
  --status-review: #B98A3E;
  --status-approved: #3E7A5C;
  --status-scheduled: #3E6099;
  --status-published: #4C9A6A;
  --status-archived: #4B505A;
  --status-failed: #B3564D;

  /* Layout */
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 68px;
  --topbar-h: 60px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Type scale */
  --font-ui: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Consolas", "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

/* Safety default so any icon that isn't explicitly sized never falls back
   to the browser's intrinsic SVG size (this was the oversized search /
   sidebar-toggle icon bug). Specific rules below override this. */
svg { width: 16px; height: 16px; flex-shrink: 0; display: block; }


html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--navy-500); color: var(--text-on-navy); }

:focus-visible {
  outline: 2px solid var(--navy-400);
  outline-offset: 1px;
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.18s ease;
}

.app.sidebar-collapsed {
  grid-template-columns: var(--sidebar-w-collapsed) 1fr;
}

/* Sidebar */

.sidebar {
  background: var(--bg-inset);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  min-width: var(--sidebar-w);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.sidebar-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, var(--navy-500), var(--navy-900));
  border: 1px solid var(--navy-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-on-navy);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.sidebar-brand-text strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sidebar-brand-text span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.app.sidebar-collapsed .sidebar-brand-text { display: none; }
.app.sidebar-collapsed .sidebar { min-width: var(--sidebar-w-collapsed); }

/* Hub switcher */
.hub-switcher { position: relative; }
.hub-switcher-trigger {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
}
.hub-switcher-trigger:hover { background: var(--bg-surface-hover); }
.hub-chevron {
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.hub-chevron svg { width: 13px; height: 13px; }
.app.sidebar-collapsed .hub-chevron { display: none; }

.hub-switcher-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 10px;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px -8px rgba(30,40,60,0.22), 0 2px 8px rgba(30,40,60,0.08);
  z-index: 40;
  padding: 6px;
}
.hub-switcher-panel.open { display: block; }
.hub-switcher-panel-head {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px 10px 6px;
}
.hub-module-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.hub-module-row:hover { background: var(--bg-surface-hover); }
.hub-module-row.soon { opacity: 0.65; }
.hub-module-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-400);
  flex-shrink: 0;
}
.hub-module-icon svg { width: 15px; height: 15px; }
.hub-module-text { flex: 1; min-width: 0; }
.hub-module-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.hub-module-current { font-weight: 400; color: var(--status-published); font-size: 11px; }
.hub-module-desc { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; line-height: 1.4; }
.hub-module-badge {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--text-tertiary); background: var(--bg-inset);
  border: 1px solid var(--border-subtle); border-radius: 100px;
  padding: 2px 7px; flex-shrink: 0; align-self: center;
}

/* Global search results */
.search-results-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 380px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.15);
  z-index: 45;
  padding: 6px;
}
.search-results-panel.open { display: block; }
.search-result-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
}
.search-result-row:hover { background: var(--bg-surface-hover); }
.search-result-title { font-size: 12.5px; font-weight: 500; color: var(--text-primary); }
.search-result-sub { font-size: 11px; color: var(--text-tertiary); }
.search-result-empty { padding: 14px 10px; font-size: 12px; color: var(--text-tertiary); text-align: center; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-link:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-left-color: var(--border-strong);
}

.sidebar-link.active {
  background: var(--navy-700);
  color: var(--text-on-navy);
  border-left-color: var(--navy-300);
  font-weight: 600;
}

.sidebar-link svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

.sidebar-link.soon-link {
  opacity: 0.55;
  cursor: pointer;
}
.sidebar-link.soon-link:hover { opacity: 0.85; }

/* Sales pipeline board */
.pipeline-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.pipeline-col {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px;
  min-height: 200px;
}
.pipeline-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.pipeline-col-head .col-value { font-size: 10.5px; color: var(--text-tertiary); font-weight: 400; }
.deal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.deal-card:hover { border-color: var(--border-strong); }
.deal-card .deal-name { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.deal-card .deal-value { font-size: 12px; color: var(--status-published); font-weight: 600; }
.deal-card .deal-meta { font-size: 10.5px; color: var(--text-tertiary); margin-top: 4px; }

.sidebar-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 18px 10px 5px;
  font-family: var(--font-mono);
}

.app.sidebar-collapsed .sidebar-link span { display: none; }
.app.sidebar-collapsed .sidebar-link { justify-content: center; }
.app.sidebar-collapsed .sidebar-group-label { display: none; }

.sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sidebar-toggle {
  width: 100%;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-toggle:hover { color: var(--text-secondary); border-color: var(--border-strong); }
.sidebar-toggle svg { width: 14px; height: 14px; }

/* Topbar */

.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  background: rgba(14, 16, 19, 0.85);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  width: 320px;
  color: var(--text-tertiary);
  position: relative;
}

.topbar-search svg { width: 15px; height: 15px; }

.topbar-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.topbar-icon-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.topbar-icon-btn svg { width: 17px; height: 17px; }

.badge-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-review);
  border: 1.5px solid var(--bg-canvas);
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy-500);
  color: var(--text-on-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.topbar-profile-name {
  font-size: 12.5px;
  font-weight: 500;
}
.topbar-profile-role {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Main content */

.main {
  padding: 28px 32px 60px;
  max-width: 1440px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-head h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.page-head p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
  white-space: nowrap;
}
.btn:hover { background: var(--bg-surface-hover); border-color: var(--border-strong); }

.btn-primary {
  background: var(--navy-500);
  border-color: var(--navy-400);
  color: var(--text-on-navy);
}
.btn-primary:hover { background: var(--navy-400); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn svg { width: 14px; height: 14px; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 8px 24px -12px rgba(0,0,0,0.35);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card[data-id]:hover, .channel-card:hover, .media-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.channel-card, .media-tile { transition: border-color 0.15s ease, transform 0.15s ease; }

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title-row h3 {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
}

.card-title-row a, .card-link {
  font-size: 12px;
  color: var(--navy-300);
}
.card-link:hover { color: var(--text-on-navy); }

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

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 8px 24px -12px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-400), transparent 70%);
  opacity: 0.7;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.stat-card .stat-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-navy);
}
.stat-card .stat-sub {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-idea { color: var(--status-idea); }
.pill-draft { color: var(--status-draft); }
.pill-review { color: var(--status-review); }
.pill-approved { color: var(--status-approved); }
.pill-scheduled { color: var(--status-scheduled); }
.pill-published { color: var(--status-published); }
.pill-archived { color: var(--status-archived); }
.pill-failed { color: var(--status-failed); }

/* Tables */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-surface-hover); }

.row-title { font-weight: 500; color: var(--text-primary); }
.row-sub { color: var(--text-tertiary); font-size: 12px; }

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.channel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.channel-badge svg { width: 60%; height: 60%; }
.channel-badge.lg { border-radius: var(--radius-md); }

/* List rows (dashboard) */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.list-row:last-child { border-bottom: none; }

.list-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-row-main .title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row-main .meta { font-size: 11.5px; color: var(--text-tertiary); }
.list-row-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.time-badge { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* Pipeline */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.pipeline-stage {
  flex: 1;
  padding: 14px 14px;
  border-right: 1px solid var(--border-subtle);
  position: relative;
}
.pipeline-stage:last-child { border-right: none; }
.pipeline-stage .count {
  font-size: 22px;
  font-weight: 600;
}
.pipeline-stage .label {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.pipeline-arrow {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border-strong);
  font-size: 12px;
}

/* Channel overview cards */
.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.channel-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.channel-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-icon svg { width: 16px; height: 16px; }

.channel-card-name { font-size: 13px; font-weight: 600; }
.channel-card-stats {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.channel-card-stats strong { color: var(--text-primary); font-weight: 600; display: block; font-size: 15px; }

.connection-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 100px;
}
.connection-tag.connected { background: rgba(76, 154, 106, 0.14); color: var(--status-published); }
.connection-tag.not-connected { background: rgba(107, 114, 128, 0.14); color: var(--text-tertiary); }

/* Quick actions */
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
}
.empty-state svg { width: 32px; height: 32px; margin-bottom: 10px; opacity: 0.5; }
.empty-state p { margin: 0 0 12px; font-size: 13px; }

/* Watermark */
.watermark {
  position: fixed;
  bottom: 10px;
  right: 14px;
  font-size: 10.5px;
  color: var(--text-tertiary);
  opacity: 0.5;
  z-index: 5;
  pointer-events: none;
}

/* Login page */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(44, 74, 120, 0.16), transparent 55%), var(--bg-canvas);
}
.login-card {
  width: 380px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.login-card h1 { font-size: 17px; margin: 0 0 4px; font-weight: 600; }
.login-card p.sub { color: var(--text-tertiary); font-size: 12.5px; margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 9px 11px;
  color: var(--text-primary);
  font-size: 13px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-400);
  outline: none;
}
.login-card .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.login-hint {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 12.5px;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Utility */
.text-tertiary { color: var(--text-tertiary); }
.text-secondary { color: var(--text-secondary); }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.items-center { align-items: center; }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-bar select, .filter-bar input[type="text"] {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12.5px;
  padding: 7px 10px;
}
.filter-bar input[type="text"] { min-width: 200px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  overflow-x: auto;
}
.tab-btn {
  background: none;
  border: none;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn.active { color: var(--text-primary); border-bottom-color: var(--navy-400); }
.tab-btn:hover { color: var(--text-primary); }
.tab-btn .tab-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary);
}

/* Modal / drawer */
.overlay {
  position: fixed; inset: 0; background: rgba(6,7,9,0.6);
  display: flex; align-items: stretch; justify-content: flex-end;
  z-index: 50;
}
.drawer {
  width: min(720px, 96vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  height: 100vh;
  overflow-y: auto;
  padding: 24px 28px 60px;
}
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.drawer-close {
  background: none; border: 1px solid var(--border-default); border-radius: var(--radius-md);
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); flex-shrink: 0;
}
.drawer-close:hover { color: var(--text-primary); }

.modal-center {
  position: fixed; inset: 0; background: rgba(6,7,9,0.6);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal-box {
  width: min(520px, 92vw);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-height: 88vh;
  overflow-y: auto;
}

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

.tag-chip {
  display: inline-flex; align-items: center; font-size: 11.5px;
  padding: 3px 9px; border-radius: 100px; border: 1px solid var(--border-default);
  color: var(--text-secondary); margin: 2px 4px 2px 0;
}

/* Composer channel picker */
.channel-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.channel-pick {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  font-size: 12.5px;
  color: var(--text-secondary);
}
.channel-pick.selected {
  border-color: var(--navy-400);
  background: var(--navy-700);
  color: var(--text-on-navy);
}
.channel-pick input { display: none; }

.composer-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1100px) {
  .composer-grid { grid-template-columns: 1fr; }
}

/* Calendar */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav button { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); width: 30px; height: 30px; color: var(--text-secondary); display:flex; align-items:center; justify-content:center; }
.cal-nav button:hover { color: var(--text-primary); }
.cal-title { font-size: 15px; font-weight: 600; min-width: 150px; text-align: center; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cal-dow {
  background: var(--bg-inset);
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}
.cal-dow:last-child { border-right: none; }
.cal-cell {
  min-height: 108px;
  padding: 8px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.cal-add-btn {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-tertiary);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  flex-shrink: 0;
}
.cal-add-btn svg { width: 11px; height: 11px; }
.cal-cell:hover .cal-add-btn { opacity: 1; }
.cal-add-btn:hover { color: var(--navy-400); border-color: var(--navy-400); }
.cal-cell.other-month { background: var(--bg-inset); opacity: 0.55; }
.cal-cell.drag-over { background: var(--bg-surface-hover); outline: 1px dashed var(--navy-400); outline-offset: -2px; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-daynum { font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 2px; }
.cal-daynum.today { color: var(--text-on-navy); background: var(--navy-500); width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.cal-item {
  font-size: 10.8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: grab;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-item:active { cursor: grabbing; }
.cal-more { font-size: 10.5px; color: var(--text-tertiary); }

/* Media library */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.media-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.media-thumb {
  height: 110px;
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  overflow: hidden;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb svg { width: 26px; height: 26px; }
.media-meta { padding: 9px 10px; }
.media-meta .name { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-meta .sub { font-size: 10.5px; color: var(--text-tertiary); margin-top: 2px; }

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 12.5px;
  margin-bottom: 18px;
  cursor: pointer;
}
.dropzone:hover { border-color: var(--navy-400); color: var(--text-secondary); }
.dropzone.drag-over { border-color: var(--navy-400); background: var(--bg-surface-hover); }

/* Capacity bar */
.capacity-bar {
  height: 6px;
  border-radius: 100px;
  background: var(--bg-inset);
  overflow: hidden;
  margin-top: 6px;
}
.capacity-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--navy-400);
}
.capacity-bar-fill.over { background: var(--status-review); }

/* Color swatch */
.swatch {
  width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--border-default); flex-shrink: 0;
}

/* Content Scheduling hub */
.queue-day-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.queue-day-header:first-child { padding-top: 4px; }
.queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-bottom: 6px;
  cursor: pointer;
}
.queue-row:hover { border-color: var(--border-strong); }
.queue-row .queue-time {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  width: 52px;
  flex-shrink: 0;
}
.queue-row .queue-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bulk-toolbar {
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-700);
  color: var(--text-on-navy);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.bulk-toolbar .btn { border-color: rgba(255,255,255,0.25); background: transparent; color: var(--text-on-navy); }
.bulk-toolbar .btn:hover { background: rgba(255,255,255,0.12); }
.bulk-toolbar input[type="number"] {
  width: 56px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: var(--text-on-navy);
  padding: 5px 8px;
  font-size: 12.5px;
}

/* Executive dashboard module cards */
.exec-module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 8px 24px -12px rgba(0,0,0,0.35);
}
.exec-module-card.soon { opacity: 0.72; }
.exec-module-card .exec-module-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.exec-module-card .exec-module-name { font-size: 13.5px; font-weight: 600; flex: 1; }
.exec-module-card .exec-module-desc { font-size: 12px; color: var(--text-tertiary); margin-bottom: 12px; line-height: 1.5; }
.exec-module-card .exec-module-stats { display: flex; gap: 18px; }
.exec-module-card .exec-module-stats strong { display: block; font-size: 16px; font-weight: 600; }
.exec-module-card .exec-module-stats span { font-size: 11px; color: var(--text-tertiary); }
.exec-chart-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.exec-chart-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-secondary); }
.exec-chart-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Module shell (generic Exec Function / Department pages) */
.module-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.module-breadcrumb a { color: var(--text-tertiary); }
.module-breadcrumb a:hover { color: var(--text-secondary); }
.module-breadcrumb .sep { opacity: 0.5; }
.module-breadcrumb .current { color: var(--text-secondary); }

/* Executive dashboard extras */
.attention-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.attention-row:last-child { border-bottom: none; }
.severity-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.severity-dot.high { background: var(--status-failed); }
.severity-dot.medium { background: var(--status-review); }
.severity-dot.low { background: var(--status-idea); }
.attention-row .attention-title { font-size: 13px; font-weight: 500; }
.attention-row .attention-meta { font-size: 11.5px; color: var(--text-tertiary); margin-top: 2px; }

.portfolio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.portfolio-row:last-child { border-bottom: none; }
.portfolio-row .portfolio-name { font-size: 13px; font-weight: 500; flex: 1; }
.portfolio-row .portfolio-status-bar {
  width: 70px; height: 5px; border-radius: 100px; background: var(--bg-inset); overflow: hidden; flex-shrink: 0;
}
.portfolio-row .portfolio-status-bar div { height: 100%; border-radius: 100px; }

.dept-perf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.dept-perf-row .dept-perf-label { width: 130px; font-size: 12px; color: var(--text-secondary); flex-shrink: 0; }
.dept-perf-row .dept-perf-track { flex: 1; height: 8px; border-radius: 100px; background: var(--bg-inset); overflow: hidden; }
.dept-perf-row .dept-perf-fill { height: 100%; border-radius: 100px; background: var(--navy-400); }
.dept-perf-row .dept-perf-val { width: 34px; text-align: right; font-size: 11.5px; color: var(--text-tertiary); flex-shrink: 0; }

.mini-stat-row { display: flex; gap: 18px; flex-wrap: wrap; }
.mini-stat-row .mini-stat { min-width: 90px; }
.mini-stat-row .mini-stat strong { display: block; font-size: 19px; font-weight: 600; }
.mini-stat-row .mini-stat span { font-size: 11px; color: var(--text-tertiary); }

.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
}
.activity-row:last-child { border-bottom: none; }
.activity-row .activity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--navy-400); flex-shrink: 0; }
.activity-row .activity-text { flex: 1; color: var(--text-secondary); }
.activity-row .activity-time { color: var(--text-tertiary); font-size: 11px; flex-shrink: 0; }

/* Executive command centre */
.exec-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding:8px 0 30px; border-bottom:1px solid var(--border-default); }
.exec-eyebrow { color:var(--navy-300); font:600 10px var(--font-mono); letter-spacing:.11em; text-transform:uppercase; }
.exec-hero h1 { margin:7px 0 8px; font-size:34px; line-height:1.1; letter-spacing:-.035em; }
.exec-hero p, .exec-section-head p, .exec-panel-heading p { margin:0; color:var(--text-secondary); }
.exec-hero-meta { display:flex; align-items:center; gap:8px; font:600 10px var(--font-mono); color:var(--text-secondary); letter-spacing:.08em; white-space:nowrap; }
.exec-hero-meta i { width:7px; height:7px; border-radius:50%; background:var(--status-published); box-shadow:0 0 0 4px rgba(76,154,106,.12); }
.exec-hero-meta span { color:var(--text-tertiary); }
.exec-section { margin-top:42px; }
.exec-section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:16px; }
.exec-section-head h2 { margin:5px 0 0; font-size:19px; letter-spacing:-.015em; }
.exec-section-head > span { color:var(--text-tertiary); font:11px var(--font-mono); padding-top:7px; }
.exec-panel { background:var(--bg-surface); border:1px solid var(--border-default); border-radius:var(--radius-md); padding:20px; transition:border-color .18s ease, transform .18s ease; }
.exec-panel:hover { border-color:var(--border-strong); }
.exec-kpi-grid { display:grid; grid-template-columns:repeat(6, 1fr); border:1px solid var(--border-default); background:var(--bg-surface); }
.exec-kpi { min-width:0; padding:16px; border-right:1px solid var(--border-default); }
.exec-kpi:last-child { border-right:0; }
.exec-kpi span, .exec-kpi small { display:block; color:var(--text-tertiary); font-size:11px; }
.exec-kpi strong { display:block; margin:8px 0 4px; font-size:21px; line-height:1.05; font-weight:600; letter-spacing:-.025em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.exec-department-chart { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:11px 34px; padding-top:2px; }
.exec-department-chart > div { display:grid; grid-template-columns:132px 1fr 28px; align-items:center; gap:10px; min-width:0; }
.exec-department-chart span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-secondary); font-size:12px; }
.exec-department-chart i { display:block; height:9px; background:var(--bg-inset); overflow:hidden; }
.exec-department-chart i b { display:block; height:100%; background:linear-gradient(90deg,var(--navy-500),var(--navy-300)); }
.exec-department-chart em { font:11px var(--font-mono); text-align:right; color:var(--text-tertiary); font-style:normal; }
.exec-finance-layout { display:grid; grid-template-columns:minmax(0, 1.8fr) minmax(270px, .85fr); gap:16px; }
.exec-line-panel { min-height:312px; }
.exec-panel-heading { display:flex; justify-content:space-between; gap:20px; }
.exec-panel-heading h3 { margin:0 0 4px; font-size:14px; }
.exec-panel-heading p { font-size:12px; }
.exec-panel-heading > strong { font-size:18px; white-space:nowrap; }
.exec-line-chart { width:100%; height:246px; margin-top:11px; overflow:visible; }
.exec-finance-summary { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--border-default); }
.exec-finance-summary .exec-kpi { background:var(--bg-surface); border-bottom:1px solid var(--border-default); }
.exec-finance-summary .exec-kpi:nth-child(2n) { border-right:0; }
.exec-finance-summary .exec-kpi:nth-last-child(-n+2) { border-bottom:0; }
.exec-split { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:stretch; }
.exec-split .exec-panel { min-width:0; }
.exec-donut-layout, .exec-product-status { display:flex; align-items:center; gap:22px; min-height:178px; }
.exec-chart-legend { display:flex; flex-direction:column; gap:8px; }
.exec-chart-legend div { display:flex; align-items:center; gap:7px; color:var(--text-secondary); font-size:12px; }
.exec-chart-legend i { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.exec-chart-legend b { color:var(--text-primary); font-weight:500; }
.exec-product-list > div, .exec-project-list > div { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--border-subtle); font-size:12.5px; }
.exec-product-list > div:last-child, .exec-project-list > div:last-child { border-bottom:0; }
.exec-product-list small { color:var(--text-tertiary); }
.exec-product-status { min-height:112px; margin-top:10px; }
.exec-agenda a { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border-subtle); }
.exec-agenda a:last-child { border-bottom:0; }
.exec-agenda time { width:47px; color:var(--navy-300); font:600 11px var(--font-mono); }
.exec-agenda strong, .exec-agenda span { display:block; font-size:12.5px; }
.exec-agenda span { margin-top:2px; color:var(--text-tertiary); font-size:11px; }
.exec-operation-metrics { display:grid; grid-template-columns:repeat(3,1fr); margin-bottom:13px; border:1px solid var(--border-default); }
.exec-operation-metrics div { padding:10px; border-right:1px solid var(--border-default); }
.exec-operation-metrics div:last-child { border:0; }
.exec-operation-metrics strong, .exec-operation-metrics span { display:block; }
.exec-operation-metrics strong { font-size:18px; }.exec-operation-metrics span { color:var(--text-tertiary); font-size:10px; }
.exec-activity-feed > div { display:flex; gap:10px; padding:10px 0; border-bottom:1px solid var(--border-subtle); }.exec-activity-feed > div:last-child { border:0; }
.exec-activity-feed i { width:6px; height:6px; border-radius:50%; background:var(--navy-300); margin-top:7px; }.exec-activity-feed p { margin:0; color:var(--text-secondary); font-size:12.5px; }.exec-activity-feed span { display:block; margin-top:2px; color:var(--text-tertiary); font-size:11px; }
.exec-attention .exec-section-head > b { min-width:24px; height:24px; text-align:center; padding-top:3px; border-radius:50%; background:var(--navy-700); font:600 12px var(--font-mono); }.exec-attention a { display:flex; align-items:flex-start; gap:10px; padding:11px 0; border-bottom:1px solid var(--border-subtle); }.exec-attention a:last-child { border:0; }.exec-attention a > i { width:8px; height:8px; border-radius:50%; margin-top:5px; flex-shrink:0; }.exec-attention a > i.high { background:var(--status-failed); }.exec-attention a > i.medium { background:var(--status-review); }.exec-attention strong, .exec-attention span { display:block; font-size:12.5px; }.exec-attention span { margin-top:2px; color:var(--text-tertiary); font-size:11px; }
.exec-empty { min-height:116px; display:flex; align-items:center; color:var(--text-tertiary); font-size:12px; }

/* Specialist department overviews reuse real records without turning every workspace into cards. */
.department-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,.9fr); gap:16px; margin-bottom:20px; }
.department-visual-panel { min-width:0; padding:18px; background:var(--bg-surface); border:1px solid var(--border-default); border-radius:var(--radius-md); transition:border-color .18s ease; }
.department-visual-panel:hover { border-color:var(--border-strong); }
.department-visual-heading { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:8px; }.department-visual-heading span { display:block; color:var(--navy-300); font:600 10px var(--font-mono); letter-spacing:.08em; text-transform:uppercase; }.department-visual-heading h3 { margin:4px 0 0; font-size:14px; }.department-visual-heading small { color:var(--text-tertiary); font:11px var(--font-mono); }.department-status-visual { display:flex; align-items:center; gap:18px; min-height:166px; }

/* Keep navigation visually present while auth and data initialise. */
.app-loading-shell { display:grid; grid-template-columns:var(--sidebar-w) 1fr; min-height:100vh; background:var(--bg-canvas); }.app-loading-sidebar { padding:18px; background:var(--bg-inset); border-right:1px solid var(--border-subtle); }.app-loading-mark { width:28px; height:28px; display:grid; place-items:center; background:var(--navy-700); color:var(--text-on-navy); font-size:11px; }.app-loading-nav, .app-loading-topbar, .app-loading-title, .app-loading-kpis i, .app-loading-panel { animation:exec-loading 1.5s ease-in-out infinite; background:linear-gradient(90deg,var(--bg-surface) 25%,var(--bg-surface-hover) 50%,var(--bg-surface) 75%); background-size:200% 100%; }.app-loading-nav { height:12px; margin-top:36px; }.app-loading-nav.short { width:70%; margin-top:16px; }.app-loading-content { padding:24px 32px; }.app-loading-topbar { height:36px; margin-left:auto; width:280px; }.app-loading-title { margin-top:50px; width:280px; height:32px; }.app-loading-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:28px; }.app-loading-kpis i { height:96px; }.app-loading-panel { height:300px; margin-top:18px; }@keyframes exec-loading { from { background-position:100% 0; } to { background-position:-100% 0; } }

@media (max-width: 900px) {
  .app { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }
  .sidebar { min-width:var(--sidebar-w-collapsed); }
  .app .sidebar-brand-text, .app .sidebar-link span { display: none; }
  .app .sidebar-link { justify-content: center; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .main { padding: 20px 16px 50px; }
  .topbar-search { width: 160px; }
  .exec-kpi-grid { grid-template-columns:repeat(3,1fr); }.exec-kpi:nth-child(3n) { border-right:0; }.exec-kpi:nth-child(-n+3) { border-bottom:1px solid var(--border-default); }.exec-finance-layout, .exec-split, .department-dashboard-grid { grid-template-columns:1fr; }.exec-department-chart { grid-template-columns:1fr; }.exec-hero { align-items:flex-start; flex-direction:column; }.app-loading-shell { grid-template-columns:var(--sidebar-w-collapsed) 1fr; }.app-loading-sidebar { padding:18px; }.app-loading-nav { width:26px; }.app-loading-content { padding:20px 16px; }
}
