/* Studio CRM — warm greige + emerald, built for interior & architecture studios */
:root {
  --bg: #F3F0EB; --surface: #FFFFFF; --surface-2: #FAF8F5; --surface-3: #F0ECE6;
  --line: #E7E1D9; --line-2: #D8D0C4;
  --ink: #2A2622; --ink-2: #5C554D; --ink-3: #8C847A;
  --brand: #3E5A4C; --brand-d: #2E4639; --brand-l: #E4ECE7; --brand-xl: #F1F6F3;
  --warn: #B07A1C; --warn-l: #FBF1DD; --bad: #B4443A; --bad-l: #FBE9E6; --good: #2F7D5B; --good-l: #E3F3EB; --info-l: #E8EEF9;
  --radius: 12px; --radius-s: 8px;
  --shadow: 0 1px 2px rgba(42,38,34,.05), 0 4px 14px rgba(42,38,34,.04);
  --shadow-l: 0 12px 40px rgba(42,38,34,.18);
  --font: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --side: 236px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-family: var(--display); font-size: 27px; font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: 16px; } h3 { font-size: 14.5px; }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.grow { flex: 1; } .hide { display: none !important; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: #26332C; color: #D8E0DA; padding: 18px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-family: var(--display); font-size: 19px; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: #C4BBB2; color: #26332C; display: grid; place-items: center; font: 600 13px var(--font); letter-spacing: .02em; }
.firm-chip { margin: 0 6px 14px; padding: 9px 11px; background: rgba(255,255,255,.07); border-radius: 10px; font-size: 12.5px; }
.firm-chip b { display: block; color: #fff; font-size: 13.5px; font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: #C3CEC6; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.nav a.on { background: #fff; color: var(--brand-d); }
.nav .sep { margin: 14px 11px 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #7E8E84; }
.nav .badge-n { margin-left: auto; background: #E9B44C; color: #3b2a05; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.side .me { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; }
.side .me b { color: #fff; display: block; font-size: 13.5px; }
.side .me form { margin-top: 8px; }
.side .me button { background: none; border: 0; color: #9FB0A5; padding: 0; cursor: pointer; font: inherit; }
.side .me button:hover { color: #fff; text-decoration: underline; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: rgba(243,240,235,.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar .burger { display: none; }
.search { position: relative; flex: 1; max-width: 420px; }
.search input { width: 100%; padding: 9px 12px 9px 36px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 16px; height: 16px; }
.content { padding: 24px 28px 60px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }
.impersonate { background: #2A2622; color: #F3F0EB; padding: 8px 28px; display: flex; gap: 12px; align-items: center; font-size: 13px; }
.impersonate button { background: #F3F0EB; color: #2A2622; border: 0; border-radius: 6px; padding: 3px 10px; cursor: pointer; font: inherit; font-weight: 600; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 13.5px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); }
.btn.danger { color: var(--bad); border-color: #E6C3BE; }
.btn.danger:hover { background: var(--bad-l); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn.wa:hover { background: #178a45; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, label.lbl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.in, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); outline: none; }
.in:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62,90,76,.15); }
.field textarea { min-height: 84px; resize: vertical; }
.hint { font-size: 12px; color: var(--ink-3); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
select.in.sm, .in.sm { padding: 6px 9px; border-radius: 8px; font-size: 13px; width: auto; }

/* ---------- cards / tables ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > .hd { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding: 15px 18px 0; }
.card, .stack, .two > *, .grid > * { min-width: 0; }
.card > .hd p { margin: 0; }
.card > .bd { padding: 14px 18px 18px; }
.card.flush > .bd { padding: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t th.sortable { cursor: pointer; user-select: none; } .t th.sortable:hover { color: var(--ink); }
.t th.right, .t td.right { text-align: right; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--surface-2); }
.t tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--line-2); }
.t .lead-name { font-weight: 600; color: var(--ink); } .t .lead-name:hover { color: var(--brand); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #999); flex: none; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.chip.s-new { background: #EAF0FB; color: #2c4b8c; } .chip.s-contacted { background: #F1ECFA; color: #5b3fa0; } .chip.s-qualified { background: #E4F3F1; color: #14766b; }
.chip.s-visit { background: #FBF1DD; color: #8a5a0c; } .chip.s-proposal { background: #FCE9DD; color: #a24d12; } .chip.s-negotiation { background: #FBE4EE; color: #a02358; }
.chip.s-won { background: var(--good-l); color: var(--good); } .chip.s-lost { background: var(--bad-l); color: var(--bad); }
.chip.hot { background: var(--bad-l); color: var(--bad); } .chip.warm { background: var(--warn-l); color: var(--warn); } .chip.cold { background: var(--info-l); color: #34569a; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: none; }
.avatar.lg { width: 46px; height: 46px; font-size: 16px; }
.flash { padding: 11px 15px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.flash.ok { background: var(--good-l); color: #1f5a41; } .flash.err { background: var(--bad-l); color: #8d2f27; } .flash.warn { background: var(--warn-l); color: #7a5412; }
.callout { background: var(--brand-xl); border: 1px solid #D3E0D8; border-radius: 10px; padding: 12px 15px; color: var(--ink-2); }
.callout.warn { background: var(--warn-l); border-color: #F0D9A8; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--surface-3); padding: 2px 6px; border-radius: 5px; word-break: break-all; }
pre.code { padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; margin: 0; line-height: 1.55; }
.copy-box { display: flex; gap: 8px; align-items: stretch; }
.copy-box code { flex: 1; padding: 8px 10px; display: block; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; } .tabs a.on { color: var(--brand-d); border-color: var(--brand); }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; box-shadow: var(--shadow); }
.kpi .l { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-family: var(--display); font-size: 31px; font-weight: 500; letter-spacing: -.02em; margin: 3px 0 2px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .s { font-size: 12.5px; color: var(--ink-3); }
.kpi.accent { background: var(--brand); border-color: var(--brand); } .kpi.accent .l, .kpi.accent .s { color: #C9DAD0; } .kpi.accent .v { color: #fff; }
.kpi .good { color: var(--good); font-weight: 600; } .kpi .bad { color: var(--bad); font-weight: 600; }
.tip { cursor: help; border-bottom: 1px dotted var(--ink-3); }

/* range picker */
.rangebar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rangebar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 9px; }
.funnel .fr { display: grid; grid-template-columns: 148px 1fr 86px; gap: 10px; align-items: center; font-size: 13px; }
.funnel .bar { height: 22px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.funnel .bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #5C7F6D); border-radius: 6px; min-width: 2px; }
.funnel .fr .n { text-align: right; font-variant-numeric: tabular-nums; } .funnel .fr .n small { color: var(--ink-3); }

/* mini bars (breakdowns) */
.mini { display: flex; flex-direction: column; gap: 9px; }
.mini .mr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 44px; gap: 10px; align-items: center; font-size: 13px; }
.mini .mr span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .bar { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; } .mini .bar b { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.mini .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* charts */
.chart { width: 100%; position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .tt { position: absolute; pointer-events: none; background: #2A2622; color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, -110%); z-index: 5; opacity: 0; transition: opacity .1s; box-shadow: var(--shadow-l); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* attention lists */
.alist { list-style: none; margin: 0; padding: 0; }
.alist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.alist li:last-child { border: 0; }
.alist .t1 { font-weight: 600; } .alist .t2 { font-size: 12.5px; color: var(--ink-3); }

/* ---------- leads list ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filters .in { width: auto; }
.bulkbar { display: none; align-items: center; gap: 10px; padding: 10px 16px; background: var(--brand-xl); border-bottom: 1px solid #D3E0D8; flex-wrap: wrap; }
.bulkbar.on { display: flex; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); }

/* ---------- lead detail ---------- */
.lead-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.lead-head .meta { color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.stagebar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
.stagebar button { flex: 1; min-width: 96px; padding: 9px 8px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; font: 600 12.5px var(--font); color: var(--ink-3); cursor: pointer; }
.stagebar button:hover { border-color: var(--brand); color: var(--brand-d); }
.stagebar button.done { background: var(--brand-l); color: var(--brand-d); border-color: #C5D6CC; }
.stagebar button.cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.stagebar button.lost { flex: 0 0 auto; } .stagebar button.lost.cur { background: var(--bad); border-color: var(--bad); }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 7px 12px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px 44px; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); }
.timeline .dot svg { width: 15px; height: 15px; }
.timeline .dot.call { color: #1d6fb8; border-color: #bcd6ee; } .timeline .dot.whatsapp, .timeline .dot.message { color: #1fa855; border-color: #b9e3c9; }
.timeline .dot.email { color: #7c4dd6; border-color: #d8c9f2; } .timeline .dot.stage { color: var(--brand); border-color: #C5D6CC; background: var(--brand-xl); }
.timeline .dot.touch { color: #c0561b; border-color: #f1cdb4; background: #FDF2EA; } .timeline .dot.visit, .timeline .dot.meeting { color: #9a6a0e; border-color: #ecd49b; }
.timeline .who { font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.timeline .who b { color: var(--ink); }
.timeline .body { white-space: pre-wrap; word-break: break-word; }
.timeline .bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 9px 12px; display: inline-block; max-width: 100%; }
.timeline .bubble.out { background: #E7F4EC; border-color: #cfe7d8; border-radius: 12px 4px 12px 12px; }
.timeline li.sys .body { color: var(--ink-3); font-size: 13px; }
.composer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 12px; }
.composer .types { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.composer .types label { cursor: pointer; }
.composer .types input { display: none; }
.composer .types span { display: inline-block; padding: 5px 12px; border-radius: 99px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--surface); }
.composer .types input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.task { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border: 0; }
.task button.chk { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2); background: var(--surface); cursor: pointer; flex: none; margin-top: 1px; padding: 0; display: grid; place-items: center; color: #fff; }
.task.done button.chk { background: var(--good); border-color: var(--good); } .task.done .tt1 { text-decoration: line-through; color: var(--ink-3); }
.task .due.over { color: var(--bad); font-weight: 600; }
.attr .kv { grid-template-columns: 96px 1fr; font-size: 13px; }

/* ---------- kanban ---------- */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; }
.col { flex: 0 0 276px; background: var(--surface-3); border-radius: var(--radius); padding: 10px; max-height: calc(100vh - 190px); display: flex; flex-direction: column; }
.col.over { outline: 2px dashed var(--brand); outline-offset: -3px; }
.col .ch { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 10px; }
.col .ch b { font-size: 13px; } .col .ch .cnt { background: var(--surface); border-radius: 99px; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.col .ch .val { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.col .cards { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 40px; flex: 1; }
.kc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: grab; box-shadow: var(--shadow); }
.kc:hover { border-color: var(--line-2); } .kc.drag { opacity: .4; }
.kc .n1 { font-weight: 600; display: block; color: var(--ink); } .kc .n1:hover { color: var(--brand); text-decoration: none; }
.kc .l2 { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 7px; }
.kc .foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.kc .foot .v { margin-left: auto; font-weight: 600; color: var(--ink-2); }
.kc .due { color: var(--bad); font-weight: 600; }
.kc.fresh { border-left: 3px solid var(--warn); }

/* ---------- dialog / toast ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; box-shadow: var(--shadow-l); width: min(560px, calc(100vw - 28px)); color: var(--ink); }
dialog::backdrop { background: rgba(38,34,30,.45); backdrop-filter: blur(2px); }
dialog .dh { padding: 18px 22px 0; display: flex; align-items: center; } dialog .dh h2 { font-size: 18px; flex: 1; }
dialog .db { padding: 14px 22px 22px; } dialog .df { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-3); }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #2A2622; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-l); max-width: 340px; animation: up .25s ease; }
.toast a { color: #BFE0CF; font-weight: 600; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth .art { background: #26332C; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(196,187,178,.12); }
.auth .art h2 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.12; letter-spacing: -.02em; max-width: 12em; }
.auth .art ul { list-style: none; padding: 0; margin: 28px 0 0; color: #B8C6BD; display: grid; gap: 10px; } .auth .art li::before { content: "—  "; color: #C4BBB2; }
.auth .form { display: grid; place-items: center; padding: 36px; background: var(--bg); }
.auth .box { width: min(400px, 100%); } .auth .box h1 { margin-bottom: 6px; }
.auth form { display: grid; gap: 14px; margin-top: 22px; }

/* public lead form */
.pf { max-width: 560px; margin: 0 auto; padding: 36px 20px 60px; }
.pf h1 { font-size: 32px; margin-bottom: 8px; }
.pf .card { padding: 22px; margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 264px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-l); }
  .topbar { padding: 11px 14px; } .topbar .burger { display: inline-flex; }
  .content { padding: 18px 14px 60px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .page-head > .grow { display: none; }
  .kpis[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .auth { grid-template-columns: 1fr; } .auth .art { display: none; }
  .funnel .fr { grid-template-columns: 110px 1fr 70px; }
  .kv { grid-template-columns: 96px 1fr; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi .v { font-size: 25px; } h1 { font-size: 23px; } }
@media print { .side, .topbar, .btn { display: none !important; } .shell { display: block; } }
