/* ============================================================
   Analit / Balionline — Marketing+CRM admin prototype
   Design system (brand.css) — Agent-24 tokens + app layout.
   Warm-neutral SaaS canvas + Balionline orange (#EF8934) accent.
   ============================================================ */

:root{
  /* Brand */
  --brand-50:#FEF4EA; --brand-100:#FCE4CC; --brand-200:#F8C89B; --brand-300:#F4AB6A;
  --brand-400:#F1993F; --brand-500:#EF8934; --brand-600:#D67629; --brand-700:#B45F1E;
  --brand-800:#8F4A16; --brand-900:#6B370F; --brand-ink:#3A1F0B;

  /* Neutrals (warm) */
  --bg:#F7F5F2; --surface:#FFFFFF; --surface-2:#FBF9F6;
  --border:#E7E2DB; --border-strong:#D6CFC5;
  --ink-900:#1A1714; --ink-700:#403A33; --ink-500:#6B635A; --ink-400:#8C8378; --ink-300:#B7AFA4;
  --nav-bg:#1E1B17; --nav-ink:#EDE8E0; --nav-ink-dim:#9A938A;

  /* Pipeline stages */
  --stage-new:#3B82C4;        --stage-new-bg:#E7F0F9;        --stage-new-tx:#1E5A8F;
  --stage-contacted:#E0A92E;  --stage-contacted-bg:#FBF0D6;  --stage-contacted-tx:#8A6410;
  --stage-prep:#D67629;       --stage-prep-bg:#FBE6D3;       --stage-prep-tx:#9A4E14;
  --stage-offer:#7C5CD0;      --stage-offer-bg:#EDE8F9;      --stage-offer-tx:#553BA0;
  --stage-option:#2FA36B;     --stage-option-bg:#DDF2E6;     --stage-option-tx:#1B6E45;
  --stage-booked:#1B8E4E;     --stage-booked-bg:#D7F1E0;     --stage-booked-tx:#136336;
  --stage-return:#9B59B6;     --stage-return-bg:#F2E6F8;     --stage-return-tx:#6A2C86;
  --stage-lost:#9A938A;       --stage-lost-bg:#EFEBE5;       --stage-lost-tx:#5C554D;

  /* Priority */
  --prio-hot:#E0492E;  --prio-hot-bg:#FBE3DE;
  --prio-warm:#EF8934; --prio-warm-bg:#FCE4CC;
  --prio-cold:#3B82C4; --prio-cold-bg:#E7F0F9;

  /* Semantic */
  --success:#2FA36B; --success-bg:#DDF2E6; --success-tx:#1B6E45;
  --warning:#E0A92E; --warning-bg:#FBF0D6; --warning-tx:#8A6410;
  --danger:#D6422B;  --danger-bg:#FBE3DE;  --danger-tx:#9A2E1C;
  --info:#3B82C4;    --info-bg:#E7F0F9;    --info-tx:#1E5A8F;

  /* Source / channel */
  --src-meta:#1877F2; --src-meta-bg:#E7F0FE;
  --src-web:#1E8E4E;  --src-web-bg:#E6F7EC;
  --src-phone:#EF8934;--src-phone-bg:#FCE4CC;
  --src-sync:#6B3FA0; --src-sync-bg:#EDE7FF;
  --src-email:#7C5CD0;--src-email-bg:#EDE8F9;
  --src-news:#E0A92E; --src-news-bg:#FBF0D6;

  /* Value vs promo (content/automation) */
  --value-blue:#3B82C4; --promo-coral:#E2674A;

  /* Radius / shadow / ring */
  --radius-sm:8px; --radius-md:12px; --radius-lg:16px; --radius-xl:20px; --radius-full:9999px;
  --shadow-xs:0 1px 2px rgba(40,30,20,.05);
  --shadow-sm:0 1px 3px rgba(40,30,20,.07),0 1px 2px rgba(40,30,20,.05);
  --shadow-md:0 6px 16px rgba(40,30,20,.10);
  --shadow-lg:0 18px 44px rgba(40,30,20,.16);
  --ring-brand:0 0 0 3px rgba(239,137,52,.35);
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--ink-700);
  font-family:"Open Sans",system-ui,sans-serif; font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:Poppins,system-ui,sans-serif; color:var(--ink-900);
  letter-spacing:-0.01em; margin:0; }
