/* Autowhat Console */
:root {
  --ink: #14202a; --ink2: #3b4a55; --mut: #6b7a85; --line: #e4eaee; --line2: #eef2f5;
  --bg: #f4f7f9; --card: #fff; --side: #0b1418; --side2: #13212a;
  --brand: #0b8fa8; --brand2: #22d3ee; --brandbg: #e7f7fa;
  --up: #0f9d6e; --upbg: #e6f6ef; --down: #d64545; --downbg: #fdecec; --warn: #b7791f; --warnbg: #fdf5e6; --info: #2563eb; --infobg: #eaf1fe;
  --c1: #0b8fa8; --c2: #7c3aed; --c3: #f59e0b; --c4: #10b981; --c5: #ef4444; --c6: #3b82f6; --c7: #ec4899; --c8: #64748b;
  --r: 14px; --sh: 0 1px 2px rgba(16, 32, 42, .04), 0 4px 16px -8px rgba(16, 32, 42, .10);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 14.5px/1.45 "Source Sans 3", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
button { font: inherit; color: inherit; }
a { color: var(--brand); }
.muted { color: var(--mut); }
.mono { font-family: "IBM Plex Mono", monospace; }
.err { color: var(--down); margin: 10px 0 0; }
svg { flex: none; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; color: inherit; }
.brand b { font-weight: 700; }
.brand__mark { width: 28px; height: 28px; border-radius: 9px; background: radial-gradient(circle at 34% 30%, #d9f6fb 0 9%, #22d3ee 34%, #0e7490 100%); box-shadow: 0 0 16px rgba(34, 211, 238, .45); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 15% -10%, #c9eef5 0%, transparent 60%), radial-gradient(800px 500px at 110% 110%, #e6dcff 0%, transparent 55%), var(--bg); }
.login__box { width: min(400px, 100%); padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -30px rgba(16, 32, 42, .35); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.login__box h1 { font-size: 26px; margin-top: 10px; }
.login__box p { margin: 0; }
.login__box label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink2); }
input, textarea, select { font: inherit; color: var(--ink); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 143, 168, .15); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .15s, border-color .15s; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: #cdd8de; background: #f8fafb; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; padding: 11px 16px; }
.btn--primary:hover { background: #22323d; border-color: #22323d; }
.btn--ghost { background: transparent; }
.btn--sm { padding: 6px 10px; font-size: 12.5px; }
.link { background: none; border: 0; padding: 0; color: #9fb0ba; cursor: pointer; font-size: 13px; }
.link:hover { color: #fff; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* layout */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 20px 14px; background: var(--side); color: #e6edf1; }
.side .brand { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #b6c4cc; font-weight: 500; font-size: 14px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.nav button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav button:hover { background: var(--side2); color: #fff; }
.nav button.on { background: #1b2d37; color: #fff; box-shadow: inset 3px 0 0 var(--brand2); }
.nav em { margin-left: auto; font-style: normal; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--brand2); color: #062c33; font-size: 11.5px; font-weight: 700; text-align: center; }
.nav em.live { background: transparent; color: #4fd1a1; display: flex; align-items: center; gap: 5px; padding: 0; }
.nav em.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4fd1a1; box-shadow: 0 0 0 3px rgba(79, 209, 161, .2); animation: pulse 1.6s infinite; }
.nav small { margin: 12px 10px 4px; font: 600 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #5f7480; }
.side__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 0; border-top: 1px solid #1d2c35; }
.health { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #8ea0aa; }
.health i { width: 8px; height: 8px; border-radius: 50%; background: #8ea0aa; }
.health.ok i { background: #4fd1a1; } .health.bad i { background: #f87171; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(79, 209, 161, 0); } }

.main { min-width: 0; padding: 22px 28px 48px; }
.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bar h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.bar p { margin: 4px 0 0; }
.bar__tools { display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: #e9eef1; }
.seg button { padding: 7px 13px; border: 0; border-radius: 8px; background: transparent; font-weight: 600; font-size: 13px; color: var(--ink2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 32, 42, .12); }
.view { display: flex; flex-direction: column; gap: 18px; animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; min-width: 0; }
.card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card__h h3 { font-size: 15.5px; font-weight: 700; }
.card__h .muted { font-size: 13px; }
.card__h a, .more { font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; background: none; border: 0; color: var(--brand); padding: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { position: relative; padding: 16px 18px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); overflow: hidden; cursor: default; }
.kpi button.kpi__hit { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; }
.kpi.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 143, 168, .12), var(--sh); }
.kpi > span:not(.delta) { display: block; font-size: 13px; font-weight: 600; color: var(--mut); }
.kpi b { display: block; margin: 6px 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.kpi small { font-size: 12.5px; color: var(--mut); }
.kpi svg.spark { position: absolute; right: 12px; bottom: 12px; width: 92px; height: 34px; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.delta.up { color: var(--up); background: var(--upbg); } .delta.down { color: var(--down); background: var(--downbg); } .delta.flat { color: var(--mut); background: var(--line2); }

/* insights */
.ins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ins__c { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ins__c:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(16, 32, 42, .35); }
.ins__i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.ins__i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ins__c.up .ins__i { color: var(--up); background: var(--upbg); } .ins__c.down .ins__i { color: var(--down); background: var(--downbg); }
.ins__c.warn .ins__i { color: var(--warn); background: var(--warnbg); } .ins__c.info .ins__i { color: var(--info); background: var(--infobg); }
.ins__c b { font-size: 15px; line-height: 1.3; }
.ins__c p { margin: 0; font-size: 13.5px; color: var(--mut); line-height: 1.45; }
.ins__head { display: flex; align-items: center; gap: 10px; }
.ins__head .tag { margin-left: auto; font: 600 10px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }

/* chart */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis { font: 500 11px "IBM Plex Mono", monospace; fill: #94a3ad; }
.chart .gridl { stroke: var(--line2); }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 10px; background: #0f1b22; color: #fff; font-size: 12.5px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transform: translate(-50%, -110%); white-space: nowrap; }
.tip b { display: block; margin-bottom: 4px; font-size: 12px; color: #9fb0ba; font-weight: 600; }
.tip div { display: flex; justify-content: space-between; gap: 14px; } .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 3px; border-radius: 2px; }
.legend i.dash { background: repeating-linear-gradient(90deg, #a7b4bc 0 4px, transparent 4px 7px) !important; }
.metric-tabs { display: flex; gap: 6px; }
.metric-tabs button { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.metric-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { padding: 8px 10px; text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--mut); border-bottom: 1px solid var(--line); white-space: nowrap; cursor: default; }
.tbl th[data-sort] { cursor: pointer; } .tbl th[data-sort]:hover { color: var(--ink); }
.tbl th.num, .tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafcfd; }
.tbl .pg { display: flex; flex-direction: column; min-width: 0; max-width: min(420px, 34vw); }
.tbl .pg b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl .pg a { font: 500 11.5px "IBM Plex Mono", monospace; color: var(--mut); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl .pg a:hover { color: var(--brand); }
.meter { display: inline-flex; align-items: center; gap: 8px; min-width: 110px; }
.meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; } .meter i b { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.scroll { overflow-x: auto; }
.search { width: 260px; max-width: 100%; padding: 8px 12px; font-size: 13.5px; }

/* bars */
.bars { display: flex; flex-direction: column; gap: 11px; }
.bars__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: 13.5px; }
.bars__r span { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars__r em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.bars__r em small { font-weight: 500; color: var(--mut); margin-left: 6px; }
.bars__r i { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.bars__r i b { display: block; height: 100%; border-radius: 4px; }
.dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* donut */
.donut { display: flex; align-items: center; gap: 20px; }
.donut svg { width: 140px; height: 140px; }
.donut .bars { flex: 1; }
.donut__c { font-size: 22px; font-weight: 700; fill: var(--ink); } .donut__l { font-size: 10px; fill: var(--mut); }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel__r { display: grid; grid-template-columns: 220px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 13.5px; }
.funnel__b { position: relative; height: 34px; border-radius: 8px; background: var(--line2); overflow: hidden; }
.funnel__b b { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(90deg, #0b8fa8, #22d3ee); display: flex; align-items: center; padding-left: 10px; color: #fff; font-weight: 700; font-size: 13px; min-width: 40px; }
.funnel__r em { font-style: normal; font-size: 12.5px; color: var(--mut); text-align: right; }
.funnel__r em.loss { color: var(--down); }

/* heatmap */
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font: 500 10.5px "IBM Plex Mono", monospace; color: #94a3ad; }
.heat i { aspect-ratio: 1.5; border-radius: 3px; background: var(--line2); }
.heat span { display: flex; align-items: center; }
.heat .hh { text-align: center; }

/* inbox */
.inbox { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; align-items: start; }
.inbox__list { padding: 0; overflow: hidden; }
.inbox__tools { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button em { font-style: normal; opacity: .7; margin-left: 4px; }
.inbox__items { max-height: calc(100vh - 290px); min-height: 300px; overflow-y: auto; }
.it { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line2); background: #fff; text-align: left; cursor: pointer; }
.it:hover { background: #f8fafb; } .it.on { background: var(--brandbg); box-shadow: inset 3px 0 0 var(--brand); }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.it b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it p { margin: 1px 0 0; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it time { font-size: 11.5px; color: var(--mut); white-space: nowrap; text-align: right; }
.it.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--brand2); vertical-align: 1px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill.new, .pill.open { color: #0b6d80; background: var(--brandbg); } .pill.contacted { color: var(--info); background: var(--infobg); }
.pill.qualified { color: #7c3aed; background: #f1eafe; } .pill.won, .pill.done { color: var(--up); background: var(--upbg); }
.pill.lost { color: var(--mut); background: var(--line2); } .pill.spam { color: var(--down); background: var(--downbg); }
.pill.kind { color: var(--ink2); background: var(--line2); font-weight: 600; }
.det { display: flex; flex-direction: column; gap: 16px; }
.det__h { display: flex; align-items: flex-start; gap: 14px; }
.det__h .av { width: 48px; height: 48px; font-size: 18px; }
.det__h h2 { font-size: 21px; }
.det__h p { margin: 3px 0 0; color: var(--mut); }
.det__acts { margin-left: auto; display: flex; gap: 8px; }
.statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.statuses button { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink2); }
.statuses button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.msg { margin: 0; padding: 14px 16px; border-radius: 12px; background: #f6f9fa; border: 1px solid var(--line2); white-space: pre-wrap; font: 14.5px/1.55 "Source Sans 3", sans-serif; }
.tr { display: flex; flex-direction: column; gap: 8px; }
.tr div { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; }
.tr .v { align-self: flex-end; background: #0f4c57; color: #e2fbff; border-bottom-right-radius: 4px; }
.tr .a { background: #f1f4f6; border-bottom-left-radius: 4px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.facts div { padding: 10px 12px; border-radius: 10px; background: #f6f9fa; }
.facts small { display: block; font-size: 11.5px; color: var(--mut); font-weight: 600; }
.facts b { font-size: 14px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.tl li { position: relative; font-size: 13.5px; }
.tl li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.tl li.lead::before { background: var(--brand); }
.tl time { display: block; font: 500 11px "IBM Plex Mono", monospace; color: var(--mut); }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { padding: 10px 12px; border-radius: 10px; background: #fffbea; border: 1px solid #f6e7b0; font-size: 13.5px; white-space: pre-wrap; }
.note time { display: block; font-size: 11.5px; color: var(--mut); margin-top: 4px; }
.addnote { display: flex; gap: 8px; } .addnote textarea { flex: 1; min-height: 42px; resize: vertical; }
.empty { padding: 40px 20px; text-align: center; color: var(--mut); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.sec-t { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); margin: 0 0 8px; }

/* live */
.livebig { display: flex; align-items: center; gap: 18px; }
.livebig b { font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.livebig .pulse { width: 14px; height: 14px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.minis { display: flex; align-items: flex-end; gap: 3px; height: 60px; }
.minis i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(#22d3ee, #0b8fa8); }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: grid; grid-template-columns: 70px 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.feed li:last-child { border-bottom: 0; }
.feed time { font: 500 11.5px "IBM Plex Mono", monospace; color: var(--mut); }
.feed .fi { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--line2); color: var(--ink2); }
.feed .fi svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feed .fi.lead { background: var(--upbg); color: var(--up); } .feed .fi.ev { background: var(--infobg); color: var(--info); }
.feed span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: #0f1b22; color: #fff; font-size: 13.5px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.skel { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, #eef2f5 25%, #f6f9fa 50%, #eef2f5 75%) 0 0 / 200% 100%; animation: skel 1.2s infinite; }
@keyframes skel { to { background-position: -200% 0; } }

@media (max-width: 1280px) { .ins { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2, .g21, .g12 { grid-template-columns: 1fr; } .inbox { grid-template-columns: 1fr; } .inbox__items { max-height: 420px; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; z-index: 10; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; overflow-x: auto; }
  .side .brand span:last-child, .side__foot .health, .nav small { display: none; }
  .nav { flex-direction: row; } .nav button { white-space: nowrap; padding: 8px 10px; } .nav button svg { display: none; }
  .side__foot { margin: 0; border: 0; padding: 0; }
  .main { padding: 16px 16px 40px; } .g3, .ins { grid-template-columns: 1fr; } .funnel__r { grid-template-columns: 1fr; } .donut { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
.tbl td:first-child { width: 100%; max-width: 0; }
.tbl .pg { max-width: 100%; }
.tbl td:first-child .pg b, .tbl td:first-child .pg a { display: block; }
.card__h { flex-wrap: wrap; }
.seg button { white-space: nowrap; }
@media (max-width: 560px) { .kpi svg.spark { display: none; } .bar__tools { width: 100%; justify-content: space-between; } .seg button { padding: 7px 9px; } .kpi b { font-size: 24px; } }
