:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --ink: #14161a;
  --ink-soft: #2b3038;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #d5d9e1;
  --accent: #d7ff4f;
  --accent-ink: #11150d;
  --blue: #2563eb;
  --blue-soft: #e8f0ff;
  --green: #0f9f6e;
  --green-soft: #e3f7ef;
  --amber: #b45309;
  --amber-soft: #fff4dc;
  --red: #dc2626;
  --red-soft: #fee9e9;
  --violet: #6d5efc;
  --violet-soft: #eeecff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 10px 26px rgba(17, 24, 39, 0.045);
  --shadow-lift: 0 2px 5px rgba(17, 24, 39, 0.06), 0 16px 38px rgba(17, 24, 39, 0.09);
  --sidebar-w: 264px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:where(a, button, summary, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: #eef0f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  word-break: break-word;
}
pre { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); }

.icon { flex: 0 0 auto; }

.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.preserve-lines { white-space: pre-line; }
.lede { font-size: 1.05rem; color: var(--ink-soft); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap { display: flex; align-items: center; flex-wrap: wrap; }
.gap { gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Shell ---------- */
.app-shell { min-height: 100vh; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  transform: translateY(calc(-100% - 12px));
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: none; color: #fff; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #0d1117;
  color: #d5d9e1;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  z-index: 40;
  border-right: 1px solid #1b2028;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  flex: 0 0 auto;
}
.brand-text { font-size: 1.06rem; color: #fff; }
.icon-btn.sidebar-close { display: none; margin-left: auto; }

.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  padding: 18px 10px 7px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #a6adba;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 120ms ease, color 120ms ease;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.nav-link:hover { background: #161b23; color: #fff; }
.nav-link.active { background: #1a2117; color: var(--accent); }
.nav-link .icon { opacity: 0.9; }
.nav-link-muted { color: #8f96a3; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #1b2028; display: grid; gap: 8px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; }
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta strong { color: #fff; font-size: 0.87rem; font-weight: 600; }
.user-meta span { color: #8f96a3; font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 32px;
  background: rgba(244, 245, 247, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}
.topbar-title { display: flex; flex-direction: column; min-width: 0; }
.topbar-title h1 { font-size: 1.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-actions form { display: flex; }
.icon-btn.menu-btn { display: none; }
.page { width: 100%; max-width: 1260px; margin: 0 auto; padding: 26px 32px 56px; flex: 1; }
.page:focus { outline: none; }
.page, .channel-stack > [id] { scroll-margin-top: 84px; }
.page-foot {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.76rem;
}
.page-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.page-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
}
.card-soft { background: var(--surface-soft); box-shadow: none; }
.card-feature { border-color: #d9e6bd; background: linear-gradient(150deg, #ffffff 30%, #f6ffe6); }
.card-dark {
  background: radial-gradient(120% 150% at 0% 0%, #1c2430 0%, #0d1117 70%);
  border-color: #1b2028; color: #fff; box-shadow: none;
}
.card-dark h2, .card-dark h3 { color: #fff; }
.card-dark p { color: #b8c0cc; }
.card-dark .eyebrow { color: var(--accent); }
.card-danger { border-color: #f3c9c9; background: #fffafa; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.card-head h2 { margin-top: 2px; }
.card-head h3 { margin-top: 2px; }
.card-soft .card-head { margin-bottom: 12px; }
.card > p + p { margin-top: 10px; }
.card h3 { margin-bottom: 8px; }
.card > h3 + p { margin-bottom: 10px; }

.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.split-head h2 { margin-bottom: 4px; }
.split-head p { max-width: 720px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.head-actions form { display: flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  background: var(--surface);
  color: var(--ink);
  transition: transform 100ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #000; color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: #c9f23a; color: var(--accent-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink-soft); }
.btn-ghost:hover { border-color: #b9c0cb; background: #fff; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: #f1c4c4; }
.btn-danger-ghost:hover { background: #fef2f2; color: #b91c1c; }
.btn-sm { padding: 7px 11px; font-size: 0.82rem; border-radius: 9px; }
.btn-xs { padding: 5px 9px; font-size: 0.76rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  color: var(--ink-soft);
}
.icon-btn:hover { background: var(--surface-soft); }
.icon-link { color: var(--muted); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.icon-link:hover { background: var(--surface-soft); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.text-link:hover { color: var(--blue); }
.action-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.action-row form { display: flex; }

/* ---------- Forms ---------- */
.form-stack { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.field > span { letter-spacing: 0.01em; }
.field small { font-weight: 450; color: var(--muted); font-size: 0.76rem; }
input[type="text"], input[type="url"], input[type="date"], input[type="email"], input[type="search"], input[type="password"], textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  min-height: 40px;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #93a3ff;
  box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.12);
}
.inline-form { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 240px; }
.inline-form input { max-width: 220px; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; font-weight: 650;
  text-transform: capitalize;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef0f4;
  color: #4b5563;
  white-space: nowrap;
}
.badge-new, .badge-ready, .badge-succeeded, .badge-sent, .badge-active, .badge-accepted { background: var(--green-soft); color: #067a54; }
.badge-saved, .badge-pending, .badge-queued, .badge-planned, .badge-generating, .badge-in-progress, .badge-running { background: var(--amber-soft); color: var(--amber); }
.badge-rejected, .badge-failed, .badge-expired { background: var(--red-soft); color: #b91c1c; }
.badge-deferred, .badge-archived, .badge-paused, .badge-skipped { background: #eef0f4; color: #4b5563; }
.badge-published { background: var(--violet-soft); color: #5646d6; }
.badge-idea { background: var(--blue-soft); color: #1d4ed8; }
.badge-approved { background: var(--green-soft); color: #067a54; }
.badge-soft { background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 550;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.chip-muted { color: var(--muted); }
.chip-link { color: var(--blue); border-color: #dbe6ff; background: #f4f8ff; }
.chip-link:hover { color: #1d4ed8; }
.chip-button { cursor: pointer; }
.chip-button:hover { border-color: #b9c0cb; background: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 650;
  letter-spacing: 0.02em;
  padding: 5px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}
.pill-dark { background: rgba(215, 255, 79, 0.12); color: var(--accent); border: 1px solid rgba(215, 255, 79, 0.25); }
.priority {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 0.72rem; font-weight: 750;
  background: #eef0f4; color: #4b5563;
  flex: 0 0 auto;
}
.priority-1 { background: #ffe3e3; color: #b91c1c; }
.priority-2 { background: #fff0d6; color: #a15c00; }
.priority-3 { background: var(--blue-soft); color: #1d4ed8; }
.priority-4 { background: #eef0f4; color: #4b5563; }
.priority-5 { background: #eef0f4; color: #6b7280; }
.priority-lg { min-width: 44px; height: 34px; font-size: 0.82rem; }

/* ---------- Alerts / toasts ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  border: 1px solid transparent;
  margin-bottom: 16px;
}
.alert strong { display: block; }
.alert span { color: inherit; opacity: 0.9; }
.alert-error { background: var(--red-soft); border-color: #f6cccc; color: #991b1b; }
.alert-warning { background: var(--amber-soft); border-color: #f2dcb0; color: #8a4a06; }
.alert-info { background: var(--blue-soft); border-color: #cddcff; color: #1e40af; }
.alert-inline { align-items: center; }
.alert-inline > div { flex: 1; display: flex; flex-direction: column; }
.alert-inline .btn { flex: 0 0 auto; }
.inline-warning {
  display: flex; align-items: center; gap: 6px;
  color: var(--amber); font-size: 0.8rem;
  background: var(--amber-soft);
  border-radius: 8px;
  padding: 6px 9px;
  margin-top: 10px;
}
.inline-warning.small { font-size: 0.75rem; }
.toast-stack { position: fixed; top: 18px; right: 20px; z-index: 60; display: grid; gap: 8px; width: min(390px, calc(100vw - 40px)); }
.public-toasts { top: 20px; }
.toast {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 10px;
  padding: 11px 13px;
  box-shadow: var(--shadow-lift);
  font-size: 0.86rem;
  animation: slidein 160ms ease;
}
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.toast-success { border-left-color: var(--green); }
.toast-warning { border-left-color: var(--amber); }
.toast-error { border-left-color: var(--red); }
.toast-close { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 2px; transform: rotate(45deg); }
.toast-close:hover { color: var(--ink); }

/* ---------- Dashboard ---------- */
.hero {
  display: flex; gap: 30px; justify-content: space-between;
  background: radial-gradient(110% 160% at 0% 0%, #1a222e 0%, #0d1117 72%);
  border-color: #1b2028;
  color: #fff;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -100px; top: -140px;
  background: radial-gradient(circle, rgba(215, 255, 79, 0.2), transparent 66%);
  pointer-events: none;
}
.hero-copy { max-width: 640px; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--accent); }
.hero h2 { font-size: 1.65rem; margin: 7px 0 8px; color: #fff; }
.hero p { color: #c3cad5; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.hero-side { display: flex; align-items: center; position: relative; z-index: 1; }
.channel-chip {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 13px 15px;
  min-width: 240px;
}
.channel-chip strong, .channel-chip a { display: block; color: #fff; font-size: 0.9rem; }
.channel-chip .muted { color: #9ca6b5; }
.dashboard-market { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
.dashboard-market p { margin-right: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px;
  box-shadow: none;
  transition: box-shadow 140ms ease, transform 140ms ease, border-color 140ms ease;
}
.stat:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: #d7dbe3; }
.stat-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface-soft);
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 550; }
.stat-value { font-size: 1.8rem; letter-spacing: -0.04em; }
.stat-hint { font-size: 0.73rem; color: var(--muted-light); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr); gap: 20px; align-items: start; }

.opportunity-list { display: flex; flex-direction: column; }
.opportunity-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.opportunity-row:first-child { border-top: 0; padding-top: 2px; }
.opportunity-row:hover .opportunity-row-main strong { color: var(--blue); }
.opportunity-row-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opportunity-row-main strong { font-size: 0.93rem; }
.opportunity-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.idea-list { display: flex; flex-direction: column; }
.idea-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.idea-row:first-child { border-top: 0; padding-top: 2px; }
.idea-row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.idea-row strong { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; }
.idea-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-soft); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.report-preview { display: flex; flex-direction: column; gap: 5px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.report-preview:hover { border-color: #cbd1db; }
.report-preview strong { font-size: 0.92rem; }
.report-preview p { font-size: 0.84rem; color: var(--muted); }
.approval-mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.approval-mini:first-of-type { border-top: 0; }
.approval-mini > div { flex: 1; display: flex; flex-direction: column; }
.approval-mini strong { font-size: 0.86rem; }
.approval-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-soft); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }

/* ---------- Competitors ---------- */
.competitor-list { display: flex; flex-direction: column; gap: 14px; }
.competitor-card { padding: 18px; }
.competitor-top { display: flex; gap: 13px; align-items: flex-start; }
.competitor-id { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.competitor-name { font-size: 1.02rem; font-weight: 650; }
.competitor-name:hover { color: var(--blue); }
.competitor-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.competitor-actions form { display: flex; }
.avatar {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8ecf3, #d8dee8);
  color: #4b5563;
  font-size: 0.78rem; font-weight: 700;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.avatar-sm { width: 34px; height: 34px; font-size: 0.72rem; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 56px; height: 56px; font-size: 0.95rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.1rem; }
.channel-hero { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.channel-hero-main { display: flex; gap: 16px; align-items: center; }
.channel-hero-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.channel-hero-id h2 { font-size: 1.5rem; }
.channel-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.channel-hero-stats > div { display: flex; flex-direction: column; }
.channel-hero-stats strong { font-size: 1.2rem; letter-spacing: -0.02em; }
.channel-hero-stats span { font-size: 0.76rem; color: var(--muted); }
.channel-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.channel-hero-actions form { display: flex; }
.channel-stack > .channel-hero, .channel-stack > .stat-grid, .channel-stack > .alert { margin-bottom: 0; }
.channel-jump { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.channel-jump a { min-height: 32px; }
.audit-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.audit-findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin-top: 16px; }
.audit-findings li { display: grid; align-content: start; gap: 8px; padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.audit-findings h3 { margin-bottom: 0; }
.evidence-link { width: fit-content; color: #1d4ed8; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.audit-label { display: block; }
.audit-coverage { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.audit-coverage summary { cursor: pointer; font-weight: 600; }
.audit-coverage ul { margin-top: 8px; }
.analytics-controls, .analytics-disconnect { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.analytics-controls .inline-check { justify-content: flex-start; }
#youtube-analytics .stat-grid, #youtube-analytics .table-wrap + p { margin-top: 12px; }
#youtube-analytics .table-wrap + .card-head { margin-top: 18px; }
.analysis-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.analysis-grid h3 { margin-top: 4px; }
.analysis-grid h3 + p { color: var(--muted); font-size: 0.9rem; }
.analysis-grid h3:not(:first-child) { margin-top: 16px; }

/* ---------- Video rows ---------- */
.video-list { display: flex; flex-direction: column; }
.video-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.video-row:first-child { border-top: 0; padding-top: 0; }
.video-thumb { width: 82px; height: 48px; border-radius: 8px; object-fit: cover; background: #eef0f4; flex: 0 0 auto; }
.video-thumb-placeholder { display: grid; place-items: center; color: var(--muted); }
.video-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.video-title { font-size: 0.89rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-title:hover { color: var(--blue); }
.video-meta { font-size: 0.76rem; color: var(--muted); }

/* ---------- Opportunities ---------- */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.filter:hover { border-color: #b9c0cb; color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { font-size: 0.7rem; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); }
.filter.active .filter-count { background: rgba(255, 255, 255, 0.18); }
.opportunity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opportunity-card { display: flex; flex-direction: column; gap: 8px; transition: box-shadow 140ms ease, transform 140ms ease; }
.opportunity-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.opportunity-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.opportunity-card h3 { font-size: 1.02rem; }
.opportunity-card p { color: var(--muted); font-size: 0.86rem; }
.opportunity-card-meta { display: flex; gap: 13px; flex-wrap: wrap; color: var(--muted); font-size: 0.77rem; margin-top: auto; padding-top: 6px; }
.opportunity-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.opportunity-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.opportunity-hero { margin-bottom: 20px; }
.opportunity-hero h2 { font-size: 1.55rem; margin: 12px 0 8px; }
.evidence-list { display: flex; flex-direction: column; }
.evidence-item { display: flex; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.evidence-item:first-child { border-top: 0; padding-top: 0; }
.evidence-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.evidence-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.evidence-title { font-weight: 600; font-size: 0.9rem; }
.evidence-title:hover { color: var(--blue); }
.evidence-note { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }

/* ---------- Content plan ---------- */
.idea-create { margin-bottom: 16px; }
.idea-create > summary { list-style: none; }
.idea-create > summary::-webkit-details-marker { display: none; }
.idea-create > .card { margin-top: 12px; }
.calendar-card { margin-bottom: 20px; container-type: inline-size; }
.calendar-nav { display: flex; gap: 5px; align-items: center; }
.calendar-nav .btn:first-child .icon { transform: rotate(180deg); }
.calendar-wrap { overflow-x: auto; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(104px, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 760px; }
.cal-weekday {
  padding: 9px 10px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.cal-day { min-height: 112px; padding: 7px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 5px; }
.cal-day:nth-child(7n + 1) { border-left: 0; }
.cal-day:nth-child(n + 8):nth-child(-n + 14) { border-top: 0; }
.cal-outside { background: #fbfbfc; color: var(--muted-light); }
.cal-today { background: #fafff0; box-shadow: inset 0 0 0 1px rgba(159, 195, 44, 0.45); }
.cal-date { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.cal-today .cal-date { color: var(--accent-ink); }
.cal-items { display: flex; flex-direction: column; gap: 3px; }
.cal-idea {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: 0.7rem; line-height: 1.35;
  padding: 4px 5px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: #1e40af;
}
.cal-idea:hover { background: #dbe8ff; color: #1e3a8a; }
.cal-idea-published { background: var(--green-soft); color: #067a54; }
.cal-idea-in-progress, .cal-idea-planned { background: var(--amber-soft); color: var(--amber); }
.cal-idea-deferred, .cal-idea-archived { background: #eef0f4; color: #4b5563; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; margin-top: 4px; }
.calendar-agenda { display: none; }
.agenda-dates { display: grid; gap: 14px; list-style: none; }
.agenda-dates li + li { border-top: 1px solid var(--line); padding-top: 12px; }
.agenda-date { color: var(--muted); font-size: 0.84rem; font-weight: 650; }
.agenda-ideas { display: grid; gap: 6px; margin-top: 6px; }
.agenda-idea { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.agenda-idea strong { flex: 1 1 180px; overflow-wrap: anywhere; }
.agenda-idea:hover { border-color: var(--line-strong); }
@container (max-width: 759px) {
  .calendar-wrap { display: none; }
  .calendar-agenda { display: block; }
}
.idea-hero { margin-bottom: 20px; }
.idea-hero h2 { margin: 10px 0 6px; font-size: 1.45rem; }
.outline {
  white-space: pre-wrap;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.65;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  max-height: 560px;
  overflow: auto;
}
.mini-stats { display: flex; gap: 20px; margin: 6px 0 12px; }
.mini-stats > div { display: flex; flex-direction: column; }
.mini-stats strong { font-size: 1.35rem; letter-spacing: -0.03em; }
.mini-stats span { font-size: 0.74rem; color: var(--muted); }

/* ---------- Reports ---------- */
.report-list { display: flex; flex-direction: column; gap: 13px; }
.report-row { display: flex; align-items: flex-start; gap: 14px; padding: 18px; transition: box-shadow 140ms ease, transform 140ms ease; }
.report-row:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.report-row-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.report-row-main h3 { font-size: 1.02rem; }
.report-row-main p { color: var(--muted); font-size: 0.86rem; }
.report-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.report-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--surface-soft); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.report-kind {
  display: inline-flex; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.report-hero { margin-bottom: 20px; }
.report-hero h2 { font-size: 1.4rem; margin: 16px 0 8px; overflow-wrap: anywhere; }
.report-summary { color: var(--ink-soft); max-width: 76ch; }
.quiet-card { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; background: var(--surface-soft); box-shadow: none; }
.quiet-card > div { display: flex; flex-direction: column; }
.quiet-card span:not(.quiet-icon) { color: var(--muted); font-size: 0.86rem; }
.quiet-icon { width: 42px; height: 42px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.activity-list { display: flex; flex-direction: column; gap: 15px; }
.activity-item { padding-top: 14px; border-top: 1px solid var(--line); }
.activity-item:first-child { border-top: 0; padding-top: 0; }
.activity-item h3 { margin-bottom: 4px; }
.activity-item p { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.action-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.action-list li { display: flex; gap: 11px; align-items: flex-start; }
.action-list li > span { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; flex: 0 0 auto; }
.action-list p { font-size: 0.9rem; }
.coverage-list { display: flex; flex-direction: column; }
.coverage-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.coverage-item:first-child { border-top: 0; padding-top: 0; }
.coverage-item strong { font-size: 0.88rem; }

/* ---------- Approvals ---------- */
.approval-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.approval-card { display: flex; flex-direction: column; gap: 12px; }
.approval-head { display: flex; gap: 13px; align-items: flex-start; }
.approval-head > div { display: flex; flex-direction: column; gap: 3px; }
.approval-head h3 { font-size: 1.1rem; }
.approval-head .eyebrow { margin-bottom: 1px; }
.approval-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--surface-soft); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.approval-reason { display: flex; flex-direction: column; gap: 2px; background: var(--surface-soft); border-radius: 10px; padding: 10px 12px; font-size: 0.86rem; }
.approval-reason span { color: var(--muted); }
.approval-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.approval-actions form { display: flex; }
.approval-card > p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Settings ---------- */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.setting-row:first-of-type { border-top: 0; padding-top: 0; }
.setting-row > div { display: flex; flex-direction: column; gap: 1px; }
.setting-row form { display: flex; }
.status-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.status-list li { display: flex; gap: 10px; align-items: flex-start; }
.status-list li > div { display: flex; flex-direction: column; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: var(--muted-light); flex: 0 0 auto; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status-dot.off { background: #cbd1db; }
.workspace-url { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.workspace-url code { font-size: 0.75rem; }
.notification-list { display: flex; flex-direction: column; }
.notification-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.notification-row:first-child { border-top: 0; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.84rem; }
.data-table th { text-align: left; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }

/* ---------- Ask ---------- */
.ask-card { margin-bottom: 20px; }
.ask-intro { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.ask-intro p { max-width: 780px; margin-top: 4px; }
.ask-mark { width: 48px; height: 48px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: 0 0 auto; }
.ask-form textarea { font-size: 1rem; min-height: 84px; }
.ask-form-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.suggestion-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.answer-card { margin-bottom: 20px; }
.answer-text { font-size: 1rem; line-height: 1.7; padding: 4px 0 12px; }
.citation-list { display: flex; flex-direction: column; }
.citation { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.citation:first-child { border-top: 0; }
.citation > span { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-soft); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.citation > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.citation strong { font-size: 0.87rem; }
.citation:hover strong { color: var(--blue); }

/* ---------- Empty / setup / misc ---------- */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.empty-icon { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); margin-bottom: 10px; }
.empty h3 { font-size: 1.02rem; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 0.88rem; max-width: 520px; margin-bottom: 14px; }
.metric { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; }
.stat-grid > .metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.metric-label { font-size: 0.76rem; color: var(--muted); font-weight: 550; }
.metric-value { font-size: 1.55rem; letter-spacing: -0.03em; }
.metric-hint { font-size: 0.72rem; color: var(--muted-light); }
.mini-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; background: var(--surface-soft); border-radius: 10px; padding: 10px 12px; color: var(--muted); }
.mini-note p { font-size: 0.8rem; }
.check-list, .plain-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.check-list li { display: flex; align-items: center; gap: 8px; color: #c3cad5; }
.check-list .icon { color: var(--accent); }
.plain-list li { position: relative; padding-left: 14px; font-size: 0.88rem; color: var(--ink-soft); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-light); }
.plain-list.small li { font-size: 0.8rem; color: var(--muted); }
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.87rem; }
.steps-list li > span { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-soft); border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.steps-list.compact { gap: 8px; }
.steps-list.compact li { font-size: 0.82rem; color: var(--muted); }
.setup-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); gap: 20px; align-items: start; }
.setup-list { display: flex; flex-direction: column; gap: 13px; margin: 18px 0; }
.setup-item { display: flex; gap: 11px; align-items: flex-start; }
.setup-item > div { display: flex; flex-direction: column; }
.setup-item strong { font-size: 0.9rem; }
.setup-item span:not(.setup-dot) { color: var(--muted); font-size: 0.82rem; }
.setup-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-soft); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.setup-item.done .setup-dot { background: var(--green-soft); border-color: #bfe9d8; color: var(--green); }

/* ---------- Public / auth ---------- */
.page-public { background: #e9ebef; }
.public-shell { min-height: 100vh; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1.12fr 0.88fr; }
.auth-brand {
  background:
    radial-gradient(70% 70% at 15% 15%, rgba(215, 255, 79, 0.18), transparent 60%),
    radial-gradient(60% 60% at 85% 85%, rgba(109, 94, 252, 0.18), transparent 60%),
    #0d1117;
  color: #fff;
  padding: 34px 54px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand-public { padding: 0; }
.auth-pitch { max-width: 560px; padding: 48px 0; }
.auth-pitch h1 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.06; margin: 18px 0 18px; color: #fff; letter-spacing: -0.04em; }
.auth-pitch p { color: #b9c1cd; font-size: 1.05rem; max-width: 480px; }
.auth-pitch .check-list { margin-top: 26px; }
.auth-foot { color: #7d8797; font-size: 0.76rem; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 28px; }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lift); }
.auth-card h2 { font-size: 1.7rem; margin: 6px 0 10px; letter-spacing: -0.03em; }
.auth-card .muted { margin-bottom: 18px; }
.auth-card .btn-block + .alert, .auth-card .alert + .btn-block { margin-top: 12px; }
.divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 16px; color: var(--muted-light); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-legal { color: var(--muted); font-size: 0.72rem; margin-top: 18px; max-width: 420px; text-align: center; }
.dev-signin { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: grid; gap: 8px; }
.dev-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-light); font-weight: 700; }
.dev-signin p { font-size: 0.72rem; color: var(--muted); }
.error-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; gap: 20px; background: #0d1117; }
.error-card { width: min(560px, 100%); text-align: center; padding: 40px 30px; }
.error-code { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.error-card h1 { margin: 8px 0 10px; font-size: 1.7rem; }
.error-card p { color: var(--muted); margin-bottom: 10px; }
.error-card .action-row { justify-content: center; }
.error-shell > .muted { color: #7d8797; text-align: center; }

/* ---------- Public site ---------- */
.public-site { background: var(--surface); }
.public-site .public-shell { display: flex; flex-direction: column; min-height: 100vh; }
.public-container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.public-header { border-bottom: 1px solid var(--line); }
.public-header-inner, .public-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.public-header-inner { min-height: 76px; }
.brand-site { padding: 0; }
.brand-site .brand-text { color: var(--ink); }
.public-main { flex: 1; }
.public-main:focus { outline: none; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 6vw, 76px); padding: clamp(44px, 7vw, 91px) 0; }
.landing-intro h1 { max-width: 15ch; font-size: clamp(2.45rem, 5.5vw, 4.85rem); line-height: 1.02; letter-spacing: -0.06em; }
.landing-intro > p { max-width: 46ch; margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.landing-actions .btn, .public-header .btn { min-height: 42px; }
.landing-actions .text-link { min-height: 42px; text-decoration: underline; text-underline-offset: 4px; }
.landing-preview {
  padding: clamp(18px, 3.5vw, 32px);
  border-radius: 24px;
  background: radial-gradient(120% 140% at 100% 0%, #273222 0%, #131a22 58%, #0d1117 100%);
  color: #f8fafc;
  box-shadow: var(--shadow-lift);
}
.preview-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.preview-heading .small { color: #b5c1cb; }
.preview-finding { padding: clamp(14px, 3vw, 20px); border: 1px solid #ffffff26; border-radius: 15px; background: #ffffff0b; }
.preview-finding h3 { font-size: 1.08rem; margin-bottom: 6px; }
.preview-finding p { color: #c4ced8; font-size: 0.92rem; }
.preview-next { margin-top: 16px; padding: 12px 0 0 12px; border-top: 1px solid #ffffff26; border-left: 2px solid var(--accent); }
.preview-next strong { display: block; color: var(--accent); font-size: 0.8rem; margin-bottom: 2px; }
.landing-features { border-top: 1px solid var(--line); padding: 35px 0 55px; }
.landing-features > h2 { margin-bottom: 18px; font-size: 1.5rem; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-feature-grid .card { background: var(--surface-soft); box-shadow: none; }
.landing-feature-grid .stat-icon { background: #e8f0d2; margin-bottom: 12px; }
.landing-feature-grid p { color: var(--muted); }
.public-footer { border-top: 1px solid var(--line); background: var(--surface-soft); }
.public-footer-inner { padding-block: 24px; }
.public-footer-brand { font-weight: 650; }
.public-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; font-size: 0.9rem; }
.public-footer nav a, .policy-copy a, .auth-legal a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.public-footer nav a[aria-current] { font-weight: 650; }
.policy-copy { max-width: 720px; margin: 0 auto; padding: clamp(34px, 7vw, 72px) 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.policy-copy h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--ink); margin-bottom: 16px; }
.policy-copy h2 { color: var(--ink); margin: 28px 0 10px; }
.policy-copy p + p, .policy-copy li + li { margin-top: 10px; }
.policy-copy ul, .policy-copy ol { padding-left: 1.35em; margin: 10px 0; }
@media (max-width: 760px) {
  .public-container { width: calc(100% - 40px); }
  .public-header-inner { min-height: 64px; }
  .landing-hero { grid-template-columns: minmax(0, 1fr); }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .public-footer nav { margin-left: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.8fr); }
}
@media (max-width: 1000px) {
  .sidebar { visibility: hidden; transform: translateX(-102%); transition: transform 180ms ease; box-shadow: 0 0 60px rgba(0, 0, 0, 0.3); }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar { visibility: visible; transform: none; }
  .icon-btn.sidebar-close { display: inline-grid; }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(9, 12, 17, 0.55); z-index: 35; }
  body.sidebar-open .sidebar-scrim { display: block; }
  .app-main { margin-left: 0; }
  .icon-btn.menu-btn { display: inline-grid; }
  .topbar { padding: 12px 20px; }
  .page { padding: 22px 20px 48px; }
  .content-grid { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: 1fr; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { min-height: auto; padding: 26px 28px 34px; }
  .auth-pitch { padding: 30px 0 10px; }
  .auth-pitch h1 { font-size: 2.1rem; }
  .auth-panel { padding: 28px 20px 40px; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .topbar-title h1 { font-size: 1.08rem; }
  .topbar-actions .btn span { display: none; }
  .topbar-actions form .btn { padding: 8px 10px; }
  .hero { flex-direction: column; gap: 20px; padding: 20px; }
  .hero h2 { font-size: 1.35rem; }
  .hero-side { width: 100%; }
  .channel-chip { width: 100%; }
  .stat-grid { gap: 10px; }
  .stat { padding: 13px; }
  .stat-value { font-size: 1.5rem; }
  .stat-hint { display: none; }
  .card { padding: 16px; border-radius: 14px; }
  .card-head { flex-wrap: wrap; gap: 8px; }
  .split-head { align-items: flex-start; }
  .opportunity-row { flex-wrap: wrap; }
  .opportunity-row-meta { align-items: flex-start; flex-direction: row; width: 100%; padding-left: 46px; }
  .report-row { flex-wrap: wrap; }
  .report-row-meta { align-items: flex-start; flex-direction: row; width: 100%; padding-left: 58px; }
  .channel-hero-stats { gap: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .analysis-grid, .audit-findings { grid-template-columns: 1fr; gap: 12px; }
  .inline-form { flex-direction: column; align-items: stretch; min-width: 100%; }
  .inline-form input { max-width: none; }
  .approval-actions { flex-direction: column; align-items: stretch; }
  .approval-actions form, .approval-actions .btn { width: 100%; }
  .setting-row { align-items: flex-start; }
  .auth-brand { padding: 22px 20px 28px; }
  .auth-pitch h1 { font-size: 1.85rem; }
  .auth-pitch p { font-size: 0.95rem; }
  .auth-panel { padding: 22px 16px 34px; }
  .auth-card { padding: 22px; }
  .page-foot { flex-direction: column; gap: 6px; }
  .calendar-nav .btn { padding: 6px 8px; }
}
@media (max-width: 430px) {
  .topbar { gap: 8px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions > .btn-ghost:not(:only-child) { display: none; }
  .channel-hero-main { align-items: flex-start; }
  .channel-hero-id h2 { font-size: 1.2rem; }
  .video-thumb { width: 60px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .btn, .stat, .report-row { transition: none; }
}
