/* =============================================
   REPLICANTS · App Shell — shared design system
   ============================================= */

:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #faf9f4;
  --surface-3: #f1eee5;
  --border: #e8e4d8;
  --border-soft: #efece2;
  --border-strong: #d8d3c2;

  --text: #15172b;
  --text-2: #4d5168;
  --text-3: #8a8fa6;
  --text-4: #b3b6c4;

  --accent: #6a4cf1;
  --accent-2: #8b6dff;
  --accent-soft: #efeaff;
  --accent-softer: #f5f1ff;
  --accent-deep: #4a32b8;

  --good: #1c8e5a;
  --good-soft: #e2f3ea;
  --warn: #b87410;
  --warn-soft: #fbf0d9;
  --danger: #c0423a;
  --danger-soft: #fbe5e3;

  --rose: #e85a8a;
  --salmon: #f17d6e;
  --plum: #b15dde;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.display { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; letter-spacing: -0.015em; }
.mono { font-family: "JetBrains Mono", monospace; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============ APP SHELL ============ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

aside.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 14px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 14px -4px rgba(106,76,241,0.5);
}
.brand-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--text);
}
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 14px 10px 6px;
  font-family: "JetBrains Mono", monospace;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}
.nav-item .ico { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.9; }
.nav-item .pill {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-item.active .pill { background: var(--accent-deep); }

.sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.user-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 11px;
  transition: background .12s;
  cursor: pointer;
}
.user-card:hover { background: var(--surface-2); }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b07aff 0%, #6a4cf1 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.user-name { font-weight: 600; color: var(--text); font-size: 14px; }
.user-plan { font-size: 11.5px; color: var(--text-3); }

main.main {
  padding: 28px 36px 80px;
  max-width: 1400px;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.crumbs {
  color: var(--text-3);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumbs .sep { color: var(--text-4); }
.crumbs .now { color: var(--text); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  width: 280px;
  color: var(--text-3);
}
.search input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 14px;
  flex: 1;
  color: var(--text);
}
.search kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: 4px;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: background .12s, color .12s;
  position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose);
  border: 2px solid var(--surface);
}

/* ============ PAGE HEAD — design system component ============
   Every module page in /app.html uses this wrapper. Renders:
   - breadcrumb (optional, top, small muted text)
   - h1 (large, Bricolage Grotesque display font)
   - sub (subtitle, normal weight)
   - optional right-side meta block (e.g. status pill, time)
   Markup:
     <div class="page-head">
       <div>
         <div class="page-head-crumbs">
           <a class="crumb" href="...">Outreach</a>
           <span class="crumb-sep">/</span>
           <span class="crumb crumb-current">Dashboard</span>
         </div>
         <h1 class="display">Good morning, Alex 👋</h1>
         <div class="sub">Your community at a glance · 5 members, 11 posts this week</div>
       </div>
       <div class="page-head-meta">  optional right side
         <span class="status-pill">RUNNING</span>
       </div>
     </div>
   Source of truth: docs/design-system.md
*/
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head > div:first-child { min-width: 0; flex: 1; }
.page-head-crumbs {
  display: flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.page-head-crumbs .crumb { color: var(--text-3); text-decoration: none; }
.page-head-crumbs .crumb:hover { color: var(--text); }
.page-head-crumbs .crumb-current { color: var(--text); }
.page-head-crumbs .crumb-sep { color: var(--text-4); }
.page-head h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 32px;
  margin: 0 0 4px;
  line-height: 1.15;
  color: var(--text);
}
.page-head h1.display { /* alias for clarity; same styles */ }
.page-head .sub { color: var(--text-2); font-size: 14.5px; }
.page-head .sub b { color: var(--text); font-weight: 600; }
.page-head-meta {
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  color: var(--text-3);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}