a{ color:var(--brand-700); text-decoration:none; }
a:hover{ color:var(--brand-600); }
.tnum{ font-variant-numeric:tabular-nums; }
.muted{ color:var(--ink-500); }
.small{ font-size:13px; }

:where(a,button,input,select,textarea,[role="switch"],[tabindex]):focus-visible{
  outline:none; box-shadow:var(--ring-brand); border-radius:var(--radius-sm);
}

/* ---------- App shell ---------- */
.app{ display:flex; min-height:100vh; }
.topbar{
  position:fixed; top:0; left:0; right:0; height:68px; z-index:40;
  display:flex; align-items:center; gap:20px; padding:0 24px;
  background:var(--surface); border-bottom:1px solid var(--border);
}
.topbar::before{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:3px;
  background:linear-gradient(90deg,var(--brand-500),var(--brand-300)); }
.logo{ display:flex; align-items:center; gap:10px; font-family:Poppins; font-weight:800;
  font-size:20px; color:var(--ink-900); white-space:nowrap; }
.logo .mark{ height:34px; width:34px; border-radius:10px; display:grid; place-items:center;
  background:linear-gradient(135deg,var(--brand-500),var(--brand-700)); color:#fff; font-size:18px; }
.logo small{ display:block; font-family:"Open Sans"; font-weight:600; font-size:11px;
  letter-spacing:.04em; color:var(--ink-400); text-transform:uppercase; }
.topbar .search{ flex:1; max-width:420px; position:relative; }
.topbar .search input{ width:100%; height:44px; padding:0 14px 0 40px; font-size:15px;
  background:var(--surface-2); border:1px solid var(--border-strong); border-radius:var(--radius-md); }
.topbar .search .ic{ position:absolute; left:12px; top:11px; color:var(--ink-400); }
.topbar .spacer{ flex:1; }
.iconbtn{ height:44px; width:44px; display:grid; place-items:center; border:none; cursor:pointer;
  background:transparent; border-radius:var(--radius-md); font-size:20px; color:var(--ink-700); position:relative; }
.iconbtn:hover{ background:var(--brand-50); }
.dotbadge{ position:absolute; top:8px; right:8px; height:18px; min-width:18px; padding:0 4px;
  border-radius:9px; background:var(--prio-hot); color:#fff; font-size:11px; font-weight:700;
  display:grid; place-items:center; }
.userchip{ display:flex; align-items:center; gap:10px; padding-left:14px; border-left:1px solid var(--border); }

.sidebar{
  position:fixed; top:68px; bottom:0; left:0; width:260px; z-index:30;
  background:var(--surface); border-right:1px solid var(--border);
  padding:16px 12px; overflow-y:auto;
}
.navgroup{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-400); padding:14px 12px 6px; }
.nav-item{ display:flex; align-items:center; gap:12px; height:46px; padding:0 14px;
  border-radius:var(--radius-md); color:var(--ink-700); font-weight:500; cursor:pointer;
  border-left:4px solid transparent; margin-left:-4px; padding-left:18px; }
.nav-item .ic{ font-size:19px; width:24px; text-align:center; }
.nav-item:hover{ background:color-mix(in srgb,var(--brand-50) 70%,transparent); color:var(--ink-900); }
.nav-item.is-active{ background:var(--brand-50); color:var(--brand-700); font-weight:700;
  border-left-color:var(--brand-500); }
.nav-item .live{ margin-left:auto; font-size:10px; font-weight:700; color:var(--success-tx);
  background:var(--success-bg); padding:2px 7px; border-radius:9px; }

.main{ flex:1; margin-left:260px; margin-top:68px; padding:28px 32px 64px; max-width:1320px; }
.page-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  margin-bottom:22px; flex-wrap:wrap; }
.page-head h1{ font-size:30px; font-weight:700; }
.page-head .sub{ color:var(--ink-500); margin-top:4px; max-width:62ch; }

