:root {
  --green: #00A75D;
  --green-light: #f0faf5;
  --green-mid: #d0f0e2;
  --blue: #464496;
  --yellow: #FFCE2D;
  --orange: #FF6D2D;
  --charcoal: #3d3d3b;
  --charcoal-2: #595958;
  --white: #ffffff;
  --gray-50: #f9f9f8;
  --gray-100: #f2f2f0;
  --gray-200: #e8e8e5;
  --gray-300: #d4d4d0;
  --gray-400: #a8a8a4;
  --gray-500: #6e6e6a;
  --gray-600: #4a4a47;
  --text: #1a1a18;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Nunito', system-ui, sans-serif; background: var(--gray-50); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }

.t-eyebrow { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.t-heading-xl { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); }
.t-heading-lg { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; color: var(--text); }
.t-heading-md { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.t-heading-sm { font-size: 0.88rem; font-weight: 800; color: var(--text); }
.t-body { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; font-weight: 500; }
.t-caption { font-size: 0.75rem; color: var(--gray-400); font-weight: 700; }

/* ── GLOBALS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: 0.78rem; font-weight: 800; cursor: pointer; transition: all 0.15s; border: 1.5px solid transparent; white-space: nowrap; letter-spacing: 0.01em; }
.btn-primary { background: var(--green); color: white; border-color: var(--green); }
.btn-primary:hover { background: #009952; border-color: #009952; }
.btn-ghost { background: none; color: var(--gray-600); border-color: var(--gray-200); }
.btn-ghost:hover { background: var(--gray-100); border-color: var(--gray-300); }
.btn-danger { background: none; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fff5f5; }

.badge { display: inline-flex; align-items: center; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-blue { background: #eeeefc; color: var(--blue); }
.badge-orange { background: #fff3ee; color: var(--orange); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }
.badge-campaign { background: #fff8e1; color: #b45309; border: 1px solid #fde68a; }
.chip { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); }

.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 12px; }
.card .t-heading-sm { margin-bottom: 10px; }
.card .t-body { margin-bottom: 0; }
.card ul { padding-left: 18px; }
.card ul li { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 6px; font-weight: 500; line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 600px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }


/* ── DARK MODE ── */
[data-theme="dark"] {
  --green: #2dd07a;
  --green-light: #0d2b1e;
  --green-mid: #1a4a30;
  --blue: #8b87e0;
  --orange: #ff8c54;
  --white: #1e1e1c;
  --gray-50: #252523;
  --gray-100: #2e2e2c;
  --gray-200: #3a3a38;
  --gray-300: #525250;
  --gray-400: #787874;
  --gray-500: #a8a8a4;
  --gray-600: #d4d4d0;
  --text: #f0f0ee;
}
[data-theme="dark"] body { background: #171715; }
[data-theme="dark"] .sidebar { background: #1e1e1c; border-right-color: #2e2e2c; }
[data-theme="dark"] .modal { background: #1e1e1c; }
[data-theme="dark"] select { background: var(--gray-100); color: var(--text); }
[data-theme="dark"] input, [data-theme="dark"] textarea { background: var(--gray-100); color: var(--text); }
[data-theme="dark"] .month-cell.today { background: #2a2510; }
[data-theme="dark"] .dash-header { background: var(--gray-100); border-color: var(--gray-200); }
[data-theme="dark"] .camp-form-input { background: var(--gray-100); color: var(--text); }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 220px; background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  z-index: 100; overflow: hidden;
  transition: width 0.22s ease;
}
.sidebar.collapsed { width: 48px; }
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-brand {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 14px 14px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0; overflow: hidden;
}
.sidebar-brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.sidebar-brand-text { font-size: 0.65rem; font-weight: 900; color: var(--text); letter-spacing: -0.01em; line-height: 1.3; white-space: nowrap; opacity: 1; transition: opacity 0.15s; }
.sidebar.collapsed .sidebar-brand { align-items: center; padding: 12px 0; }
.sidebar.collapsed .sidebar-brand-text { opacity: 0; pointer-events: none; width: 0; overflow: hidden; margin: 0; }

.sidebar-body { flex: 1; padding: 12px 6px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.sidebar-body::-webkit-scrollbar { display: none; }

.sidebar-group-label {
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gray-300);
  padding: 14px 10px 6px; margin-top: 4px;
  white-space: nowrap; opacity: 1; overflow: hidden;
  transition: opacity 0.15s, max-height 0.2s, padding 0.2s, margin 0.2s;
  max-height: 40px;
}
.sidebar-group-label:first-child { padding-top: 4px; }
.sidebar.collapsed .sidebar-group-label { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; }

.sidebar-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px; border: none;
  border-radius: var(--radius-sm); background: none;
  font-family: 'Nunito', sans-serif; font-size: 0.78rem;
  font-weight: 700; color: var(--gray-500);
  cursor: pointer; text-align: left;
  transition: background 0.12s, color 0.12s, padding 0.22s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.sidebar-btn:hover { background: var(--gray-50); color: var(--gray-600); }
.sidebar-btn.active { background: var(--green-light); color: var(--green); font-weight: 800; }
.sidebar-btn.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; background: var(--green); border-radius: 0 2px 2px 0;
}
.sidebar-btn-icon { font-size: 0.9rem; width: 20px; min-width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-btn-label { opacity: 1; transition: opacity 0.12s; }
.sidebar.collapsed .sidebar-btn { justify-content: center; padding: 9px 0; }
.sidebar.collapsed .sidebar-btn-label { opacity: 0; width: 0; overflow: hidden; }
.sidebar-btn.ideas-btn { color: var(--green); font-weight: 800; }
.sidebar-btn.ideas-btn:hover { background: var(--green-light); }
.sidebar-btn.ideas-btn.active { background: var(--green); color: white; }
.sidebar-btn.ideas-btn.active::before { background: transparent; }

/* Collapsed tooltips */
.sidebar.collapsed .sidebar-btn { position: relative; }
.sidebar.collapsed .sidebar-btn::after {
  content: attr(data-label);
  position: fixed; left: 56px;
  background: var(--text); color: var(--white);
  font-size: 0.7rem; font-weight: 800;
  padding: 5px 10px; border-radius: var(--radius-sm);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.1s;
  z-index: 400; box-shadow: var(--shadow-md);
  transform: translateY(-50%);
}
.sidebar.collapsed .sidebar-btn:hover::after { opacity: 1; }

.sidebar-brand-utils { display: flex; gap: 4px; opacity: 1; transition: opacity 0.15s; justify-content: center; }
.sidebar.collapsed .sidebar-brand-utils { flex-direction: column; align-items: center; gap: 4px; }

  padding: 10px 8px 12px;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0; overflow: hidden;
  transition: flex-direction 0.2s;
}
.sidebar.collapsed .sidebar-footer { flex-direction: column; justify-content: center; padding: 10px 0 12px; }
.sidebar-util-btn {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200); background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; color: var(--gray-400);
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.sidebar-util-btn:hover { background: var(--gray-100); color: var(--text); }
.sidebar-util-btn.dark-active { background: var(--gray-100); color: var(--text); border-color: var(--gray-300); }
.sidebar-footer-label { font-size: 0.6rem; font-weight: 700; color: var(--gray-300); white-space: nowrap; opacity: 1; transition: opacity 0.12s; line-height: 1.4; }
.sidebar.collapsed .sidebar-footer-label { opacity: 0; width: 0; overflow: hidden; }

/* Mobile toggle */
.sidebar-toggle {
  display: none; position: fixed; top: 14px; left: 14px;
  z-index: 200; width: 36px; height: 36px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: var(--shadow-sm);
  color: var(--text); -webkit-appearance: none;
  appearance: none; -webkit-tap-highlight-color: transparent;
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.3); z-index: 99;
}

@media (max-width: 768px) {
  .sidebar { width: 220px !important; transform: translateX(-100%); transition: transform 0.25s ease !important; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar.collapsed { width: 220px !important; }
  .sidebar.collapsed .sidebar-brand-text,
  .sidebar.collapsed .sidebar-btn-label,
  .sidebar.collapsed .sidebar-footer-label { opacity: 1 !important; width: auto !important; overflow: visible !important; }
  .sidebar.collapsed .sidebar-group-label { opacity: 1 !important; max-height: 40px !important; padding: 14px 10px 6px !important; margin-top: 4px !important; }
  .sidebar.collapsed .sidebar-btn { justify-content: flex-start !important; padding: 9px 12px !important; }
  .sidebar.collapsed .sidebar-footer { flex-direction: row !important; justify-content: flex-start !important; padding: 10px 8px 12px !important; }
  .sidebar.collapsed .sidebar-btn::after { display: none; }
  .sidebar-toggle { display: flex; }
  .sidebar-overlay.open { display: block; }
  main { margin-left: 0 !important; padding: 60px 20px 80px !important; max-width: 100% !important; }
  body.sidebar-open { overflow: hidden; }
  #sidebar-collapse-btn { display: none !important; }
}

main { margin-left: 220px; max-width: calc(900px + 220px); padding: 20px 36px 80px; transition: margin-left 0.22s ease, max-width 0.22s ease; }
.section { display: none; }
.section.active { display: block; animation: rise 0.25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.sec-head { margin-bottom: 24px; }
.sec-head .t-eyebrow { margin-bottom: 6px; display: block; }
.sec-head .t-heading-lg { margin-bottom: 4px; }

.divider { height: 1px; background: var(--gray-200); margin: 40px 0; }

@media (max-width: 600px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }

.pillar-list { display: flex; flex-direction: column; gap: 6px; }
.pillar { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.pillar-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; user-select: none; transition: background 0.15s; }
.pillar-head:hover { background: var(--gray-50); }
.pillar-index { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 900; color: white; flex-shrink: 0; }
.pi-1 { background: var(--green); }
.pi-2 { background: var(--blue); }
.pi-3 { background: var(--orange); }
.pi-4 { background: var(--charcoal); }
.pillar-label { font-size: 0.875rem; font-weight: 800; flex: 1; color: var(--text); }
.pillar-sub { font-size: 0.72rem; font-weight: 700; color: var(--gray-400); }
.pillar-arrow { font-size: 0.7rem; color: var(--gray-300); transition: transform 0.2s; }
.pillar.open .pillar-arrow { transform: rotate(180deg); }
.pillar-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.pillar-body-inner { padding: 0 20px 18px 60px; font-size: 0.875rem; color: var(--gray-500); font-weight: 500; line-height: 1.7; }

.tab-component { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.tab-bar { display: flex; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.tab-btn { flex: 1; padding: 13px 12px; background: none; border: none; font-family: 'Nunito', sans-serif; font-size: 0.75rem; font-weight: 700; color: var(--gray-400); cursor: pointer; transition: all 0.15s; border-bottom: 2px solid transparent; letter-spacing: 0.01em; }
.tab-btn:hover { color: var(--gray-600); background: var(--gray-100); }
.tab-btn.active { background: var(--white); color: var(--text); font-weight: 800; border-bottom-color: var(--green); }
.tab-btn.active.t-blue { border-bottom-color: var(--blue); }
.tab-btn.active.t-orange { border-bottom-color: var(--orange); }
.tab-panel { display: none; padding: 32px; }
.tab-panel.active { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.tab-num { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.06em; line-height: 1; color: var(--gray-200); margin-bottom: 6px; }
.tab-title { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text); margin-bottom: 4px; }
.tab-time { font-size: 0.75rem; font-weight: 700; color: var(--gray-400); }
.tab-points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tab-points li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; color: var(--gray-500); font-weight: 500; line-height: 1.5; }
.tab-points li:last-child { border-bottom: none; }
.tab-points li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-top: 8px; flex-shrink: 0; }
@media (max-width: 540px) { .tab-panel.active { grid-template-columns: 1fr; } .tab-num { font-size: 2.5rem; } }

.tier-toggle { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.tier-bar { display: flex; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.tier-btn { flex: 1; padding: 11px 8px; background: none; border: none; font-family: 'Nunito', sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--gray-400); cursor: pointer; transition: all 0.15s; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid transparent; }
.tier-btn:hover { color: var(--gray-600); }
.tier-btn.active { background: var(--white); color: var(--text); font-weight: 800; }
.tier-btn[data-tier="0"].active { border-bottom-color: var(--green); }
.tier-btn[data-tier="1"].active { border-bottom-color: var(--blue); }
.tier-btn[data-tier="2"].active { border-bottom-color: var(--orange); }
.tier-panel { display: none; padding: 24px 28px; }
.tier-panel.active { display: block; }
.tier-panel h3 { font-size: 1rem; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.02em; }
.tier-panel .t-body { margin-bottom: 14px; }
.tier-examples { display: flex; flex-wrap: wrap; gap: 6px; }

.formula-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 12px; }
.formula-text { font-size: 0.95rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; margin: 6px 0 6px; }
.formula-sub { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }

.bench { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.bench-val { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.bench-lbl { font-size: 0.68rem; font-weight: 800; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; }
.bench-sub { font-size: 0.7rem; color: var(--gray-400); margin-top: 4px; font-weight: 600; }

.script-flow { padding: 8px 0; }
.sf-step { display: flex; gap: 16px; }
.sf-line { display: flex; flex-direction: column; align-items: center; width: 20px; flex-shrink: 0; }
.sf-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 14px; flex-shrink: 0; }
.sf-conn { width: 1px; flex: 1; background: var(--gray-200); min-height: 8px; }
.sf-step:last-child .sf-conn { display: none; }
.sf-body { flex: 1; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 11px 16px; margin: 6px 0; }
.sf-label { font-size: 0.78rem; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.sf-label.interrupt { color: var(--orange); }
.sf-label.close { color: var(--blue); }
.sf-desc { font-size: 0.75rem; color: var(--gray-400); font-weight: 500; }

.table-wrap { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-family: 'Nunito', sans-serif; }
thead tr { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
th { padding: 12px 18px; text-align: left; font-size: 0.72rem; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.07em; }
td { padding: 12px 18px; border-bottom: 1px solid var(--gray-100); font-size: 0.85rem; font-weight: 600; color: var(--gray-600); background: var(--white); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }
td:first-child { font-weight: 800; color: var(--gray-400); font-size: 0.78rem; }

.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-header span { font-size: 0.75rem; font-weight: 800; color: var(--gray-400); }
.progress-pct { font-size: 0.95rem; font-weight: 900; color: var(--green); }
.progress-track { height: 4px; background: var(--gray-200); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.progress-fill { height: 100%; background: var(--green); border-radius: 4px; transition: width 0.3s ease; width: 0%; }
.cl-list { list-style: none; }
.cl-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; user-select: none; }
.cl-item:last-child { border-bottom: none; }
.cl-item.done { opacity: 0.38; }
.cl-box { width: 20px; height: 20px; min-width: 20px; border: 1.5px solid var(--gray-300); border-radius: 5px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; }
.cl-item.done .cl-box { background: var(--green); border-color: var(--green); }
.cl-tick { width: 9px; height: 7px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translateY(-1px); display: none; }
.cl-item.done .cl-tick { display: block; }
.cl-item.done .cl-text { text-decoration: line-through; }
.cl-text { font-size: 0.875rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.cl-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.done-msg { font-size: 0.75rem; font-weight: 800; color: var(--green); opacity: 0; transition: opacity 0.3s; }
.done-msg.show { opacity: 1; }

.diag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 10px; }
.diag-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 18px 20px; cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s; box-shadow: var(--shadow-sm); }
.diag-card:hover { box-shadow: var(--shadow-md); }
.diag-card.open { border-color: var(--green); }
.diag-icon { font-size: 1.2rem; margin-bottom: 10px; }
.diag-title { font-size: 0.875rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.diag-symptom { font-size: 0.75rem; font-weight: 700; color: var(--gray-400); }
.diag-fix { display: none; font-size: 0.82rem; color: var(--gray-500); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-100); line-height: 1.65; font-weight: 500; }
.diag-card.open .diag-fix { display: block; }
.diag-cta { font-size: 0.68rem; font-weight: 800; color: var(--green); margin-top: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── CALENDAR PAGE ── */
.cal-stats-bar { display: flex; gap: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.cal-stat { flex: 1; padding: 16px 20px; border-right: 1px solid var(--gray-100); }
.cal-stat:last-child { border-right: none; }
.cal-stat-val { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 3px; }
.cal-stat-lbl { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.cal-view-toggle { display: flex; background: var(--gray-100); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.cal-view-btn { padding: 7px 16px; border: none; border-radius: 6px; font-family: 'Nunito', sans-serif; font-size: 0.75rem; font-weight: 800; color: var(--gray-400); background: none; cursor: pointer; transition: all 0.15s; }
.cal-view-btn.active { background: var(--white); color: var(--text); box-shadow: var(--shadow-sm); }
.timeline-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.timeline-months { display: grid; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); overflow-x: auto; }
.timeline-month-header { padding: 10px 14px; font-size: 0.68rem; font-weight: 800; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; border-right: 1px solid var(--gray-100); white-space: nowrap; }
.timeline-body { overflow-x: auto; position: relative; min-height: 120px; }
.timeline-grid { display: grid; position: relative; }
.timeline-col { border-right: 1px solid var(--gray-100); min-height: 120px; }
.timeline-bars { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 10px 0; pointer-events: none; }
.timeline-bar { position: absolute; height: 28px; border-radius: 6px; display: flex; align-items: center; padding: 0 10px; font-size: 0.68rem; font-weight: 800; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; pointer-events: all; transition: opacity 0.15s, transform 0.15s; z-index: 2; }
.timeline-bar:hover { opacity: 0.85; transform: translateY(-1px); }
.timeline-empty { padding: 56px 24px; text-align: center; font-size: 0.85rem; font-weight: 700; color: var(--gray-400); }
.timeline-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--orange); opacity: 0.5; z-index: 1; pointer-events: none; }
.timeline-today-label { position: absolute; top: 4px; font-size: 0.6rem; font-weight: 800; color: var(--orange); white-space: nowrap; transform: translateX(-50%); }
.cal-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 700; color: var(--gray-400); }
.month-nav { display: flex; align-items: center; gap: 12px; }
.month-nav-btn { width: 28px; height: 28px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transition: background 0.12s; }
.month-nav-btn:hover { background: var(--gray-100); }
.month-nav-label { font-size: 0.9rem; font-weight: 900; letter-spacing: -0.02em; color: var(--text); min-width: 130px; text-align: center; }
.month-grid-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.month-grid-header { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.month-grid-dow { padding: 10px 0; text-align: center; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); }
.month-grid-body { display: grid; grid-template-columns: repeat(7, 1fr); }
.month-cell { min-height: 84px; border-right: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); padding: 6px; }
.month-cell:nth-child(7n) { border-right: none; }
.month-cell.other-month { background: var(--gray-50); }
.month-cell.today { background: #fffbeb; }
.month-cell-date { font-size: 0.72rem; font-weight: 800; color: var(--gray-400); margin-bottom: 3px; }
.month-cell.today .month-cell-date { color: var(--orange); font-weight: 900; }
.month-pill { font-size: 0.58rem; font-weight: 800; border-radius: 3px; padding: 2px 5px; color: white; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: opacity 0.12s; display: block; }
.month-pill:hover { opacity: 0.8; }
.camp-list { display: flex; flex-direction: column; gap: 10px; }
.camp-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); display: flex; align-items: flex-start; gap: 14px; transition: box-shadow 0.15s; }
.camp-card:hover { box-shadow: var(--shadow-md); }
.camp-priority-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.camp-body { flex: 1; min-width: 0; }
.camp-name { font-size: 0.95rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; }
.camp-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.camp-notes { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; line-height: 1.5; margin-top: 6px; }
.camp-prep { font-size: 0.72rem; font-weight: 800; padding: 5px 10px; border-radius: var(--radius-sm); margin-top: 8px; display: inline-block; }
.camp-prep.on-track { background: var(--green-light); color: var(--green); }
.camp-prep.urgent { background: #fff7ed; color: var(--orange); }
.camp-prep.overdue { background: #fff5f5; color: #dc2626; }
.camp-prep.done { background: var(--gray-100); color: var(--gray-400); }
.camp-actions { display: flex; gap: 6px; flex-shrink: 0; }
.camp-empty { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 64px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.camp-empty-icon { font-size: 2rem; margin-bottom: 12px; }
.camp-empty-title { font-size: 0.95rem; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.camp-empty-sub { font-size: 0.82rem; color: var(--gray-400); font-weight: 500; max-width: 380px; margin: 0 auto 20px; line-height: 1.6; }
.camp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 520px) { .camp-form-row { grid-template-columns: 1fr; } }
.camp-form-field { display: flex; flex-direction: column; gap: 6px; }
.camp-form-label { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); }
.camp-form-input { padding: 9px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--text); background: var(--gray-50); outline: none; transition: border-color 0.15s; }
.camp-form-input:focus { border-color: var(--green); }
textarea.camp-form-input { resize: vertical; min-height: 72px; }
.priority-picker { display: flex; gap: 8px; }
.priority-opt { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.75rem; font-weight: 800; color: var(--gray-400); transition: all 0.15s; user-select: none; }
.priority-opt:hover { border-color: var(--gray-300); }
.priority-opt.selected-green { border-color: var(--green); color: var(--green); background: var(--green-light); }
.priority-opt.selected-amber { border-color: #d97706; color: #d97706; background: #fffbeb; }
.priority-opt.selected-red { border-color: #dc2626; color: #dc2626; background: #fff5f5; }
.priority-pip { width: 8px; height: 8px; border-radius: 50%; }

/* ── STATUS PIPELINE ── */
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s; user-select: none; white-space: nowrap; }
.status-pill:hover { opacity: 0.8; }
.status-idea        { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.status-development { background: #eff6ff; color: #3b82f6; border-color: #bfdbfe; }
.status-scripted    { background: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; }
.status-production  { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.status-published   { background: var(--green-light); color: var(--green); border-color: var(--green-mid); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.pipeline-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; padding: 14px 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); align-items: center; }
.pipeline-stat { display: flex; flex-direction: column; align-items: center; padding: 0 12px; border-right: 1px solid var(--gray-100); }
.pipeline-stat:last-child { border-right: none; }
.pipeline-stat-val { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.pipeline-stat-lbl { font-size: 0.62rem; font-weight: 800; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }

.bank-status-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.bank-status-filter { padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-400); cursor: pointer; transition: all 0.15s; }
.bank-status-filter.active { border-color: var(--charcoal); color: var(--charcoal); background: var(--gray-50); }
/* ── DASHBOARD ── */
.dash-header { background: var(--white); border: 1px solid var(--gray-200); padding: 28px 32px 24px; border-radius: var(--radius-xl); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; box-shadow: var(--shadow-sm); }
.dash-greeting { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 900; color: var(--text); letter-spacing: -0.03em; line-height: 1.2; }
.dash-greeting span { color: var(--green); }
.dash-date { font-size: 0.72rem; font-weight: 700; color: var(--gray-400); margin-top: 4px; }
.dash-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-quick-btn { padding: 8px 16px; border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: 0.75rem; font-weight: 800; border: 1.5px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); cursor: pointer; transition: all 0.15s; }
.dash-quick-btn:hover { background: rgba(255,255,255,0.15); color: white; }
.dash-quick-btn.primary { background: var(--green); border-color: var(--green); color: white; }
.dash-quick-btn.primary:hover { opacity: 0.9; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 640px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-grid-wide { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 700px) { .dash-grid-wide { grid-template-columns: 1fr; } }

.dash-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.dash-card-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-400); margin-bottom: 12px; }
.dash-card-val { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--text); margin-bottom: 4px; }
.dash-card-sub { font-size: 0.72rem; font-weight: 600; color: var(--gray-400); }

.dash-pipeline { display: flex; gap: 0; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.dash-pipe-seg { flex: 1; padding: 14px 10px; text-align: center; border-right: 1px solid var(--gray-200); transition: background 0.15s; }
.dash-pipe-seg:last-child { border-right: none; }
.dash-pipe-seg:hover { background: var(--gray-50); }
.dash-pipe-num { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.dash-pipe-lbl { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-top: 3px; }

.dash-campaigns { display: flex; flex-direction: column; gap: 8px; }
.dash-camp-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--gray-100); background: var(--gray-50); }
.dash-camp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dash-camp-name { font-size: 0.8rem; font-weight: 800; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-camp-days { font-size: 0.68rem; font-weight: 800; padding: 3px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.dash-camp-days.soon { background: #fff3ee; color: var(--orange); }
.dash-camp-days.upcoming { background: var(--green-light); color: var(--green); }
.dash-camp-days.past { background: var(--gray-100); color: var(--gray-400); }
.dash-camp-days.today { background: var(--yellow); color: var(--charcoal); }

.dash-checklist-bar { height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden; margin: 10px 0 6px; }
.dash-checklist-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.4s ease; }

.dash-recent { display: flex; flex-direction: column; gap: 6px; }
.dash-recent-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--gray-50); border: 1px solid var(--gray-100); cursor: pointer; transition: background 0.15s; }
.dash-recent-row:hover { background: var(--gray-100); }
.dash-recent-title { font-size: 0.78rem; font-weight: 800; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-recent-status { font-size: 0.62rem; font-weight: 800; padding: 2px 7px; border-radius: 20px; flex-shrink: 0; }
.dash-empty-note { font-size: 0.78rem; font-weight: 600; color: var(--gray-400); text-align: center; padding: 20px 0; }

/* ── GENERATOR ── */
.gen-controls { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.gen-controls-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.gen-panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.gen-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.gen-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.gen-label { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); }
select { width: 100%; padding: 9px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--text); background: var(--white); outline: none; transition: border-color 0.15s; cursor: pointer; }
select:focus { border-color: var(--green); }
.gen-state { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.gen-state-idle { padding: 56px 24px; text-align: center; }
.gen-idle-icon { font-size: 1.5rem; margin-bottom: 10px; }
.gen-idle-title { font-size: 0.92rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.gen-idle-sub { font-size: 0.82rem; color: var(--gray-400); font-weight: 500; max-width: 340px; margin: 0 auto; line-height: 1.65; }
.gen-loading { padding: 48px 32px; text-align: center; }
.gen-loading-title { font-size: 0.88rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.gen-loading-sub { font-size: 0.78rem; color: var(--gray-400); font-weight: 500; margin-bottom: 20px; }
.gen-prog-track { height: 4px; background: var(--gray-100); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.gen-prog-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width 0.4s ease; }
.gen-prog-label { font-size: 0.68rem; font-weight: 800; color: var(--gray-400); text-align: right; }

/* API banner */
.api-banner { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.api-banner-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.api-banner-body { flex: 1; min-width: 0; }
.api-banner-label { font-size: 0.78rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.api-banner-sub { font-size: 0.74rem; color: var(--gray-400); font-weight: 500; line-height: 1.6; margin-bottom: 10px; }
.api-input-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.api-input { flex: 1; min-width: 180px; padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--text); background: var(--white); outline: none; transition: border-color 0.15s; }
.api-input:focus { border-color: var(--green); }
.api-status { font-size: 0.7rem; font-weight: 800; color: var(--gray-400); margin-left: 6px; }
.api-status.set { color: var(--green); }

/* Results */
.results-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.results-meta { font-size: 0.75rem; font-weight: 800; color: var(--gray-400); }
.filter-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-pill { background: var(--gray-100); border: 1px solid var(--gray-200); padding: 5px 13px; border-radius: 20px; font-family: 'Nunito', sans-serif; font-size: 0.72rem; font-weight: 800; color: var(--gray-400); cursor: pointer; transition: all 0.15s; border: 1px solid var(--gray-200); }
.filter-pill:hover { border-color: var(--gray-400); color: var(--gray-600); }
.filter-pill.active { background: var(--text); color: white; border-color: var(--text); }
.filter-pill[data-filter="Tier 1"].active { background: var(--green); border-color: var(--green); }
.filter-pill[data-filter="Tier 2"].active { background: var(--blue); border-color: var(--blue); }
#no-results-msg { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 18px; text-align: center; font-size: 0.84rem; font-weight: 700; color: var(--gray-400); }

/* Idea cards */
.ideas-grid { display: flex; flex-direction: column; gap: 10px; }
.idea-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s; }
.idea-card:hover { box-shadow: var(--shadow-md); }
.idea-card-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.idea-title { font-size: 0.95rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; line-height: 1.3; flex: 1; }
.idea-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.idea-why { font-size: 0.8rem; color: var(--gray-500); line-height: 1.65; border-top: 1px solid var(--gray-100); padding-top: 10px; margin-top: 6px; font-weight: 500; }
.idea-hook { font-size: 0.78rem; font-weight: 700; color: var(--green); margin-top: 8px; }
.idea-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bank-save-btn { font-size: 0.72rem; }

/* Bank */
.bank-filter-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.bank-count { font-size: 0.72rem; font-weight: 800; color: var(--gray-400); margin-left: auto; }
.bank-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s; }
.bank-card:hover { box-shadow: var(--shadow-md); }
.bank-card-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.bank-title { font-size: 0.95rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; line-height: 1.3; flex: 1; }
.bank-date { font-size: 0.68rem; font-weight: 700; color: var(--gray-300); white-space: nowrap; align-self: center; }
.bank-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.bank-why { font-size: 0.8rem; color: var(--gray-500); line-height: 1.65; border-top: 1px solid var(--gray-100); padding-top: 10px; margin-top: 4px; font-weight: 500; }
.bank-hook { font-size: 0.78rem; font-weight: 700; color: var(--green); margin-top: 8px; margin-bottom: 12px; }
.bank-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bank-empty-state { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 64px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.bank-empty-icon { font-size: 2rem; margin-bottom: 12px; }
.bank-empty-title { font-size: 0.92rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.bank-empty-sub { font-size: 0.82rem; color: var(--gray-400); font-weight: 500; max-width: 320px; margin: 0 auto; line-height: 1.65; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,15,12,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal { background: var(--white); border-radius: var(--radius-xl); width: 100%; max-width: 680px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,0.18); }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: flex-start; flex-shrink: 0; }
.modal-head-eyebrow { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 3px; }
.modal-head-title { font-size: 0.95rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; line-height: 1.35; max-width: 480px; }
.modal-close { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--gray-100); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--gray-500); flex-shrink: 0; transition: background 0.12s; }
.modal-close:hover { background: var(--gray-200); color: var(--text); }
.modal-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.modal-loading { text-align: center; padding: 40px 20px; }
.modal-prog-track { height: 4px; background: var(--gray-100); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.modal-prog-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width 0.4s ease; }
.modal-prog-label { font-size: 0.68rem; font-weight: 800; color: var(--gray-400); text-align: right; }
.modal-prog-title { font-size: 0.85rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.modal-prog-sub { font-size: 0.76rem; color: var(--gray-400); font-weight: 500; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; flex-wrap: wrap; gap: 8px; }
.copy-confirm { font-size: 0.72rem; font-weight: 800; color: var(--green); opacity: 0; transition: opacity 0.2s; }
.copy-confirm.show { opacity: 1; }

/* Script sections */
.script-sec { border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; }
.script-sec-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.script-sec-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.script-sec-label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); }
.script-sec-time { font-size: 0.68rem; font-weight: 700; color: var(--gray-400); margin-left: auto; }
.script-sec-body { padding: 14px 16px; font-size: 0.85rem; color: var(--gray-500); line-height: 1.75; font-weight: 500; white-space: pre-wrap; }

/* Principles */
.prin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 10px; margin-bottom: 24px; }
.prin-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 22px 18px; box-shadow: var(--shadow-sm); text-align: center; }
.prin-top { font-size: 0.88rem; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.prin-mid { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-300); margin-bottom: 4px; }
.prin-bot { font-size: 0.88rem; font-weight: 700; color: var(--gray-400); }
.manifesto { background: var(--text); border-radius: var(--radius-xl); padding: 48px 40px; text-align: center; }
.manifesto-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.man-line { display: flex; align-items: center; justify-content: center; gap: 12px; }
.man-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.man-text { font-size: 1.05rem; font-weight: 800; color: white; letter-spacing: -0.02em; }
.manifesto-sub { font-size: 0.82rem; color: rgba(255,255,255,0.38); font-weight: 500; max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* Checklist */

.cl-item:hover { background: var(--gray-50); }

/* Badge for campaigns on idea cards — duplicate guard */
.man-pip { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 10px; }
.cal-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s; }
.cal-card:hover { box-shadow: var(--shadow-md); }
.cal-pip { width: 6px; height: 6px; border-radius: 50%; margin-bottom: 12px; }
.cal-title { font-size: 0.85rem; font-weight: 800; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.cal-desc { font-size: 0.75rem; color: var(--gray-400); font-weight: 600; }
