/* SmartFlow CRM — design tokens */
:root {
  --ink: #172033;
  --ink-2: #4B5568;
  --ink-3: #7A8496;
  --line: #E2E6EC;
  --line-2: #EDF0F4;
  --canvas: #F1F3F6;
  --surface: #FFFFFF;
  --primary: #0F7B7E;
  --primary-ink: #0A5C5E;
  --primary-soft: #E2F2F1;
  --amber: #C77712;
  --amber-soft: #FBF0DD;
  --red: #C1413A;
  --red-soft: #FBE9E7;
  --green: #23845A;
  --green-soft: #E2F3EA;
  --violet: #6650C9;
  --violet-soft: #EEEBFB;
  --navy: #1B2540;
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(23, 32, 51, .06), 0 2px 8px rgba(23, 32, 51, .04);
  --shadow-pop: 0 12px 40px rgba(23, 32, 51, .18), 0 2px 6px rgba(23, 32, 51, .08);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 14px/1.5 var(--font); color: var(--ink); background: var(--canvas); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
h2 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
small { font-size: 12px; }
code { font-size: 12px; background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #1B2540 0%, #16203A 55%, #12304A 100%); color: #C9D1E0; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; }
.sidebar > :not(.particles) { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; color: #fff; padding: 4px 10px 22px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 2px; padding: 6px 6px; }
.brand-mark i { display: block; background: #fff; border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 40%; opacity: .55; } .brand-mark i:nth-child(2) { height: 70%; opacity: .8; } .brand-mark i:nth-child(3) { height: 100%; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; font-weight: 600; color: #B5BFD2; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 #3FC1BE; }
.nav-badge { margin-left: auto; background: #3FC1BE; color: var(--navy); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.me-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.me-text strong { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { color: #8C97AC; }
.sidebar .icon-btn { color: #8C97AC; }
.sidebar .icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px clamp(20px, 2.2vw, 44px); background: rgba(241, 243, 246, .86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.topbar-title { font-weight: 700; flex: 1; }
.search { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--ink-3); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search input { border: 0; outline: 0; background: none; flex: 1; padding: 9px 0; font: inherit; color: var(--ink); }
.search kbd { font: 600 11px var(--font); color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.topbar .btn-primary { margin-left: auto; }
.content { padding: 12px clamp(20px, 2.2vw, 44px) 48px; width: 100%; }
.only-mobile { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent; font: 700 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; color: var(--ink); background: none; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); }
.btn-soft { background: var(--surface); border-color: var(--line); }
.btn-soft:hover { border-color: #C9D0DA; background: #FAFBFC; }
.btn.ghost:hover { background: var(--line-2); }
.btn-block { width: 100%; height: 42px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.ghost { border-color: transparent; background: none; }
.icon-btn .ic { width: 17px; height: 17px; }
.icon-btn.call:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.icon-btn.wa { color: #1A9E55; }
.icon-btn.wa:hover { background: #E3F6EA; border-color: #1A9E55; }
.icon-btn + .icon-btn { margin-left: 4px; }
.ch-actions .icon-btn { width: auto; padding: 0 12px; gap: 6px; font-weight: 700; font-size: 13.5px; height: 36px; display: inline-flex; }
.link { color: var(--primary); font-weight: 700; font-size: 13px; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.link:hover { text-decoration: underline; }

/* ---------- Page structure ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 14px 0 20px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 18px; box-shadow: var(--shadow); }
.panel.flush { overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.pad { padding: 4px 20px 20px; }
.pad-x { padding: 0 20px 12px; }
.group-label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 10px 20px 6px; display: flex; gap: 8px; align-items: center; }
.group-label.late { color: var(--amber); }
.group-label b { font-weight: 700; background: var(--line-2); color: var(--ink-2); padding: 0 7px; border-radius: 99px; font-size: 11px; }
h3.group-label:not(.panel h3) { padding-left: 2px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); }
.kpi { background: var(--surface); padding: 14px 18px; display: flex; flex-direction: column; gap: 1px; }
.kpi span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.kpi strong { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.kpi small { color: var(--ink-3); }
.kpi-accent { background: var(--primary); }
.kpi-accent span, .kpi-accent small { color: rgba(255, 255, 255, .78); }
.kpi-accent strong { color: #fff; }
.kpi-accent .late-tag { background: rgba(255, 255, 255, .18); color: #fff; align-self: flex-start; }

.dash { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 460px); gap: 18px; align-items: start; }

/* ---------- Pills, tags ---------- */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.st-new { background: #EAF0FA; color: #2C5BA8; }
.st-contacting { background: var(--primary-soft); color: var(--primary-ink); }
.st-unreached { background: var(--amber-soft); color: #95590C; }
.st-demo, .pj-scheduled { background: var(--violet-soft); color: #4F3BAE; }
.st-won, .pj-done { background: var(--green-soft); color: #1B6B48; }
.st-lost, .pj-cancelled { background: var(--line-2); color: var(--ink-3); }
.pj-in_progress { background: var(--amber-soft); color: #95590C; }
.tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); }
.tag-ghost { background: none; border: 1px solid var(--line); color: var(--ink-3); font-weight: 600; }
.late-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 0 7px; border-radius: 99px; }
.src { font-weight: 600; }
.src-ads::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 6px; vertical-align: 1px; }

/* ---------- Avatars ---------- */
.avatar { --c: var(--primary); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, white); color: var(--c); font-weight: 800; font-size: 12.5px; flex-shrink: 0; font-style: normal; letter-spacing: 0; }
.sidebar .avatar { background: var(--c); color: #fff; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; vertical-align: middle; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }

/* ---------- Follow-up dots (compact cadence) ---------- */
.dots { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #C5CCD7; background: var(--surface); }
.dots .d-no_answer { background: #B8C0CC; border-color: #B8C0CC; }
.dots .d-responded { background: var(--green); border-color: var(--green); }
.dots .d-today { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.dots .d-late { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }

/* ---------- Call queue ---------- */
.queue { padding-bottom: 8px; }
.q-list { list-style: none; margin: 0; padding: 0 8px; }
.q-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; }
.q-row + .q-row { border-top: 1px solid var(--line-2); }
.q-row:hover { background: #F8FAFB; }
.q-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.q-who > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.q-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-who small { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-who:hover strong { color: var(--primary); }
.q-step { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 13px; }
.q-step b { font-weight: 700; }
.q-src { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-contact { white-space: nowrap; }
.q-note { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); background: #FFF9EC; padding: 5px 10px; border-radius: 7px; margin-left: 45px; }
.q-note .ic { width: 14px; height: 14px; color: var(--amber); }
.step-actions { display: flex; gap: 6px; }

/* ---------- Generic lists ---------- */
.list { list-style: none; margin: 0; padding: 0 8px 8px; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.row-item + .row-item { border-top: 1px solid var(--line-2); }
.row-item .grow { display: flex; flex-direction: column; line-height: 1.35; }
.row-item small { color: var(--ink-3); }
a.grow:hover strong { color: var(--primary); }
.type-badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.type-badge.t-demo { background: var(--violet-soft); color: var(--violet); }
.type-badge.t-purchase { background: var(--green-soft); color: var(--green); }
.when { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-size: 13px; }
.when small { color: var(--ink-3); }
.w-today b, .when-inline.w-today { color: var(--primary); }
.w-late b, .when-inline.w-late { color: var(--amber); }
.when-inline { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; }
.when-inline .ic { width: 14px; height: 14px; }

.agenda { list-style: none; margin: 0; padding: 0 12px 12px; }
.agenda li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.agenda li a { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.agenda li a small { color: var(--ink-3); }
.agenda li a:hover strong { color: var(--primary); }
.ag-date { width: 42px; text-align: center; border: 1px solid var(--line); border-radius: 9px; padding: 3px 0; line-height: 1.1; }
.ag-date b { display: block; font-size: 17px; font-weight: 800; }
.ag-date small { color: var(--ink-3); font-size: 11px; font-weight: 600; }

.bars { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: 104px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.b-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-weight: 600; }
.b-track { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.b-track i { display: block; height: 100%; background: #8E9AB0; border-radius: 99px; }
.b-track i.ads { background: var(--primary); }
.b-val { font-weight: 700; min-width: 24px; text-align: right; }
.b-val small { color: var(--green); font-weight: 600; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 10px; }
.mini-table th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 4px 20px 6px 0; }
.mini-table th:first-child, .mini-table td:first-child { padding-left: 20px; }
.mini-table td { padding: 7px 20px 7px 0; border-top: 1px solid var(--line-2); }
.mini-table td:first-child { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 24px 38px; color: var(--ink-3); }
.empty .ic { width: 30px; height: 30px; color: #B5BDC9; margin-bottom: 4px; }
.empty strong { color: var(--ink); font-size: 15px; }
.empty p { max-width: 340px; margin-bottom: 8px; }

/* ---------- Tables ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { background: var(--line-2); }
.tabs a.active { background: var(--ink); color: #fff; }
.tabs a b { font-weight: 700; opacity: .6; font-size: 12px; }
.filters { display: flex; align-items: center; gap: 8px; color: var(--ink-3); margin-bottom: 14px; flex-wrap: wrap; }
.page-head .filters { margin: 0; }
.filters select, .field select, td select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237A8496' stroke-width='2'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") no-repeat right 10px center; padding-right: 30px !important; }
.filters select { width: auto; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; font: 600 13px var(--font); color: var(--ink); cursor: pointer; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.panel:not(.flush) .table th { background: none; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr:hover { background: #F8FAFB; }
.table tr.dim { opacity: .55; }
.cell-who { display: flex; flex-direction: column; line-height: 1.3; }
.cell-who.row { flex-direction: row; align-items: center; gap: 10px; }
.cell-who.row > span:not(.avatar) { display: flex; flex-direction: column; }
.cell-who small { color: var(--ink-3); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 14px; border-top: 1px solid var(--line-2); }

/* ---------- Client page ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 700; font-size: 13px; margin: 8px 0 4px; }
.back:hover { color: var(--ink); }
.back .ic { width: 15px; height: 15px; }
.client-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 10px 0 22px; flex-wrap: wrap; }
.ch-id { display: flex; align-items: center; gap: 14px; }
.ch-id .pill { margin-left: 4px; }
.ch-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.client-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw, 400px); gap: 18px; align-items: start; }
.facts { display: grid; grid-template-columns: 96px 1fr; gap: 9px 12px; margin: 0; padding: 0 20px 18px; font-size: 13.5px; }
.facts dt { color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.facts a { color: var(--primary); }
.facts.compact { padding: 0; grid-template-columns: 80px 1fr; gap: 5px 10px; font-size: 13px; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }

/* The cadence track — the signature element */
.track { list-style: none; margin: 0; padding: 8px 20px 22px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); position: relative; overflow-x: auto; }
.track li { position: relative; display: flex; flex-direction: column; gap: 1px; padding-right: 14px; }
.track li::before { content: ""; position: absolute; top: 19px; left: 40px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, #CDD3DD 0 6px, transparent 6px 11px); }
.track li:last-child::before { display: none; }
.track li.t-no_answer::before, .track li.t-responded::before { background: #B8C0CC; }
.t-node { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid #CDD3DD; color: var(--ink-3); margin-bottom: 9px; position: relative; z-index: 1; }
.t-node .ic { width: 17px; height: 17px; }
.t-label { font-weight: 800; font-size: 14px; }
.t-date { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.t-state { font-size: 12.5px; font-weight: 700; margin-top: 3px; color: var(--ink-3); }
.t-note { font-size: 12px; color: var(--ink-2); margin-top: 4px; background: #FFF9EC; padding: 3px 8px; border-radius: 6px; align-self: flex-start; }
.t-no_answer .t-node { background: #EEF0F4; border-color: #EEF0F4; color: #7A8496; }
.t-no_answer .t-label { color: var(--ink-3); }
.t-responded .t-node { background: var(--green); border-color: var(--green); color: #fff; }
.t-responded .t-state { color: var(--green); }
.t-today .t-node, .t-upcoming.is-next .t-node { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary-soft); }
.t-today .t-state { color: var(--primary); }
.t-late .t-node { background: var(--amber); border-color: var(--amber); color: #fff; box-shadow: 0 0 0 6px var(--amber-soft); }
.t-late .t-state { color: var(--amber); }
.is-next .t-node { animation: ring 2.4s ease-out 1; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(15, 123, 126, .45); } 100% { box-shadow: 0 0 0 6px var(--primary-soft); } }
.track-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line-2); padding: 14px 20px; background: #FAFBFC; border-radius: 0 0 var(--radius-lg) var(--radius-lg); flex-wrap: wrap; }
.track-actions.warn { background: #FFFAF0; }
.track-actions p { color: var(--ink-2); font-size: 13.5px; }

.note-form { display: flex; gap: 8px; padding: 0 20px 14px; align-items: flex-start; }
.note-form textarea { flex: 1; resize: vertical; min-height: 38px; }
.timeline { list-style: none; margin: 0; padding: 4px 20px 20px; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.timeline li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.tl-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--line-2); color: var(--ink-3); display: grid; place-items: center; flex-shrink: 0; }
.tl-ic .ic { width: 15px; height: 15px; }
.tl-responded .tl-ic { background: var(--primary-soft); color: var(--primary); }
.tl-won .tl-ic { background: var(--green-soft); color: var(--green); }
.tl-assigned .tl-ic, .tl-project .tl-ic { background: var(--violet-soft); color: var(--violet); }
.tl-cancelled .tl-ic { background: var(--red-soft); color: var(--red); }
.tl-note .tl-ic { background: var(--amber-soft); color: var(--amber); }
.timeline p { font-size: 13.5px; padding-top: 5px; }
.timeline blockquote { margin: 6px 0 4px; padding: 9px 12px; background: #F6F8FA; border-radius: 9px; font-size: 13.5px; color: var(--ink-2); border-left: 3px solid var(--line); }
.tl-responded blockquote { border-left-color: var(--primary); background: #F2F9F8; }

.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-pop); padding: 5px; min-width: 220px; z-index: 30; display: none; }
.menu.open .menu-pop { display: block; }
.menu-pop button { display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: 0; padding: 8px 10px; border-radius: 7px; font: 600 13.5px var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.menu-pop button:hover { background: var(--line-2); }
.menu-pop .danger { color: var(--red); }
.menu-pop .ic { width: 16px; height: 16px; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.k-col { background: #E8EBF0; border-radius: var(--radius-lg); padding: 10px; min-height: 240px; }
.k-col header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.k-col header h2 { font-size: 13.5px; }
.k-col header b { font-size: 12px; color: var(--ink-3); }
.k-col header small { margin-left: auto; font-weight: 700; color: var(--ink-2); }
.k-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.k-col.st-new { color: #2C5BA8; } .k-col.st-contacting { color: var(--primary); } .k-col.st-unreached { color: var(--amber); }
.k-col.st-demo { color: var(--violet); } .k-col.st-won { color: var(--green); } .k-col.st-lost { color: #8A94A6; }
.k-col header h2, .k-col .k-card { color: var(--ink); }
.k-col { background: color-mix(in srgb, currentColor 7%, #EEF0F3); }
.k-cards { display: flex; flex-direction: column; gap: 8px; min-height: 60px; border-radius: 10px; transition: background .15s; }
.k-cards.over { background: color-mix(in srgb, currentColor 14%, transparent); outline: 2px dashed currentColor; outline-offset: 2px; }
.k-card { background: var(--surface); border-radius: 10px; padding: 11px 12px; box-shadow: 0 1px 2px rgba(23, 32, 51, .08); cursor: grab; display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; }
.k-card:hover { border-color: #CFD5DE; }
.k-card.dragging { opacity: .45; }
.k-card a:hover strong { color: var(--primary); }
.k-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.k-card footer { display: flex; align-items: center; gap: 6px; justify-content: space-between; border-top: 1px solid var(--line-2); padding-top: 7px; margin-top: 4px; min-height: 24px; }
.k-card footer .when-inline.muted { font-weight: 600; }
.k-empty { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 18px 0; }

/* ---------- Calendar ---------- */
.cal-title { display: flex; align-items: center; gap: 10px; }
.cal-title h1 { min-width: 210px; text-align: center; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-call { background: var(--primary-soft); border: 1.5px solid var(--primary); }
.lg-demo { background: var(--violet); } .lg-purchase { background: var(--green); }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.cal-dow { background: #FAFBFC; padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.cal-day { background: var(--surface); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.out { background: #F8F9FB; }
.cal-day.out .cal-num { color: #B5BDC9; }
.cal-num { font-size: 12.5px; font-weight: 700; padding: 2px 5px; align-self: flex-start; border-radius: 6px; }
.cal-day.is-today .cal-num { background: var(--primary); color: #fff; }
.ev { display: block; font-size: 11.5px; font-weight: 600; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.ev-demo, .ev-purchase { background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); border-left: 3px solid var(--c); }
.ev-purchase { border-left-style: double; border-left-width: 4px; }
.ev b { font-weight: 800; }
.ev-call { display: flex; align-items: center; gap: 4px; color: var(--primary-ink); background: var(--primary-soft); }
.ev-call .ic { width: 11px; height: 11px; }
.ev-call.late { background: var(--amber-soft); color: #95590C; }
.ev.done { opacity: .5; text-decoration: line-through; }
.ev:hover { filter: brightness(.96); }
.ev-more { font-size: 11px; font-weight: 700; color: var(--ink-3); padding: 0 6px; }

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px; }
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.proj header { display: flex; align-items: center; gap: 11px; }
.proj header .grow { display: flex; flex-direction: column; line-height: 1.3; }
.proj header small { color: var(--ink-3); font-weight: 600; }
.proj header a:hover strong { color: var(--primary); }
.proj-notes { font-size: 13px; color: var(--ink-2); background: #F6F8FA; padding: 8px 10px; border-radius: 8px; }
.proj footer { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.proj footer .btn { margin-left: auto; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
input:not([type=radio]):not([type=checkbox]), select, textarea { font: 500 14px var(--font); color: var(--ink); background: var(--surface); border: 1px solid #D5DAE2; border-radius: 9px; padding: 9px 11px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0 14px; align-items: end; }
.stack { display: flex; flex-direction: column; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 13.5px; margin-bottom: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; }
.check small { display: block; font-weight: 500; }
.hint { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #D5DAE2; background: var(--surface); border-radius: 99px; padding: 5px 12px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; transition: all .12s; }
.chip:hover { border-color: #AEB7C4; color: var(--ink); }
.chip .ic { width: 14px; height: 14px; }
.chips-radio .chip { padding: 0; }
.chips-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chips-radio .chip span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; }
.chips-radio input:checked + span { background: var(--ink); color: #fff; }
.chips-radio .chip:has(input:checked) { border-color: var(--ink); }
.chips-radio input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.seg { display: flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--ink-2); text-align: center; transition: background .12s; white-space: nowrap; }
.seg span .ic { width: 15px; height: 15px; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 32, 51, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); }

.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.outcome { cursor: pointer; }
.outcome input { position: absolute; opacity: 0; pointer-events: none; }
.outcome > span { --oc: var(--primary); display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px; border: 1.5px solid #D5DAE2; border-radius: 12px; transition: border-color .12s, background .12s; }
.outcome .ic { width: 20px; height: 20px; color: var(--oc); margin-bottom: 4px; }
.outcome b { font-size: 13.5px; }
.outcome small { color: var(--ink-3); line-height: 1.35; }
.o-purchase > span { --oc: var(--green); } .o-demo > span { --oc: var(--violet); } .o-followup > span { --oc: var(--primary); } .o-cancel > span { --oc: var(--red); }
.outcome:hover > span { border-color: #AEB7C4; }
.outcome input:checked + span { border-color: var(--oc); background: color-mix(in srgb, var(--oc) 7%, white); box-shadow: 0 0 0 1px var(--oc); }
.outcome input:focus-visible + span { outline: 2px solid var(--oc); outline-offset: 2px; }
.outcome-panel { margin-top: 16px; padding: 16px; background: #F7F9FA; border-radius: 12px; border: 1px solid var(--line-2); animation: rise .18s ease-out; }
.outcome-panel .field:last-child { margin-bottom: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.person input { position: absolute; opacity: 0; pointer-events: none; }
.person span { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #D5DAE2; background: var(--surface); padding: 4px 12px 4px 4px; border-radius: 99px; font-weight: 700; font-size: 13px; cursor: pointer; }
.person input:checked + span { border-color: var(--violet); background: var(--violet-soft); }
.person input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.swatches { display: flex; gap: 8px; }
.swatches input { position: absolute; opacity: 0; }
.swatches i { display: block; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatches input:checked + i { box-shadow: 0 0 0 2px var(--ink); }

.contact-state { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 16px 0 2px; margin: 4px 0 16px; }
.cadence-preview { display: flex; gap: 8px; margin-bottom: 14px; }
.cadence-preview div { flex: 1; border: 1px dashed #C5CCD7; border-radius: 10px; padding: 9px 11px; display: flex; gap: 9px; align-items: center; }
.cadence-preview div:first-child { border: 1.5px solid var(--primary); background: var(--primary-soft); }
.cadence-preview .ic { color: var(--primary); width: 16px; height: 16px; }
.cadence-preview span { display: flex; flex-direction: column; line-height: 1.25; }
.cadence-preview b { font-size: 13px; }
.cadence-preview small { color: var(--ink-3); }
.state-panel .response { padding-top: 2px; }

/* ---------- Modals ---------- */
.modal { border: 0; padding: 0; border-radius: 18px; width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow-pop); color: var(--ink); }
.modal-lg { width: min(720px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(23, 32, 51, .42); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-body { padding: 22px 24px 0; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.modal-head p { font-size: 13.5px; margin-top: 2px; }
.modal-foot { position: sticky; bottom: 0; background: var(--surface); display: flex; justify-content: flex-end; gap: 8px; padding: 14px 0 20px; margin-top: 6px; border-top: 1px solid var(--line-2); }
.form-error { background: var(--red-soft); color: #9B2C25; font-weight: 600; font-size: 13.5px; padding: 10px 12px; border-radius: 9px; margin-bottom: 14px; }
.form-error a { text-decoration: underline; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 700; display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; }
.toast .ic { color: #5FD4C9; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error .ic { color: #FF9C94; }

/* ---------- Auth ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; background: radial-gradient(1000px 520px at 80% -10%, rgba(63, 193, 190, .28), transparent 60%), linear-gradient(130deg, #18233F 0%, #12304A 55%, #0E4A55 100%); }
.auth-card { width: min(420px, 100%); background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-pop); }
.auth-card .brand { color: var(--ink); padding: 0 0 26px; }
.auth-card h1 { font-size: 24px; }
.auth-card > p { margin: 4px 0 20px; }
.alert { padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px; margin-bottom: 16px; }
.alert-error { background: var(--red-soft); color: #9B2C25; }


/* ---------- Facebook leads ---------- */
.steps { list-style: none; margin: 0; padding: 8px 0; }
.steps > li { padding: 16px 24px 18px; position: relative; }
.steps > li + li { border-top: 1px solid var(--line-2); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--line-2); color: var(--ink-3); flex-shrink: 0; }
.steps li.current .step-num { background: var(--primary); color: #fff; box-shadow: 0 0 0 5px var(--primary-soft); }
.steps li.done .step-num { background: var(--green); color: #fff; }
.steps li.done .step-num .ic { width: 15px; height: 15px; }
.steps li:not(.current):not(.done) h2 { color: var(--ink-3); }
.step-body { padding-left: 42px; max-width: 760px; }
.step-body > p { color: var(--ink-2); margin-bottom: 12px; font-size: 13.5px; }
.perm-list code { display: inline-block; margin: 0 2px 4px 0; font-weight: 600; }
.advanced { margin-top: 14px; }
.advanced summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.field-label { font-weight: 700; font-size: 12.5px; color: var(--ink-2); margin: 14px 0 8px; }
.page-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 12px; }
.page-opt input { position: absolute; opacity: 0; }
.page-opt span { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; border: 1.5px solid #D5DAE2; border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.page-opt img, .page-opt i { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--line-2); }
.page-opt small { color: var(--ink-3); }
.page-opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.page-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.kpi-text { font-size: 17px !important; letter-spacing: -.01em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 0 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.two-col .panel { margin-bottom: 18px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1.3fr .8fr auto; gap: 0 14px; align-items: end; }
.sub { font-size: 13.5px; font-weight: 800; margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.pad > p.small { margin-bottom: 10px; }
.copy { display: flex; gap: 6px; }
.copy input { font-size: 12.5px !important; background: #F7F9FA !important; color: var(--ink-2) !important; }
.mini-steps { margin: 8px 0 10px; padding-left: 20px; font-size: 13px; color: var(--ink-2); }
.mini-steps li { margin-bottom: 4px; }
.alert { display: flex; gap: 8px; align-items: flex-start; }
.alert .ic { margin-top: 1px; }
.alert-warn { background: var(--amber-soft); color: #7A4A0A; font-weight: 500; font-size: 13px; }
.switch { position: relative; display: inline-block; width: 40px; height: 23px; cursor: pointer; vertical-align: middle; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: absolute; inset: 0; background: #CDD3DD; border-radius: 99px; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(17px); }
.switch input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }
td select { padding: 6px 30px 6px 10px !important; font-size: 13px !important; min-width: 150px; width: auto !important; }
.table tr.dim td select, .table tr.dim .switch { opacity: 1; }
.log { list-style: none; margin: 0; padding: 0 20px 14px; }
.log li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; border-top: 1px solid var(--line-2); }
.log li:first-child { border-top: 0; }
.log a:hover { color: var(--primary); }
.log-dot { width: 8px; height: 8px; border-radius: 50%; background: #B8C0CC; flex-shrink: 0; }
.log-import .log-dot { background: var(--green); } .log-error .log-dot { background: var(--red); } .log-webhook .log-dot { background: var(--violet); } .log-connect .log-dot { background: var(--primary); }
.log-error { color: #9B2C25; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.btn.danger { color: var(--red); }
.meta-origin { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #2F5BB7; background: #EAF0FB; padding: 2px 9px; border-radius: 99px; }
@media (max-width: 1100px) { .two-col, .grid-4 { grid-template-columns: 1fr; } .step-body { padding-left: 0; } }

.modal-sm { width: min(420px, calc(100vw - 24px)); }
.modal-sm .modal-head { margin-bottom: 8px; }
.confirm-text { color: var(--ink-2); font-size: 14px; margin-bottom: 8px; }
.btn-danger { background: var(--red) !important; color: #fff; }
.btn-danger:hover { background: #A2342E !important; }

/* ---------- Demo results (dashboard) ---------- */
.results { border-color: color-mix(in srgb, var(--violet) 28%, var(--line)); }
.results .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.count { background: var(--violet); color: #fff; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 99px; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-sm .ic { width: 14px; height: 14px; }
.res-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.res { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px; border-radius: 11px; align-items: start; }
.res + .res { border-top: 1px solid var(--line-2); }
.res-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.res-top a:hover strong { color: var(--primary); }
.res-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 2px 9px 2px 7px; border-radius: 99px; }
.res-chip .ic { width: 13px; height: 13px; }
.r-won { background: var(--green-soft); color: #1B6B48; }
.r-follow { background: var(--primary-soft); color: var(--primary-ink); }
.r-lost { background: var(--red-soft); color: #9B2C25; }
.r-cancel { background: var(--line-2); color: var(--ink-2); }
.res-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.res-notes { margin: 8px 0 0; padding: 9px 12px; background: #F6F5FD; border-left: 3px solid var(--violet); border-radius: 0 9px 9px 0; font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.proj .res-notes { margin: 0; font-size: 13px; }
.proj .res-notes b { font-size: 12px; color: var(--violet); }
.res-empty { font-size: 12.5px; color: var(--ink-3); font-style: italic; margin-top: 6px; }
.res-actions { display: flex; gap: 6px; }
@media (max-width: 860px) { .res { grid-template-columns: auto 1fr; } .res-actions { grid-column: 2; } .head-actions .link { display: none; } }

/* ---------- Particles ---------- */
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.auth-page > .particles { position: fixed; }
.auth-card { position: relative; z-index: 1; }

/* ---------- Dashboard hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; margin: 10px 0 20px; border-radius: 18px; color: #fff; padding: 26px 28px 22px;
  background: radial-gradient(900px 300px at 85% -40%, rgba(63, 193, 190, .35), transparent 60%), linear-gradient(120deg, #18233F 0%, #12304A 55%, #0E4A55 100%);
  display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr); gap: 24px; align-items: end; box-shadow: 0 10px 30px rgba(18, 48, 74, .18); }
.hero > :not(.particles) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -.03em; }
.hero-date { color: #7FD8D2; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.hero-text > p:last-child { color: rgba(255, 255, 255, .72); margin-top: 6px; font-size: 14px; }
.hero-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hk { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 13px; padding: 12px 14px; backdrop-filter: blur(6px); display: flex; flex-direction: column; min-width: 0; }
.hk span { font-size: 12px; color: rgba(255, 255, 255, .65); font-weight: 600; }
.hk strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.hk small { font-size: 11.5px; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-main { background: rgba(63, 193, 190, .22); border-color: rgba(127, 216, 210, .45); }
.hk-late { color: #FFD38A !important; font-weight: 700; }

/* ---------- Settings sections ---------- */
.settings-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 14px; }
.settings-nav { position: sticky; top: 76px; }
.settings-nav h1 { font-size: 22px; margin: 4px 0 14px 4px; }
.settings-nav nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { display: flex; gap: 11px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); transition: background .12s; }
.settings-nav a:hover { background: var(--line-2); }
.settings-nav a .ic { margin-top: 2px; color: var(--ink-3); }
.settings-nav a span { display: flex; flex-direction: column; line-height: 1.3; }
.settings-nav a b { font-size: 13.5px; color: var(--ink); }
.settings-nav a small { color: var(--ink-3); }
.settings-nav a.active { background: var(--surface); box-shadow: var(--shadow), inset 3px 0 0 var(--primary); }
.settings-nav a.active .ic { color: var(--primary); }
.settings-main { min-width: 0; }
.settings-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 6px 0 16px; flex-wrap: wrap; }
.settings-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.settings-head p { margin-top: 3px; max-width: 640px; }
.settings-main .panel.flush .table th { background: #FAFBFC; }
#account form { padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) { .q-src { display: none; } .q-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; } }
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .settings-shell { grid-template-columns: 1fr; gap: 8px; }
  .settings-nav { position: static; }
  .settings-nav nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .settings-nav a small { display: none; }
  .settings-nav a { white-space: nowrap; }
  .dash, .client-grid { grid-template-columns: 1fr; }
  .q-row { grid-template-columns: 1fr auto; }
  .q-step { grid-column: 1; }
  .q-src { display: none; }
  .q-contact { grid-row: 1; grid-column: 2; }
  .q-row .step-actions { grid-column: 2; grid-row: 2; }
  .q-note { margin-left: 0; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-pop); }
  .only-mobile { display: inline-grid !important; }
  .panel-head .muted.small { display: none; }
  .row-item .grow { flex: 1 1 calc(100% - 60px); }
  .kanban { grid-template-columns: repeat(6, 240px); }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .search kbd, .topbar .btn-primary span { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .outcomes { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .table th:nth-child(2), .table td:nth-child(2), .table th:nth-child(3), .table td:nth-child(3) { display: none; }
  .calendar { font-size: 11px; }
  .cal-day { min-height: 74px; }
  .ev { font-size: 10px; padding: 2px 4px; }
  .cal-title h1 { min-width: 0; font-size: 20px; }
  .cadence-preview { flex-direction: column; }
  .q-row .step-actions .btn span { display: none; }
  .row-item { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