/* SEGMENT TABS */
.segment-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 11px;
  gap: 2px;
  margin-bottom: 24px;
}
.segment-tabs a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .12s, color .12s;
}
.segment-tabs a:hover { color: var(--text); background: var(--surface-2); }
.segment-tabs a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(106,76,241,0.5);
}
.segment-tabs a.active:hover { background: var(--accent-deep); }
.segment-tabs a .badge-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  background: var(--surface-3);
  color: var(--text-3);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 500;
}
.segment-tabs a.active .badge-num {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* CARD BASE */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.card-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title .count {
  background: var(--surface-3);
  color: var(--text-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}

/* AVATARS — color variants */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  flex: 0 0 40px;
}
.avatar-sm { width: 32px; height: 32px; flex: 0 0 32px; font-size: 11.5px; }
.avatar-lg { width: 48px; height: 48px; flex: 0 0 48px; font-size: 15px; }
.av-1 { background: linear-gradient(135deg, #f17d6e, #e85a8a); }
.av-2 { background: linear-gradient(135deg, #6a4cf1, #b07aff); }
.av-3 { background: linear-gradient(135deg, #1c8e5a, #38b878); }
.av-4 { background: linear-gradient(135deg, #b87410, #d99634); }
.av-5 { background: linear-gradient(135deg, #b15dde, #d27df0); }
.av-6 { background: linear-gradient(135deg, #4a32b8, #6a4cf1); }
.av-7 { background: linear-gradient(135deg, #c0423a, #e85a8a); }
.av-8 { background: linear-gradient(135deg, #38b878, #1c8e5a); }
.av-9 { background: linear-gradient(135deg, #1f5fa9, #3f8ade); }
.av-10 { background: linear-gradient(135deg, #6a4cf1, #4a32b8); }
.av-11 { background: linear-gradient(135deg, #e0a040, #b87410); }
.av-12 { background: linear-gradient(135deg, #d27df0, #8b6dff); }

/* BUTTONS */
.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform .1s, background .12s, color .12s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Inter", sans-serif;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-dark { background: #15172b; color: #fff; }
.btn-dark:hover { background: #1f2238; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* STATUS BADGES */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.01em;
}
.badge-success { background: var(--good-soft); color: var(--good); }
.badge-fail { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--accent-soft); color: var(--accent-deep); }
.badge-neutral { background: var(--surface-3); color: var(--text-2); }
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 1180px) {
  .search { width: 220px; }
}
@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  aside.sidebar { display: none; }
  main.main { padding: 20px; }
  .search { display: none; }
}

/* ============ COMMUNITY SHELL — 2-column layout (sidebar + subnav + page-wrap) ============ */
main.community-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  max-width: none;
  min-width: 0;
}
/* When the secondary subnav is hidden (modules other than outreach /
   community / email — e.g. the website builder via /website → funnels),
   the empty 220px grid track left an ugly gap and squeezed the content
   column. renderSubnav() in sidebar-nav.js toggles .subnav-hidden on
   this element so the grid collapses to a single column on those pages. */
main.community-main.subnav-hidden {
  grid-template-columns: minmax(0, 1fr);
}
.subnav {
  border-right: 1px solid var(--border-soft);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-2);
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
}
.sub-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-4);
  text-transform: uppercase;
  padding: 14px 10px 6px;
}
.sub-eyebrow:first-child { padding-top: 0; }
.sub-item {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .12s, color .12s;
  cursor: pointer;
  text-decoration: none;
}
.sub-item:hover { background: var(--surface); color: var(--text); }
.sub-item.active {
  background: var(--surface);
  color: var(--accent-deep);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(20,15,40,0.04);
}
.sub-item .ico { width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.85; }
.sub-item.active .ico { color: var(--accent); opacity: 1; }
.sub-item .right-tag {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-4);
}
.sub-item.active .right-tag { color: var(--accent); }
.page-wrap { padding: 28px 36px 80px; min-width: 0; }
@media (max-width: 1100px) {
  .subnav { display: none; }
  main.community-main { grid-template-columns: minmax(0, 1fr); }
}

/* =============================================================
   UNIFIED SPA — Block 1 (2026-05-26)
   Per-page styles lifted from the standalone module HTMLs so the
   absorbed content (Blocks 2-4) renders inside /app.html unchanged.
   Each section is delimited by its source page. Duplicates of the
   community shell rules above (community-main, subnav, sub-eyebrow,
   sub-item, page-wrap, mobile breakpoint) were NOT lifted — they
   already live in this file.
   ============================================================= */

/* === Source: src/public/community.html — community feed/members/posts === */

.route { display: none; }
.route.active { display: block; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.panel-head h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.panel-head .sub {
  color: var(--text-3);
  font-size: 13px;
}
.panel-head .sub b { color: var(--text); font-weight: 600; }
.panel-head .row-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-body { padding: 20px 24px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.stat .label { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.stat .value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--text);
  margin-top: 4px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.stat .value .unit { font-size: 14px; color: var(--text-3); font-weight: 500; }
.stat .delta {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--good);
  font-weight: 600;
}
.stat .delta .note { color: var(--text-3); font-weight: 500; margin-left: 4px; }

.ov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.activity-list { padding: 4px 0; }
.activity-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  padding: 12px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.activity-row:last-child { border-bottom: none; }
.activity-row .who { color: var(--text); font-weight: 600; }
.activity-row .what { color: var(--text-3); font-size: 12.5px; margin-top: 1px; }
.activity-row .when {
  color: var(--text-3);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
}

.public-url {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  margin-top: 14px;
}
.public-url .url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-url .btn { padding: 6px 12px; font-size: 12px; }

.feed-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.chip-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background .12s, color .12s;
}
.chip-filter:hover { background: var(--surface-2); color: var(--text); }
.chip-filter.active { background: var(--text); color: #fff; border-color: var(--text); }

.post-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
  transition: background .12s;
}
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: var(--surface-2); }
.post-row.pinned { background: linear-gradient(180deg, var(--accent-softer) 0%, transparent 100%); }
.post-row.pinned:hover { background: var(--accent-softer); }

.post-meta {
  color: var(--text-3);
  font-size: 12.5px;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-meta .who { color: var(--text); font-weight: 600; font-family: "Inter", sans-serif; }
.post-meta .channel { color: var(--accent); }
.post-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-excerpt {
  color: var(--text-2);
  font-size: 14px;
  margin: 4px 0 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.post-actions .btn { padding: 6px 12px; font-size: 12.5px; }
.post-actions .count {
  color: var(--text-3);
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-right { text-align: right; }

.member-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  transition: background .12s;
}
.member-row:last-child { border-bottom: none; }
.member-row:hover { background: var(--surface-2); }
.member-row .name {
  font-weight: 600;
  color: var(--text);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.member-row .meta {
  color: var(--text-3);
  font-size: 12.5px;
  font-family: "JetBrains Mono", monospace;
  margin-top: 2px;
}
.member-actions { display: flex; gap: 6px; }
.member-actions .btn { padding: 7px 12px; font-size: 12.5px; }
.role-tag {
  font-size: 10px;
  background: var(--surface-3);
  color: var(--text-2);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.role-power { background: var(--accent-soft); color: var(--accent-deep); }
.role-regular { background: var(--good-soft); color: var(--good); }
.role-new { background: var(--warn-soft); color: var(--warn); }

.msg-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  transition: background .12s;
  cursor: pointer;
}
.msg-row:last-child { border-bottom: none; }
.msg-row:hover { background: var(--surface-2); }
.msg-row .name { font-weight: 600; font-size: 14px; }
.msg-row .snip { color: var(--text-3); font-size: 12.5px; margin-top: 1px; }
.msg-row .when { color: var(--text-3); font-size: 11.5px; font-family: "JetBrains Mono", monospace; }

.idea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.idea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  transition: border-color .15s, transform .15s;
}
.idea:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.idea h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.idea p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.idea-actions { display: flex; gap: 8px; }
.idea-actions .btn { padding: 7px 13px; font-size: 12.5px; }
.idea-stats {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: "JetBrains Mono", monospace;
}
.idea-stats span { display: inline-flex; align-items: center; gap: 5px; }

.form-stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.field .hint { font-size: 12px; color: var(--text-3); font-weight: 400; }
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.panel-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-foot .meta { color: var(--text-3); font-size: 12.5px; }
.panel-foot .meta b { color: var(--text); font-weight: 600; }

.empty-block {
  text-align: center;
  padding: 32px 24px 24px;
  color: var(--text-3);
}
.empty-block .ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.empty-block h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 6px;
}
.empty-block p { margin: 0 0 18px; font-size: 14px; max-width: 380px; margin-inline: auto; }

.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.page-title-row h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 0 0 3px;
  color: var(--text);
}
.page-title-row .lead { color: var(--text-2); font-size: 14.5px; }
.page-title-row .lead b { color: var(--text); font-weight: 600; }

@media (max-width: 720px) {
  .stat-strip, .idea-grid, .ov-grid { grid-template-columns: 1fr; }
}

/* === Source: src/public/community-analytics.html — analytics dashboard/tiles/ranked lists === */

.range-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}
.range-tabs button {
  border: none; background: transparent;
  font-size: 12.5px; padding: 6px 12px; border-radius: 7px;
  color: var(--text-2); font-weight: 500;
}
.range-tabs button.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px -2px rgba(106,76,241,0.4);
}

.section { margin-bottom: 28px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 14px;
}
.section-head h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.section-head h2 .hint {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
  font-family: "Inter", sans-serif;
  letter-spacing: 0;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tile-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.tile .label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tile .value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--text);
  margin-top: 6px;
  line-height: 1;
  letter-spacing: -0.025em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tile .value .unit { font-size: 14px; color: var(--text-3); font-weight: 500; }
.tile .delta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.delta.up { color: var(--good); }
.delta.down { color: var(--danger); }
.delta.flat { color: var(--text-3); }
.delta .note { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.tile.zero {
  background: var(--surface-2);
  border-style: dashed;
}
.tile.zero .value { color: var(--text-3); }
.tile.zero .delta { color: var(--text-3); }

.tile.funnel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.tile .funnel-bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}
.tile .funnel-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.arrow-step {
  color: var(--text-4);
  align-self: center;
  text-align: center;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spread-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.spread-bar {
  display: flex;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  margin: 18px 0 12px;
  border: 1px solid var(--border-soft);
}
.spread-seg {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
  transition: opacity .12s;
}
.spread-seg:hover { opacity: 0.92; }
.seg-light  { background: linear-gradient(90deg, #f3b6a4, #f17d6e); }
.seg-active { background: linear-gradient(90deg, #ee6c80, #e85a8a); }
.seg-power  { background: linear-gradient(90deg, #b15dde, #6a4cf1); }
.spread-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-2);
}
.spread-legend .li { display: inline-flex; align-items: center; gap: 7px; }
.spread-legend .li b { color: var(--text); font-weight: 700; }
.spread-legend .sw {
  width: 9px; height: 9px; border-radius: 3px;
}

.ranked {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ranked-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ranked-head h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ranked-head .total {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-3);
}
.ranked-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 14px;
  padding: 12px 22px;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
  transition: background .12s;
}
.ranked-row:last-child { border-bottom: none; }
.ranked-row:hover { background: var(--surface-2); }
.rank-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  font-weight: 600;
}
.rank-title { font-weight: 500; color: var(--text); }
.rank-author { color: var(--text-3); font-size: 12.5px; margin-top: 1px; }
.rank-bar {
  width: 140px;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.rank-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
}
.rank-val {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  width: 36px;
  text-align: right;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.callout {
  background: linear-gradient(135deg, #15102e 0%, #221a52 60%, #2d2470 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,109,255,0.35), transparent 65%);
}
.callout-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.callout h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
  position: relative;
}
.callout p {
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-size: 14px;
  max-width: 560px;
  position: relative;
}
.callout .btn { position: relative; }

@media (max-width: 720px) {
  .tile-grid, .tile-grid.col-3 { grid-template-columns: 1fr 1fr; }
  .callout { grid-template-columns: 1fr; }
}

/* === Source: src/public/community-settings.html — settings/profile/channels/form fields === */

.settings-layout {
  padding: 28px 36px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 36px;
  min-width: 0;
}
.toc {
  position: sticky;
  top: 28px;
  align-self: start;
  border-left: 1px solid var(--border-soft);
  padding-left: 16px;
}
.toc-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.toc a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-3);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
  transition: color .12s, border-color .12s;
}
.toc a:hover { color: var(--text); }
.toc a.active {
  color: var(--accent-deep);
  border-left-color: var(--accent);
  font-weight: 600;
}

.sec {
  scroll-margin-top: 24px;
  margin-bottom: 28px;
}
.sec-head {
  margin-bottom: 14px;
}
.sec-head h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.sec-head .lead { color: var(--text-3); font-size: 13.5px; }

.card-inner {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.card-inner:last-child { border-bottom: none; }
.card-inner h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  color: var(--text);
}
.card-inner .desc {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 14px;
}
.card-inner .desc:last-child { margin-bottom: 0; }
.card-inner .desc b { color: var(--text); font-weight: 600; }
.card-inner .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card-inner .row.tight { margin-bottom: 0; }
.card + .card { margin-top: 14px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-grid.col-3 { grid-template-columns: 1fr 1fr 1fr; }

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all .12s;
}
.choice-pill:hover { background: var(--surface-2); color: var(--text); }
.choice-pill.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.choice-pill.active .ico { color: #fff; }
.choice-pill .ico { width: 14px; height: 14px; }
.choice-pill .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
}
.choice-pill.active .check {
  background: #fff; border-color: #fff;
}
.choice-pill.active .check::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text);
}

.toggle {
  width: 40px; height: 22px;
  background: var(--border-strong);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .15s;
  flex: 0 0 40px;
}
.toggle::after {
  content: "";
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(18px); }

.url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 8px 8px 16px;
}
.url-row .url {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.url-row .free-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--good);
  margin-left: 4px;
}
.url-row .actions { display: flex; gap: 6px; }
.url-row .btn { padding: 8px 12px; font-size: 12.5px; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mini-field {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 14px;
}
.mini-field .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.mini-field .val {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.ai-summary {
  background: linear-gradient(135deg, var(--accent-softer), #fff 80%);
  border: 1px solid var(--accent-soft);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
}
.ai-summary-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.ai-summary-head .ico {
  width: 18px; height: 18px;
}
.ai-summary p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.ai-summary p:last-child { margin-bottom: 0; }

.color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.color-swatches {
  display: flex; gap: 6px;
}
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .1s;
}
.color-swatch:hover { transform: scale(1.06); }
.color-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px #fff inset;
}
.color-hex-input {
  width: 110px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
.color-preview {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.channel-row:last-of-type { border-bottom: none; }
.channel-row .hash {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 14px;
  flex: 0 0 32px;
}
.channel-row .info { flex: 1; min-width: 0; }
.channel-row .name { font-weight: 600; color: var(--text); font-size: 14px; }
.channel-row .slug { color: var(--text-3); font-size: 12.5px; font-family: "JetBrains Mono", monospace; margin-top: 1px; }
.channel-row .role-tag {
  font-size: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.save-bar {
  position: sticky;
  bottom: 18px;
  margin-top: 24px;
  background: var(--text);
  color: #fff;
  border-radius: 14px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 12px 32px -10px rgba(20,15,40,0.4);
  z-index: 5;
}
.save-bar .info { font-size: 13.5px; opacity: 0.85; }
.save-bar .info b { color: #fff; font-weight: 600; opacity: 1; }
.save-bar .actions { display: flex; gap: 8px; }
.save-bar .btn.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.15); }
.save-bar .btn.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.save-bar .btn.btn-primary { background: #fff; color: var(--text); }
.save-bar .btn.btn-primary:hover { background: #f1edff; }

.danger-card {
  background: linear-gradient(180deg, var(--danger-soft), var(--surface));
  border: 1px solid #f4c4c0;
}

@media (max-width: 1000px) {
  .field-grid, .field-grid.col-3, .profile-grid { grid-template-columns: 1fr; }
}

/* === Source: src/public/comments.html — comments review/pending/queued/sent list === */

.progress-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.progress-track {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  width: 27%;
}
.progress-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-3);
}
.progress-label b { color: var(--text); font-weight: 600; }

.focus-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.review-head {
  padding: 22px 26px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.review-author {
  flex: 1;
}
.review-author .name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.review-author .meta {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 2px;
  display: flex; align-items: center; gap: 8px;
}
.review-author .meta a { color: var(--accent); font-weight: 500; }
.skip-actions { display: flex; gap: 6px; }
.skip-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}

.post-wrap { padding: 24px 26px; }
.post-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.post-label .line { flex: 1; height: 1px; background: var(--border-soft); }
.post-bubble {
  background: linear-gradient(180deg, var(--accent-softer) 0%, #faf8ff 100%);
  border: 1px solid var(--accent-soft);
  border-radius: 14px;
  padding: 22px 24px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.62;
  position: relative;
}
.post-bubble p { margin: 0 0 14px; }
.post-bubble p:last-child { margin-bottom: 0; }
.post-bubble .hashtags { color: var(--accent); font-weight: 500; }
.post-bubble .post-link {
  color: var(--accent);
  font-weight: 500;
  word-break: break-all;
}
.post-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--text-3);
}
.post-bubble-meta a {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.post-bubble-meta .when {
  font-family: "JetBrains Mono", monospace;
}

.reply-block {
  margin: 24px 26px 26px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 22px 24px;
  background: var(--surface-2);
}
.reply-block.has-draft {
  border-style: solid;
  background: var(--surface);
}
.reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.reply-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.reply-eyebrow .spark {
  width: 16px; height: 16px;
  color: var(--accent);
}
.reply-empty {
  text-align: center;
  padding: 12px 0 4px;
  color: var(--text-3);
  font-size: 14px;
}
.reply-empty .btn { margin-top: 14px; }

.reply-textarea {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  min-height: 100px;
  resize: vertical;
}
.reply-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
  margin-top: 12px;
}
.reply-meta {
  font-size: 12.5px;
  color: var(--text-3);
  display: flex; align-items: center; gap: 12px;
}
.reply-meta .ai-tag {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}
.reply-actions { display: flex; gap: 8px; }

.up-next .card-body { padding: 8px 0; }
.up-next-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  padding: 12px 22px;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  transition: background .12s;
  cursor: pointer;
}
.up-next-item:last-child { border-bottom: none; }
.up-next-item:hover { background: var(--surface-2); }
.up-next-item .name { font-weight: 600; font-size: 13.5px; color: var(--text); }
.up-next-item .snip {
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.tip-card {
  background: linear-gradient(135deg, #2a1f6e 0%, #1e1646 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
  position: relative;
}
.tip-card::before {
  content: "";
  position: absolute;
  bottom: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,109,255,0.4), transparent 65%);
}
.tip-card .tip-eyebrow {
  color: rgba(255,255,255,0.65);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tip-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  position: relative;
}
.tip-card p {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  margin: 0;
  position: relative;
}

.row-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
  transition: background .12s;
}
.row:last-child { border-bottom: none; }
.row:hover { background: var(--surface-2); }
.row .info { min-width: 0; }
.row .name-line {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.row .sub-line {
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 2px;
  font-family: "JetBrains Mono", monospace;
}
.row .preview {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row .row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.row .row-actions .btn { padding: 7px 12px; font-size: 12.5px; }
.row .when {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
  text-align: right;
  white-space: nowrap;
}
.row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.row-error {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--danger-soft);
  border-left: 3px solid var(--danger);
  color: var(--danger);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.row.queued {
  grid-template-columns: 48px 1fr auto;
}
.row.queued .schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 2px;
}

.empty {
  padding: 80px 32px;
  text-align: center;
  color: var(--text-3);
}
.empty .ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--surface-3);
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.empty h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 6px;
}
.empty p { margin: 0; font-size: 14px; }

@media (max-width: 1180px) {
  .focus-wrap { grid-template-columns: 1fr; }
}

/* === Source: src/public/outreach-pipeline.html — kanban board/contacts/filters === */

.main-inner { padding-right: 36px; min-width: 0; }

.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.filter-search {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 320px;
  color: var(--text-3);
}
.filter-search input {
  border: none; outline: none; background: transparent;
  flex: 1; font-family: inherit; font-size: 14px; color: var(--text);
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .12s, color .12s;
}
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px -3px rgba(106,76,241,0.5);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.filters-bar .spacer { flex: 1; }
.filters-bar .right { display: flex; gap: 8px; align-items: center; }

.board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 28px;
  margin-right: 36px;
  scroll-snap-type: x proximity;
}
.col {
  flex: 0 0 268px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 240px);
  min-height: 600px;
  scroll-snap-align: start;
}
.col-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.col-title {
  display: flex; align-items: center; gap: 9px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.col-swatch {
  width: 9px; height: 9px; border-radius: 3px;
}
.sw-approved { background: #f3b6a4; }
.sw-research { background: #f17d6e; }
.sw-engaging { background: #e85a8a; }
.sw-invited  { background: #b15dde; }
.sw-journey  { background: #6a4cf1; }

.col-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}
.col-action {
  background: transparent;
  border: none;
  width: 24px; height: 24px;
  border-radius: 6px;
  color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.col-action:hover { background: var(--surface); color: var(--text); }

.col-body {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.col-body::-webkit-scrollbar { width: 6px; }
.col-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.col-body::-webkit-scrollbar-track { background: transparent; }

.ccard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: grab;
  transition: border-color .12s, transform .12s, box-shadow .12s;
  position: relative;
}
.ccard:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px rgba(20,15,40,0.15);
}
.ccard:active { cursor: grabbing; }
.ccard .info { min-width: 0; }
.ccard .name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ccard .when {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 1px;
  font-family: "JetBrains Mono", monospace;
}
.ccard .when.ready {
  color: var(--good);
  font-weight: 600;
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ccard .when.ready::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--good);
}
.ccard .indicator {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 20px;
}
.ccard .indicator.tiny { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 4px; }

.ccard .name .emoji {
  font-size: 11px;
  line-height: 1;
}
.ccard .small-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-3);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-family: "JetBrains Mono", monospace;
}

.ccard .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex: 0 0 32px;
  font-size: 11.5px;
  font-weight: 700;
}

.col-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 18px;
  color: var(--text-3);
  border: 2px dashed var(--border);
  border-radius: 12px;
  margin: 10px;
  background: var(--surface);
}
.col-empty .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.col-empty h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 4px;
}
.col-empty p { margin: 0; font-size: 12.5px; line-height: 1.5; }

.col-more {
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  padding: 14px 10px;
  border-top: 1px dashed var(--border);
  cursor: pointer;
  transition: color .12s, background .12s;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.col-more:hover {
  color: var(--accent);
  background: var(--surface);
}
.col-more b { color: var(--text); font-weight: 600; }

.stats-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 22px;
  overflow: hidden;
  height: 14px;
}
.stats-bar {
  height: 100%;
  border-radius: 4px;
  position: relative;
}
.stats-bar:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.stats-bar:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.stats-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.stats-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.stats-legend b { color: var(--text); font-weight: 700; }
.stats-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 22px;
}
.stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stats-head h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stats-head .total {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-3);
}
.stats-head .total b { color: var(--text); font-weight: 600; }

@media (max-width: 880px) {
  .board { margin-right: 20px; }
  .filter-search { width: 100%; }
}

/* ═══ Business switcher — new-design restyle ═════════════════════════
   Overrides dashboard.css :937 rules when rendered inside the new
   sidebar. Sits between .brand and the first .nav-group. Matches
   .user-card proportions (padding, radius). Hidden when the user has
   only 1 linked business (see getBusinessSwitcherHtml at ui-core.js:628).
   ──────────────────────────────────────────────────────────────────── */
aside.sidebar .business-switcher {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
  padding-bottom: 12px;
  background: transparent;
}
aside.sidebar .business-switcher .biz-current {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
  min-height: 38px;
  border: 1px solid var(--border-soft);
}
aside.sidebar .business-switcher .biz-current:hover {
  background: var(--surface-3, var(--surface-2));
  border-color: var(--border);
}
aside.sidebar .business-switcher .biz-current i:first-child {
  color: var(--accent);
  opacity: 0.85;
  font-size: 12px;
  width: 14px;
  text-align: center;
}
aside.sidebar .business-switcher .biz-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
aside.sidebar .business-switcher .biz-arrow {
  font-size: 10px;
  color: var(--text-4);
  transition: transform .15s;
}
aside.sidebar .business-switcher .biz-dropdown.open ~ .biz-current .biz-arrow,
aside.sidebar .business-switcher .biz-current:has(+ .biz-dropdown.open) .biz-arrow {
  transform: rotate(180deg);
}
aside.sidebar .business-switcher .biz-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.18);
  z-index: 100;
  overflow: hidden;
  padding: 4px;
}
aside.sidebar .business-switcher .biz-dropdown.open { display: block; }
aside.sidebar .business-switcher .biz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 7px;
  transition: background .12s;
}
aside.sidebar .business-switcher .biz-option:hover {
  background: var(--surface-2);
  color: var(--text);
}
aside.sidebar .business-switcher .biz-option.biz-active {
  color: var(--accent-deep);
  font-weight: 600;
  background: var(--accent-soft);
}
aside.sidebar .business-switcher .biz-option.biz-active i { color: var(--accent-deep); font-size: 11px; }
