:root {
  --ink: #191A31;
  --muted: #535B68;
  --line: #D7D7D7;
  --paper: #ffffff;
  --canvas: #FAFAFA;
  --mint: #CDCBF6;
  --green: #2A28A5;
  --lime: #CDCBF6;
  --coral: #1C8485;
  --peach: #D1EEEE;
  --yellow: #8F9AAA;
  --lavender: #CDCBF6;
  --shadow: 0 12px 30px rgba(42, 40, 165, .10);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button { color: inherit; }
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 20px; display: flex; flex-direction: column; background: #191A31; color: white; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 30px; }
.brand > div:last-child { display: grid; line-height: 1; }
.brand strong { font: 800 22px/1 "Manrope", sans-serif; letter-spacing: -.8px; }
.brand small { color: #CDCBF6; font-size: 10px; letter-spacing: 1.45px; text-transform: uppercase; margin-top: 7px; }
.brand-mark { width: 30px; height: 30px; position: relative; transform: rotate(-12deg); }
.brand-mark span { position: absolute; inset: 2px 7px; border: 3px solid #D1EEEE; border-radius: 50%; }
.brand-mark span:last-child { transform: rotate(90deg); }
.main-nav { display: grid; gap: 7px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #CDCBF6; text-align: left; padding: 12px 13px; border-radius: 10px; display: flex; align-items: center; gap: 11px; cursor: pointer; font-weight: 600; transition: .2s ease; }
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item.active { background: #fff; color: #2A28A5; box-shadow: 0 8px 18px rgba(25,26,49,.16); }
.nav-icon { width: 20px; font-size: 17px; text-align: center; }
.nav-badge { margin-left: auto; color: #2A28A5; background: #CDCBF6; border-radius: 20px; font-size: 10px; padding: 2px 7px; }
.sidebar-spacer { flex: 1; }
.pathos-card { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); border-radius: 14px; padding: 16px; margin-bottom: 17px; }
.pathos-card p { color: #CDCBF6; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin: 9px 0 4px; }
.pathos-card strong { font: 700 13px "Manrope", sans-serif; }
.pathos-card small { display: block; color: #CDCBF6; line-height: 1.45; margin-top: 5px; }
.pathos-ring { display: block; width: 44px; height: 44px; object-fit: contain; }
.user-row { padding: 15px 5px 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 36px 1fr 24px; gap: 9px; align-items: center; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; background: #D1EEEE; color: #191A31; border-radius: 50%; font-weight: 700; font-size: 12px; }
.user-row strong, .user-row small { display: block; font-size: 11px; }
.user-row small { color: #CDCBF6; margin-top: 3px; }
.user-row button { border: 0; background: transparent; color: #CDCBF6; cursor: pointer; }
.main { min-width: 0; }
.topbar { height: 88px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 0 34px; display: flex; align-items: center; position: sticky; top: 0; z-index: 10; }
.title-wrap p { margin: 0 0 4px; color: #535B68; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.title-wrap h1 { margin: 0; font: 700 21px "Manrope", sans-serif; letter-spacing: -.4px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.account-switch { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #F4F4FA; }
.account-switch a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 7px; font-size: 14px; font-weight: 700; line-height: 1; }
.account-switch a.active { color: #FFFFFF; background: #191A31; box-shadow: 0 2px 5px rgba(25,26,49,.16); }
.icon-button, .export-button, .filter-icon { border: 1px solid var(--line); background: white; border-radius: 9px; height: 38px; cursor: pointer; }
.icon-button { width: 38px; position: relative; }
.icon-button span { position: absolute; width: 6px; height: 6px; background: var(--coral); border-radius: 50%; top: 8px; right: 8px; border: 1px solid white; }
.export-button { padding: 0 15px; font-size: 12px; font-weight: 700; }
.relationship-button { height: 38px; border: 0; border-radius: 9px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; background: #191A31; color: white; cursor: pointer; font-size: 14px; font-weight: 700; white-space: nowrap; }
.relationship-button:hover { background: #2A28A5; }
.menu-button { display: none; border: 0; background: transparent; font-size: 22px; margin-right: 12px; }
.filterbar { padding: 16px 34px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.25fr 1.2fr 1fr 1fr 1.1fr 38px; gap: 9px; background: #F4F4FA; }
.filterbar label { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px 6px; min-width: 0; }
.filterbar label span { display: block; font-size: 8px; color: #535B68; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.filterbar select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 600; padding: 2px 0 0; cursor: pointer; }
.filter-icon { font-size: 17px; }
.view { padding: 29px 34px 20px; min-height: calc(100vh - 220px); }
.page-intro { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 21px; }
.page-intro h2 { margin: 0 0 5px; font: 700 24px "Manrope"; letter-spacing: -.8px; }
.page-intro p { color: var(--muted); margin: 0; font-size: 12px; }
.updated { margin-left: auto; color: #535B68 !important; font-size: 10px !important; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 10px; margin-bottom: 15px; }
.card { background: var(--paper); border: 1px solid #D7D7D7; border-radius: 14px; box-shadow: 0 2px 3px rgba(25,26,49,.03); }
.kpi-card { padding: 16px; min-height: 126px; position: relative; overflow: hidden; }
.kpi-card .label { color: #535B68; font-size: 10px; font-weight: 700; line-height: 1.25; min-height: 36px; }
.kpi-card .value { font: 700 25px/1.15 "Manrope"; letter-spacing: -1px; margin: 8px 0 4px; white-space: nowrap; }
.kpi-card .delta { font-size: 9px; color: #535B68; }
.delta b { color: #17684f; background: #dff4e9; padding: 2px 5px; border-radius: 6px; margin-right: 3px; }
.delta b.down { color: #af4c3b; background: #fae5e0; }
.grid-2 { display: grid; grid-template-columns: 1.65fr 1fr; gap: 15px; margin-bottom: 15px; }
.grid-2.equal { grid-template-columns: 1fr 1fr; }
.panel { padding: 20px; min-width: 0; }
.panel-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 17px; }
.panel-header h3 { margin: 0; font: 700 14px "Manrope"; }
.panel-header p { margin: 4px 0 0; color: #535B68; font-size: 10px; }
.panel-header .chip { margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 5px 8px; font-size: 9px; font-weight: 700; background: #F4F4FA; color: #535B68; white-space: nowrap; }
.chip.green { background: var(--mint); color: var(--green); }
.chip.coral { background: var(--peach); color: #1C8485; }
.funnel { display: flex; align-items: stretch; height: 190px; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.funnel-step { flex: 1; height: 100%; text-align: center; min-width: 88px; display: flex; flex-direction: column; justify-content: flex-end; }
.funnel-bar { height: calc(var(--h) - 36px); min-height: 54px; flex-shrink: 0; background: var(--c, #CDCBF6); border-radius: 7px 7px 3px 3px; display: flex; align-items: flex-start; justify-content: center; padding-top: 9px; position: relative; }
.funnel-step strong { font: 700 15px "Manrope"; }
.funnel-step:nth-child(n+4) .funnel-bar strong { color: #FFFFFF; }
.funnel-step small { display: block; margin-top: 7px; color: #535B68; font-size: 8px; line-height: 1.2; }
.opportunity { background: #191A31; color: white; padding: 20px; overflow: hidden; position: relative; }
.opportunity:after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(205,203,246,.28); border-radius: 50%; right: -80px; bottom: -90px; box-shadow: 0 0 0 25px rgba(205,203,246,.06), 0 0 0 50px rgba(205,203,246,.035); }
.eyebrow { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #535B68; }
.opportunity .eyebrow { color: var(--lime); }
.opportunity h3 { font: 700 17px/1.25 "Manrope"; margin: 10px 0 8px; max-width: 250px; }
.opportunity p { color: #ECF0F5; font-size: 10px; line-height: 1.5; max-width: 300px; }
.opportunity strong { color: var(--lime); }
.text-link { border: 0; background: transparent; padding: 0; color: inherit; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; }
.opportunity .text-link { color: var(--lime); margin-top: 9px; }
.bars { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; font-size: 10px; }
.bar-row > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar-track { height: 7px; background: #ECF0F5; border-radius: 10px; overflow: hidden; }
.bar-fill { width: var(--w); height: 100%; background: var(--bar, var(--green)); border-radius: inherit; transform-origin: left; animation: grow .65s ease both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-row strong { text-align: right; font-size: 10px; }
.insight-list { display: grid; gap: 8px; }
.insight-row { width: 100%; text-align: left; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 11px; display: grid; grid-template-columns: 30px 1fr 16px; gap: 9px; align-items: center; cursor: pointer; transition: .2s; }
.insight-row:hover, .benefit-row:hover { border-color: #2A28A5; transform: translateY(-1px); box-shadow: var(--shadow); }
.insight-symbol { width: 30px; height: 30px; display: grid; place-items: center; background: var(--mint); color: var(--green); border-radius: 9px; }
.insight-row strong { display: block; font-size: 10px; }
.insight-row small { display: block; color: #535B68; font-size: 8px; margin-top: 3px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { text-align: left; font-size: 8px; color: #535B68; text-transform: uppercase; letter-spacing: .7px; padding: 0 10px 10px; }
td { padding: 11px 10px; border-top: 1px solid #D7D7D7; }
td strong { font-size: 10px; }
.progress-cell { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.progress-cell .bar-track { flex: 1; }
.benefit-row { cursor: pointer; transition: .2s; }
.benefit-name { display: flex; align-items: center; gap: 8px; }
.benefit-dot { width: 8px; height: 8px; background: var(--dot, var(--green)); border-radius: 3px; }
.engagement-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(290px, .9fr); gap: 15px; align-items: start; }
.log-panel { overflow: hidden; }
.log-filters { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 9px; margin-bottom: 18px; }
.log-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 700; }
.log-filters select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: white; color: var(--ink); font-size: 14px; }
.engagement-table { min-width: 760px; }
.engagement-table th:first-child { width: 145px; }
.engagement-table th:nth-child(2) { width: 120px; }
.engagement-table th:nth-child(3) { width: 175px; }
.engagement-table tr.selected td { background: #F4F4FA; }
.event-time { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.event-dot { width: 10px; height: 10px; border-radius: 50%; background: #8F9AAA; flex: 0 0 auto; }
.event-dot.employee { background: #1C8485; }
.event-dot.pathos { background: #6764EE; }
.actor { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 6px; background: #ECF0F5; color: #535B68; font-weight: 700; }
.actor.employee { background: #D1EEEE; color: #1C8485; }
.actor.pathos { background: #CDCBF6; color: #2A28A5; }
.session-snapshot { overflow: hidden; position: sticky; top: 105px; }
.snapshot-title { padding: 17px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.snapshot-title h3 { margin: 0; font: 700 16px "Manrope", sans-serif; }
.snapshot-title .chip { margin-left: auto; }
.snapshot-section { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.snapshot-section:last-child { border-bottom: 0; }
.snapshot-section > span { display: block; color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.snapshot-section strong { display: block; font-size: 14px; }
.snapshot-section small { display: block; color: var(--muted); font-size: 14px; margin-top: 5px; line-height: 1.4; }
.snapshot-section dl { display: grid; grid-template-columns: 92px 1fr; gap: 7px 10px; margin: 0; font-size: 14px; }
.snapshot-section dt { color: var(--muted); }
.snapshot-section dd { margin: 0; font-weight: 600; }
.guardrail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; }
.guardrail-list li:before { content: "✓"; color: #1C8485; font-weight: 800; margin-right: 8px; }
.positive-text { color: #17684f; }
.split-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.split-stat > div { background: white; padding: 16px; }
.split-stat small { color: #535B68; font-size: 9px; }
.split-stat strong { display: block; font: 700 20px "Manrope"; margin-top: 5px; }
.donut-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.donut { width: 140px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#2A28A5 0 49%, #6764EE 49% 66%, #1C8485 66% 78%, #243B5B 78% 88%, #8F9AAA 88% 95%, #D7D7D7 95%); display: grid; place-items: center; }
.donut:after { content: "$693k\A utilized"; white-space: pre; width: 88px; aspect-ratio: 1; background: white; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 700 13px/1.35 "Manrope"; }
.legend { display: grid; gap: 8px; }
.legend-row { display: flex; align-items: center; gap: 7px; font-size: 9px; }
.legend-row i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.legend-row strong { margin-left: auto; }
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.journey > div { padding: 14px 10px; background: #F4F4FA; border-radius: 9px; border-bottom: 3px solid var(--c, var(--green)); }
.journey strong { display: block; font: 700 18px "Manrope"; }
.journey span { font-size: 8px; color: #535B68; }
.question-list { display: grid; gap: 7px; }
.question { display: flex; gap: 10px; align-items: center; font-size: 10px; padding: 9px 0; border-bottom: 1px solid #D7D7D7; }
.question:last-child { border-bottom: 0; }
.question b { margin-left: auto; color: var(--green); }
.bundle-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.bundle { background: #F4F4FA; padding: 14px; border-radius: 10px; border: 1px solid #D7D7D7; }
.bundle h4 { margin: 0 0 7px; font: 700 11px "Manrope"; }
.bundle p { font-size: 9px; color: #535B68; line-height: 1.5; min-height: 28px; }
.bundle strong { font-size: 18px; }
.bundle small { font-size: 8px; color: #535B68; margin-left: 3px; }
.affinity { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 155px; }
.affinity-node { width: 78px; height: 78px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; text-align: center; font-size: 9px; font-weight: 700; border: 1px solid #6764EE; }
.affinity-node.alt { background: #D1EEEE; border-color: #2EBFC0; }
.affinity-line { width: 95px; border-top: 2px dashed #8F9AAA; position: relative; }
.affinity-line b { position: absolute; left: 50%; transform: translate(-50%,-50%); top: 0; background: white; padding: 3px 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--green); }
.insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.network-card { margin-bottom: 15px; }
.network-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: -3px 0 12px; color: var(--muted); font-size: 14px; }
.network-legend span { display: inline-flex; align-items: center; gap: 7px; }
.network-legend span > i { width: 9px; height: 9px; border-radius: 50%; background: var(--legend); flex: 0 0 auto; }
.network-legend .connection-key { margin-left: auto; }
.network-legend .connection-key > i { width: 35px; height: 0; border-radius: 0; border-top: 4px solid #8F9AAA; background: transparent; }
.network-scroll { width: 100%; overflow-x: auto; padding-bottom: 3px; }
.cooccurrence-network { display: block; width: 100%; min-width: 960px; height: auto; }
.network-link { fill: none; stroke: #8F9AAA; stroke-linecap: round; opacity: .18; stroke-width: 1.5; transition: opacity .2s ease; }
.network-link.strength-2 { opacity: .28; stroke-width: 3; }
.network-link.strength-3 { opacity: .48; stroke-width: 5; }
.cooccurrence-network:hover .network-link { opacity: .12; }
.cooccurrence-network:hover .network-link.strength-3 { opacity: .58; }
.network-column text { fill: var(--ink); font-family: "DM Sans", sans-serif; font-size: 15px; font-weight: 600; }
.network-column .network-heading { fill: var(--muted); font-family: "Manrope", sans-serif; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.network-node circle { stroke: white; stroke-width: 3; }
.insight-card { padding: 20px; cursor: pointer; transition: .2s; position: relative; overflow: hidden; }
.insight-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.insight-card .insight-symbol { margin-bottom: 14px; }
.insight-card h3 { font: 700 15px "Manrope"; margin: 0 0 7px; }
.insight-card p { color: #535B68; font-size: 10px; line-height: 1.55; max-width: 85%; }
.supporting-metric { display: inline-block; font: 700 19px "Manrope"; margin: 7px 0 12px; color: var(--green); }
.action-box { background: #F4F4FA; border-radius: 9px; padding: 10px 12px; font-size: 9px; line-height: 1.45; }
.action-box b { display: block; text-transform: uppercase; color: #535B68; font-size: 8px; margin-bottom: 3px; }
.privacy-note { margin: 0 34px 25px; border-top: 1px solid var(--line); padding: 14px 2px; display: flex; align-items: center; gap: 9px; color: #535B68; font-size: 9px; }
.privacy-note p { margin: 0; }
.detail-drawer { position: fixed; width: min(430px, 92vw); height: 100vh; right: 0; top: 0; z-index: 51; background: #FAFAFA; box-shadow: -20px 0 50px rgba(42,40,165,.18); padding: 36px 28px; transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; }
.detail-drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(25,26,49,.28); backdrop-filter: blur(2px); z-index: 50; opacity: 0; pointer-events: none; transition: .3s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-close { border: 1px solid var(--line); background: white; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; float: right; }
.drawer-hero { padding-top: 35px; }
.drawer-hero .eyebrow { color: var(--green); }
.drawer-hero h2 { margin: 8px 0; font: 700 24px/1.15 "Manrope"; letter-spacing: -.7px; }
.drawer-hero > p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.drawer-metric { background: #2A28A5; color: white; border-radius: 13px; padding: 18px; margin: 20px 0; }
.drawer-metric strong { display: block; color: var(--lime); font: 700 27px "Manrope"; }
.drawer-metric span { font-size: 10px; color: #ECF0F5; }
.drawer-section { border-top: 1px solid var(--line); padding: 18px 0; }
.drawer-section h3 { margin: 0 0 10px; font: 700 12px "Manrope"; }
.drawer-section p, .drawer-section li { font-size: 10px; color: #535B68; line-height: 1.55; }
.drawer-section ul { padding-left: 16px; }
.primary-button { border: 0; background: var(--green); color: white; font-size: 10px; font-weight: 700; padding: 11px 15px; border-radius: 9px; cursor: pointer; }
.setup-form { display: grid; gap: 15px; margin-top: 22px; }
.setup-form label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 700; }
.setup-form input, .setup-form select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: white; color: var(--ink); font: 500 14px "DM Sans", sans-serif; outline: none; }
.setup-form input:focus, .setup-form select:focus { border-color: #6764EE; box-shadow: 0 0 0 3px rgba(103,100,238,.12); }
.setup-form .primary-button { justify-self: start; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #2A28A5; color: white; padding: 10px 18px; border-radius: 24px; font-size: 11px; z-index: 60; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty-state { padding: 50px; text-align: center; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; background: #D1EEEE; color: #1C8485; font-size: 14px; font-weight: 700; }
.status-pill.watch { background: #F4F4FA; color: #535B68; }
.status-pill.action { background: #fae5e0; color: #af4c3b; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.benchmark-list { display: grid; gap: 16px; }
.benchmark-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.benchmark-row:last-child { border-bottom: 0; padding-bottom: 0; }
.benchmark-row span { color: var(--muted); }
.benchmark-row strong { text-align: right; }
.benchmark-row .positive { color: #17684f; }
.account-context { padding: 0 13px 14px; color: #8F9AAA; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }

/* Accessibility: no rendered dashboard copy is smaller than 14px. */
.brand small,
.nav-badge,
.pathos-card p,
.pathos-card strong,
.pathos-card small,
.avatar,
.user-row strong,
.user-row small,
.title-wrap p,
.export-button,
.filterbar label span,
.filterbar select,
.page-intro p,
.updated,
.kpi-card .label,
.kpi-card .delta,
.panel-header h3,
.panel-header p,
.chip,
.funnel-step small,
.eyebrow,
.opportunity p,
.text-link,
.bar-row,
.bar-row strong,
.insight-row strong,
.insight-row small,
table,
th,
td strong,
.split-stat small,
.donut:after,
.legend-row,
.journey span,
.question,
.bundle h4,
.bundle p,
.bundle small,
.affinity-node,
.insight-card p,
.action-box,
.action-box b,
.privacy-note,
.drawer-hero > p,
.drawer-metric span,
.drawer-section h3,
.drawer-section p,
.drawer-section li,
.primary-button,
.toast { font-size: 14px !important; }

@media (max-width: 1200px) {
  .filterbar { grid-template-columns: repeat(3, 1fr); }
  .filter-icon { position: absolute; right: 8px; margin-top: 5px; }
}
@media (max-width: 1050px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .export-button { display: none; }
}
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); transition: .3s; width: 232px; }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: block; }
  .topbar { padding: 0 18px; }
  .filterbar { padding: 13px 18px; overflow-x: auto; grid-template-columns: repeat(5, minmax(145px, 1fr)) 38px; }
  .filter-icon { position: static; }
  .view { padding: 24px 18px; }
  .privacy-note { margin-inline: 18px; }
  .grid-2, .grid-2.equal { grid-template-columns: 1fr; }
  .engagement-layout { grid-template-columns: 1fr; }
  .session-snapshot { position: static; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .icon-button { display: none; }
  .account-switch a { padding: 7px 9px; }
  .topbar { height: 76px; }
  .title-wrap p { display: none; }
  .title-wrap h1 { font-size: 18px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 4px; }
  .updated { margin-left: 0; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-card .value { font-size: 21px; }
  .funnel { overflow-x: auto; }
  .funnel-step { min-width: 75px; }
  .bar-row { grid-template-columns: 105px 1fr 35px; }
  .journey, .bundle-grid, .insights-grid { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .split-stat { grid-template-columns: 1fr; }
  .log-filters { grid-template-columns: 1fr; }
  .relationship-button { position: fixed; right: 18px; bottom: 18px; z-index: 30; box-shadow: 0 8px 24px rgba(25,26,49,.24); }
}
