:root {
  color-scheme: light;
  --ink: #14243b;
  --ink-2: #263850;
  --muted: #68758a;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --line: #dbe1e9;
  --line-strong: #b9c4d2;
  --blue: #3157d5;
  --blue-soft: #e8edff;
  --coral: #f06f55;
  --coral-soft: #fff0eb;
  --mint: #bfe8d5;
  --mint-deep: #167a5a;
  --amber: #e5ad3d;
  --shadow: 0 22px 60px rgba(20, 36, 59, 0.08);
  --radius: 22px;
  --radius-sm: 13px;
  --sidebar: 248px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.35);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 18px;
  color: #eef3fa;
  background: var(--ink);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
  color: white;
  background: var(--coral);
  border-radius: 11px 11px 11px 3px;
}

.brand strong { display: block; font-size: 17px; letter-spacing: 0.01em; }
.brand small, .profile-button small, .mode-card small, .workspace-switcher small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #9dacbf;
}

.workspace-switcher {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  margin: 26px 0 18px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
}
.workspace-switcher strong { font-size: 12px; }
.workspace-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  background: var(--mint);
  border-radius: 10px;
}

.nav-list { display: grid; gap: 4px; }
.nav-label {
  margin: 14px 10px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #71829a;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 12px;
  color: #aebaca;
  text-decoration: none;
  border-radius: 11px;
  transition: 160ms ease;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-link.active { color: white; background: rgba(255,255,255,0.11); }
.nav-icon { width: 18px; text-align: center; font-size: 16px; }
.nav-link span:not(.nav-icon) { font-size: 13px; font-weight: 650; }
.nav-badge {
  margin-left: auto;
  min-width: 22px;
  padding: 3px 7px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
  background: var(--coral);
  border-radius: 999px;
}

.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.mode-card {
  display: grid;
  grid-template-columns: 9px 1fr;
  align-items: start;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 13px;
}
.mode-card strong { font-size: 11px; }
.status-dot { width: 8px; height: 8px; margin-top: 3px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px rgba(191,232,213,0.11); }
.profile-button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  text-align: left;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.profile-button:hover { background: rgba(255,255,255,0.06); }
.profile-button strong { font-size: 12px; }
.profile-avatar, .avatar-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  background: #d8e2ef;
  border: 0;
  border-radius: 50%;
}