/* ---------- Cards / panels ---------- */
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm); padding:24px; }
.card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.card-head h3{ font-size:19px; font-weight:600; }
.grid{ display:grid; gap:20px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-5{ grid-template-columns:repeat(5,1fr); }
@media (max-width:1100px){ .grid-4,.grid-5{ grid-template-columns:repeat(2,1fr); } .grid-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:720px){ .grid-2,.grid-3,.grid-4,.grid-5{ grid-template-columns:1fr; } }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  height:46px; padding:0 22px; border-radius:var(--radius-md);
  font-family:Poppins,sans-serif; font-weight:600; font-size:15px; line-height:1;
  cursor:pointer; border:1px solid transparent; white-space:nowrap;
  transition:background .15s,color .15s,box-shadow .15s,border-color .15s; }
.btn-primary{ background:var(--brand-500); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--brand-600); }
.btn-secondary{ background:var(--surface); color:var(--ink-900); border-color:var(--border-strong); }
.btn-secondary:hover{ background:var(--brand-50); border-color:var(--brand-300); }
.btn-ghost{ height:42px; padding:0 14px; background:transparent; color:var(--ink-700); font-weight:600; }
.btn-ghost:hover{ background:var(--brand-50); color:var(--ink-900); }
.btn-sm{ height:36px; padding:0 14px; font-size:13px; border-radius:var(--radius-sm); }
.btn-danger{ background:var(--danger); color:#fff; }

/* ---------- Badges ---------- */
.badge{ display:inline-flex; align-items:center; gap:.4rem; height:26px; padding:0 11px;
  border-radius:var(--radius-full); font-size:12.5px; font-weight:700; line-height:1; white-space:nowrap; }
.badge .dot{ height:8px; width:8px; border-radius:50%; background:currentColor; }
.badge--outline{ background:transparent; border:1px solid var(--border-strong); color:var(--ink-700); }

/* ---------- Avatar ---------- */
.avatar{ display:grid; place-items:center; border-radius:50%; font-weight:700;
  background:var(--brand-100); color:var(--brand-700); height:38px; width:38px; font-size:14px; flex:none; }
.avatar--sm{ height:32px; width:32px; font-size:12px; }
.avatar--lg{ height:46px; width:46px; font-size:16px; }

/* ---------- Inputs ---------- */
.input,select.input,textarea.input{ height:44px; width:100%; padding:0 14px; font-size:15px; color:var(--ink-900);
  background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-sm);
  font-family:"Open Sans"; transition:border-color .15s,box-shadow .15s; }
textarea.input{ height:auto; padding:10px 14px; line-height:1.5; }
.input:focus{ outline:none; border-color:var(--brand-500); box-shadow:var(--ring-brand); }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--ink-500); margin-bottom:6px; }

/* ---------- KPI tile ---------- */
.kpi{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-xl);
  box-shadow:var(--shadow-sm); padding:22px; cursor:pointer; transition:box-shadow .15s,transform .15s; }
.kpi:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px); }
.kpi .top{ display:flex; align-items:center; justify-content:space-between; }
.kpi .ic{ height:40px; width:40px; display:grid; place-items:center; border-radius:12px;
  background:var(--brand-50); color:var(--brand-700); font-size:19px; }
.kpi .num{ font-family:Poppins; font-weight:700; font-size:32px; line-height:1.1; color:var(--ink-900);
  font-variant-numeric:tabular-nums; margin-top:12px; }
.kpi .label{ font-size:12.5px; font-weight:600; text-transform:uppercase; letter-spacing:.03em; color:var(--ink-500); }
.kpi .cap{ font-size:12.5px; margin-top:6px; color:var(--ink-500); }
.kpi .cap.red{ color:var(--danger-tx); font-weight:600; }
.kpi .cap.green{ color:var(--success-tx); font-weight:600; }

/* ---------- Kanban ---------- */
.kanban{ display:flex; gap:16px; overflow-x:auto; padding-bottom:14px; align-items:flex-start; }
.kcol{ width:288px; flex:none; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-lg); }
.kcol-head{ display:flex; align-items:center; justify-content:space-between; padding:0 14px; height:52px;
  border-bottom:1px solid var(--border); }
