*{box-sizing:border-box}:root{--bg:#0f0f12;--surface:#18181c;--surface-hover:#1f1f24;--border:#2a2a30;--text:#e4e4e7;--text-muted:#71717a;--accent:#3b82f6;--accent-hover:#2563eb;--success:#22c55e;--warning:#eab308;--chart:#3b82f6;--card-r:12px;--card-p:18px;--card-gap:16px}[data-theme=light]{--bg:#f4f4f5;--surface:#fff;--surface-hover:#f4f4f5;--border:#e4e4e7;--text:#18181b;--text-muted:#71717a;--accent:#2563eb;--accent-hover:#1d4ed8;--success:#16a34a;--warning:#ca8a04;--chart:#2563eb}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;line-height:1.5}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.container{max-width:1400px;margin:0 auto;padding:1rem}@media (min-width:768px){.container{padding:1.5rem}}.header{position:-webkit-sticky;position:sticky;top:0;z-index:100;background:var(--surface);border-bottom:1px solid var(--border);padding:.5rem 1rem}@media (max-width:767px){.header{position:relative}}.header-inner{max-width:1400px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem}.header-title{font-size:1.125rem;font-weight:700;margin:0;white-space:nowrap}.header-title-account{font-weight:500;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px;display:inline-block;vertical-align:bottom}.filter-bar .header-inner{flex-direction:column;align-items:stretch}.filter-bar-row{gap:.5rem 1rem;width:100%}.filter-bar-actions-right,.filter-bar-row{display:flex;flex-wrap:wrap;align-items:center}.filter-bar-actions-right{gap:.5rem .75rem;margin-left:auto}.filter-bar-admin-link,.filter-bar-version{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.filter-bar-admin-link{text-decoration:none;opacity:.85}.filter-bar-admin-link:hover{text-decoration:underline;color:var(--text)}.filter-bar-toggle{white-space:nowrap}@media (min-width:768px){.filter-bar .header-inner{align-items:flex-start}.filter-bar-row{width:100%}}.filter-bar-filters{width:100%;margin-top:.5rem;padding-top:.75rem;border-top:1px solid var(--border)}.filter-bar-grid{display:flex;flex-direction:column;gap:.75rem;margin-bottom:.75rem}.filter-bar-grid-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.5rem 1rem}.filter-bar-item{display:flex;flex-direction:column;gap:.2rem}.filter-bar-range-readonly .filter-bar-range-value{font-size:.875rem;color:var(--text)}.filter-bar-label{font-size:.75rem;color:var(--text-muted);font-weight:500}.filter-bar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.filter-bar-sync-label{font-size:.8125rem;color:var(--text-muted);margin-left:.5rem}.filter-bar-sync-custom{display:inline-flex;align-items:center;gap:.35rem}.filter-bar-sync-date{width:8.5rem}.filter-bar-count,.filter-bar-sync-message{font-size:.8125rem;color:var(--text-muted)}.header-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-left:auto}.header-sync-message{font-size:.8125rem;color:var(--text-muted)}.select{padding:.4rem .6rem;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.875rem;cursor:pointer;min-width:0}.select:focus{outline:none;border-color:var(--accent)}.input,input[type=password],input[type=text],textarea.input{padding:.4rem .6rem;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.875rem;width:100%;max-width:100%}.input:focus,input[type=password]:focus,input[type=text]:focus,textarea.input:focus{outline:none;border-color:var(--accent)}.btn{padding:.4rem .75rem;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.875rem;cursor:pointer}.btn:hover{background:var(--surface-hover)}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-danger{background:var(--danger-bg,#3d1a1a);border-color:var(--danger-border,#c53030);color:var(--danger-text,#feb2b2)}.btn-danger:hover{background:var(--danger-hover,#742a2a)}.toggle-switch{display:inline-flex;align-items:center;position:relative;width:2.5rem;height:1.25rem;flex-shrink:0}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;inset:0;background:var(--border);border-radius:1.25rem;transition:background .2s}.toggle-slider:before{content:"";position:absolute;height:1rem;width:1rem;left:2px;bottom:2px;background:var(--surface);border-radius:50%;transition:transform .2s;box-shadow:0 1px 2px rgba(0,0,0,.2)}.toggle-switch input:checked+.toggle-slider{background:var(--accent)}.toggle-switch input:checked+.toggle-slider:before{transform:translateX(1.25rem)}.toggle-switch input:focus-visible+.toggle-slider{outline:2px solid var(--accent);outline-offset:2px}.filter-bar-switch-row{display:flex;align-items:center;gap:.5rem}.filter-bar-switch-row .filter-bar-label{flex:1 1;min-width:0;white-space:normal;font-size:.8125rem}.filter-bar-switch-row .toggle-switch{flex-shrink:0}.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:200}.drawer{position:fixed;top:0;right:0;bottom:0;width:min(100%,360px);background:var(--surface);border-left:1px solid var(--border);z-index:201;overflow-y:auto;padding:1rem}.drawer h3{font-size:.875rem;font-weight:600;margin:1rem 0 .5rem;color:var(--text-muted)}.drawer h3:first-child{margin-top:0}.chips{display:flex;flex-wrap:wrap;gap:.35rem}.chip{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .5rem;background:var(--surface-hover);border:1px solid var(--border);border-radius:4px;font-size:.75rem}.chip-remove{cursor:pointer;padding:0;background:none;border:none;color:var(--text-muted);font-size:1rem;line-height:1}.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:1rem}.cards-section{display:flex;justify-content:center;width:100%}.cards-section>*{width:100%}.cardsGrid,.kpi-grid{display:grid;grid-gap:var(--card-gap);gap:var(--card-gap);grid-template-columns:repeat(auto-fit,minmax(140px,1fr));justify-content:center}.kpi-cards-custom{display:flex;flex-direction:column;gap:var(--card-gap)}.kpi-cards-custom__row{display:grid;grid-gap:var(--card-gap);gap:var(--card-gap);grid-template-columns:repeat(auto-fill,minmax(140px,1fr));align-items:stretch;justify-content:center}.kpi-cards-custom__row .kpi-card,.kpi-cards-custom__row .statBlock{min-width:0}.kpi-card-wrapper{border-radius:var(--card-r);transition:box-shadow .15s ease,border-color .15s ease}.kpi-card-wrapper--selected{box-shadow:0 0 0 2px var(--chart,#3b82f6);border-radius:var(--card-r)}.kpi-card-wrapper:focus-visible{outline:2px solid var(--chart,#3b82f6);outline-offset:2px}@media (min-width:640px){.kpi-cards-custom__row{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}@media (min-width:1024px){.kpi-cards-custom__row{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}@media (min-width:640px){.cardsGrid.cardsGrid--leads,.kpi-grid.kpi-funnel-leads{grid-template-columns:repeat(3,1fr)}.cardsGrid.cardsGrid--engagement,.kpi-grid.kpi-funnel-engagement{grid-template-columns:repeat(4,1fr)}}@media (min-width:1024px){.cardsGrid.cardsGrid--engagement,.cardsGrid.cardsGrid--leads,.kpi-grid.kpi-funnel-engagement,.kpi-grid.kpi-funnel-leads{grid-template-columns:repeat(4,1fr)}}[data-theme=light] .cardsGrid.cardsGrid--engagement,[data-theme=light] .cardsGrid.cardsGrid--leads,[data-theme=light] .kpi-grid.kpi-funnel-engagement,[data-theme=light] .kpi-grid.kpi-funnel-leads{grid-template-columns:repeat(3,1fr)}@media (max-width:639px){.cardsGrid,.kpi-grid.kpi-funnel-engagement,.kpi-grid.kpi-funnel-leads{grid-template-columns:1fr}}.kpi-card,.statBlock{background:var(--surface);border:1px solid var(--border);border-radius:var(--card-r);padding:var(--card-p);box-shadow:0 2px 8px rgba(0,0,0,.06)}[data-theme=light] .kpi-card,[data-theme=light] .statBlock{box-shadow:0 1px 3px rgba(0,0,0,.08)}.kpi-card__title,.statBlock__title{font-size:13px;color:var(--text-muted);margin-bottom:6px}.kpi-card__value,.statBlock__value{font-size:clamp(22px,2.5vw,32px);line-height:1.1;font-weight:600;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--text);margin-bottom:12px}.kpi-card__subGrid,.statBlock__subGrid{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:baseline;gap:0}.statBlock__subGrid--row.statBlock__subGrid--n2,.statBlock__subGrid--row.statBlock__subGrid--n3,.statBlock__subGrid--row.statBlock__subGrid--n4{justify-content:space-between}.statBlock__subGrid--row.statBlock__subGrid--n3 .mini:not(:first-child),.statBlock__subGrid--row.statBlock__subGrid--n4 .mini:not(:first-child){border-left:1px solid var(--border,hsla(0,0%,100%,.15));padding-left:10px;margin-left:10px}[data-theme=light] .statBlock__subGrid--row.statBlock__subGrid--n3 .mini:not(:first-child),[data-theme=light] .statBlock__subGrid--row.statBlock__subGrid--n4 .mini:not(:first-child){border-left-color:rgba(0,0,0,.12)}.statBlock__subGrid--row .mini{flex:0 1 auto;min-width:0}.mini__label{font-size:12px;color:var(--text-muted);margin-bottom:2px}.mini__value{font-size:14px;font-weight:500;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--text)}.kpi-value{font-size:1.25rem;font-weight:600;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.kpi-label{font-size:.75rem;color:var(--text-muted);margin-top:.2rem}.kpi-funnel{grid-template-columns:repeat(1,1fr)}.kpi-card-funnel{min-height:88px}.kpi-card-corners .kpi-sub-row,.kpi-sub{font-size:.75rem;color:var(--text-muted);margin-top:.35rem}.kpi-card-corners .kpi-sub-row{display:flex;justify-content:space-between;gap:.5rem}.kpi-sub-left,.kpi-sub-right{flex:0 1 auto}.kpi-funnel-engagement,.kpi-funnel-leads{grid-template-columns:repeat(2,1fr)}@media (min-width:640px){.kpi-funnel-leads{grid-template-columns:repeat(3,1fr)}.kpi-funnel-engagement{grid-template-columns:repeat(4,1fr)}}@media (min-width:1024px){.kpi-funnel-leads{grid-template-columns:repeat(6,1fr)}}.funnel-chart-card{overflow:hidden}.funnel-chart-title{font-size:1rem;font-weight:600;margin:0 0 1rem;color:var(--text)}.funnel-chart-empty{margin:0;color:var(--text-muted);font-size:.875rem}.funnel-chart-layout{display:grid;grid-template-columns:1fr 2fr;grid-gap:1.5rem;gap:1.5rem;align-items:start;min-height:200px}@media (max-width:768px){.funnel-chart-layout{grid-template-columns:1fr}}.funnel-visual-wrap{display:flex;justify-content:center;padding:.25rem 0}.funnel-visual{display:flex;flex-direction:column;gap:.35rem;width:100%;max-width:220px}.funnel-visual-step{display:flex;flex-direction:column;align-items:center;gap:.2rem}.funnel-visual-bar{height:24px;width:var(--step-width,100%);min-width:12%;border-radius:8px;background:linear-gradient(135deg,var(--chart) 0,var(--accent-hover) 100%);box-shadow:0 2px 6px rgba(0,0,0,.12);transition:width .35s ease}.funnel-visual-label{display:flex;justify-content:space-between;width:100%;font-size:.75rem;color:var(--text-muted);padding:0 2px}.funnel-visual-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:75%}.funnel-visual-num{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:600;color:var(--text)}.funnel-barchart-wrap{min-width:0}.funnel-barchart,.funnel-barchart-wrap{display:flex;flex-direction:column;gap:.5rem}.funnel-barchart-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,2fr) auto;align-items:center;grid-gap:.75rem;gap:.75rem;font-size:.8125rem}.funnel-barchart-label{color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.funnel-barchart-bar-wrap{height:22px;background:var(--surface-hover);border-radius:6px;overflow:hidden}.funnel-barchart-bar{height:100%;min-width:4px;border-radius:6px;background:linear-gradient(90deg,var(--chart) 0,var(--accent-hover) 100%);transition:width .35s ease}.funnel-barchart-value{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:600;color:var(--text);min-width:4ch;text-align:right}.funnel-barchart-axis{display:flex;justify-content:space-between;padding:.25rem 0 0;margin-left:0;font-size:.7rem;color:var(--text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.funnel-chart{display:flex;flex-direction:column;gap:.5rem}.funnel-step-label .num{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.th-sort{background:none;border:none;padding:0;color:inherit;font:inherit;cursor:pointer;text-align:left;width:100%}.th-sort:hover{color:var(--accent)}.table tbody tr.selected td{background:rgba(59,130,246,.15)}.ads-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:768px){.ads-table td:first-child,.ads-table th:first-child{position:-webkit-sticky;position:sticky;left:0;background:var(--surface);z-index:1;box-shadow:2px 0 4px rgba(0,0,0,.1)}.ads-table tr.selected td:first-child{background:rgba(59,130,246,.15)}}.chart-wrap{height:260px;margin-top:.5rem}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:.875rem}.table td,.table th{text-align:left;padding:.5rem .75rem;border-bottom:1px solid var(--border)}.table th{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.table tbody tr{cursor:pointer}.table tbody tr:hover td{background:var(--surface-hover)}.raw-insights-card{padding:0;overflow:hidden}.raw-insights-scroll{max-height:min(800px,calc(100vh - 10rem));overflow:auto;-webkit-overflow-scrolling:touch}.raw-insights-table{font-size:.75rem}.raw-insights-table thead th{position:-webkit-sticky;position:sticky;top:0;z-index:1;background:var(--surface);border-bottom:2px solid var(--border);white-space:nowrap;padding:.35rem .5rem;box-shadow:0 1px 0 var(--border)}.raw-insights-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px;padding:.35rem .5rem}.num{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-align:right}.tabs{display:flex;gap:.25rem;margin-bottom:.75rem;border-bottom:1px solid var(--border)}.tab{padding:.5rem .75rem;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--text-muted);font-size:.875rem;cursor:pointer}.tab:hover{color:var(--text)}.tab.active{color:var(--accent);font-weight:500;border-bottom-color:var(--accent)}.delivery-grid{display:grid;grid-gap:1rem;gap:1rem}@media (min-width:640px){.delivery-grid{grid-template-columns:1fr 1fr}}.delivery-bar{height:8px;background:var(--surface-hover);border-radius:4px;overflow:hidden}.delivery-bar-fill{height:100%;background:var(--accent);border-radius:4px}.skeleton{background:linear-gradient(90deg,var(--surface-hover) 25%,var(--border) 50%,var(--surface-hover) 75%);background-size:200% 100%;animation:skeleton 1.2s ease-in-out infinite;border-radius:4px}@keyframes skeleton{0%{background-position:200% 0}to{background-position:-200% 0}}.multiselect-wrap{margin-bottom:.75rem}.multiselect-input{width:100%;padding:.4rem .5rem;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.875rem;margin-bottom:.35rem}.multiselect-input:focus{outline:none;border-color:var(--accent)}.multiselect-list{max-height:160px;overflow-y:auto;border:1px solid var(--border);border-radius:6px}.multiselect-option{display:flex;align-items:center;gap:.5rem;padding:.35rem .5rem;cursor:pointer;font-size:.8125rem}.multiselect-option:hover{background:var(--surface-hover)}.multiselect-option input{margin:0}.toggle-row{display:flex;align-items:center;justify-content:space-between;margin:.75rem 0;font-size:.875rem}.switch,.toggle-row label{cursor:pointer}.switch{position:relative;width:36px;height:20px;background:var(--border);border-radius:10px}.switch.on{background:var(--accent)}.switch-knob{position:absolute;top:2px;left:2px;width:16px;height:16px;background:#fff;border-radius:50%;transition:transform .2s}.switch.on .switch-knob{transform:translateX(16px)}