.mobile-header { display: none; }
.main-content { min-height: 100vh; margin-left: var(--sidebar); }
.page { width: min(1440px, 100%); margin: 0 auto; padding: 34px clamp(24px, 4vw, 64px) 70px; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.eyebrow {
  display: block;
  margin-bottom: 7px;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 { font-size: 18px; letter-spacing: -0.02em; }
h3 { font-size: 14px; }
.page-subtitle { max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.header-actions, .row-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 1px 0 rgba(20,36,59,0.03);
  cursor: pointer;
  text-decoration: none;
}
.button:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.button:disabled { cursor: default; opacity: .62; transform: none; }
.button.primary { color: white; background: var(--blue); border-color: var(--blue); }
.button.dark { color: white; background: var(--ink); border-color: var(--ink); }
.button.coral { color: #6c2518; background: var(--coral-soft); border-color: #f5b9aa; }
.button.ghost { background: transparent; box-shadow: none; }
.button.small { min-height: 32px; padding: 0 11px; font-size: 11px; }
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.icon-button.compact { width: 26px; height: 26px; color: #9dacbf; border: 0; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(20,36,59,0.035);
}
.card-pad { padding: 22px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-header h2 { margin-bottom: 0; }
.card-header p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.text-button { padding: 4px; color: var(--blue); background: none; border: 0; font-size: 11px; font-weight: 800; cursor: pointer; }

.signal-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  min-height: 310px;
  margin-bottom: 18px;
  color: white;
  background: #1d3150;
  border: 0;
}
.hero-copy { padding: clamp(26px, 4vw, 46px); }
.hero-copy .eyebrow { color: var(--mint); }
.hero-copy h1 { max-width: 650px; }
.hero-copy p { max-width: 570px; margin-bottom: 24px; color: #c4cfdd; line-height: 1.65; }
.command-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 620px;
  padding: 7px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}
.command-bar input { min-width: 0; padding: 0 12px; color: var(--ink); border: 0; outline: 0; }
.command-bar input::placeholder { color: #8e99a8; }
.command-bar .button { min-height: 44px; }
.example-command { margin-top: 10px; font-size: 10px; color: #93a6bb; }

.signal-map {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  align-content: center;
  padding: 32px 30px 32px 8px;
}
.signal-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 39px;
}
.signal-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 31px;
  bottom: -8px;
  width: 1px;
  background: rgba(255,255,255,0.22);
}
.signal-node {
  position: relative;
  z-index: 1;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font-family: "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 900;
  background: #2a4060;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}
.signal-step.complete .signal-node { color: var(--ink); background: var(--mint); }
.signal-step.active .signal-node { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 6px rgba(240,111,85,0.12); }
.signal-step strong { font-size: 12px; }
.signal-step small { color: #9dafc3; font-size: 10px; }
.signal-step em { font-style: normal; font-size: 10px; color: #b5c2d1; }

.metric-card { padding: 18px; }
.metric-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-card strong.value { display: block; margin: 17px 0 6px; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.trend { font-size: 10px; font-weight: 800; color: var(--mint-deep); }
.trend.down { color: #b64a36; }
.sparkline { display: flex; align-items: end; gap: 3px; height: 24px; }
.sparkline i { width: 4px; display: block; background: var(--blue); border-radius: 3px; opacity: 0.75; }

.section-space { margin-top: 18px; }
.pipeline-list { display: grid; gap: 10px; }
.pipeline-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 0.8fr 0.55fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.pipeline-row:first-child { border-top: 0; }
.post-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: white;
  background: var(--blue);
  border-radius: 10px;
}
.thumb.coral { background: var(--coral); }
.thumb.mint { color: var(--ink); background: var(--mint); }
.post-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.post-title small, .muted { color: var(--muted); font-size: 10px; }
.platform { font-size: 11px; font-weight: 750; }
.platform-icon { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 5px; color: white; background: var(--ink); border-radius: 6px; font-size: 9px; }
.status-pill, .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}
.status-pill.review { color: #7c4d00; background: #fff3d8; }
.status-pill.approved { color: #126247; background: #e4f5ed; }
.status-pill.draft { color: #344eaa; background: var(--blue-soft); }
.status-pill.published { color: #41506a; background: #edf0f4; }
.status-pill.rejected { color: #9a3827; background: var(--coral-soft); }
.tag { color: var(--muted); background: #f0f3f7; text-transform: none; letter-spacing: 0; }

.radar-list { display: grid; gap: 11px; }
.radar-item { padding: 13px; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; }
.radar-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.radar-meta span { font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); }
.radar-meta time { font-size: 9px; color: var(--muted); }
.radar-meta a { font-size: 9px; color: var(--blue); text-decoration: none; }
.radar-item h3 { margin-bottom: 6px; line-height: 1.35; }
.radar-item p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.45; }
.signal-score { display: flex; gap: 3px; margin-top: 10px; }
.signal-score i { width: 18px; height: 3px; background: var(--line); border-radius: 4px; }
.signal-score i.on { background: var(--coral); }

.empty-note { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 14px; }
.empty-note strong { display: block; margin-bottom: 5px; color: var(--ink); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { padding: 7px 11px; font-size: 10px; font-weight: 800; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.filter-chip.active { color: white; background: var(--ink); border-color: var(--ink); }
.search-input { min-height: 38px; padding: 0 12px; background: white; border: 1px solid var(--line); border-radius: 10px; }

.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.research-empty { grid-column: 1 / -1; }
.research-card { min-height: 205px; padding: 20px; display: flex; flex-direction: column; }
.research-card .source { margin-bottom: 22px; font-size: 10px; color: var(--muted); }
.research-card h2 { margin-bottom: 9px; font-family: Georgia, serif; font-weight: 500; }
.research-card p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.research-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

.strategy-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.strategy-column { padding: 18px; min-height: 460px; background: #edf1f6; border-radius: 18px; }
.strategy-column header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.strategy-column header h2 { margin: 0; font-size: 13px; }
.strategy-column header span { font-size: 10px; color: var(--muted); }
.idea-card { padding: 16px; margin-bottom: 10px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 14px rgba(20,36,59,0.035); }
.idea-card h3 { margin-bottom: 8px; }
.idea-card p { margin-bottom: 12px; font-size: 11px; color: var(--muted); line-height: 1.45; }
.idea-footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; }

.studio-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
.brief-panel { padding: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label { font-size: 10px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,0.1); }
.studio-canvas { min-height: 590px; padding: 26px; }
.platform-tabs { display: flex; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.platform-tab { padding: 8px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.platform-tab.active { color: var(--blue); background: var(--blue-soft); }
.script-sheet { max-width: 720px; margin: 28px auto; }
.script-sheet .kicker { font-size: 10px; font-weight: 850; color: var(--coral); text-transform: uppercase; letter-spacing: 0.12em; }
.script-sheet h2 { margin: 10px 0 20px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.script-block { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.script-block time { font-family: "Arial Narrow", sans-serif; font-size: 10px; font-weight: 900; color: var(--blue); }
.script-block p { margin: 0; font-size: 13px; line-height: 1.55; }
.generated-note, .generated-caption { margin: 18px 0; padding: 16px 18px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 14px; }
.generated-note { border-left: 4px solid var(--coral); }
.generated-caption { border-left: 4px solid var(--mint-deep); }
.generated-note strong, .generated-caption strong { display: block; margin-bottom: 5px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.generated-note p, .generated-caption p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.generated-note p:last-child, .generated-caption p:last-child { margin-bottom: 0; }
.media-actions { display: flex; justify-content: flex-end; margin: 18px 0; }
.generated-media { margin: 18px 0 0; }
.generated-media img { width: 100%; display: block; border-radius: 16px; }
.generated-media figcaption { margin-top: 7px; color: var(--muted); font-size: 10px; }

.approval-list { display: grid; gap: 12px; }
.approval-card { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 20px; padding: 16px; align-items: center; }
.approval-preview { aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; color: white; background: #3157d5; border-radius: 15px; }
.approval-preview.alt { color: var(--ink); background: var(--mint); }
.approval-preview.third { background: var(--coral); }
.approval-preview span { width: 80%; font-family: Georgia, serif; font-size: 18px; line-height: 1.05; }
.approval-preview img { width: 100%; height: 100%; object-fit: cover; }
.approval-copy h2 { margin-bottom: 5px; }
.approval-copy p { max-width: 650px; margin-bottom: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.approval-actions { display: grid; gap: 8px; min-width: 105px; }

.calendar { overflow: hidden; }
.calendar-head, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-head div { padding: 12px; font-size: 9px; font-weight: 900; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.calendar-day { min-height: 138px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day .date { font-family: Georgia, serif; font-size: 13px; color: var(--muted); }
.calendar-day.today .date { display: grid; place-items: center; width: 25px; height: 25px; color: white; background: var(--blue); border-radius: 50%; }
.calendar-post { margin-top: 8px; padding: 7px 8px; font-size: 9px; line-height: 1.3; background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: 6px; }
.calendar-post.coral { background: var(--coral-soft); border-color: var(--coral); }
.calendar-post.mint { background: #e7f6ef; border-color: var(--mint-deep); }

.chart { height: 245px; display: flex; align-items: end; gap: 14px; padding: 24px 10px 8px; border-bottom: 1px solid var(--line); }
.bar-group { flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; gap: 4px; position: relative; }
.bar { width: min(22px, 35%); background: var(--blue); border-radius: 7px 7px 2px 2px; }
.bar.secondary { background: var(--coral); }
.bar-label { position: absolute; top: calc(100% + 10px); font-size: 9px; color: var(--muted); }
.chart-legend { display: flex; gap: 14px; padding-top: 28px; font-size: 10px; color: var(--muted); }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--blue); border-radius: 2px; }
.legend-dot.coral { background: var(--coral); }
.learning-card { padding: 18px; border-left: 4px solid var(--mint-deep); }
.learning-card h3 { margin-bottom: 6px; }
.learning-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.analytics-empty { min-height: 280px; display: grid; place-content: center; }

.brand-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.7fr); gap: 18px; }
.brand-summary { padding: 26px; color: white; background: var(--ink-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.brand-summary .page-subtitle { margin-top: 24px; color: #c4cfdd; }
.brand-summary blockquote { margin: 22px 0; font-family: Georgia, serif; font-size: 28px; line-height: 1.25; }
.voice-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.voice-tags .tag { color: white; background: rgba(255,255,255,.09); }
.brand-form { padding: 24px; }

.integration-list { display: grid; gap: 11px; }
.integration-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.integration-logo { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 12px; font-weight: 900; }
.integration-row h3 { margin-bottom: 3px; }
.integration-row p { margin: 0; color: var(--muted); font-size: 10px; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { min-width: 250px; padding: 13px 16px; color: white; background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); font-size: 12px; animation: toast-in 180ms ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.three, .research-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .signal-hero { grid-template-columns: 1fr; }
  .signal-map { grid-template-columns: repeat(6,1fr); grid-template-rows: auto; padding: 6px 28px 28px; }
  .signal-step { grid-template-columns: 30px 1fr; }
  .signal-step:not(:last-child)::after { left: 27px; top: 16px; right: -4px; bottom: auto; width: auto; height: 1px; }
  .signal-step small, .signal-step em { display: none; }
  .brand-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 250px; transform: translateX(-105%); transition: transform 180ms ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { position: sticky; top: 0; z-index: 15; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: rgba(245,247,250,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
  .compact-brand .brand-mark { width: 32px; height: 32px; }
  .main-content { margin-left: 0; }
  .page { padding: 25px 16px 54px; }
  .page-header { align-items: stretch; flex-direction: column; }
  .grid.two, .studio-layout { grid-template-columns: 1fr; }
  .strategy-board { grid-template-columns: 1fr; }
  .strategy-column { min-height: auto; }
  .approval-card { grid-template-columns: 105px 1fr; }
  .approval-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
  .calendar { overflow-x: auto; }
  .calendar-head, .calendar-grid { min-width: 760px; }
}

@media (max-width: 560px) {
  .grid.three, .grid.four, .research-grid { grid-template-columns: 1fr; }
  .signal-map { grid-template-columns: 1fr; padding: 0 24px 24px; }
  .signal-step:not(:last-child)::after { left: 16px; top: 30px; right: auto; bottom: -7px; width: 1px; height: auto; }
  .signal-step small { display: block; }
  .command-bar { grid-template-columns: 1fr; }
  .command-bar input { min-height: 42px; }
  .pipeline-row { grid-template-columns: 1fr auto; }
  .pipeline-row .platform { display: none; }
  .pipeline-row .status-pill { grid-column: 2; grid-row: 1; }
  .approval-card { grid-template-columns: 1fr; }
  .approval-preview { aspect-ratio: 16/8; }
  .toolbar { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Seven-stage operating runbook */
.page-header em { color: var(--coral); font-style: italic; }
.header-actions { justify-content: flex-end; }
.status-pill.pending { color: #667085; background: #eef1f5; }
.status-pill.changes { color: #9a3827; background: var(--coral-soft); }
.status-pill.review { box-shadow: inset 0 0 0 1px rgba(229,173,61,.22); }
.status-pill.queued, .status-pill.retrying { color: #344eaa; background: var(--blue-soft); }
.status-pill.processing, .status-pill.uploading { color: #7c4d00; background: #fff3d8; }
.status-pill.completed, .status-pill.published { color: #126247; background: #e4f5ed; }
.status-pill.failed, .status-pill.cancelled, .status-pill.dismissed { color: #9a3827; background: var(--coral-soft); }
.status-pill.proposed { color: #6c4d00; background: #fff3d8; }
.tag.approved { color: var(--mint-deep); background: #e7f6ef; }
.metric-label { font-size: 10px; font-weight: 900; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.metric-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.metric-card strong.value { display: block; margin: 13px 0 6px; font-family: Georgia, serif; font-size: 38px; font-weight: 500; }

.campaign-spine {
  display: grid;
  grid-template-columns: minmax(250px,.68fr) minmax(0,1.55fr);
  overflow: hidden;
  color: white;
  background: var(--ink);
  border: 0;
}
.spine-intro { display: flex; flex-direction: column; min-height: 540px; padding: 38px; background: linear-gradient(145deg, #1c3150, #14243b); border-right: 1px solid rgba(255,255,255,.1); }
.spine-intro .eyebrow { color: var(--mint); }
.spine-intro h2 { margin: 5px 0 14px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.spine-intro p { color: #b9c6d7; font-size: 13px; line-height: 1.65; }
.campaign-health { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.campaign-health strong { font-family: Georgia, serif; font-size: 52px; font-weight: 500; color: var(--coral); }
.campaign-health span { color: #9dacbf; font-size: 11px; }
.spine-track { padding: 24px 34px; }
.spine-stage {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  color: #9dacbf;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.spine-stage:last-child { border-bottom: 0; }
.spine-stage::before { content: ""; position: absolute; left: 18px; top: 46px; bottom: -23px; width: 1px; background: rgba(255,255,255,.12); }
.spine-stage:last-child::before { display: none; }
.stage-index { position: relative; z-index: 1; width: 37px; height: 37px; display: grid; place-items: center; font-family: "Arial Narrow", sans-serif; font-size: 9px; font-weight: 900; background: #263b58; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.spine-stage strong, .spine-stage small { display: block; }
.spine-stage strong { color: #d5deea; font-size: 13px; }
.spine-stage small { margin-top: 4px; font-size: 10px; }
.spine-stage i { font-style: normal; }
.spine-stage.done .stage-index { color: var(--ink); background: var(--mint); }
.spine-stage.done strong { color: white; }
.spine-stage.active { color: white; }
.spine-stage.active .stage-index { color: white; background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 6px rgba(240,111,85,.11); }
.spine-stage:hover strong { color: var(--coral); }
.narrative-quote { margin: 24px 0 18px; padding-left: 18px; font-family: Georgia, serif; font-size: 25px; line-height: 1.35; border-left: 3px solid var(--coral); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-row small, .chip-row > span:not(.tag) { padding: 6px 9px; color: var(--muted); background: #f2f5f8; border-radius: 8px; font-size: 10px; }
.decision-list { display: grid; }
.decision-list > div { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); font-size: 12px; }
.decision-list > div:first-child { border-top: 0; }

.research-split { display: grid; grid-template-columns: minmax(300px,.67fr) minmax(0,1.33fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.tall { min-height: 500px; display: grid; place-content: center; background: rgba(255,255,255,.45); }
.report-hero { padding: 28px; color: white; background: var(--ink-2); border: 0; }
.report-hero h2 { margin: 18px 0 12px; font-family: Georgia, serif; font-size: 29px; font-weight: 500; line-height: 1.2; }
.report-hero p { color: #c2cedc; line-height: 1.6; }
.report-hero .tag:not(.approved) { color: white; background: rgba(255,255,255,.1); }
.compact-list, .proof-list { display: grid; }
.compact-list > div, .proof-list > div { padding: 15px 0; border-top: 1px solid var(--line); }
.compact-list > div:first-child, .proof-list > div:first-child { border-top: 0; }
.compact-list p, .proof-list p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.source-link { display: inline-block; margin-top: 8px; color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.warning-card { border-left: 4px solid var(--amber); }
.warning-card ul, .audience-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.field small { color: var(--muted); font-size: 10px; }
.gate-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 14px 17px; color: #77500b; background: #fff6df; border: 1px solid #f2d99f; border-radius: 13px; font-size: 12px; }
.gate-note a { color: inherit; font-weight: 850; }
.market-summary { max-width: 920px; margin-bottom: 20px; padding-left: 18px; border-left: 3px solid var(--coral); }
.market-summary p:last-child { margin: 0; font-family: Georgia, serif; font-size: 20px; line-height: 1.5; }
.filter-chip span { margin-left: 5px; opacity: .7; }
.signal-score { margin: 0 0 16px auto; color: var(--coral); font-size: 8px; letter-spacing: 2px; }
.audience-card { padding: 22px; }
.audience-card h2 { margin: 16px 0 18px; font-family: Georgia, serif; font-weight: 500; }
.audience-card dl, .approval-content dl { margin: 0; }
.audience-card dt, .approval-content dt { margin-top: 12px; color: var(--blue); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.audience-card dd, .approval-content dd { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.competitor-table { overflow: hidden; }
.table-row { display: grid; grid-template-columns: .7fr 1fr 1fr 1.1fr; }
.table-row > * { min-width: 0; padding: 17px; color: var(--muted); font-size: 11px; line-height: 1.55; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.table-row > *:last-child { border-right: 0; }
.table-row strong { color: var(--ink); }
.table-row strong .source-link { display: block; }
.table-head > * { color: var(--ink); background: #f0f3f7; border-top: 0; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.gap-cell { color: var(--mint-deep); background: #f1faf6; }

.month-control { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.month-control input { min-height: 40px; padding: 0 11px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; }
.narrative-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(330px,.92fr); gap: 18px; align-items: start; }
.narrative-main { overflow: hidden; padding: 30px; border-top: 4px solid var(--coral); }
.approval-ribbon { display: flex; justify-content: space-between; align-items: center; margin-bottom: 38px; color: var(--muted); font-size: 11px; }
.narrative-main > h2 { max-width: 720px; margin: 10px 0 28px; font-family: Georgia, serif; font-size: clamp(30px,4vw,48px); font-weight: 500; line-height: 1.08; }
.narrative-main h3 { margin: 22px 0 7px; color: var(--blue); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.narrative-main p { color: var(--muted); line-height: 1.6; }
.narrative-main p.lead { color: var(--ink); font-size: 18px; }
.claim-warning, .claim-clear { display: grid; gap: 4px; margin: 18px 0; padding: 13px 15px; border-radius: 11px; font-size: 11px; }
.claim-warning { color: #7a4615; background: #fff5df; border: 1px solid #f0d391; }
.claim-warning strong, .claim-clear strong { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.claim-warning small { opacity: .8; }
.claim-warning.compact { margin-top: 0; }
.claim-clear { color: var(--mint-deep); background: #eef9f4; border: 1px solid #c8eadb; }
.objective-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 24px; }
.objective-grid span { padding: 12px; color: var(--ink-2); background: #f3f6f9; border-radius: 10px; font-size: 11px; }
.strategy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.count-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-family: Georgia, serif; }
.pillar-list article { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 17px 0; border-top: 1px solid var(--line); }
.pillar-list article:first-child { border-top: 0; }
.pillar-list article > span { color: var(--coral); font-family: "Arial Narrow", sans-serif; font-size: 10px; font-weight: 900; }
.pillar-list h3 { margin-bottom: 5px; }
.pillar-list p, .channel-strategies p { margin-bottom: 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.channel-strategies > div { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.channel-strategies > div:first-child { border-top: 0; }
.platform-token { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--ink); border-radius: 9px; font-size: 9px; font-weight: 900; }
.platform-token.instagram { background: var(--coral); }
.platform-token.tiktok { background: var(--ink); }
.platform-token.youtube { background: var(--blue); }

.production-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 16px 19px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.production-toolbar strong, .production-toolbar span { display: block; }
.production-toolbar span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.post-card { overflow: hidden; }
.post-card header { display: flex; gap: 12px; padding: 18px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.post-card header h2 { margin: 7px 0 4px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.2; }
.post-card header small { color: var(--muted); font-size: 9px; }
.post-body { padding: 18px; }
.post-body h3 { margin: 17px 0 6px; color: var(--blue); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.post-body h3:first-child { margin-top: 0; }
.post-body p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.post-hook { color: var(--ink) !important; font-family: Georgia, serif; font-size: 16px !important; }
.post-body details { margin-top: 16px; border-top: 1px solid var(--line); }
.post-body summary { padding: 12px 0; color: var(--blue); font-size: 10px; font-weight: 800; cursor: pointer; }
.post-body .script-block { grid-template-columns: 58px 1fr; gap: 8px; padding: 10px 0; }
.post-body .script-block p { margin: 0; }
.post-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.approval-dots { display: flex; gap: 4px; }
.approval-dots i, .calendar-legend i, .calendar-post i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #ccd3dc; }
.approval-dots i.review, .calendar-legend i.review, .calendar-post i.review { background: var(--amber); }
.approval-dots i.approved, .calendar-legend i.approved, .calendar-post i.approved { background: var(--mint-deep); }
.calendar-post i.queued, .calendar-post i.retrying { background: var(--blue); }
.calendar-post i.processing, .calendar-post i.uploading { background: var(--amber); }
.calendar-post i.published, .calendar-post i.completed { background: var(--mint-deep); }
.calendar-post i.failed, .calendar-post i.cancelled { background: var(--coral); }
.approval-dots i.changes { background: var(--coral); }

.approval-tabs { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 18px; padding: 6px; background: #e9edf2; border-radius: 14px; }
.approval-tabs button { display: flex; justify-content: center; gap: 8px; padding: 11px; color: var(--muted); background: transparent; border: 0; border-radius: 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
.approval-tabs button span { color: var(--coral); font-family: "Arial Narrow",sans-serif; font-size: 9px; }
.approval-tabs button.active { color: var(--ink); background: white; box-shadow: 0 3px 12px rgba(20,36,59,.07); }
.approval-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.approval-item { display: flex; flex-direction: column; overflow: hidden; }
.approval-item header { display: flex; justify-content: space-between; gap: 14px; padding: 19px; border-bottom: 1px solid var(--line); }
.approval-item header h2 { margin: 8px 0 0; font-family: Georgia,serif; font-weight: 500; }
.approval-content { flex: 1; padding: 19px; }
.approval-content blockquote { margin: 0 0 16px; padding-left: 14px; font-family: Georgia,serif; font-size: 18px; border-left: 3px solid var(--coral); }
.approval-content > p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.approval-item footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 19px; background: #f8fafc; border-top: 1px solid var(--line); }
.approval-image { width: 100%; max-height: 380px; display: block; object-fit: cover; border-radius: 13px; }
.media-placeholder { min-height: 190px; display: grid; place-content: center; padding: 25px; text-align: center; color: var(--muted); background: #eef2f6; border-radius: 13px; }
.media-placeholder span { margin: auto; font-family: Georgia,serif; font-size: 34px; color: var(--coral); }
.strategy-approval-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; padding: 28px; }
.strategy-approval-card h2 { margin: 20px 0 12px; font-family: Georgia,serif; font-size: 34px; font-weight: 500; }
.strategy-approval-card p { max-width: 780px; color: var(--muted); line-height: 1.6; }
.strategy-approval-card .approval-actions { align-content: start; }

.calendar-legend { display: flex; justify-content: flex-end; gap: 16px; margin-bottom: 10px; color: var(--muted); font-size: 9px; }
.calendar-legend span { display: flex; align-items: center; gap: 5px; }
.calendar-post { position: relative; display: grid; grid-template-columns: 20px 1fr 8px; gap: 5px; color: var(--ink); text-decoration: none; background: #eef2f7; border-left-color: var(--ink); }
.calendar-post.instagram { background: var(--coral-soft); border-left-color: var(--coral); }
.calendar-post.youtube { background: var(--blue-soft); border-left-color: var(--blue); }
.calendar-post.tiktok { background: #eef1f4; border-left-color: var(--ink); }
.calendar-post strong { font-size: 8px; }
.calendar-post span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-post i { align-self: center; }

.operation-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.operation-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.operation-table th, .operation-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.operation-table th { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.operation-error { display: inline-block; max-width: 360px; color: #9a3827; }
.recommendation-list { display: grid; gap: 12px; }
.recommendation-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.recommendation-card h3 { margin: 8px 0 5px; }
.recommendation-card p { margin: 0; color: var(--muted); }
.recommendation-card > div:last-child { display: flex; gap: 8px; }

@media (max-width: 760px) {
  .operation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommendation-card { grid-template-columns: 1fr; }
}
.toast.error { background: #8d3528; }

/* Media production: an architectural cutting room */
.production-page { width: min(1600px, 100%); }
.cutting-room {
  display: grid;
  grid-template-columns: 238px minmax(480px, 1fr) 310px;
  min-height: 700px;
  overflow: hidden;
  background: #0f1d2f;
  border: 1px solid #24364d;
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(14, 29, 47, .16);
}
.production-queue, .production-ledger { min-width: 0; background: #14243b; }
.production-queue { padding: 16px 10px; border-right: 1px solid rgba(255,255,255,.09); }
.cutting-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 8px 15px; color: #8fa0b7; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.cutting-label strong { color: white; font-size: 9px; }
.production-queue-item { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) 8px; align-items: center; gap: 10px; margin-bottom: 5px; padding: 10px; text-align: left; color: #b8c4d3; background: transparent; border: 1px solid transparent; border-radius: 11px; cursor: pointer; }
.production-queue-item:hover { background: rgba(255,255,255,.05); }
.production-queue-item.active { color: white; background: #20354f; border-color: #38506e; }
.production-queue-item strong, .production-queue-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-queue-item strong { font-size: 10px; }
.production-queue-item small { margin-top: 4px; color: #8393a8; font-size: 8px; }
.production-queue-item > i { width: 7px; height: 7px; background: #66768a; border-radius: 50%; }
.production-queue-item > i.pass, .production-queue-item > i.approved { background: #55c99a; }
.production-queue-item > i.warn, .production-queue-item > i.review { background: #e5ad3d; }
.production-queue-item > i.fail, .production-queue-item > i.changes { background: #f06f55; }
.production-workbench { min-width: 0; padding: 20px; color: #e9eef5; background: #101d2d; }
.workbench-title { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.workbench-title h2 { margin: 7px 0 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.production-preview { position: relative; min-height: 430px; overflow: hidden; background: #080e17; border: 1px solid #2b3b51; border-radius: 14px; }
.production-preview > video, .production-preview > img { width: 100%; height: 430px; display: block; object-fit: contain; background: black; }
.preview-caption { position: absolute; right: 14px; bottom: 14px; width: min(330px, calc(100% - 28px)); padding: 13px 15px; color: #dbe5f1; background: rgba(9,17,28,.9); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; backdrop-filter: blur(10px); }
.preview-caption span, .preview-caption strong { display: block; }
.preview-caption span { color: #91a1b5; font-size: 7px; letter-spacing: .11em; text-transform: uppercase; }
.preview-caption strong { margin: 4px 0; color: #ff927c; font-family: Georgia,serif; font-size: 18px; font-weight: 500; }
.preview-caption p { margin: 0; color: #aebacd; font-size: 9px; line-height: 1.45; }
.cutting-room-empty { min-height: 430px; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; color: #8798ae; }
.cutting-room-empty.large { min-height: 620px; }
.cutting-room-empty span { color: #f06f55; font-family: Georgia,serif; font-size: 44px; }
.cutting-room-empty strong { margin-top: 12px; color: white; font-family: Georgia,serif; font-size: 23px; font-weight: 500; }
.cutting-room-empty p { max-width: 370px; margin: 8px 0 15px; font-size: 11px; line-height: 1.55; }
.production-stage-rail { display: grid; grid-template-columns: repeat(5,1fr); margin: 16px 0; border: 1px solid #2a3b51; border-radius: 11px; }
.production-stage { position: relative; display: grid; grid-template-columns: 23px 1fr; gap: 7px; align-items: center; padding: 11px 8px; border-left: 1px solid #2a3b51; }
.production-stage:first-child { border-left: 0; }
.production-stage > span { color: #677990; font-family: "Arial Narrow",sans-serif; font-size: 8px; }
.production-stage strong, .production-stage small { display: block; }
.production-stage strong { font-size: 8px; }
.production-stage small { margin-top: 3px; color: #74869c; font-size: 7px; }
.production-stage.approved::after, .production-stage.completed::after, .production-stage.review::after, .production-stage.processing::after, .production-stage.queued::after, .production-stage.failed::after { content: ""; position: absolute; right: 8px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #55c99a; }
.production-stage.review::after, .production-stage.processing::after, .production-stage.queued::after { background: #e5ad3d; }
.production-stage.failed::after { background: #f06f55; }
.scene-sequence { margin-top: 20px; }
.section-line { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.section-line h2 { margin: 0; font-family: Georgia,serif; font-size: 21px; font-weight: 500; }
.scene-card { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid #29394e; }
.scene-card:first-of-type { margin-top: 12px; }
.scene-time strong, .scene-time span { display: block; }
.scene-time strong { color: #f06f55; font-family: Georgia,serif; font-size: 24px; font-weight: 500; }
.scene-time span { color: #75879d; font-size: 8px; }
.scene-card h3 { margin: 7px 0 5px; color: white; }
.scene-card p { margin: 0 0 5px; color: #b8c5d5; font-size: 10px; line-height: 1.45; }
.scene-card small { color: #75879d; font-size: 8px; line-height: 1.4; }
.scene-card > i { padding: 5px 7px; color: #a9b8c9; background: #21334b; border-radius: 7px; font-size: 7px; font-style: normal; text-transform: uppercase; }
.scene-card > i.ready { color: #7be2b8; }
.plan-invitation { min-height: 190px; display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; margin-top: 18px; padding: 24px; background: #17283d; border: 1px dashed #41536b; border-radius: 14px; }
.plan-invitation > span { color: #f06f55; font-family: Georgia,serif; font-size: 38px; }
.plan-invitation h2 { margin-bottom: 7px; font-family: Georgia,serif; font-weight: 500; }
.plan-invitation p { margin: 0; color: #899bb0; font-size: 10px; line-height: 1.5; }
.production-ledger { border-left: 1px solid rgba(255,255,255,.09); }
.production-ledger > section { padding: 19px; color: #dce5f0; border-bottom: 1px solid rgba(255,255,255,.09); }
.production-ledger h2 { margin: 5px 0 10px; font-family: Georgia,serif; font-size: 21px; font-weight: 500; }
.production-ledger .eyebrow { color: #ff927c; }
.production-ledger dl { margin: 12px 0 0; }
.production-ledger dt { margin-top: 10px; color: #7f90a6; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.production-ledger dd { margin: 3px 0 0; color: #c2cedd; font-size: 9px; line-height: 1.45; }
.palette-strip { display: flex; height: 8px; overflow: hidden; border-radius: 99px; }
.palette-strip i { flex: 1; background: var(--swatch); }
.production-ledger details { margin-top: 14px; }
.production-ledger summary { color: #92a4b9; font-size: 8px; cursor: pointer; }
.production-ledger form { display: grid; gap: 9px; margin-top: 12px; }
.production-ledger form label { display: grid; gap: 4px; color: #8294aa; font-size: 8px; }
.production-ledger input, .production-ledger textarea { width: 100%; padding: 8px 9px; color: #17283d; background: #edf2f7; border: 0; border-radius: 7px; font-size: 9px; resize: vertical; }
.production-ledger textarea { min-height: 70px; }
.control-stack { display: grid; gap: 8px; }
.control-stack .button { width: 100%; }
.control-stack .text-button { color: #aebed0; }
.cost-note { margin: 11px 0 0; color: #7d8fa5; font-size: 8px; line-height: 1.45; }
.qa-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 9px; align-items: start; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.qa-row > i { width: 7px; height: 7px; margin-top: 3px; background: #73849a; border-radius: 50%; }
.qa-row > i.pass { background: #55c99a; }
.qa-row > i.warn { background: #e5ad3d; }
.qa-row > i.fail { background: #f06f55; }
.qa-row strong, .qa-row small { display: block; }
.qa-row strong { font-size: 8px; }
.qa-row small { margin-top: 3px; color: #8495aa; font-size: 7px; line-height: 1.4; }
.qa-row > span { color: #8fa0b5; font-size: 7px; }
.production-ledger .empty-note, .production-queue .empty-note { color: #8da0b6; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }

@media (max-width: 1260px) {
  .cutting-room { grid-template-columns: 210px minmax(430px,1fr); }
  .production-ledger { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.09); border-left: 0; }
  .production-ledger > section { border-right: 1px solid rgba(255,255,255,.09); }
}
@media (max-width: 1100px) {
  .cutting-room { display: block; }
  .production-queue { display: flex; gap: 7px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .cutting-label { min-width: 130px; display: grid; }
  .production-queue-item { min-width: 210px; }
  .production-ledger { display: block; }
  .production-preview, .production-preview > video, .production-preview > img { min-height: 340px; height: 340px; }
  .production-stage-rail { grid-template-columns: 1fr; }
  .production-stage { border-top: 1px solid #2a3b51; border-left: 0; }
  .production-stage:first-child { border-top: 0; }
  .scene-card, .plan-invitation { grid-template-columns: 55px 1fr; }
  .scene-card > i, .plan-invitation > .button { grid-column: 2; justify-self: start; }
}

/* Competitor Watch: an editorial evidence desk */
.watch-command { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); gap: 28px; align-items: end; margin-bottom: 14px; padding: 25px 28px; color: white; background: linear-gradient(120deg, #14243b 0%, #1c3150 68%, #25435d 100%); border: 0; }
.watch-command h2 { margin: 5px 0 7px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.watch-command p { max-width: 620px; margin: 0; color: #b9c6d7; font-size: 11px; line-height: 1.55; }
.watch-command .eyebrow { color: var(--mint); }
.competitor-add { display: grid; grid-template-columns: 132px minmax(180px, 1fr) auto; gap: 8px; }
.competitor-add select, .competitor-add input { min-width: 0; height: 42px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; }
.watch-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 13px; }
.watch-metrics article { min-height: 86px; padding: 17px 20px; background: white; }
.watch-metrics span, .watch-metrics strong { display: block; }
.watch-metrics span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.watch-metrics strong { margin-top: 10px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .45fr); gap: 18px; align-items: start; }
.watch-profile-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.watch-profile { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 17px; background: white; }
.watch-profile.paused { opacity: .55; }
.profile-orbit { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 50%; font-size: 9px; font-weight: 900; }
.profile-orbit i { position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; background: var(--mint); border: 2px solid white; border-radius: 50%; }
.paused .profile-orbit i { background: #a8b0bb; }
.watch-profile-main h3 { display: inline; margin: 0 8px 0 0; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.watch-profile-main > a { color: var(--blue); font-size: 9px; text-decoration: none; }
.watch-profile-main > .tag { display: block; width: max-content; margin-bottom: 6px; }
.dna-strip { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 11px; }
.dna-strip span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.dna-strip strong { margin-right: 4px; color: var(--ink); font-size: 11px; }
.profile-actions { display: grid; justify-items: end; gap: 7px; }
.watch-filters { position: sticky; top: 22px; border-top: 4px solid var(--coral); }
.watch-filters h2 { margin: 6px 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.watch-filters > p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.watch-filters textarea { width: 100%; min-height: 120px; margin: 10px 0; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: 11px; line-height: 1.5; }
.run-diagnostic { display: grid; gap: 5px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.run-diagnostic span { width: max-content; padding: 4px 7px; color: var(--mint-deep); background: #e7f6ef; border-radius: 7px; font-size: 8px; text-transform: uppercase; }
.run-diagnostic p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.outlier-list { display: grid; gap: 10px; }
.outlier-card { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px; background: #f9fbfc; border: 1px solid var(--line); border-radius: 14px; }
.outlier-score { position: relative; width: 68px; height: 92px; display: grid; align-content: center; justify-items: center; overflow: hidden; color: white; background: var(--ink); border-radius: 11px; }
.outlier-score strong { position: relative; z-index: 1; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.outlier-score span { position: relative; z-index: 1; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.outlier-score i { position: absolute; right: 0; bottom: 0; left: 0; height: var(--signal); background: linear-gradient(to top, var(--coral), #f49f7f); opacity: .9; }
.outlier-card h3 { margin: 7px 0 5px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.outlier-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.evidence-line { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.evidence-line .source-link { margin: 0; }
.opportunity-actions { display: grid; gap: 7px; }
.suggestion-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.suggestion-row:first-of-type { border-top: 0; }
.suggestion-row strong, .suggestion-row a { display: block; margin-top: 5px; }
.suggestion-row a { color: var(--blue); font-size: 9px; text-decoration: none; }
.suggestion-row > div:last-child { display: flex; gap: 7px; }

@media (max-width: 1040px) {
  .watch-command, .watch-layout { grid-template-columns: 1fr; }
  .watch-filters { position: static; }
}
@media (max-width: 720px) {
  .competitor-add, .outlier-card { grid-template-columns: 1fr; }
  .watch-metrics { grid-template-columns: repeat(2, 1fr); }
  .outlier-score { width: 100%; height: 58px; }
  .profile-actions, .opportunity-actions { display: flex; justify-items: initial; }
}

.empty-nav-action { width: 100%; border: 0; color: #fff; font: inherit; text-align: left; cursor: pointer; background: linear-gradient(90deg, rgba(225,89,188,.22), rgba(118,88,235,.16)); }
.first-run-page { min-height: calc(100vh - 80px); display: grid; align-content: center; }
.first-run-hero { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); align-items: center; gap: 30px; padding: clamp(40px, 7vw, 90px); border: 1px solid #e1d9ff; border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 82% 22%, rgba(255,139,204,.42), transparent 24%), radial-gradient(circle at 70% 78%, rgba(102,214,207,.32), transparent 28%), linear-gradient(135deg, #f2eaff 0%, #fff2fa 52%, #effbff 100%); box-shadow: 0 28px 80px rgba(76,46,138,.12); }
.first-run-copy { position: relative; z-index: 2; }
.first-run-copy h1 { max-width: 780px; margin: 18px 0; font-size: clamp(3rem, 6vw, 6.2rem); letter-spacing: -.065em; line-height: .91; color: #21183e; }
.first-run-copy h1 em { color: #7854dd; font-family: Georgia, serif; font-weight: 500; }
.first-run-copy p { max-width: 670px; font-size: 1.08rem; line-height: 1.7; color: #655d78; }
.first-run-copy small { display: block; margin-top: 14px; color: #777086; }
.first-brand-button { margin-top: 14px; box-shadow: 0 13px 28px rgba(104,72,213,.25); }
.empty-orbit { position: relative; min-height: 430px; }
.empty-orbit::before, .empty-orbit::after { content: ""; position: absolute; inset: 50%; translate: -50% -50%; width: 330px; height: 330px; border: 1px dashed rgba(83,55,152,.25); border-radius: 50%; }
.empty-orbit::after { width: 210px; height: 210px; border-style: solid; opacity: .48; }
.empty-orbit-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 108px; height: 108px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(145deg, #7c5ce0, #ef65ae); color: white; font-size: 3.1rem; box-shadow: 0 22px 45px rgba(108,67,188,.3); }
.empty-orbit-card { position: absolute; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 13px; background: rgba(255,255,255,.78); box-shadow: 0 12px 30px rgba(53,38,88,.11); backdrop-filter: blur(10px); color: #332650; }
.empty-orbit-card i { font: 700 .67rem/1 monospace; color: #8a67e8; }
.empty-orbit-card.one { top: 7%; left: 29%; }.empty-orbit-card.two { top: 25%; right: 2%; }.empty-orbit-card.three { bottom: 24%; right: 5%; }.empty-orbit-card.four { bottom: 4%; left: 28%; }.empty-orbit-card.five { top: 45%; left: 0; }
.first-run-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.first-run-steps article { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid #ebe7f5; }
.first-run-steps span { font: 800 .72rem/1 monospace; color: #8a67e8; }
.first-run-steps h2 { margin: 12px 0 5px; font-size: 1.05rem; }
.first-run-steps p { margin: 0; color: var(--muted); font-size: .87rem; }

@media (max-width: 960px) {
  .first-run-hero { grid-template-columns: 1fr; }
  .empty-orbit { min-height: 360px; }
}

@media (max-width: 720px) {
  .first-run-page { min-height: 0; }
  .first-run-hero { padding: 30px 22px; border-radius: 24px; }
  .first-run-copy h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .empty-orbit { min-height: 310px; transform: scale(.88); margin: -20px; }
  .first-run-steps { grid-template-columns: 1fr; }
}

/* Repository adaptation: voice, evidence, ideas, playbooks and experiments */
[data-route="voice"] { --module-accent: #ee5e9f; --module-soft: #fff0f7; --module-ink: #7b2451; }
[data-route="lab"] { --module-accent: #13a89e; --module-soft: #eafffb; --module-ink: #075c59; }
[data-route="ideas"] { --module-accent: #ff8a4c; --module-soft: #fff2e8; --module-ink: #873f19; }
[data-route="playbooks"] { --module-accent: #6c55df; --module-soft: #f1edff; --module-ink: #3d2d93; }
[data-route="experiments"] { --module-accent: #275efe; --module-soft: #edf2ff; --module-ink: #19398d; }

.vault-layout,
.lab-layout,
.experiment-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.45fr);
  gap: 22px;
  align-items: start;
}

.voice-samples { background: linear-gradient(155deg, #fff 25%, #fff0f7); position: sticky; top: 20px; }
.voice-profile-card { padding: 32px; background: linear-gradient(135deg, #2b163b, #6a2458 62%, #c24683); color: white; overflow: hidden; position: relative; }
.voice-profile-card::after { content: "“"; position: absolute; right: 20px; bottom: -76px; font: 240px/1 Georgia, serif; color: rgba(255,255,255,.09); }
.voice-profile-card h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); max-width: 750px; color: white; }
.voice-profile-card .eyebrow, .voice-profile-card .approval-ribbon span { color: #ffcbe2; }
.voice-profile-card .button { margin-top: 24px; position: relative; z-index: 1; }
.voice-traits { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.voice-traits span { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); padding: 7px 11px; border-radius: 999px; }
.rule-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.rule-list li { display: flex; gap: 10px; }
.rule-list li::before { content: "✓"; color: #14a477; font-weight: 800; }
.rule-list.negative li::before { content: "×"; color: #e14f74; }
.voice-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 18px; }
.voice-columns > div { background: #fff; padding: 20px; }
.voice-columns p { padding: 10px 0; border-bottom: 1px solid #edf0f5; margin: 0; }

.lab-console { padding: 0 22px 24px; overflow: hidden; position: sticky; top: 20px; background: linear-gradient(155deg, #f0fffb, #fff); }
.lab-console-head { margin: 0 -22px 22px; padding: 18px 22px; display: flex; justify-content: space-between; background: #0b3e3c; color: #fff; }
.lab-console-head b { font-size: .69rem; letter-spacing: .13em; background: #a4f1d7; color: #0b3e3c; border-radius: 999px; padding: 5px 8px; }
.cost-note { display: block; margin-top: 12px; color: var(--muted); }
.lab-results { display: grid; gap: 18px; }
.lab-run { padding: 26px; border-top: 5px solid #1cc8ba; }
.lab-run > header { display: flex; justify-content: space-between; gap: 20px; }
.lab-run > header time { color: var(--muted); white-space: nowrap; }
.finding-list { margin-top: 22px; border-top: 1px solid var(--line); }
.finding-list > div { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.finding-list > div > span { font: 700 .72rem/1 var(--utility-font, monospace); color: #09988f; }
.finding-list p { margin: 0; }
.finding-list p strong { display: block; color: var(--ink); margin-bottom: 5px; }

.idea-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.idea-metrics article { min-height: 105px; padding: 20px; border-radius: 18px; background: #fff0e7; display: flex; flex-direction: column; justify-content: space-between; }
.idea-metrics article:nth-child(2) { background: #effbe9; }
.idea-metrics article:nth-child(3) { background: #eeeaff; }
.idea-metrics article:nth-child(4) { background: #e7fbfa; }
.idea-metrics strong { font-size: 2rem; }
.idea-metrics span { color: var(--muted); }
.idea-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.idea-card { padding: 22px; border-top: 5px solid #ff9d68; }
.idea-card.approved { border-top-color: #38bd8b; }
.idea-card.drafted { border-top-color: #725af0; }
.idea-card.dismissed { opacity: .58; }
.idea-card > header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.idea-card h2 { margin-top: 6px; }
.idea-score { width: 52px; height: 52px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: #fff0e7; color: #8c431f; }
.idea-score strong { line-height: 1; }
.idea-score small { font-size: .62rem; text-transform: uppercase; }
.idea-hook { font: 600 1.12rem/1.45 Georgia, serif; color: #46233d; }
.idea-card dl { display: grid; grid-template-columns: 105px 1fr; gap: 8px 12px; padding: 15px; background: #f8f8fb; border-radius: 12px; }
.idea-card dt { color: var(--muted); font-size: .77rem; }
.idea-card dd { margin: 0; font-size: .84rem; }
.idea-card footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 18px; }
.idea-card footer > div { display: flex; gap: 8px; }

.playbook-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.playbook-card { padding: 24px; border-top: 6px solid #ed4e9a; }
.playbook-card.tiktok { border-top-color: #27cfc6; }
.playbook-card.youtube { border-top-color: #ff5a5f; }
.playbook-card > header { display: flex; align-items: flex-start; gap: 12px; min-height: 132px; }
.playbook-card h2 { font-size: 1.15rem; line-height: 1.38; }
.playbook-card textarea { min-height: 104px; }
.playbook-save { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 18px 22px; background: #f1edff; border-radius: 16px; }
.playbook-save p { margin: 0; color: var(--muted); }

.experiment-form { padding: 24px; position: sticky; top: 20px; background: linear-gradient(155deg, #eef3ff, #fff); }
.experiment-list { display: grid; gap: 18px; }
.experiment-card { padding: 24px; border-left: 6px solid #8da6f4; }
.experiment-card.won { border-color: #31bd83; }
.experiment-card.lost { border-color: #e46672; }
.experiment-card > header { display: flex; justify-content: space-between; gap: 18px; }
.variant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.variant-grid > div { padding: 14px; background: #f6f7fb; border-radius: 12px; }
.variant-grid span { display: block; color: var(--muted); font-size: .74rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.experiment-result-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; }
.experiment-result-form label { color: var(--muted); font-size: .78rem; }
.experiment-result-form input { margin-top: 6px; }
.experiment-outcome { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.experiment-outcome strong { font-size: 1.8rem; color: #2450cb; }
.experiment-outcome span { color: var(--muted); }

@media (max-width: 1050px) {
  .vault-layout, .lab-layout, .experiment-layout { grid-template-columns: 1fr; }
  .voice-samples, .lab-console, .experiment-form { position: static; }
  .playbook-grid { grid-template-columns: 1fr; }
  .playbook-card > header { min-height: 0; }
}

@media (max-width: 720px) {
  .voice-columns, .idea-board, .idea-metrics { grid-template-columns: 1fr; }
  .finding-list > div { grid-template-columns: 28px 1fr; }
  .finding-list .source-link { grid-column: 2; }
  .idea-card > header { grid-template-columns: auto 1fr; }
  .idea-score { grid-column: 2; width: auto; height: auto; border-radius: 10px; display: flex; gap: 5px; padding: 8px 10px; justify-self: start; }
  .idea-card footer, .playbook-save { align-items: stretch; flex-direction: column; }
  .idea-card footer > div { flex-wrap: wrap; }
  .variant-grid, .experiment-result-form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .watch-profile { grid-template-columns: 44px 1fr; }
  .profile-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .dna-strip { gap: 8px 13px; }
}

/* CRM workspace shell */
:root {
  --workspace-accent: #275efe;
  --paper: #f4f6f9;
  --ink: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --sidebar: 264px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.04);
}
body { letter-spacing: -.006em; }
.sidebar { padding: 20px 14px 14px; color: var(--ink); background: #fff; border-right: 1px solid var(--line); }
.brand { padding: 0 8px; }
.brand-mark { width: 34px; height: 34px; font-family: inherit; font-size: 15px; font-style: normal; font-weight: 850; background: #172033; border-radius: 9px 9px 9px 3px; }
.brand strong { font-size: 15px; }
.brand small, .profile-button small, .mode-card small, .workspace-switcher small { color: #98a2b3; }
.workspace-switcher { margin: 20px 0 12px; padding: 10px; background: #f8fafc; border-color: var(--line); border-left: 3px solid var(--workspace-accent); border-radius: 10px; }
.workspace-switcher strong { display: block; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-avatar { color: #fff; background: var(--workspace-accent); border-radius: 9px; }
.nav-list { gap: 1px; overflow-y: auto; scrollbar-width: thin; }
.nav-label { margin: 13px 10px 4px; color: #98a2b3; font-size: 9px; letter-spacing: .1em; }
.nav-link { min-height: 34px; padding: 0 10px; color: #475467; border-radius: 7px; transition: background .14s ease, color .14s ease; }
.nav-link:hover { color: var(--ink); background: #f2f4f7; }
.nav-link.active { color: #172033; background: color-mix(in srgb, var(--workspace-accent) 10%, white); box-shadow: inset 3px 0 var(--workspace-accent); }
.nav-icon { width: 17px; color: #667085; font-size: 13px; }
.nav-link span:not(.nav-icon) { font-size: 12px; font-weight: 650; }
.nav-badge { color: #fff; background: #f04438; }
.sidebar-foot { padding-top: 9px; background: #fff; }
.mode-card { border-color: var(--line); background: #fcfcfd; }
.mode-card strong, .profile-button strong { font-size: 11px; }
.profile-button { border: 0; background: transparent; }
.main-content { background: var(--paper); }
.page { width: min(1440px, 100%); }
.page-header { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.page-header h1 { letter-spacing: -.035em; }
.card { border-radius: 12px; box-shadow: var(--shadow); }
.button { min-height: 38px; border-radius: 8px; }
.button.primary { background: var(--workspace-accent); border-color: var(--workspace-accent); }

.crm-page { display: grid; gap: 26px; }
.crm-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 5px 0 2px; }
.crm-welcome h1 { margin: 3px 0 7px; font-family: inherit; font-size: clamp(28px,3vw,39px); line-height: 1.08; letter-spacing: -.045em; }
.crm-welcome p { margin: 0; color: var(--muted); font-size: 13px; }
.crm-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.crm-metrics article { position: relative; min-height: 116px; padding: 19px 22px; border-left: 1px solid var(--line); }
.crm-metrics article:first-child { border-left: 0; }
.crm-metrics article:first-child::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--workspace-accent); }
.crm-metrics span, .crm-metrics small { display: block; color: var(--muted); font-size: 10px; }
.crm-metrics span { font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.crm-metrics strong { display: block; margin: 8px 0 3px; font-size: 27px; letter-spacing: -.04em; }
.crm-section { min-width: 0; }
.crm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.crm-section-head h2 { margin: 0 0 3px; font-size: 17px; letter-spacing: -.02em; }
.crm-section-head p { margin: 0; color: var(--muted); font-size: 11px; }
.brand-portfolio { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.brand-account { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--account-color, var(--workspace-accent)); border-radius: 12px; box-shadow: var(--shadow); }
.brand-account.active { border-color: color-mix(in srgb, var(--account-color) 45%, var(--line)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--account-color) 12%, transparent); }
.brand-account > button { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 17px 17px 12px; text-align: left; background: none; border: 0; cursor: pointer; }
.account-avatar { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--account-color); border-radius: 10px; font-size: 12px; font-weight: 850; }
.account-copy strong, .account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 13px; }
.account-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.account-state { color: var(--account-color); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.account-progress { padding: 0 17px 12px; }
.account-progress > span { height: 5px; display: block; overflow: hidden; background: #eef1f5; border-radius: 9px; }
.account-progress i { height: 100%; display: block; background: var(--account-color); border-radius: inherit; }
.account-progress small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.account-stats { display: grid; grid-template-columns: .7fr .8fr 1.5fr; background: #f9fafb; border-top: 1px solid var(--line); }
.account-stats span { min-width: 0; padding: 10px 12px; color: var(--muted); border-left: 1px solid var(--line); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-stats span:first-child { border-left: 0; }
.account-stats strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 11px; }
.add-account { min-height: 164px; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); background: transparent; border: 1px dashed #c7cdd7; border-top-width: 1px; cursor: pointer; box-shadow: none; }
.add-account > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--workspace-accent); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; }
.add-account strong { color: var(--ink); font-size: 12px; }
.add-account small { font-size: 9px; }
.crm-columns { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 20px; }
.work-queue, .activity-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.queue-item { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 15px 17px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.queue-item:first-child { border-top: 0; }
.queue-item > i { width: 8px; height: 8px; background: #98a2b3; border-radius: 50%; }
.queue-item.primary > i { background: var(--workspace-accent); box-shadow: 0 0 0 4px color-mix(in srgb,var(--workspace-accent) 12%,transparent); }
.queue-item.warning > i { background: #f79009; }
.queue-item.success > i { background: #12b76a; }
.queue-item strong, .queue-item small { display: block; }
.queue-item strong { font-size: 12px; }
.queue-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.queue-item b { color: #98a2b3; }
.activity-list > div { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 64px; padding: 12px 15px; border-top: 1px solid var(--line); }
.activity-list > div:first-child { border-top: 0; }
.activity-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--workspace-accent); background: color-mix(in srgb,var(--workspace-accent) 9%,white); border-radius: 8px; font-size: 9px; font-weight: 800; }
.activity-list strong, .activity-list small { display: block; }
.activity-list strong { font-size: 11px; }
.activity-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.brand-manager { width: min(720px,calc(100vw - 28px)); max-height: min(760px,calc(100vh - 28px)); padding: 0; overflow: auto; color: var(--ink); background: #fff; border: 0; border-radius: 15px; box-shadow: 0 30px 80px rgba(16,24,40,.25); }
.brand-manager::backdrop { background: rgba(16,24,40,.44); backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 4px 0; font-size: 23px; }
.dialog-head p { margin: 0; color: var(--muted); font-size: 11px; }
.dialog-brand-list { display: grid; gap: 7px; padding: 18px 26px; }
.dialog-brand { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.dialog-brand:hover, .dialog-brand.active { background: #f8fafc; border-color: var(--account-color); }
.dialog-brand > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--account-color); border-radius: 8px; font-size: 10px; font-weight: 850; }
.dialog-brand strong, .dialog-brand small { display: block; }
.dialog-brand strong { font-size: 12px; }
.dialog-brand small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.dialog-brand b { color: var(--account-color); font-size: 9px; }
.add-brand-form { display: grid; gap: 14px; padding: 22px 26px 28px; background: #f8fafc; border-top: 1px solid var(--line); }
.section-title h3 { margin: 0 0 4px; font-size: 15px; }
.section-title p { margin: 0; color: var(--muted); font-size: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compact-row { grid-template-columns: 120px auto; align-items: end; }
input[type="color"] { min-height: 42px; padding: 4px; cursor: pointer; }

@media (max-width: 1100px) {
  .brand-portfolio { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .sidebar { box-shadow: 20px 0 50px rgba(16,24,40,.18); }
  .mobile-header { background: #fff; border-bottom: 1px solid var(--line); }
  .crm-metrics { grid-template-columns: repeat(2,1fr); }
  .crm-metrics article:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .crm-metrics article:nth-child(4) { border-top: 1px solid var(--line); }
  .crm-columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .crm-welcome { align-items: stretch; flex-direction: column; }
  .brand-portfolio { grid-template-columns: 1fr; }
  .crm-metrics article { min-height: 98px; padding: 15px; }
  .form-row, .compact-row { grid-template-columns: 1fr; }
  .dialog-head, .dialog-brand-list, .add-brand-form { padding-right: 18px; padding-left: 18px; }
}

/* Guided workspace redesign — Impeccable + UI/UX Pro Max */
:root {
  --ink: #211a38;
  --plum: #211a38;
  --muted: #716a82;
  --paper: #f7f5fb;
  --surface: #ffffff;
  --line: #e5e0ed;
  --purple: #6d4aff;
  --purple-dark: #5434d8;
  --rose: #e9488b;
  --teal: #0f9e96;
  --amber: #d78a08;
  --blue: #3973dc;
  --sidebar: 272px;
  --shadow: 0 16px 40px rgba(41, 28, 78, .08);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.app-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-button svg { width: 19px; height: 19px; }
.main-content { background: radial-gradient(circle at 88% 0, rgba(233,72,139,.08), transparent 24%), #f7f5fb; }
.page { width: min(1340px, 100%); padding: 30px clamp(22px, 3.5vw, 54px) 72px; }
.button { min-height: 44px; border-radius: 11px; font-weight: 750; }
.button.primary { color: #fff; background: var(--purple); border-color: var(--purple); box-shadow: 0 8px 20px rgba(109,74,255,.2); }
.button.primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); transform: translateY(-1px); }
.button .app-icon { width: 17px; height: 17px; }

.sidebar { width: var(--sidebar); padding: 22px 16px 16px; overflow-y: auto; background: linear-gradient(180deg,#241c41 0%,#171329 100%); box-shadow: 10px 0 34px rgba(31,23,57,.12); }
.sidebar .brand-mark { color: white; background: linear-gradient(135deg,#846aff,#e9488b); border-radius: 12px 12px 12px 4px; }
.workspace-switcher { margin: 23px 0 12px; min-height: 61px; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.065); }
.workspace-switcher .icon-button { width: 36px; height: 36px; }
.nav-list { gap: 4px; }
.nav-phase { border-radius: 12px; }
.nav-phase summary { min-height: 42px; display: grid; grid-template-columns: 27px 1fr 18px; align-items: center; gap: 7px; padding: 0 10px; color: #bdb6d3; border-radius: 10px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 760; }
.nav-phase summary::-webkit-details-marker { display: none; }
.nav-phase summary:hover { color: white; background: rgba(255,255,255,.06); }
.nav-phase summary > span { color: #847aa5; font-size: 9px; letter-spacing: .06em; }
.nav-chevron { width: 15px; height: 15px; transition: transform .18s ease; }
.nav-phase[open] .nav-chevron { transform: rotate(90deg); }
.nav-phase > div { display: grid; gap: 2px; padding: 2px 0 7px 13px; }
.sidebar .nav-link { min-height: 40px; padding: 0 10px; color: #aaa3c3; border-radius: 9px; }
.sidebar .nav-link:hover { color: white; background: rgba(255,255,255,.055); }
.sidebar .nav-link.active { color: white; background: rgba(132,106,255,.22); box-shadow: inset 3px 0 #e9488b; }
.sidebar .nav-icon { width: 20px; height: 20px; display: grid; place-items: center; color: #9689c8; }
.sidebar .nav-icon .app-icon { width: 17px; height: 17px; }
.nav-badge { color: white; background: #d83e7e; }
.sidebar-foot { padding-top: 12px; }
.mode-card { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.045); }

/* First-run onboarding */
.onboarding-page { width:100%; min-height:100vh; display:grid; grid-template-columns:minmax(430px,.95fr) minmax(520px,1.05fr); align-items:stretch; gap:0; margin:0; padding:0; max-width:none; }
.app-shell:has(.onboarding-page) .sidebar,.app-shell:has(.onboarding-page) .mobile-header { display:none; }
.app-shell:has(.onboarding-page) .main-content { margin-left:0; }
.onboarding-intro { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(44px,7vw,104px); overflow: hidden; color: white; background: radial-gradient(circle at 12% 12%,rgba(255,255,255,.16),transparent 22%), radial-gradient(circle at 92% 86%,rgba(233,72,139,.34),transparent 27%), linear-gradient(145deg,#35245f,#5e3ed5 62%,#7b52ee); }
.onboarding-intro::after { content:""; position:absolute; right:-100px; top:12%; width:290px; height:290px; border:1px solid rgba(255,255,255,.14); border-radius:50%; box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 110px rgba(255,255,255,.025); }
.onboarding-logo { position: absolute; top: 32px; left: clamp(32px,7vw,104px); display:flex; align-items:center; gap:10px; color:white; text-decoration:none; }
.onboarding-logo .brand-mark { background:linear-gradient(135deg,#a794ff,#ff77b4); }
.onboarding-intro h1 { position:relative; z-index:1; max-width:650px; margin:0 0 20px; color:white; font-family:inherit; font-size:clamp(43px,5.3vw,76px); font-weight:820; line-height:.98; letter-spacing:-.045em; }
.onboarding-intro > p { position:relative; z-index:1; max-width:580px; margin-bottom:38px; color:#e5def9; font-size:15px; line-height:1.65; }
.phase-preview { position:relative; z-index:1; max-width:560px; display:grid; grid-template-columns:repeat(5,1fr); gap:0; margin:0 0 28px; padding:0; list-style:none; }
.phase-preview li { position:relative; display:grid; gap:9px; padding-top:18px; border-top:2px solid rgba(255,255,255,.18); }
.phase-preview li::before { content:""; position:absolute; left:0; top:-5px; width:8px; height:8px; border:2px solid #7865aa; background:#4d357f; border-radius:50%; }
.phase-preview li.active { border-color:#ff86bb; }
.phase-preview li.active::before { border-color:#ffd2e6; background:#ff69aa; box-shadow:0 0 0 5px rgba(255,105,170,.15); }
.phase-preview li > span { color:#e1daef; font-size:11px; font-weight:800; }
.phase-preview strong,.phase-preview small { display:block; }
.phase-preview strong { font-size:13px; }.phase-preview small { margin-top:3px; padding-right:8px; color:#e1daef; font-size:11px; line-height:1.35; }
.clean-note { position:relative; z-index:1; color:#ddd5ef; font-size:12px; }
.onboarding-form-panel { display:grid; align-content:center; padding:clamp(38px,7vw,110px); background:#fff; }
.setup-progress { display:flex; justify-content:space-between; margin-bottom:34px; color:var(--purple); font-size:11px; font-weight:800; }
.setup-progress b { color:var(--muted); font-weight:650; }
.onboarding-form-panel h2 { margin-bottom:8px; color:var(--plum); font-size:clamp(30px,3vw,43px); letter-spacing:-.045em; }
.onboarding-form-panel > p { max-width:580px; margin-bottom:27px; color:var(--muted); line-height:1.55; }
.first-brand-form { max-width:600px; display:grid; grid-template-columns:1fr 1fr; gap:17px; }
.first-brand-form .field:first-child,.first-brand-form .field:nth-child(2),.first-brand-form .onboarding-submit { grid-column:1/-1; }
.first-brand-form .field label { margin-bottom:7px; color:#3d3551; font-size:12px; font-weight:760; }
.required-mark { margin-left:6px; color:#a72b61; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.first-brand-form input:not([type=color]) { width:100%; min-height:49px; padding:0 14px; color:var(--ink); background:#fbfaff; border:1px solid #dcd6e6; border-radius:11px; }
.first-brand-form input:focus { border-color:var(--purple); box-shadow:0 0 0 4px rgba(109,74,255,.11); outline:0; }
.onboarding-submit { display:grid; grid-template-columns:120px 1fr; align-items:end; gap:13px; margin-top:3px; }
.inline-form-error { grid-column:1/-1; min-height:0; margin:0; color:#a62559; font-size:12px; font-weight:700; }
.inline-form-error:empty { display:none; }
.first-brand-form input[aria-invalid="true"] { border-color:#cc376f; box-shadow:0 0 0 4px rgba(204,55,111,.1); }
.colour-field { display:grid; gap:7px; color:#3d3551; font-size:12px; font-weight:760; }
.colour-field input { width:100%; height:45px; padding:4px; background:white; border:1px solid #dcd6e6; border-radius:10px; }
.onboarding-submit .button { display:flex; align-items:center; justify-content:center; gap:9px; min-height:48px; }
.form-assurance { max-width:600px!important; margin:18px 0 0!important; color:#625b70!important; font-size:12px; }

/* Guided dashboard */
.guided-home { display:grid; gap:24px; }
.home-topbar { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:5px 0 2px; }
.home-topbar h1 { margin:0 0 5px; color:var(--plum); font-family:inherit; font-size:clamp(28px,3vw,42px); font-weight:820; letter-spacing:-.045em; }
.home-topbar p { margin:0; color:var(--muted); }
.home-topbar-actions { display:flex; gap:9px; }
.home-topbar-actions .button { display:flex; align-items:center; gap:7px; }
.next-action-panel { position:relative; min-height:260px; display:flex; align-items:center; justify-content:space-between; gap:34px; overflow:hidden; padding:38px clamp(30px,5vw,65px); color:white; background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.18),transparent 24%),linear-gradient(125deg,#5b3fd0,#704fe5 55%,#d84989 130%); border-radius:22px; box-shadow:0 22px 48px rgba(73,49,160,.19); }
.next-action-panel::after { content:""; position:absolute; right:-80px; bottom:-160px; width:350px; height:350px; border:1px solid rgba(255,255,255,.13); border-radius:50%; box-shadow:0 0 0 50px rgba(255,255,255,.035); }
.next-action-copy { position:relative; z-index:1; max-width:690px; }
.step-label { display:inline-flex; margin-bottom:14px; padding:6px 10px; color:#fff; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.18); border-radius:8px; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.next-action-panel h2 { margin:0 0 10px; color:white; font-size:clamp(31px,4vw,50px); letter-spacing:-.045em; }
.next-action-panel p { max-width:660px; margin-bottom:24px; color:#eae5fb; line-height:1.55; }
.next-action-panel .button { color:#4a2fc2; background:white; border-color:white; box-shadow:0 9px 24px rgba(33,22,77,.22); }
.progress-dial { position:relative; z-index:1; width:145px; height:145px; flex:0 0 145px; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#ff8bc0 var(--progress),rgba(255,255,255,.16) 0); }
.progress-dial::before { content:""; position:absolute; inset:10px; background:#5e42cb; border-radius:50%; }
.progress-dial > div { position:relative; display:grid; text-align:center; }
.progress-dial strong { font-size:38px; line-height:1; }.progress-dial span { margin-top:5px; color:#ddd5f5; font-size:10px; line-height:1.25; }
.journey-section,.attention-summary,.brand-summary,.quick-tools { padding:25px; background:#fff; border:1px solid var(--line); border-radius:17px; box-shadow:var(--shadow); }
.section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.section-heading h2 { margin:0 0 4px; color:var(--plum); font-size:20px; letter-spacing:-.025em; }
.section-heading p { margin:0; color:var(--muted); font-size:12px; }
.section-heading > a { color:var(--purple); font-size:12px; font-weight:760; text-decoration:none; }
.journey-rail { display:grid; grid-template-columns:repeat(5,1fr); gap:9px; margin-top:21px; }
.journey-phase { position:relative; min-height:118px; display:grid; grid-template-columns:1fr auto; align-content:space-between; gap:10px; padding:16px; overflow:hidden; color:var(--ink); background:var(--phase-bg); border:1px solid var(--phase-line); border-radius:13px; text-decoration:none; transition:transform .18s ease,box-shadow .18s ease; }
.journey-phase:hover { transform:translateY(-2px); box-shadow:0 10px 22px rgba(48,34,88,.1); }
.journey-phase.active { box-shadow:inset 0 0 0 2px var(--phase); }
.journey-phase.violet { --phase:#6d4aff;--phase-bg:#f0ecff;--phase-line:#ded5ff; }.journey-phase.teal { --phase:#0f9e96;--phase-bg:#e8faf7;--phase-line:#cceee9; }.journey-phase.blue { --phase:#3973dc;--phase-bg:#eaf1ff;--phase-line:#d3e0fa; }.journey-phase.rose { --phase:#d83e7e;--phase-bg:#ffeaf3;--phase-line:#f8d2e3; }.journey-phase.amber { --phase:#b97706;--phase-bg:#fff4d9;--phase-line:#f2dfae; }
.phase-number { color:var(--phase); font-size:10px; font-weight:850; }.phase-count { align-self:start; padding:4px 6px; color:var(--phase); background:rgba(255,255,255,.67); border-radius:6px; font-size:9px; font-weight:850; }
.phase-copy { grid-column:1/-1; }.phase-copy strong,.phase-copy small { display:block; }.phase-copy strong { font-size:14px; }.phase-copy small { margin-top:4px; color:#716a82; font-size:9px; line-height:1.35; }
.journey-phase.done::after { content:""; position:absolute; right:-12px; bottom:-12px; width:44px; height:44px; background:var(--phase); border-radius:50%; opacity:.12; }
.home-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:20px; }
.attention-list { display:grid; margin-top:16px; border-top:1px solid var(--line); }
.attention-row { min-height:67px; display:grid; grid-template-columns:38px 1fr 19px; align-items:center; gap:12px; color:var(--ink); border-bottom:1px solid var(--line); text-decoration:none; }
.attention-row > span { width:36px; height:36px; display:grid; place-items:center; color:var(--purple); background:#f0ecff; border-radius:10px; }.attention-row > span .app-icon { width:18px;height:18px; }.attention-row > .app-icon { width:16px;color:#9b94a8; }
.attention-row strong,.attention-row small { display:block; }.attention-row strong { font-size:12px; }.attention-row small { margin-top:3px;color:var(--muted);font-size:10px; }.attention-row.attention > span { color:#b52d68;background:#ffe8f2; }
.brand-summary-head { display:flex; align-items:center; gap:13px; margin:22px 0; padding:17px; background:#f8f6fc; border-radius:13px; }
.summary-avatar { width:49px;height:49px;display:grid;place-items:center;color:white;background:linear-gradient(135deg,var(--brand-color),#e9488b);border-radius:14px;font-size:14px;font-weight:850; }
.brand-summary-head strong,.brand-summary-head small { display:block; }.brand-summary-head small { margin-top:4px;color:var(--muted);font-size:10px; }
.brand-summary dl { display:grid; gap:0; margin:0; }.brand-summary dl div { display:flex; justify-content:space-between; padding:11px 0; border-top:1px solid var(--line); }.brand-summary dt { color:var(--muted);font-size:11px; }.brand-summary dd { margin:0;font-size:11px;font-weight:800; }
.quick-tools > div:last-child { display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:17px; }.quick-tools > div:last-child a { min-height:68px;display:flex;align-items:center;gap:10px;padding:13px;color:var(--ink);background:#f8f6fc;border:1px solid #ebe6f1;border-radius:11px;text-decoration:none;font-size:11px;font-weight:750; }.quick-tools a:hover { color:var(--purple);border-color:#d9d0fb; }.quick-tools a .app-icon { color:var(--purple); }

/* Unify every specialist page */
.main-content:not([data-route="overview"]) .page { gap:18px; }
.main-content:not([data-route="overview"]) .module-header { min-height:auto; align-items:flex-end; margin:0 0 5px; padding:23px 0 20px; overflow:visible; background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; }
.main-content:not([data-route="overview"]) .module-header::before { display:none; }
.main-content:not([data-route="overview"]) .module-heading { grid-template-columns:48px minmax(0,1fr); gap:15px; align-items:start; }
.main-content:not([data-route="overview"]) .module-mark { width:46px;height:46px;display:grid;place-items:center;color:var(--module-accent);background:var(--module-soft);border:1px solid color-mix(in srgb,var(--module-accent) 20%,#fff);border-radius:13px;box-shadow:none;transform:none; }
.main-content:not([data-route="overview"]) .module-mark .app-icon { width:22px;height:22px; }
.main-content:not([data-route="overview"]) .module-header h1 { margin:0 0 7px; color:var(--plum); font-size:clamp(29px,3vw,42px); font-weight:820; letter-spacing:-.045em; }
.main-content:not([data-route="overview"]) .module-header .page-subtitle { color:var(--muted);font-size:12px; }
.page-context { display:inline-block;margin-top:8px;color:var(--module-accent);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em; }
.main-content:not([data-route="overview"]) .card { border-color:var(--line);border-radius:15px;box-shadow:0 10px 28px rgba(41,28,78,.055); }
.main-content:not([data-route="overview"]) .card-header h2 { color:var(--plum);font-size:18px;letter-spacing:-.02em; }
.main-content:not([data-route="overview"]) .field input,.main-content:not([data-route="overview"]) .field textarea,.main-content:not([data-route="overview"]) .field select { min-height:44px;background:#fcfbfd;border-color:#dcd6e4;border-radius:9px; }
.brief-divider { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:8px 0 2px;padding:18px 0 4px;border-top:1px solid var(--line); }
.brief-divider h3 { margin:0 0 5px;color:var(--plum);font-size:16px; }
.brief-divider p { max-width:560px;margin:0;color:var(--muted);font-size:12px;line-height:1.5; }
.detailed-brand-brain { display:grid;gap:0;padding:0!important;overflow:hidden; }
.deep-brief-heading { display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:25px; background:linear-gradient(135deg,#f1edff,#fff0f7); }
.deep-brief-heading h2 { margin:10px 0 5px;font-size:24px; }.deep-brief-heading p { margin:0;color:var(--muted); }.deep-brief-heading > span { color:var(--purple);font-size:12px;font-weight:800; }
.detailed-brand-brain details { border-top:1px solid var(--line); }
.detailed-brand-brain summary { min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 25px;color:var(--plum);cursor:pointer;list-style:none;font-size:14px;font-weight:800; }
.detailed-brand-brain summary::-webkit-details-marker { display:none; }.detailed-brand-brain summary .app-icon { width:17px;height:17px;transition:transform .18s ease; }.detailed-brand-brain details[open] summary .app-icon { transform:rotate(90deg); }
.deep-brief-body { display:grid;gap:22px;padding:0 25px 27px; }.deep-brief-body h3 { margin:0 0 7px;color:var(--plum);font-size:14px; }.deep-brief-body h4 { margin:15px 0 5px;color:#554c68;font-size:11px;text-transform:uppercase;letter-spacing:.04em; }.deep-brief-body p,.deep-brief-body li { color:#625b70;font-size:12px;line-height:1.6; }.deep-brief-body ul { margin:0;padding-left:18px; }
.prose-section { padding:18px;background:#faf8fd;border-radius:12px; }.prose-section p { margin:0;white-space:pre-line; }
.brief-grid { display:grid;grid-template-columns:1fr 1fr;gap:12px; }.brief-grid > div { padding:17px;background:#faf9fc;border:1px solid #eee9f3;border-radius:11px; }.brief-grid > div p { margin:0;white-space:pre-line; }
.audience-segment-grid,.message-pillar-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }.audience-segment-grid section,.message-pillar-grid section { padding:18px;background:#f8f6fc;border:1px solid #ebe5f2;border-radius:12px; }.audience-segment-grid section:nth-child(3n+2),.message-pillar-grid section:nth-child(3n+2){background:#eefaf8}.audience-segment-grid section:nth-child(3n+3),.message-pillar-grid section:nth-child(3n+3){background:#fff1f7}
.journey-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:8px; }.journey-grid div { padding:16px;background:#f5f2fd;border-radius:11px; }.journey-grid span { color:var(--purple);font-size:10px;font-weight:850; }.journey-grid h3 { margin-top:12px; }.journey-grid p { margin:0; }
.source-inventory { display:grid;gap:7px; }.source-inventory a { min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;color:var(--ink);background:#faf9fc;border:1px solid #ece7f1;border-radius:9px;text-decoration:none; }.source-inventory strong,.source-inventory small { display:block; }.source-inventory small { margin-top:3px;color:var(--muted);font-size:10px; }.source-inventory .app-icon { width:16px;color:var(--purple); }
@media(max-width:700px){.brief-grid,.audience-segment-grid,.message-pillar-grid,.journey-grid{grid-template-columns:1fr}.deep-brief-heading,.deep-brief-body{padding-left:18px;padding-right:18px}.detailed-brand-brain summary{padding:0 18px}}

@media (max-width: 1000px) {
  .onboarding-page { grid-template-columns:1fr; }
  .onboarding-intro { min-height:auto;padding:100px 44px 45px; }
  .onboarding-logo { left:44px; }
  .onboarding-form-panel { padding:50px 44px 70px; }
  .journey-rail { grid-template-columns:repeat(5,180px);overflow-x:auto;padding-bottom:7px; }
}
@media (max-width: 820px) {
  :root { --sidebar:0px; }
  .home-grid { grid-template-columns:1fr; }
  .home-topbar { align-items:flex-start; }
}
@media (max-width: 620px) {
  .page { padding:20px 16px 55px; }
  .onboarding-page { padding:0; }
  .onboarding-intro { padding:88px 24px 36px; }
  .onboarding-logo { top:25px;left:24px; }
  .onboarding-intro h1 { font-size:42px; }
  .phase-preview { grid-template-columns:1fr;gap:0;margin-bottom:20px; }
  .phase-preview li { min-height:45px;grid-template-columns:35px 1fr;align-items:center;padding:0 0 0 18px;border-top:0;border-left:2px solid rgba(255,255,255,.18); }
  .phase-preview li::before { left:-5px;top:18px; }.phase-preview li > span { grid-column:1; }.phase-preview li > div { grid-column:2; }.phase-preview small { display:none; }
  .onboarding-form-panel { padding:36px 24px 56px; }
  .first-brand-form { grid-template-columns:1fr; }.first-brand-form .field { grid-column:1!important; }
  .onboarding-submit { grid-template-columns:95px 1fr; }
  .home-topbar { display:grid; }.home-topbar-actions { width:100%; }.home-topbar-actions .button { flex:1;justify-content:center; }
  .next-action-panel { min-height:0;padding:28px 23px; }.progress-dial { display:none; }.next-action-panel h2 { font-size:34px; }
  .journey-section,.attention-summary,.brand-summary,.quick-tools { padding:19px; }
  .quick-tools > div:last-child { grid-template-columns:1fr 1fr; }
  .main-content:not([data-route="overview"]) .module-header { align-items:flex-start;padding-top:8px; }
  .main-content:not([data-route="overview"]) .module-heading { grid-template-columns:42px 1fr; }.main-content:not([data-route="overview"]) .module-mark { width:40px;height:40px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important; }
}

/* Unified colourful modules */
.main-content[data-route="pipeline"] { --module-accent:#7257f6; --module-soft:#eee9ff; --module-ink:#4f38c6; }
.main-content[data-route="brand"] { --module-accent:#ff5ca8; --module-soft:#ffe7f3; --module-ink:#b62d70; }
.main-content[data-route="research"] { --module-accent:#28c8c0; --module-soft:#ddf9f6; --module-ink:#087e78; }
.main-content[data-route="watch"] { --module-accent:#f0a83b; --module-soft:#fff1cf; --module-ink:#8b5b00; }
.main-content[data-route="strategy"] { --module-accent:#8368f7; --module-soft:#eee9ff; --module-ink:#5139c7; }
.main-content[data-route="studio"] { --module-accent:#ff639e; --module-soft:#ffe5ef; --module-ink:#b82963; }
.main-content[data-route="production"] { --module-accent:#6657e8; --module-soft:#e9e7ff; --module-ink:#4537ba; }
.main-content[data-route="approvals"] { --module-accent:#f2b936; --module-soft:#fff3c7; --module-ink:#805d00; }
.main-content[data-route="calendar"] { --module-accent:#21bdb6; --module-soft:#dcf8f5; --module-ink:#087b75; }
.main-content[data-route="integrations"] { --module-accent:#5287f7; --module-soft:#e4edff; --module-ink:#2f5fbe; }
.main-content:not([data-route="overview"]) .page { display:grid; gap:20px; }
.main-content:not([data-route="overview"]) .module-header { position:relative; min-height:215px; align-items:center; overflow:hidden; margin:0; padding:32px 36px; background:linear-gradient(125deg,var(--module-soft),color-mix(in srgb,var(--module-soft) 60%,#ffeaf5)); border:1px solid color-mix(in srgb,var(--module-accent) 22%,#fff); border-radius:22px; box-shadow:0 18px 45px color-mix(in srgb,var(--module-accent) 12%,transparent); isolation:isolate; }
.main-content:not([data-route="overview"]) .module-header::before { content:""; position:absolute; z-index:-1; width:230px; height:230px; right:-55px; top:-105px; background:rgba(255,255,255,.42); border-radius:50%; }
.main-content:not([data-route="overview"]) .module-heading { display:grid; grid-template-columns:58px minmax(0,1fr); gap:18px; align-items:start; }
.module-mark { width:58px; height:58px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,var(--module-accent),color-mix(in srgb,var(--module-accent) 60%,#ff79b4)); border:7px solid rgba(255,255,255,.62); border-radius:18px; box-shadow:0 13px 27px color-mix(in srgb,var(--module-accent) 26%,transparent); font-size:21px; font-weight:900; transform:rotate(-3deg); }
.main-content:not([data-route="overview"]) .module-header .eyebrow { color:var(--module-ink); }
.main-content:not([data-route="overview"]) .module-header h1 { max-width:760px; margin-bottom:10px; color:var(--plum); font-family:inherit; font-size:clamp(31px,3.6vw,51px); font-weight:830; line-height:1.02; letter-spacing:-.055em; }
.main-content:not([data-route="overview"]) .module-header h1 em { color:var(--module-accent); font-style:normal; }
.main-content:not([data-route="overview"]) .module-header .page-subtitle { margin:0; color:#655d78; font-size:12px; line-height:1.55; }
.main-content:not([data-route="overview"]) .module-header .button.primary { background:var(--module-accent); border-color:var(--module-accent); box-shadow:0 9px 22px color-mix(in srgb,var(--module-accent) 22%,transparent); }
.main-content:not([data-route="overview"]) .card { border-color:#e5dff2; border-radius:17px; box-shadow:0 12px 30px rgba(52,37,94,.07); }
.main-content:not([data-route="overview"]) .button.primary { background:var(--module-accent); border-color:var(--module-accent); }
.main-content:not([data-route="overview"]) .text-button,.main-content:not([data-route="overview"]) .source-link { color:var(--module-ink); }
.main-content:not([data-route="overview"]) .empty-note { min-height:150px; display:grid; place-content:center; background:linear-gradient(135deg,rgba(255,255,255,.76),var(--module-soft)); border-color:color-mix(in srgb,var(--module-accent) 28%,#ddd); }
.main-content:not([data-route="overview"]) .field input,.main-content:not([data-route="overview"]) .field textarea,.main-content:not([data-route="overview"]) .field select { background:#fbfaff; border-color:#e5dff2; }
.main-content:not([data-route="overview"]) .field input:focus,.main-content:not([data-route="overview"]) .field textarea:focus,.main-content:not([data-route="overview"]) .field select:focus { border-color:var(--module-accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--module-accent) 13%,transparent); }

/* Campaign pipeline */
[data-route="pipeline"] .campaign-spine { color:var(--plum); background:#fff; border:1px solid #ddd4fb; box-shadow:0 18px 42px rgba(67,45,136,.11); }
[data-route="pipeline"] .spine-intro { color:var(--plum); background:linear-gradient(150deg,#e9e1ff,#f9e6f4); border-right-color:#dcd2f7; }
[data-route="pipeline"] .spine-intro .eyebrow { color:#6248d7; }
[data-route="pipeline"] .spine-intro h2 { font-family:inherit; font-weight:820; }
[data-route="pipeline"] .spine-intro p,[data-route="pipeline"] .campaign-health span { color:#6e6680; }
[data-route="pipeline"] .campaign-health strong { color:#7257f6; font-family:inherit; font-weight:850; }
[data-route="pipeline"] .spine-track { background:linear-gradient(180deg,#fff,#fbf9ff); }
[data-route="pipeline"] .spine-stage { color:#756d86; border-bottom-color:#ece7f5; }
[data-route="pipeline"] .spine-stage::before { background:#ddd4ef; }
[data-route="pipeline"] .spine-stage strong { color:#342c48; }
[data-route="pipeline"] .stage-index { color:#675e79; background:#f0ecf8; border-color:#dfd7ed; }
[data-route="pipeline"] .spine-stage.done .stage-index { color:#087e78; background:#d9f7ef; }
[data-route="pipeline"] .spine-stage.active .stage-index { background:#ff5ca8; border-color:#ff5ca8; box-shadow:0 0 0 6px #ffe7f2; }
[data-route="pipeline"] .grid.three .metric-card:nth-child(1) { background:#e2faf7; } [data-route="pipeline"] .grid.three .metric-card:nth-child(2) { background:#ffe7f2; } [data-route="pipeline"] .grid.three .metric-card:nth-child(3) { background:#fff3c8; }
[data-route="pipeline"] .metric-card strong.value { color:var(--plum); font-family:inherit; font-weight:850; }

/* Brand and research */
[data-route="brand"] .brand-form { background:linear-gradient(165deg,#fff,#fff3f9); border-top:5px solid #ff5ca8; }
[data-route="brand"] .report-hero { color:var(--plum); background:linear-gradient(135deg,#ffe4f1,#eee7ff); border:1px solid #f2cbe0; }
[data-route="brand"] .report-hero h2,[data-route="brand"] .report-hero p { color:var(--plum); font-family:inherit; }
[data-route="brand"] .report-hero .tag:not(.approved) { color:#713454; background:rgba(255,255,255,.58); }
[data-route="brand"] .stack > .card:nth-child(2) { border-top:5px solid #7257f6; } [data-route="brand"] .stack > .card:nth-child(3) { border-top:5px solid #28c8c0; }
[data-route="research"] .market-summary { max-width:none; padding:21px 24px; background:linear-gradient(135deg,#def9f5,#f2fffd); border:1px solid #c7eee8; border-left:6px solid #28c8c0; border-radius:15px; }
[data-route="research"] .market-summary p:last-child { font-family:inherit; font-weight:650; }
[data-route="research"] .filter-chip { border-color:#d8eee9; }
[data-route="research"] .filter-chip.active { color:#fff; background:#159e98; border-color:#159e98; }
[data-route="research"] .research-card:nth-child(3n+1),[data-route="research"] .audience-card:nth-child(3n+1) { border-top:5px solid #28c8c0; } [data-route="research"] .research-card:nth-child(3n+2),[data-route="research"] .audience-card:nth-child(3n+2) { border-top:5px solid #7257f6; } [data-route="research"] .research-card:nth-child(3n),[data-route="research"] .audience-card:nth-child(3n) { border-top:5px solid #ff5ca8; }
[data-route="research"] .research-card h2,[data-route="research"] .audience-card h2 { color:var(--plum); font-family:inherit; font-weight:800; }
[data-route="research"] .table-head > * { background:#dff8f5; }

/* Competitor watch */
[data-route="watch"] .watch-command { color:var(--plum); background:linear-gradient(120deg,#fff1c9,#ffe9f3); border:1px solid #f4dfaa; }
[data-route="watch"] .watch-command h2 { color:var(--plum); font-family:inherit; font-weight:820; }
[data-route="watch"] .watch-command p { color:#6d6374; }
[data-route="watch"] .watch-command .eyebrow { color:#9b6700; }
[data-route="watch"] .watch-metrics { gap:9px; background:transparent; border:0; }
[data-route="watch"] .watch-metrics article { border:1px solid #eadfc8; border-radius:13px; }
[data-route="watch"] .watch-metrics article:nth-child(1) { background:#fff3c9; } [data-route="watch"] .watch-metrics article:nth-child(2) { background:#e4f9f6; } [data-route="watch"] .watch-metrics article:nth-child(3) { background:#ffe6f1; } [data-route="watch"] .watch-metrics article:nth-child(4) { background:#ece7ff; }
[data-route="watch"] .watch-metrics strong,[data-route="watch"] .watch-profile-main h3,[data-route="watch"] .watch-filters h2,[data-route="watch"] .outlier-card h3 { color:var(--plum); font-family:inherit; font-weight:820; }
[data-route="watch"] .profile-orbit { background:linear-gradient(135deg,#f0a83b,#ff669f); }
[data-route="watch"] .watch-filters { border-top-color:#f0a83b; background:linear-gradient(165deg,#fff,#fff8e8); }
[data-route="watch"] .outlier-score { background:var(--plum); }

/* Strategy and content */
[data-route="strategy"] .narrative-main { background:linear-gradient(155deg,#fff,#f3efff); border-top:5px solid #8368f7; }
[data-route="strategy"] .narrative-main > h2 { color:var(--plum); font-family:inherit; font-weight:830; }
[data-route="strategy"] .narrative-main h3 { color:#5a42cb; }
[data-route="strategy"] .objective-grid span:nth-child(odd) { background:#e5faf7; } [data-route="strategy"] .objective-grid span:nth-child(even) { background:#ffe7f2; }
[data-route="strategy"] .pillar-list article { border-left:4px solid #8368f7; padding-left:13px; }
[data-route="strategy"] .pillar-list article:nth-child(2n) { border-left-color:#ff5ca8; }
[data-route="studio"] .production-toolbar { padding:17px 20px; background:linear-gradient(110deg,#ffe3f0,#eee8ff); border:1px solid #f1d1e3; border-radius:15px; }
[data-route="studio"] .post-card { overflow:hidden; border-top:5px solid #ff639e; }
[data-route="studio"] .post-card:nth-child(3n+2) { border-top-color:#7257f6; } [data-route="studio"] .post-card:nth-child(3n) { border-top-color:#28c8c0; }
[data-route="studio"] .post-card h2,[data-route="studio"] .post-hook { color:var(--plum); font-family:inherit; }
[data-route="studio"] .post-footer { background:#fbf9ff; }

/* Approval and calendar */
[data-route="approvals"] .approval-tabs { gap:8px; padding:8px; background:#fff; border:1px solid #eadfbe; border-radius:15px; box-shadow:0 10px 25px rgba(91,67,12,.06); }
[data-route="approvals"] .approval-tabs button { border:0; border-radius:10px; }
[data-route="approvals"] .approval-tabs button.active { color:#664b00; background:#fff0b9; box-shadow:inset 0 0 0 1px #f0d475; }
[data-route="approvals"] .approval-item { overflow:hidden; border-top:5px solid #f2b936; }
[data-route="approvals"] .approval-item:nth-child(3n+2) { border-top-color:#ff639e; } [data-route="approvals"] .approval-item:nth-child(3n) { border-top-color:#7257f6; }
[data-route="approvals"] .strategy-approval-card { background:linear-gradient(145deg,#fff9e4,#fff); border-top:5px solid #f2b936; }
[data-route="approvals"] .strategy-approval-card h2 { color:var(--plum); font-family:inherit; font-weight:830; }
[data-route="calendar"] .calendar-legend { padding:11px 15px; background:#fff; border:1px solid #d6ece9; border-radius:12px; }
[data-route="calendar"] .calendar { border-top:5px solid #21bdb6; }
[data-route="calendar"] .calendar-head div { color:#087b75; background:#e3f9f6; }
[data-route="calendar"] .calendar-day { background:#fff; }
[data-route="calendar"] .calendar-day:nth-child(7n+6),[data-route="calendar"] .calendar-day:nth-child(7n) { background:#fbfaff; }
[data-route="calendar"] .calendar-day.today .date { background:#21bdb6; }

/* Publishing and operations */
[data-route="integrations"] .integration-list { grid-template-columns:repeat(2,minmax(0,1fr)); background:transparent; border:0; box-shadow:none; padding:0; }
[data-route="integrations"] .integration-row { border-color:#dce5f6; box-shadow:0 8px 22px rgba(45,78,143,.06); }
[data-route="integrations"] .integration-row:nth-child(4n+1) { background:#e7eeff; } [data-route="integrations"] .integration-row:nth-child(4n+2) { background:#eee8ff; } [data-route="integrations"] .integration-row:nth-child(4n+3) { background:#ffe7f2; } [data-route="integrations"] .integration-row:nth-child(4n) { background:#e1faf7; }
[data-route="integrations"] .integration-logo { background:linear-gradient(135deg,#5287f7,#8368f7); }
[data-route="integrations"] .operation-metrics .metric-card:nth-child(1) { background:#e7eeff; } [data-route="integrations"] .operation-metrics .metric-card:nth-child(2) { background:#eee8ff; } [data-route="integrations"] .operation-metrics .metric-card:nth-child(3) { background:#e1faf7; } [data-route="integrations"] .operation-metrics .metric-card:nth-child(4) { background:#ffe7f2; }
[data-route="integrations"] .operation-metrics strong { font-family:inherit; font-weight:850; }
[data-route="integrations"] .operation-table th { background:#e8efff; }

/* Media Studio: light CRM controls around a dark preview */
[data-route="production"] .cutting-room { background:#fff; border-color:#dcd5f3; box-shadow:0 22px 55px rgba(52,38,107,.13); }
[data-route="production"] .production-queue { color:var(--plum); background:linear-gradient(180deg,#eeeaff,#f9f7ff); border-right-color:#dcd5f3; }
[data-route="production"] .cutting-label { color:#675d80; }
[data-route="production"] .cutting-label strong { color:#4537ba; }
[data-route="production"] .production-queue-item { color:#4f4762; background:rgba(255,255,255,.62); }
[data-route="production"] .production-queue-item:hover { background:#fff; }
[data-route="production"] .production-queue-item.active { color:var(--plum); background:#fff; border-color:#8d7cf1; box-shadow:0 8px 18px rgba(77,57,165,.10); }
[data-route="production"] .production-queue-item small { color:#81788f; }
[data-route="production"] .production-workbench { color:var(--plum); background:#fff; }
[data-route="production"] .workbench-title h2,[data-route="production"] .section-line h2 { color:var(--plum); font-family:inherit; font-weight:820; }
[data-route="production"] .production-preview { border-color:#392e60; box-shadow:0 15px 35px rgba(20,16,39,.18); }
[data-route="production"] .production-stage-rail { overflow:hidden; background:#f7f4ff; border-color:#ded7f0; }
[data-route="production"] .production-stage { border-color:#ded7f0; }
[data-route="production"] .production-stage strong { color:#3f3753; }
[data-route="production"] .production-stage small,[data-route="production"] .production-stage > span { color:#7c738e; }
[data-route="production"] .scene-card { border-top-color:#e5dff0; }
[data-route="production"] .scene-time strong { color:#6657e8; font-family:inherit; font-weight:850; }
[data-route="production"] .scene-time span,[data-route="production"] .scene-card small { color:#81788f; }
[data-route="production"] .scene-card h3 { color:var(--plum); }
[data-route="production"] .scene-card p { color:#5d556e; }
[data-route="production"] .scene-card > i { color:#5a4ac2; background:#ebe8ff; }
[data-route="production"] .plan-invitation { color:var(--plum); background:linear-gradient(135deg,#eee9ff,#ffe9f3); border-color:#bdb1ec; }
[data-route="production"] .plan-invitation > span { color:#6657e8; font-family:inherit; font-weight:850; }
[data-route="production"] .plan-invitation h2 { color:var(--plum); font-family:inherit; font-weight:820; }
[data-route="production"] .plan-invitation p { color:#655d78; }
[data-route="production"] .production-ledger { background:linear-gradient(180deg,#f7f4ff,#fff1f7); border-left-color:#dcd5f3; }
[data-route="production"] .production-ledger > section { color:var(--plum); border-bottom-color:#dfd7ef; }
[data-route="production"] .production-ledger h2 { color:var(--plum); font-family:inherit; font-weight:820; }
[data-route="production"] .production-ledger .eyebrow { color:#5a42cb; }
[data-route="production"] .production-ledger dt,[data-route="production"] .production-ledger summary,[data-route="production"] .cost-note,[data-route="production"] .qa-row > span { color:#766d88; }
[data-route="production"] .production-ledger dd,[data-route="production"] .qa-row small { color:#554d67; }
[data-route="production"] .control-stack .text-button { color:#5141bd; }
[data-route="production"] .qa-row { border-top-color:#e4dced; }
[data-route="production"] .cutting-room-empty strong { color:var(--plum); font-family:inherit; font-weight:820; }
[data-route="production"] .cutting-room-empty span { color:#6657e8; font-family:inherit; font-weight:850; }
[data-route="production"] .production-workbench .cutting-room-empty { color:#756c86; background:linear-gradient(135deg,#f5f2ff,#fff2f7); border-radius:16px; }
[data-route="production"] .production-queue .empty-note,[data-route="production"] .production-ledger .empty-note { color:#756c86; background:rgba(255,255,255,.7); border-color:#cfc5e5; }

@media (max-width:900px) {
  .main-content:not([data-route="overview"]) .module-header { min-height:auto; padding:27px; }
  .main-content:not([data-route="overview"]) .module-heading { grid-template-columns:46px minmax(0,1fr); gap:13px; }
  .module-mark { width:46px; height:46px; border-width:5px; border-radius:14px; }
  [data-route="integrations"] .integration-list { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .main-content:not([data-route="overview"]) .module-header { padding:22px 19px; border-radius:18px; }
  .main-content:not([data-route="overview"]) .module-header h1 { font-size:31px; }
  .main-content:not([data-route="overview"]) .module-heading { grid-template-columns:1fr; }
  .module-mark { width:42px; height:42px; }
  .main-content:not([data-route="overview"]) .module-header .header-actions { width:100%; }
  .main-content:not([data-route="overview"]) .module-header .header-actions > * { flex:1; }
  [data-route="pipeline"] .spine-intro { min-height:330px; }
  [data-route="watch"] .watch-metrics { gap:7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1180px) {
  .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-split, .narrative-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .campaign-spine { grid-template-columns: 1fr; }
  .spine-intro { min-height: 280px; }
  .competitor-table { overflow-x: auto; }
  .table-row { min-width: 850px; }
  .approval-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .post-grid { grid-template-columns: 1fr; }
  .approval-tabs { grid-template-columns: repeat(2,1fr); }
  .strategy-approval-card { grid-template-columns: 1fr; }
  .objective-grid { grid-template-columns: 1fr; }
  .production-toolbar, .gate-note { align-items: stretch; flex-direction: column; }
}

/* Colourful CRM theme — inspired by the energy of modern work platforms */
:root {
  --plum: #211a3b;
  --purple: #7257f6;
  --purple-soft: #eee9ff;
  --pink: #ff5ca8;
  --pink-soft: #ffe6f3;
  --aqua: #28c8c0;
  --aqua-soft: #dcf9f6;
  --yellow: #f6c94c;
  --yellow-soft: #fff4c9;
}
html, body { background: #f8f6ff; }
.sidebar { color: #f8f7ff; background: linear-gradient(180deg,#211a3b 0%,#18152e 100%); border-right: 0; box-shadow: 14px 0 44px rgba(33,26,59,.12); }
.sidebar .brand { color: #fff; }
.sidebar .brand-mark { color: var(--plum); background: linear-gradient(135deg,#a896ff,#ff91c4); }
.sidebar .brand small, .sidebar .profile-button small, .sidebar .mode-card small, .sidebar .workspace-switcher small { color: #aaa3c8; }
.sidebar .workspace-switcher { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.11); border-left-color: var(--workspace-accent); }
.sidebar .workspace-avatar { box-shadow: 0 6px 18px color-mix(in srgb,var(--workspace-accent) 42%,transparent); }
.sidebar .icon-button { color: #ddd8f2; }
.sidebar .nav-label { color: #777092; }
.sidebar .nav-link { color: #bdb7d4; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar .nav-link.active { color: #fff; background: linear-gradient(90deg,color-mix(in srgb,var(--workspace-accent) 32%,transparent),rgba(255,255,255,.07)); box-shadow: inset 3px 0 #ff83bb; }
.sidebar .nav-icon { color: #a99ff1; }
.sidebar .mode-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); }
.sidebar .profile-button { color: #fff; }
.sidebar .sidebar-foot { background: transparent; }
.main-content { background: radial-gradient(circle at 96% 2%,rgba(255,167,214,.18),transparent 25%),radial-gradient(circle at 8% 44%,rgba(136,112,255,.10),transparent 29%),#f8f6ff; }
.crm-page { min-width: 0; gap: 30px; overflow: hidden; }

.crm-hero { position: relative; min-height: 320px; align-items: center; overflow: hidden; padding: 42px 48px; background: linear-gradient(118deg,#eee6ff 0%,#f7e6ff 42%,#ffe8f3 74%,#f0e7ff 100%); border: 1px solid #ded4ff; border-radius: 26px; box-shadow: 0 24px 65px rgba(92,62,173,.14); isolation: isolate; }
.crm-hero::before, .crm-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.crm-hero::before { width: 280px; height: 280px; right: 21%; top: -165px; background: rgba(255,255,255,.58); }
.crm-hero::after { width: 190px; height: 190px; right: -65px; bottom: -90px; background: rgba(122,87,246,.16); }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; color: #6148d8; background: rgba(255,255,255,.68); border: 1px solid rgba(114,87,246,.18); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.crm-welcome.crm-hero h1 { max-width: 660px; margin: 17px 0 13px; color: var(--plum); font-size: clamp(38px,4.3vw,65px); font-weight: 830; line-height: .98; letter-spacing: -.065em; }
.crm-welcome.crm-hero h1 em { color: #7358ef; font-style: normal; }
.crm-welcome.crm-hero p { max-width: 570px; color: #5d5576; font-size: 14px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; margin-top: 23px; }
.hero-actions .button { min-height: 43px; padding-inline: 18px; }
.button.glass { color: var(--plum); background: rgba(255,255,255,.58); border-color: rgba(62,46,101,.15); backdrop-filter: blur(8px); }
.button.soft-purple, .button.soft-pink { color: #6148d8; background: var(--purple-soft); border-color: #dcd3ff; }
.button.soft-pink { color: #b62d70; background: var(--pink-soft); border-color: #ffc9e3; }

.brand-orbit { position: relative; width: 340px; height: 240px; flex: 0 0 340px; }
.orbit-core { position: absolute; z-index: 2; left: 126px; top: 74px; width: 92px; height: 92px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,var(--orbit-color),color-mix(in srgb,var(--orbit-color) 55%,#ff7eba)); border: 9px solid rgba(255,255,255,.76); border-radius: 30px; box-shadow: 0 22px 45px color-mix(in srgb,var(--orbit-color) 28%,transparent); font-size: 23px; font-weight: 900; transform: rotate(-4deg); }
.orbit-card { position: absolute; z-index: 3; min-width: 132px; display: grid; grid-template-columns: 9px 1fr; column-gap: 8px; padding: 12px 14px; background: rgba(255,255,255,.9); border: 1px solid rgba(93,69,166,.12); border-radius: 13px; box-shadow: 0 14px 30px rgba(59,39,111,.13); backdrop-filter: blur(8px); }
.orbit-card i { grid-row: 1 / 3; align-self: center; width: 9px; height: 9px; background: var(--pink); border-radius: 50%; }
.orbit-card b { color: var(--plum); font-size: 10px; }
.orbit-card small { margin-top: 2px; color: #817997; font-size: 8px; }
.research-card-mini { left: 0; top: 24px; transform: rotate(-3deg); }
.research-card-mini i { background: var(--aqua); }
.content-card-mini { right: 0; top: 9px; transform: rotate(3deg); }
.content-card-mini i { background: var(--purple); }
.approval-card-mini { right: 12px; bottom: 18px; transform: rotate(-2deg); }
.orbit-spark { position: absolute; color: var(--pink); font-size: 20px; }
.orbit-spark.one { left: 55px; bottom: 30px; }.orbit-spark.two { right: 30px; top: 95px; color: var(--yellow); }.orbit-spark.three { left: 228px; bottom: 0; color: var(--aqua); font-size: 15px; }

.crm-metrics { gap: 12px; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.crm-metrics article { min-height: 130px; overflow: hidden; border: 1px solid transparent; border-left: 0; border-radius: 16px; box-shadow: 0 12px 28px rgba(55,38,103,.07); }
.crm-metrics article:first-child::before { display: none; }
.crm-metrics article > i { position: absolute; right: 17px; top: 15px; width: 32px; height: 32px; display: grid; place-items: center; background: rgba(255,255,255,.64); border-radius: 10px; font-size: 16px; font-style: normal; font-weight: 850; }
.crm-metrics .metric-purple { background: linear-gradient(135deg,#eee9ff,#e6dcff); border-color: #dcd1ff; }.crm-metrics .metric-purple > i { color: var(--purple); }
.crm-metrics .metric-pink { background: linear-gradient(135deg,#ffe8f3,#ffdceb); border-color: #ffd0e5; }.crm-metrics .metric-pink > i { color: var(--pink); }
.crm-metrics .metric-aqua { background: linear-gradient(135deg,#e2fbf8,#d5f5f2); border-color: #c7eeea; }.crm-metrics .metric-aqua > i { color: #159b95; }
.crm-metrics .metric-yellow { background: linear-gradient(135deg,#fff5d4,#ffedb5); border-color: #f7e39d; }.crm-metrics .metric-yellow > i { color: #bd8d00; }
.crm-metrics span { color: #625a76; }.crm-metrics strong { color: var(--plum); font-size: 31px; }.crm-metrics small { color: #7a728c; }

.portfolio-panel, .workflow-panel, .attention-panel, .activity-panel { padding: 24px; border: 1px solid #e4def4; border-radius: 19px; box-shadow: 0 15px 38px rgba(62,43,111,.06); }
.portfolio-panel { background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(244,240,255,.92)); }
.workflow-panel { min-width: 0; overflow: hidden; padding: 27px; background: linear-gradient(150deg,#fff 0%,#fbf9ff 100%); }
.attention-panel { background: linear-gradient(150deg,#fff,#f3fffe); }
.activity-panel { background: linear-gradient(150deg,#fff,#fffbeb); }
.section-kicker { display: inline-flex; margin-bottom: 7px; padding: 5px 8px; border-radius: 7px; font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.section-kicker.purple { color: #6249d9; background: var(--purple-soft); }.section-kicker.pink { color: #b82e72; background: var(--pink-soft); }.section-kicker.aqua { color: #087e78; background: var(--aqua-soft); }.section-kicker.yellow { color: #8b6800; background: var(--yellow-soft); }
.crm-section-head h2 { color: var(--plum); font-size: 20px; }
.brand-portfolio { grid-template-columns: repeat(3,minmax(0,1fr)); }
.brand-account { border-radius: 15px; border-top-width: 5px; box-shadow: 0 10px 25px rgba(43,30,80,.07); transition: transform .18s ease,box-shadow .18s ease; }
.brand-account:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(43,30,80,.11); }
.add-account { min-height: 171px; background: linear-gradient(135deg,#f7f3ff,#fff0f8); border: 1px dashed #cdbcf5; }

.workflow-board { width: 100%; max-width: 100%; display: grid; grid-template-columns: 1.2fr .9fr 1.15fr .82fr .82fr; gap: 9px; margin-top: 18px; overflow-x: auto; }
.workflow-column { min-width: 150px; padding: 9px; border-radius: 13px; }
.workflow-column.research { background: #e3faf7; }.workflow-column.plan { background: #eee9ff; }.workflow-column.create { background: #ffe8f3; }.workflow-column.approve { background: #fff4c9; }.workflow-column.publish { background: #e8f1ff; }
.workflow-column > header { display: flex; justify-content: space-between; align-items: center; padding: 5px 5px 10px; }
.workflow-column > header span { color: #39314f; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.workflow-column > header b { padding: 3px 6px; color: #6d657d; background: rgba(255,255,255,.65); border-radius: 6px; font-size: 8px; }
.workflow-ticket { display: grid; grid-template-columns: 20px 1fr; column-gap: 7px; margin-bottom: 7px; padding: 10px; color: inherit; background: rgba(255,255,255,.92); border: 1px solid rgba(55,39,93,.08); border-radius: 9px; box-shadow: 0 5px 12px rgba(40,29,73,.05); text-decoration: none; }
.workflow-ticket > span { grid-row: 1 / 3; width: 19px; height: 19px; display: grid; place-items: center; color: #817890; background: #f0edf5; border-radius: 6px; font-size: 9px; }
.workflow-ticket strong { font-size: 9px; }.workflow-ticket small { margin-top: 3px; color: #7d758c; font-size: 7px; line-height: 1.35; }
.workflow-ticket.done > span { color: #087e78; background: #d8f7ef; }.workflow-ticket.active { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(114,87,246,.11); }.workflow-ticket.active > span { color: white; background: var(--purple); }
.work-queue, .activity-list { border: 0; box-shadow: 0 7px 20px rgba(48,34,88,.06); }

@media (max-width: 1180px) {
  .brand-orbit { width: 285px; flex-basis: 285px; transform: scale(.9); transform-origin: right center; }
  .workflow-board { grid-template-columns: repeat(5,180px); padding-bottom: 5px; }
}
@media (max-width: 900px) {
  .crm-hero { min-height: auto; padding: 34px; }
  .brand-orbit { display: none; }
  .brand-portfolio { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .sidebar { box-shadow: 20px 0 55px rgba(23,18,45,.35); }
  .mobile-header { color: var(--plum); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
  .crm-metrics article:nth-child(3), .crm-metrics article:nth-child(4) { border-top: 1px solid transparent; }
}
@media (max-width: 600px) {
  .crm-page { gap: 20px; }
  .crm-hero { padding: 27px 21px; border-radius: 19px; }
  .crm-welcome.crm-hero h1 { font-size: 39px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .crm-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .crm-metrics article { min-height: 111px; padding: 14px; }
  .crm-metrics article > i { right: 10px; top: 10px; width: 27px; height: 27px; }
  .brand-portfolio { grid-template-columns: 1fr; }
  .portfolio-panel, .workflow-panel, .attention-panel, .activity-panel { padding: 17px; border-radius: 15px; }
  .crm-section-head { align-items: flex-start; }
}

/* Plan size control (content studio header) */
.plan-size-control { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.plan-size-control label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft, #6b6480); }
.plan-size-control input { width: 96px; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #ded7ea); background: #fff; font: inherit; color: inherit; }
.plan-size-control input:focus-visible { outline: 3px solid var(--violet, #6d4aff); outline-offset: 2px; }

/* Bulk approval bar (decision room) */
.bulk-approve { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 22px; margin-bottom: 20px; background: #fff; border: 1px solid var(--line, #ded7ea); border-left: 6px solid var(--violet, #6d4aff); border-radius: 16px; }
.bulk-approve div { display: flex; flex-direction: column; gap: 4px; }
.bulk-approve strong { font-size: 1rem; }
.bulk-approve span { color: var(--ink-soft, #6b6480); font-size: .88rem; max-width: 62ch; }

/* Persistent action failure banner */
.action-error { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin: 0 0 24px; padding: 18px 22px; background: #fff; border: 1px solid var(--line, #ded7ea); border-left: 6px solid #c2325f; border-radius: 16px; }
.action-error strong { display: block; font-size: 1rem; }
.action-error p { margin: 6px 0 0; color: var(--ink-soft, #6b6480); font-size: .92rem; max-width: 70ch; }
.action-error small { display: block; margin-top: 8px; color: var(--ink-faint, #8d85a1); font-size: .78rem; }
.action-error-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* Guarded plan replacement */
.plan-replace-warning { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin: 0 0 24px; padding: 18px 22px; background: #fff; border: 1px solid var(--line, #ded7ea); border-left: 6px solid #d98324; border-radius: 16px; }
.plan-replace-warning strong { display: block; font-size: 1rem; }
.plan-replace-warning p { margin: 6px 0 0; color: var(--ink-soft, #6b6480); font-size: .92rem; max-width: 70ch; }
.plan-replace-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.button.danger { background: #c2325f; border-color: #c2325f; color: #fff; }
.button.danger:hover { background: #a52950; border-color: #a52950; }

/* Resume an interrupted plan */
.plan-resume { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 0 0 24px; padding: 18px 22px; background: #fff; border: 1px solid var(--line, #ded7ea); border-left: 6px solid var(--violet, #6d4aff); border-radius: 16px; }
.plan-resume strong { display: block; font-size: 1rem; }
.plan-resume p { margin: 6px 0 0; color: var(--ink-soft, #6b6480); font-size: .92rem; max-width: 70ch; }

/* Per-stage counts on approval tabs */
.approval-tabs .tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--violet, #6d4aff); color: #fff; font-size: .68rem; font-weight: 700; font-style: normal; }

/* Source inbox: source-led drafts retain attribution without claiming research evidence. */
.source-inbox-form, .source-draft-card, .source-card { min-width: 0; max-width: 100%; }
#main-content[data-route="sources"] { width: auto; min-width: 0; padding: 24px; }
#main-content[data-route="sources"] .v-page { width: 100%; max-width: 100%; overflow-x: hidden; }
@media (max-width: 700px) { #main-content[data-route="sources"] { padding: 16px; } }
.source-inbox-form .v-duo { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.source-inbox-form, .source-draft-card { display: grid; gap: 14px; padding: 16px 18px; background: var(--v-surface, #fff); border: 1px solid var(--v-line, #e2dcee); border-radius: var(--v-r, 14px); }
.source-field { display: grid; min-width: 0; gap: 6px; color: var(--v-ink2, #5b5470); font-size: .84rem; font-weight: 650; }
.source-field > input, .source-field > textarea { width: 100%; min-width: 0; padding: 10px 12px; color: var(--v-ink, #1b1626); background: var(--v-surface, #fff); border: 1px solid var(--v-line2, #cdc4e0); border-radius: 10px; font: inherit; line-height: 1.45; resize: vertical; }
.source-field > textarea { max-width: 100%; }
.source-card { display: grid; gap: 12px; align-content: start; padding: 15px; background: var(--v-sunk, #f7f5fb); border: 1px solid var(--v-line, #e2dcee); border-radius: 12px; }
.source-card .v-btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.source-card h3, .source-draft-card h3 { margin: 6px 0 4px; color: var(--v-ink, #1b1626); font-family: var(--v-display, inherit); font-size: 1rem; line-height: 1.25; }
.source-card p, .source-draft-card p { margin: 0; overflow-wrap: anywhere; color: var(--v-ink2, #5b5470); line-height: 1.45; }
.source-kind { display: inline-flex; padding: 3px 7px; color: var(--v-blue, #2b5fd9); background: var(--v-blue-s, #e3ebfd); border-radius: 6px; font-family: var(--v-mono, monospace); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.source-meta, .source-draft-head { display: flex; flex-wrap: wrap; gap: 9px; align-items: flex-start; justify-content: space-between; }
.source-meta > span { min-width: 0; color: var(--v-ink3, #8a83a0); font-size: .8rem; overflow-wrap: anywhere; }
.source-draft-list { display: grid; gap: 12px; }
.source-draft-note { color: var(--v-ink3, #8a83a0) !important; font-size: .82rem; }
@media (max-width: 700px) { .source-inbox-form, .source-draft-card { padding: 14px; } .source-inbox-form .v-duo { grid-template-columns: minmax(0, 1fr); } .source-meta, .source-draft-head { flex-direction: column; } }
.approval-tabs button.active .tab-count { background: #1c1828; }

/* Local Creative Package delivery review */
.activation-readiness-panel{display:grid;gap:5px;padding:11px;background:var(--v-blue-s,#e3ebfd);border:1px solid var(--v-line,#e2dcee);border-radius:9px}.activation-readiness-panel strong{color:var(--v-blue,#2b5fd9)}.activation-readiness-panel p{margin:0;color:var(--v-ink2,#5b5470);font-size:.84rem;line-height:1.4}
.package-delivery-review .v-btn{display:inline-flex;align-items:center;gap:7px}.package-delivery-review .v-btn svg{width:16px;height:16px;max-width:16px;max-height:16px;flex:0 0 16px}.package-delivery-media,.package-delivery-context{display:grid;gap:6px;padding:10px;background:var(--v-surface,#fff);border:1px solid var(--v-line,#e2dcee);border-radius:9px}.package-delivery-media video{width:100%;max-height:220px;background:#111;border-radius:7px}.package-delivery-context span{color:var(--v-ink2,#5b5470);font-size:.82rem}.package-delivery-review [hidden]{display:none!important}.package-delivery-review{display:grid;gap:10px;margin-top:14px;padding:14px;background:var(--v-sunk,#f7f5fb);border:1px solid var(--v-line,#e2dcee);border-radius:12px}.package-delivery-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.package-delivery-head b{color:var(--v-ink,#1b1626)}.package-delivery-head span,.package-delivery-review small{color:var(--v-ink3,#8a83a0);font-size:.8rem}.package-delivery-review label{display:grid;gap:5px;color:var(--v-ink2,#5b5470);font-size:.8rem;font-weight:700}.package-delivery-review select,.package-delivery-review textarea{width:100%;box-sizing:border-box;padding:9px 10px;color:var(--v-ink,#1b1626);background:var(--v-surface,#fff);border:1px solid var(--v-line2,#cdc4e0);border-radius:9px;font:inherit}.package-delivery-review textarea{resize:vertical;min-height:72px}@media(max-width:700px){.package-delivery-head{align-items:flex-start;flex-direction:column}.package-delivery-review{padding:12px}.package-delivery-review .v-act-buttons{display:grid;grid-template-columns:1fr}.package-delivery-review .v-btn{width:100%}}

/* Required-auth Account administration dialog */
.auth-admin-dialog { width: min(760px,calc(100vw - 32px)); max-width: 760px; max-height: min(820px,calc(100dvh - 32px)); margin: auto; padding: 0; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 32px 90px rgba(28,20,55,.34); }
.auth-admin-dialog::backdrop { background: rgba(23,18,45,.56); backdrop-filter: blur(4px); }
.auth-admin-shell { max-height: inherit; display: grid; grid-template-rows: auto minmax(0,1fr); }
.auth-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 19px; color: var(--surface); background: linear-gradient(135deg,#302052,#6d4aff 72%,#e9488b); }
.auth-admin-eyebrow { margin: 0 0 5px; color: #ded5ff; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.auth-admin-head h2 { margin: 0; font-size: clamp(1.35rem,3vw,1.75rem); letter-spacing: -.035em; }
.auth-admin-head p:not(.auth-admin-eyebrow) { max-width: 58ch; margin: 7px 0 0; color: #eeeaff; font-size: .87rem; line-height: 1.45; }
.auth-admin-close { flex: 0 0 auto; min-height: 40px; padding: 0 14px; color: var(--surface); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.34); border-radius: 10px; font: inherit; font-weight: 750; cursor: pointer; }
.auth-admin-close:hover { background: rgba(255,255,255,.24); }
.auth-admin-body { min-height: 0; display: grid; gap: 16px; padding: 20px 26px 28px; overflow: auto; overscroll-behavior: contain; background: var(--paper); }
.auth-admin-body > form, .auth-admin-body > section { min-width: 0; display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px rgba(41,28,78,.05); }
.auth-admin-body h3, .auth-admin-body h4 { margin: 0; color: var(--ink); }
.auth-admin-body h3 { font-size: 1rem; }.auth-admin-body h4 { font-size: .9rem; }
.auth-admin-body p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.auth-admin-body label { min-width: 0; display: grid; gap: 6px; color: var(--ink); font-size: .82rem; font-weight: 750; }
.auth-admin-body input, .auth-admin-body select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.auth-admin-body button:not(.auth-admin-close) { justify-self: start; min-height: 42px; }
.auth-admin-body [data-auth-admin-error]:not([hidden]) { padding: 12px 14px; color: #8d214c; background: #fff0f5; border: 1px solid #f2b7cc; border-radius: 10px; font-weight: 700; }
.auth-admin-body [data-auth-admin-diagnostics-incidents] { display: grid; gap: 9px; margin-top: 4px; padding: 14px; background: #f8f6fc; border: 1px solid var(--line); border-radius: 11px; }
.auth-admin-body [data-auth-admin-diagnostics-incidents-list] { display: grid; gap: 9px; }
.auth-admin-body [data-auth-admin-diagnostics-incidents-list] article { display: grid; gap: 4px; padding: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 9px; }
.auth-admin-body [data-auth-admin-diagnostics-incidents-list] article strong { color: var(--ink); font-size: .84rem; }
.auth-admin-body [data-auth-admin-membership-list] { display: grid; gap: 10px; }
.auth-admin-body [data-auth-admin-membership-list] > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,.45fr) repeat(3,auto); gap: 8px; align-items: center; padding: 10px; background: #f8f6fc; border: 1px solid var(--line); border-radius: 10px; }
.auth-admin-body [data-auth-admin-membership-list] > div strong { overflow-wrap: anywhere; }
.auth-admin-dialog :focus-visible { outline: 3px solid color-mix(in srgb,var(--purple) 65%,white); outline-offset: 2px; }
@media (max-width: 600px) { .auth-admin-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; } .auth-admin-head { padding: 18px; gap: 12px; } .auth-admin-head p:not(.auth-admin-eyebrow) { font-size: .8rem; } .auth-admin-body { padding: 14px; } .auth-admin-body > form, .auth-admin-body > section { padding: 14px; } .auth-admin-body [data-auth-admin-membership-list] > div { grid-template-columns: 1fr; } .auth-admin-body button:not(.auth-admin-close) { width: 100%; justify-self: stretch; } }