.kcol-head .ttl{ display:flex; align-items:center; gap:8px; font-family:Poppins; font-weight:600; color:var(--ink-900); font-size:14.5px; }
.kcol-head .cnt{ height:24px; min-width:24px; padding:0 7px; display:grid; place-items:center; border-radius:12px;
  background:var(--surface); border:1px solid var(--border); font-size:12px; font-weight:700; color:var(--ink-500); }
.kcol-head .cnt.warn{ background:var(--warning-bg); color:var(--warning-tx); border-color:transparent; }
.kcol-body{ padding:12px; display:flex; flex-direction:column; gap:10px; min-height:60px; }
.lead-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  box-shadow:var(--shadow-xs); padding:13px; cursor:pointer; transition:box-shadow .15s,transform .15s; }
.lead-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px); }
.lead-card .r1{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.lead-card .nm{ font-family:Poppins; font-weight:600; color:var(--ink-900); font-size:14.5px; }
.lead-card .val{ font-weight:700; color:var(--ink-900); font-size:13.5px; }
.lead-card .r2{ display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.lead-card .trip{ margin-top:9px; font-size:13px; color:var(--ink-700); }
.lead-card .r4{ margin-top:10px; display:flex; align-items:center; justify-content:space-between; gap:8px;
  font-size:12px; color:var(--ink-400); }
.ghost-col{ border:2px dashed var(--border-strong); border-radius:var(--radius-md); padding:18px;
  text-align:center; color:var(--ink-400); font-size:13px; }

/* ---------- Table ---------- */
.tbl{ width:100%; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm); overflow:hidden; border-collapse:collapse; font-size:14.5px; }
.tbl thead tr{ background:var(--surface-2); }
.tbl th{ text-align:left; padding:13px 16px; font-size:12px; font-weight:700; text-transform:uppercase;
  letter-spacing:.03em; color:var(--ink-500); }
.tbl td{ padding:14px 16px; border-top:1px solid var(--border); }
.tbl tbody tr{ cursor:pointer; transition:background .12s; }
.tbl tbody tr:hover{ background:color-mix(in srgb,var(--brand-50) 55%,transparent); }
.tbl .right{ text-align:right; }

/* progress bar inline */
.pbar{ height:7px; border-radius:5px; background:var(--border); overflow:hidden; min-width:70px; }
.pbar > span{ display:block; height:100%; border-radius:5px; }

/* ---------- Filter bar / chips ---------- */
.toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.chip{ height:36px; padding:0 14px; display:inline-flex; align-items:center; gap:6px; border-radius:var(--radius-full);
  background:var(--surface); border:1px solid var(--border-strong); font-size:13.5px; font-weight:600; color:var(--ink-700); cursor:pointer; }
.chip:hover{ background:var(--brand-50); }
.chip.is-active{ background:var(--brand-500); color:#fff; border-color:var(--brand-500); }

/* ---------- Capacity bar ---------- */
.dep{ display:flex; flex-direction:column; gap:8px; padding:16px; border:1px solid var(--border);
  border-radius:var(--radius-md); background:var(--surface); }
.dep .capbar{ height:10px; border-radius:6px; background:var(--border); overflow:hidden; }
.dep .capbar > span{ display:block; height:100%; }

/* ---------- Timeline ---------- */
.timeline{ position:relative; padding-left:26px; border-left:2px solid var(--border); margin:0; list-style:none; }
.timeline li{ position:relative; margin-bottom:20px; }
.timeline li:last-child{ margin-bottom:0; }
.timeline .node{ position:absolute; left:-34px; height:18px; width:18px; border-radius:50%;
  background:var(--brand-500); box-shadow:0 0 0 4px var(--surface); }
.timeline .meta{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.timeline time{ font-size:12px; color:var(--ink-400); }
.timeline p{ margin:6px 0 0; font-size:14px; color:var(--ink-700); }

/* ---------- Toggle ---------- */
.switch{ position:relative; display:inline-flex; height:28px; width:50px; align-items:center; border-radius:14px;
  background:var(--border-strong); cursor:pointer; transition:background .15s; border:none; flex:none; }
.switch[aria-checked="true"]{ background:var(--brand-500); }
.switch span{ position:absolute; left:3px; height:22px; width:22px; border-radius:50%; background:#fff;
  box-shadow:var(--shadow-sm); transition:transform .15s; }
.switch[aria-checked="true"] span{ transform:translateX(22px); }

/* ---------- Slide-over + modal ---------- */
.scrim{ position:fixed; inset:0; background:rgba(26,23,20,.45); z-index:50; animation:fadeIn .18s ease; }
.slideover{ position:fixed; top:0; right:0; height:100vh; width:540px; max-width:92vw; background:var(--surface);
  box-shadow:var(--shadow-lg); z-index:60; display:flex; flex-direction:column; animation:slideIn .22s ease-out; }
.slideover .so-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:20px 24px; border-bottom:1px solid var(--border); }
.slideover .so-body{ flex:1; overflow-y:auto; padding:22px 24px; }
.slideover .so-foot{ display:flex; gap:10px; padding:16px 24px; border-top:1px solid var(--border); }
.modal{ position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:60; width:560px; max-width:92vw;
  max-height:88vh; overflow:auto; background:var(--surface); border-radius:var(--radius-xl); box-shadow:var(--shadow-lg);
  animation:slideIn .2s ease-out; }
.closebtn{ height:40px; width:40px; display:grid; place-items:center; border:none; background:transparent; cursor:pointer;
  font-size:24px; color:var(--ink-500); border-radius:var(--radius-md); }
.closebtn:hover{ background:var(--brand-50); }

/* ---------- Toast ---------- */
#toasts{ position:fixed; right:22px; bottom:22px; z-index:80; display:flex; flex-direction:column; gap:10px; }
.toast{ background:var(--ink-900); color:#fff; padding:13px 18px; border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg); font-size:14px; font-weight:600; display:flex; align-items:center; gap:10px;
  animation:slideIn .2s ease-out; max-width:380px; }
.toast .ok{ color:#7BE3A8; }

/* ---------- Definition rows ---------- */
.dl{ display:grid; grid-template-columns:1fr 1fr; gap:14px 18px; }
.dl .k{ font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.03em; color:var(--ink-400); }
.dl .v{ font-size:15px; color:var(--ink-900); font-weight:600; margin-top:2px; }

/* ---------- Donut ---------- */
.donut{ height:200px; width:200px; border-radius:50%; flex:none; }
.legend-row{ display:flex; align-items:center; gap:10px; padding:7px 0; }
.legend-row .sw{ height:14px; width:14px; border-radius:4px; flex:none; }

/* ---------- Email canvas (Screen 5 hero) ---------- */
.email-wrap{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px;
  display:flex; justify-content:center; min-width:0; overflow:hidden; }
.email{ width:640px; max-width:100%; background:#fff; border-radius:14px; overflow:hidden; box-shadow:var(--shadow-md);
  border:1px solid var(--border); }
.email .eblock{ position:relative; }
.email .eblock.sel{ outline:2px solid var(--brand-500); outline-offset:-2px; }
.email .ehdr{ display:flex; align-items:center; justify-content:space-between; padding:16px 22px; border-bottom:1px solid var(--border); }
.email .ehero{ position:relative; }
.email .ehero img{ width:100%; height:230px; object-fit:cover; display:block; }
.email .ehero .ov{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(26,23,20,.15),rgba(26,23,20,.62));
  display:flex; flex-direction:column; justify-content:flex-end; padding:22px; color:#fff; }
.email .ehero h2{ color:#fff; font-size:24px; line-height:1.25; }
.email .etext{ padding:20px 24px; font-size:16.5px; line-height:1.7; color:#2a2622; }
.email .etrips{ display:flex; gap:14px; padding:4px 24px 18px; }
.email .etrip{ flex:1; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.email .etrip img{ width:100%; height:96px; object-fit:cover; display:block; }
.email .etrip .b{ padding:10px 12px; }
.email .ecta{ text-align:center; padding:6px 24px 22px; }
.email .ecta a{ display:inline-block; background:var(--brand-500); color:#fff; font-family:Poppins; font-weight:700;
  font-size:17px; padding:15px 34px; border-radius:12px; }
.email .equote{ margin:0 24px 20px; background:var(--brand-50); border-radius:12px; padding:16px 18px;
  display:flex; gap:12px; align-items:center; }
.email .efoot{ background:#2A2018; color:#EDE8E0; padding:22px 24px; }
.email .efoot .big{ display:inline-block; margin-top:8px; background:var(--brand-500); color:#fff; font-weight:700;
  padding:11px 20px; border-radius:10px; font-family:Poppins; }

/* ---------- Nurture timeline (Screen 6) ---------- */
.nurture{ display:flex; gap:12px; overflow-x:auto; padding:6px 2px 14px; }
.nnode{ width:200px; flex:none; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:12px; border-top:4px solid var(--value-blue); }
.nnode.promo{ border-top-color:var(--promo-coral); }
.nnode.zaro{ border-top-color:var(--brand-500); }
.nnode .d{ font-size:12px; color:var(--ink-400); font-weight:600; }
.nnode .s{ font-size:13.5px; color:var(--ink-900); font-weight:600; margin-top:5px; line-height:1.35; }

/* ---------- Builder 3-pane ---------- */
.builder{ display:grid; grid-template-columns:200px minmax(0,1fr) 300px; gap:18px; align-items:start; }
@media (max-width:1150px){ .builder{ grid-template-columns:1fr; } }
.palette .pblock{ display:flex; align-items:center; gap:10px; padding:11px 12px; border:1px solid var(--border);
  border-radius:var(--radius-sm); margin-bottom:8px; background:var(--surface); cursor:grab; font-size:13.5px; font-weight:600; color:var(--ink-700); }
.palette .pblock:hover{ background:var(--brand-50); border-color:var(--brand-300); }

/* event feed */
.feed{ display:flex; flex-direction:column; gap:0; }
.feed .ev{ display:flex; gap:12px; padding:12px 4px; border-bottom:1px solid var(--border); animation:fadeIn .4s ease; }
.feed .ev .t{ font-size:12.5px; color:var(--ink-400); font-variant-numeric:tabular-nums; width:46px; flex:none; }
.feed .ev .x{ font-size:18px; flex:none; }
.feed .ev .m{ font-size:13.5px; color:var(--ink-700); }

/* integration cards */
.intcard{ display:flex; gap:14px; align-items:flex-start; padding:18px; border:1px solid var(--border);
  border-radius:var(--radius-lg); background:var(--surface); }
.intcard.hero{ border:2px solid var(--brand-500); background:var(--brand-50); }
.intcard .ic{ height:46px; width:46px; border-radius:12px; display:grid; place-items:center; font-size:22px;
  background:var(--surface-2); flex:none; }
.statusline{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; }
.statusline .d{ height:9px; width:9px; border-radius:50%; }

/* before/after */
.plainmail{ background:#fff; border:1px solid var(--border); border-radius:10px; padding:16px;
  font-family:"Courier New",monospace; font-size:13px; color:#444; line-height:1.6; }

.section-title{ font-family:Poppins; font-weight:700; font-size:18px; color:var(--ink-900); margin:8px 0 12px; }

@keyframes slideIn{ from{ transform:translateX(20px); opacity:.4 } to{ transform:none; opacity:1 } }
@keyframes fadeIn{ from{ opacity:0 } to{ opacity:1 } }

/* ---------- Responsive shell ---------- */
.navtoggle{ display:none; }
@media (max-width:1000px){
  .sidebar{ transform:translateX(-100%); transition:transform .2s ease; box-shadow:var(--shadow-lg); }
  .sidebar.open{ transform:none; }
  .main{ margin-left:0; }
  .navtoggle{ display:grid; }
}
@media (max-width:560px){
  .main{ padding:18px 14px 56px; }
  .page-head h1{ font-size:24px; }
  .topbar .search{ display:none; }
  .builder{ grid-template-columns:1fr; }
}

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