.finance-root{--bg:#0a0f1a;--panel:#111827;--panel-2:#1a2332;--text:#f0f4fc;--muted:#94a3b8;--accent:#6366f1;--accent-2:#22d3ee;--border:#2d3748;--success:#34d399;--danger:#f87171;--warning:#fbbf24;--radius:12px;color:var(--text)}[data-theme=light] .finance-root{--bg:#f1f5f9;--panel:#ffffff;--panel-2:#eef2ff;--text:#0f172a;--muted:#64748b;--accent:#4f46e5;--accent-2:#0891b2;--border:#dbe3ef;--success:#059669;--danger:#dc2626;--warning:#d97706}.finance-root button,.finance-root input,.finance-root select{font:inherit}.dashboard{max-width:min(100%,1560px);margin:0 auto;padding:24px 16px 48px;width:100%;overflow-x:clip}.finance-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.finance-header-main{flex:1 1;min-width:min(100%,280px)}.finance-header-actions{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;gap:12px;margin-left:auto}.finance-header-field{display:flex;flex-direction:column;gap:4px;font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.finance-header-field select{background:var(--panel-2);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:8px 10px;min-width:120px}.finance-header-sync-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.finance-header-sync-btn{background:var(--accent);color:white;border:none;border-radius:8px;padding:8px 14px;cursor:pointer;font-weight:500;font-size:inherit;text-align:center;white-space:nowrap}.finance-header-sync-btn:disabled{opacity:.6;cursor:not-allowed}.finance-header-sync-btn--secondary{background:var(--panel-2);color:var(--text);border:1px solid var(--border)}.finance-header-sync-btn--secondary:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.finance-header h1{margin:0;font-size:1.75rem;letter-spacing:-.02em}.finance-header p{margin:6px 0 0;color:var(--muted);font-size:.95rem}.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:20px;padding:14px 16px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius)}.toolbar label{display:flex;flex-direction:column;gap:4px;font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.toolbar input,.toolbar select{background:var(--panel-2);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:8px 10px;min-width:140px}.toolbar-sync-btn{background:var(--accent);color:white;border:none;border-radius:8px;padding:8px 10px;min-width:140px;width:100%;cursor:pointer;font-weight:500;font-size:inherit;text-align:center;white-space:nowrap}.toolbar-sync-btn:disabled{opacity:.6;cursor:not-allowed}.toolbar-sync-actions{display:flex;flex-direction:column;gap:6px;min-width:140px}.toolbar-sync-btn--secondary{background:var(--panel-2);border:1px solid var(--border);color:var(--text)}.toolbar-sync-btn--secondary:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.sync-resume-hint{color:var(--warning)}.sync-panel{margin-bottom:20px;padding:14px 16px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius)}.sync-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.sync-panel-header h2{margin:0;font-size:.95rem;font-weight:600}.sync-panel-dismiss{padding:4px 10px;border:1px solid var(--border);border-radius:6px;background:var(--panel-2);color:var(--muted);cursor:pointer;font-size:.75rem}.sync-panel-dismiss:hover{color:var(--text);border-color:var(--accent)}.sync-progress-wrap{margin-bottom:12px}.sync-progress-meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:.78rem;color:var(--muted)}.sync-progress-bar{height:8px;border-radius:999px;background:var(--panel-2);overflow:hidden;border:1px solid var(--border);position:relative}.sync-progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent-2));transition:width .25s ease}.sync-progress-bar--indeterminate .sync-progress-fill--indeterminate{width:35%;animation:sync-indeterminate 1.2s ease-in-out infinite}@keyframes sync-indeterminate{0%{transform:translateX(-120%)}to{transform:translateX(320%)}}.sync-panel-error{margin-top:0;margin-bottom:10px}.sync-log{max-height:220px;overflow-y:auto;padding:10px 12px;border-radius:8px;background:var(--panel-2);border:1px solid var(--border);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;line-height:1.5}.sync-log-empty{margin:0;color:var(--muted)}.sync-log-line{display:flex;gap:10px}.sync-log-line+.sync-log-line{margin-top:4px}.sync-log-time{flex-shrink:0;color:var(--muted)}.sync-log-message{color:var(--text);word-break:break-word}.status{font-size:.85rem;color:var(--muted);margin-bottom:16px}.status.error{color:var(--danger)}.status.success{color:var(--success)}.kpi-section-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-bottom:10px;padding:12px 14px;background:linear-gradient(180deg,rgba(26,35,50,.95),rgba(17,24,39,.98));border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 8px 24px rgba(0,0,0,.18)}.finance-metrics-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:0 8px;min-height:28px}.finance-metrics-cache-hint{margin:0;padding:0;font-size:.76rem;color:var(--muted);line-height:1.4}.finance-metrics-cache-hint--empty{visibility:hidden}.finance-metrics-recompute-btn{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:5px 12px;border:none;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:.76rem;font-weight:500;cursor:pointer;transition:color .15s,background .15s}.finance-metrics-recompute-btn:hover:not(:disabled){color:var(--accent-2);background:color-mix(in srgb,var(--accent) 10%,transparent)}.finance-metrics-recompute-btn:disabled{opacity:.45;cursor:not-allowed}.finance-metrics-recompute-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.month-picker{position:relative;flex:1 1;display:flex;justify-content:center;min-width:0;max-width:320px}.month-picker-trigger{display:flex;align-items:center;gap:10px;width:100%;padding:10px 14px;border:1px solid rgba(99,102,241,.35);border-radius:999px;background:radial-gradient(120% 140% at 0 0,rgba(34,211,238,.12) 0,transparent 55%),radial-gradient(120% 140% at 100% 100%,rgba(99,102,241,.16) 0,transparent 55%),var(--panel-2);color:var(--text);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.month-picker-trigger:hover:not(:disabled){border-color:rgba(34,211,238,.55);box-shadow:0 0 0 1px rgba(34,211,238,.15),0 10px 28px rgba(34,211,238,.12);transform:translateY(-1px)}.month-picker-trigger:focus-visible{outline:2px solid var(--accent-2);outline-offset:2px}.month-picker-trigger:disabled{opacity:.55;cursor:not-allowed}.month-picker-trigger-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(99,102,241,.18);color:var(--accent-2);flex-shrink:0}.month-picker-trigger-text{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0;flex:1 1}.month-picker-trigger-label{font-size:1.05rem;font-weight:650;letter-spacing:-.02em;line-height:1.15}.month-picker-trigger-hint{font-size:.68rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.month-picker-chevron{flex-shrink:0;color:var(--muted);transition:transform .2s ease,color .18s ease}.month-picker--open .month-picker-chevron{transform:rotate(180deg);color:var(--accent-2)}.month-picker-dropdown{position:absolute;top:calc(100% + 10px);left:50%;z-index:40;width:min(100vw - 32px,300px);transform:translateX(-50%);padding:10px;border-radius:14px;border:1px solid rgba(99,102,241,.35);background:rgba(17,24,39,.96);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 18px 40px rgba(0,0,0,.35),0 0 0 1px rgba(34,211,238,.08);animation:month-picker-in .18s ease}@keyframes month-picker-in{0%{opacity:0;transform:translateX(-50%) translateY(-6px) scale(.98)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}.month-picker-list{max-height:min(52vh,340px);overflow-y:auto;padding-right:2px}.month-picker-list::-webkit-scrollbar{width:6px}.month-picker-list::-webkit-scrollbar-thumb{background:rgba(148,163,184,.35);border-radius:999px}.month-picker-skip-option{display:block;width:100%;margin-bottom:10px;padding:10px 12px;border:1px dashed rgba(248,113,113,.45);border-radius:10px;background:rgba(248,113,113,.08);color:var(--danger);cursor:pointer;font-size:.82rem;font-weight:600;text-align:left;transition:background .15s ease,border-color .15s ease}.month-picker-skip-option.month-picker-option--selected,.month-picker-skip-option:hover{background:rgba(248,113,113,.16);border-color:rgba(248,113,113,.65)}.month-picker-year-group+.month-picker-year-group{margin-top:12px;padding-top:12px;border-top:1px solid rgba(45,55,72,.85)}.month-picker-year{margin:0 0 8px;padding:0 4px;font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.month-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.month-picker-option{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:38px;padding:8px 6px;border:1px solid transparent;border-radius:10px;background:rgba(26,35,50,.85);color:var(--text);cursor:pointer;font-size:.82rem;font-weight:600;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}.month-picker-option:hover{border-color:rgba(34,211,238,.35);background:rgba(34,211,238,.08);color:var(--accent-2)}.month-picker-option--selected{border-color:rgba(99,102,241,.65);background:linear-gradient(135deg,rgba(99,102,241,.28),rgba(34,211,238,.16));color:white;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}.month-picker-option-check{opacity:.95}.kpi-month-nav-btn{display:inline-flex;align-items:center;gap:4px;padding:8px 12px;border:1px solid var(--border);border-radius:999px;background:var(--panel-2);color:var(--text);cursor:pointer;font-size:.78rem;font-weight:500;white-space:nowrap;flex-shrink:0}.kpi-month-nav-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.kpi-month-nav-btn:disabled{opacity:.45;cursor:not-allowed}.panel--summary-meters .kpi-grid{margin-bottom:0}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-bottom:24px}.kpi-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:16px;text-align:left;width:100%;color:inherit;position:relative;overflow:visible}.kpi-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px}.kpi-card-titles{flex:1 1;min-width:0}.kpi-card--clickable{cursor:pointer;transition:border-color .15s,box-shadow .15s}.kpi-card--clickable:hover{border-color:var(--accent);box-shadow:0 0 0 1px rgba(99,102,241,.25)}.kpi-card--active{border-color:var(--accent);box-shadow:0 0 0 2px rgba(99,102,241,.35)}.kpi-card-hint{margin:10px 0 0;font-size:.72rem;color:var(--muted)}.metrics-history-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.metrics-table--history{table-layout:fixed;width:100%;font-size:.7rem}.metrics-table--history .metrics-col-label{width:22%}.metrics-table--history .metrics-col-month{width:calc(78% / 12)}.metrics-table--history td,.metrics-table--history th{padding:5px 3px;white-space:normal;word-break:break-word;vertical-align:top;line-height:1.25}.metrics-table--history th{font-size:.62rem;letter-spacing:.02em;text-transform:none;cursor:pointer}.metrics-table--history td:first-child,.metrics-table--history th:first-child{position:static;text-align:left}.metrics-table-metric-cell{padding:4px 6px 4px 4px!important}.metrics-table-metric-btn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0;border:none;background:none;color:var(--accent);cursor:pointer;text-align:left;font:inherit}.metrics-table-metric-btn:hover .metrics-table-metric-label{text-decoration:underline}.metrics-table-metric-label{flex:1 1;min-width:0;font-size:.68rem;font-weight:500;line-height:1.2}.metric-sparkline{flex-shrink:0;margin-left:auto;opacity:.95}.metrics-cell-value{font-size:.68rem;font-weight:500}.metrics-cell-mom{font-size:.58rem;margin-top:2px}.metrics-table--history .metrics-cell-mom.pct-up{color:var(--success)}.metrics-table--history .metrics-cell-mom.pct-down{color:var(--danger)}.metrics-table--history .metrics-cell-mom.pct-neutral{color:var(--muted)}.history-hint{margin-top:0;margin-bottom:10px}.panel--history{overflow:hidden}.merchant-name-link{color:var(--accent);text-decoration:none}.merchant-name-link:hover{text-decoration:underline}.metrics-table-metric{cursor:pointer;font-weight:500;color:var(--accent);text-align:left!important}.metrics-table-metric:hover{text-decoration:underline}.metrics-table-row--active td{background:rgba(99,102,241,.1)}.metrics-table-col--selected{background:rgba(99,102,241,.08)}.kpi-card .title{font-size:.8rem;color:var(--muted);margin:0 0 4px;line-height:1.3}.kpi-card .subtitle{font-size:.68rem;color:var(--muted);opacity:.85;margin:0;line-height:1.25}.kpi-card .value{font-size:1.5rem;font-weight:600;letter-spacing:-.02em;margin:0}.kpi-card .comparisons{display:flex;gap:12px;margin-top:10px;font-size:.78rem}.comparison{display:flex;align-items:center;gap:4px}.comparison.up{color:var(--success)}.comparison.down{color:var(--danger)}.comparison.neutral{color:var(--muted)}.kpi-card-footer{margin-top:12px;padding-top:10px;border-top:1px solid var(--border)}.kpi-cac{display:flex;flex-direction:column;gap:6px}.kpi-cac-label{font-size:.65rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.kpi-cac-controls{display:flex;gap:6px;align-items:center}.kpi-cac-controls input{flex:1 1;min-width:0;background:var(--panel-2);border:1px solid var(--border);border-radius:6px;color:var(--text);padding:4px 8px;font-size:.75rem}.kpi-cac-controls button{flex-shrink:0;background:var(--accent);color:white;border:none;border-radius:6px;padding:4px 10px;font-size:.72rem;font-weight:500;cursor:pointer}.kpi-cac-controls button:disabled{opacity:.6;cursor:not-allowed}.kpi-ltv-cac{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.kpi-ltv-cac-label{font-size:.68rem;color:var(--muted)}.kpi-ltv-cac-badge{font-size:.68rem;font-weight:600;padding:3px 8px;border-radius:999px;letter-spacing:.02em}.kpi-ltv-cac-badge.good{color:var(--success);background:rgba(34,197,94,.12)}.kpi-ltv-cac-badge.bad{color:var(--danger);background:rgba(239,68,68,.12)}.kpi-ltv-cac-badge.neutral{color:var(--muted);background:var(--panel-2)}.kpi-metric-note{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border)}.kpi-metric-note-label{font-size:.8125rem;color:var(--muted)}.modal-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.55)}.modal{width:min(960px,100%);max-height:min(85vh,900px);display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.35)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px 12px}.modal-header h2{margin:0;font-size:1.15rem}.modal-subtitle{margin:6px 0 0;font-size:.85rem;color:var(--muted);line-height:1.45}.modal-close-btn{border:none;background:transparent;color:var(--muted);font-size:1.5rem;line-height:1;cursor:pointer;padding:0 4px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px 20px;border-top:1px solid var(--border)}.period-assignment-modal .status{padding:0 24px}.period-assignment-tabs{display:flex;gap:8px;padding:0 24px 12px}.period-assignment-tab{border:1px solid var(--border);background:transparent;color:var(--muted);border-radius:999px;padding:6px 14px;font-size:.82rem;cursor:pointer}.period-assignment-tab.is-active{color:var(--text);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}.period-assignment-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 24px 12px}.period-assignment-bulk-label{font-size:.82rem;color:var(--muted)}.period-assignment-table-wrap{overflow:auto;padding:0 24px 16px}.period-assignment-table{width:100%;border-collapse:collapse;font-size:.82rem}.period-assignment-table td,.period-assignment-table th{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.period-assignment-table th{color:var(--muted);font-weight:600}.period-assignment-table .month-picker{min-width:160px}.theplace-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 24px 16px}.theplace-kpi-card{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--panel-2)}.theplace-kpi-label{font-size:.78rem;color:var(--muted)}.theplace-kpi-value{font-size:1.35rem;letter-spacing:-.02em}.theplace-kpi-hint{font-size:.74rem;color:var(--muted)}@media (max-width:768px){.theplace-kpi-grid{grid-template-columns:1fr}}.period-assignment-modal .finance-header-sync-btn{padding:5px 10px;font-size:.78rem;border-radius:6px}.period-assignment-modal .period-assignment-tab{padding:4px 10px;font-size:.76rem}.period-assignment-modal .month-picker-trigger{padding:6px 10px;gap:8px}.period-assignment-modal .month-picker-trigger-icon{width:26px;height:26px}.period-assignment-modal .month-picker-trigger-label{font-size:.85rem}.period-assignment-bulk .month-picker{max-width:220px}.link-button{border:none;background:none;color:var(--accent);cursor:pointer;font:inherit;text-decoration:underline;padding:0}.metric-help{position:relative;flex-shrink:0}.metric-help-trigger{display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:999px;background:transparent;color:var(--muted);cursor:help}.metric-help-trigger:focus-visible,.metric-help-trigger:hover{color:var(--accent-2);background:rgba(34,211,238,.1);outline:none}.metric-help-tooltip{position:absolute;top:auto;bottom:calc(100% + 8px);right:0;z-index:200;width:min(280px,calc(100vw - 32px));max-width:min(280px,calc(100vw - 32px));padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:var(--panel-2);box-shadow:0 10px 30px rgba(0,0,0,.35);font-size:.72rem;line-height:1.45;color:var(--text);pointer-events:none;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s,transform .15s,visibility .15s;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}.metric-help-tooltip.metric-help-tooltip--portal{position:fixed;right:auto;bottom:auto;z-index:10000;opacity:1;visibility:visible;transform:none;pointer-events:none}.metric-help:focus-within .metric-help-tooltip,.metric-help:hover .metric-help-tooltip{opacity:1;visibility:visible;transform:translateY(0)}.retention-meter .metric-help-tooltip,.retention-th-sort--left .metric-help-tooltip{left:0;right:auto}.metric-help-section{display:block}.metric-help-section+.metric-help-section{margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}.metric-help-section strong{display:block;margin-bottom:4px;font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;color:var(--accent-2)}.metric-help-section span{display:block;color:var(--muted);white-space:normal;overflow-wrap:anywhere;word-break:break-word}.panel--top-merchants{margin-top:0}.top-merchants-summary{margin:0 0 12px;font-size:.78rem;color:var(--muted)}.top-merchants-table{width:100%;border-collapse:collapse;font-size:.8rem}.top-merchants-table td,.top-merchants-table th{padding:8px 10px;border-bottom:1px solid var(--border);vertical-align:middle}.top-merchants-table th{color:var(--muted);font-weight:500;font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.top-merchants-table tbody tr:hover td{background:var(--panel-2)}.top-merchants-col-rank{width:2.5rem;text-align:right;color:var(--muted)}.top-merchants-col-left{text-align:left}.top-merchants-col-right{text-align:right;white-space:nowrap}.top-merchants-sort-btn{display:inline-flex;align-items:center;gap:4px;padding:0;border:none;background:none;color:inherit;font:inherit;cursor:pointer}.top-merchants-sort-btn:hover{color:var(--text)}.top-merchants-sort-icon{opacity:.65}.top-merchants-empty{text-align:center;color:var(--muted);padding:20px!important}.top-merchants-show-more-wrap{display:flex;justify-content:center;padding:12px 0 4px}.top-merchants-show-more-btn{border:1px solid var(--border);border-radius:8px;background:var(--panel-2);color:var(--text);padding:8px 16px;font-size:13px;cursor:pointer}.top-merchants-show-more-btn:hover{border-color:var(--accent);color:var(--accent)}.top-merchants-col-expand{width:36px;padding-left:8px!important;padding-right:4px!important}.top-table-expand-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--border);border-radius:6px;background:var(--panel-2);color:var(--muted);cursor:pointer}.top-table-expand-btn:hover{border-color:var(--accent-2);color:var(--accent-2)}.top-table-row-expanded td{background:rgba(99,102,241,.08)}.top-table-subcount{display:block;margin-top:2px;font-size:.72rem;font-weight:500;color:var(--muted)}.top-table-detail-row td{padding:0 12px 12px!important;background:rgba(17,24,39,.65);border-top:none!important}.top-table-nested-wrap{margin-left:36px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2)}.top-table-nested{width:100%;border-collapse:collapse;font-size:.82rem}.top-table-nested td,.top-table-nested th{padding:7px 8px;border-bottom:1px solid rgba(45,55,72,.65)}.top-table-nested th{font-size:.68rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.top-table-nested tbody tr:last-child td{border-bottom:none}.panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:20px;max-width:100%;overflow-x:clip}.panel h2{margin:0 0 14px;font-size:1rem}.table-wrap{overflow-x:auto}.metrics-table{width:100%;border-collapse:collapse;font-size:.82rem}.metrics-table td,.metrics-table th{padding:8px 10px;text-align:right;border-bottom:1px solid var(--border);white-space:nowrap}.metrics-table td:first-child,.metrics-table th:first-child{text-align:left;position:sticky;left:0;background:var(--panel)}.metrics-table th{color:var(--muted);font-weight:500;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}.metrics-table tr:hover td{background:var(--panel-2)}.metrics-table tr.selected td{background:rgba(99,102,241,.12)}.pct-up{color:var(--success)}.pct-down{color:var(--danger)}.pct-neutral{color:var(--muted)}.chart-container{height:280px;width:100%;min-width:0;min-height:280px}.chart-container--placeholder{background:var(--panel-2);border-radius:8px}.chart-container--detail{height:240px;min-height:240px}.lifetime-distribution-chart-wrap{width:100%;min-width:0;min-height:320px;padding:0 24px 8px}.panel--lifetime-distribution .recharts-legend-item-text{color:var(--text)!important;font-size:.82rem}.quarterly-sales-interactive{display:flex;flex-direction:column;gap:0}.quarterly-sales-interactive--linked .quarterly-sales-table td:not(.quarterly-sales-table-cell--active){opacity:.42}.quarterly-sales-chart-wrap{width:100%;min-width:0;min-height:460px;padding:0 4px 4px}.panel--quarterly-orders .recharts-legend-item-text,.panel--quarterly-sales .recharts-legend-item-text{color:var(--text)!important;font-size:.82rem}.quarterly-bar-label text{pointer-events:none}.quarterly-sales-tooltip{background:#111827;border:1px solid #2d3748;border-radius:8px;padding:10px 12px;min-width:220px;box-shadow:0 8px 24px rgba(0,0,0,.35)}.quarterly-sales-tooltip-title{margin:0 0 8px;font-size:.85rem;font-weight:600;color:#f1f5f9}.quarterly-sales-tooltip-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.quarterly-sales-tooltip-row{display:grid;grid-template-columns:10px 36px 1fr;grid-template-rows:auto auto;column-gap:8px;row-gap:2px;align-items:baseline}.quarterly-sales-tooltip-swatch{grid-row:1/span 2;width:10px;height:10px;border-radius:2px;align-self:center}.quarterly-sales-tooltip-year{font-size:.78rem;font-weight:600;color:#cbd5e1}.quarterly-sales-tooltip-amount{grid-column:3;font-size:.82rem;font-weight:600;color:#f8fafc;text-align:right}.quarterly-sales-tooltip-yoy{grid-column:3;font-size:.72rem;text-align:right}.quarterly-sales-tooltip-yoy--up{color:#4ade80}.quarterly-sales-tooltip-yoy--down{color:#f87171}.quarterly-sales-tooltip-yoy--flat,.quarterly-sales-tooltip-yoy--none{color:#94a3b8}.quarterly-sales-table-wrap{margin-top:12px;overflow-x:auto;border-top:1px solid var(--border,#2d3748);padding:12px 4px 0}.quarterly-sales-table--aligned{table-layout:fixed}.quarterly-sales-table-col-year{width:var(--quarterly-plot-left,76px)}.quarterly-sales-table-col-quarter{width:calc((100% - var(--quarterly-plot-left, 76px) - var(--quarterly-plot-right, 12px)) / 4)}.quarterly-sales-table--aligned .quarterly-sales-table-amount,.quarterly-sales-table--aligned .quarterly-sales-table-yoy,.quarterly-sales-table--aligned tbody td,.quarterly-sales-table--aligned thead th:not(:first-child){text-align:center}.quarterly-sales-table{width:100%;border-collapse:collapse;font-size:.82rem}.quarterly-sales-table td,.quarterly-sales-table th{padding:10px 12px;text-align:right;vertical-align:top;border-bottom:1px solid rgba(45,55,72,.6)}.quarterly-sales-table thead th{color:#94a3b8;font-weight:600;font-size:.78rem}.quarterly-sales-table tbody th[scope=row]{text-align:left;color:#e2e8f0;font-weight:600;white-space:nowrap}.quarterly-sales-table-year-label{display:inline-flex;align-items:center;gap:8px}.quarterly-sales-table-year-swatch{width:10px;height:10px;border-radius:2px;flex-shrink:0}.quarterly-sales-table--aligned tbody td:not(:empty){cursor:default}.quarterly-sales-table--aligned tbody td:has(.quarterly-sales-table-amount){cursor:pointer}.quarterly-sales-table-cell--active{background:color-mix(in srgb,var(--year-color) 16%,transparent);box-shadow:inset 0 0 0 2px var(--year-color)}.quarterly-sales-interactive--linked .quarterly-sales-table td.quarterly-sales-table-cell--active{opacity:1}.quarterly-sales-table-amount{display:block;color:#f1f5f9;font-weight:600;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.quarterly-sales-table-yoy{display:block;margin-top:4px;font-size:.72rem;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.quarterly-sales-table-yoy--up{color:#4ade80}.quarterly-sales-table-yoy--down{color:#f87171}.quarterly-sales-table-empty,.quarterly-sales-table-yoy--flat,.quarterly-sales-table-yoy--none{color:#64748b}.retention-page{display:flex;flex-direction:column;gap:16px;max-width:min(100%,1560px);margin:0 auto;padding:24px 16px 48px;width:100%;overflow-x:clip}.retention-root .retention-section.panel{padding:0;overflow:visible}.retention-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between;padding:16px 24px 0}.retention-toolbar .just-active-toolbar-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-left:auto}.retention-filter-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}.retention-empty,.retention-error{padding:0 24px 12px;margin:0}.retention-root .retention-section .retention-meters-wrap{padding:12px 24px 16px}.retention-root .retention-section .just-active-list-head{padding:16px 24px 0}.retention-root .retention-category-panel{padding:0 24px 16px}.just-active-th-sort{display:inline-flex;align-items:center;gap:4px}.just-active-table .just-active-th-sort .metric-help-trigger{flex-shrink:0}.just-active-root .just-active-hint{display:none}.finance-root .retention-config,.retention-root .retention-config{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:0 24px 16px}.finance-root .retention-config-field,.retention-root .retention-config-field{display:flex;flex-direction:column;gap:4px;font-size:.78rem;color:var(--muted)}.finance-root .retention-config-field input,.retention-root .retention-config-field input{width:108px;padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:var(--panel-2);color:var(--text);font:inherit}.retention-download-btn{display:inline-flex;align-items:center;gap:6px}.retention-meters-wrap{padding:0 24px 16px}.retention-meters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0}.retention-meters--two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px}.panel--sales-retention .collapsible-section-title{padding:16px 24px 0;margin:0;font-size:1.05rem;font-weight:600}.panel--sales-retention .collapsible-section-hint{padding:8px 24px 0}.retention-meta-notice{padding:0 24px 12px;display:flex;flex-direction:column;gap:4px}.retention-meta-notice .history-hint{padding:0;margin:0;font-size:.76rem;line-height:1.45}.retention-meter{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--panel-2);cursor:pointer;text-align:left;color:inherit;outline:none}.retention-meter:focus-visible{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 25%,transparent)}.retention-meter--active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--panel-2))}.retention-meter-value{font-size:1.2rem;letter-spacing:-.02em}.retention-meter-label{font-size:.76rem;color:var(--muted)}.retention-meter-label-row{display:flex;align-items:center;justify-content:space-between;gap:4px}.retention-meter .metric-help-tooltip{top:calc(100% + 8px);bottom:auto;left:0;right:auto;width:min(300px,calc(100vw - 32px));transform:translateY(-4px)}.retention-meter .metric-help:focus-within .metric-help-tooltip,.retention-meter .metric-help:hover .metric-help-tooltip{transform:translateY(0)}.retention-meter .metric-help-trigger{width:18px;height:18px}.retention-category-panel{padding:0 24px 8px}.retention-category-panel .history-hint{padding:0 0 8px;margin:0;font-size:.76rem}.retention-table.top-merchants-table{font-size:.74rem}.retention-table.top-merchants-table td,.retention-table.top-merchants-table th{padding:3px 8px;line-height:1.2}.retention-table.top-merchants-table th{font-size:.66rem;padding-top:4px;padding-bottom:4px;white-space:normal}.retention-table.top-merchants-table th:not(.retention-trend-col){max-width:120px}.retention-table .top-merchants-sort-btn{gap:4px}.retention-table .retention-trend-cell,.retention-table .retention-trend-col{width:18%;min-width:168px;max-width:none}.retention-trend-chart{position:relative;width:100%;max-width:160px;height:44px;margin-left:auto}.retention-trend-chart--compact,.retention-trend-chart--compact.retention-trend-chart--empty{width:100%;max-width:152px;height:32px}.retention-trend-chart--empty{display:inline-block;background:var(--panel-2);border-radius:4px}.retention-col-label,.retention-th-sort{display:inline-flex;align-items:center;gap:2px}.retention-th-sort--right{justify-content:flex-end;width:100%}.retention-th-sort--left{justify-content:flex-start}.retention-table .retention-th-sort .metric-help{margin-left:0}.retention-table .top-merchants-sort-btn{overflow:visible}.retention-trend-btn{display:flex;align-items:center;justify-content:flex-end;width:100%;max-width:100%;min-width:0;padding:0;margin:0;border:none;background:none;cursor:pointer;font:inherit}.retention-trend-btn:hover .retention-trend-chart{opacity:.85}.retention-trend-btn:focus-visible{outline:2px solid var(--accent-2);outline-offset:2px;border-radius:4px}.retention-table .retention-col-label .metric-help-tooltip,.retention-table .retention-th-sort .metric-help-tooltip{top:calc(100% + 8px);bottom:auto;right:0;left:auto;width:min(260px,calc(100vw - 32px));max-width:min(260px,calc(100vw - 32px));z-index:300;transform:translateY(-4px)}.retention-table .metric-help:focus-within .metric-help-tooltip,.retention-table .metric-help:hover .metric-help-tooltip{transform:translateY(0)}.just-active-table th.top-merchants-col-left .metric-help-tooltip,.retention-table th.top-merchants-col-left .metric-help-tooltip{left:0;right:auto}.retention-table thead th{overflow:visible;position:relative;z-index:1}.retention-table thead th:has(.metric-help:focus-within),.retention-table thead th:has(.metric-help:hover){z-index:5}.retention-category-panel .table-wrap{overflow-x:auto;overflow-y:visible;padding-bottom:8px}.retention-table th.top-merchants-col-right .metric-help{white-space:normal}.retention-drop-pct{color:#f87171;font-weight:600}.retention-addon-cell{min-width:180px;max-width:280px}.retention-addon-list{margin:0;padding:0;list-style:none}.retention-addon-list li+li{margin-top:2px}@media (max-width:900px){.retention-meters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:520px){.retention-meters{grid-template-columns:1fr}}.just-active-root .just-active-page{display:flex;flex-direction:column;gap:16px;max-width:min(100%,1560px);margin:0 auto;padding:24px 16px 48px;width:100%;overflow-x:clip}.just-active-root .just-active-section>.history-hint{padding:16px 24px 0;margin-bottom:0}.just-active-root .just-active-section.panel{padding:0;overflow:visible}.just-active-root .just-active-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between;padding:16px 24px 0}.just-active-root .just-active-toolbar-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-left:auto}.just-active-root .just-active-days{display:inline-flex;flex-direction:column;gap:4px;font-size:.78rem;color:var(--muted)}.just-active-root .just-active-days-label{font-weight:500}.just-active-root .just-active-days select{min-width:10rem;border:1px solid var(--border);border-radius:8px;background:var(--panel-2);color:var(--text);padding:8px 10px;font-size:.85rem}.just-active-root .just-active-refresh{display:inline-flex;align-items:center;gap:6px}.just-active-root .just-active-spin{animation:just-active-spin .8s linear infinite}@keyframes just-active-spin{to{transform:rotate(1turn)}}.just-active-root .just-active-meters-wrap{padding-top:8px}.just-active-root .just-active-meters{grid-template-columns:repeat(2,minmax(0,1fr))}.just-active-root .just-active-hint{margin:0;padding:0 24px 16px}.just-active-root .just-active-error{margin:0 24px}.just-active-root .just-active-list-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px 24px 0}.just-active-root .just-active-list-title{margin:0;font-size:1rem;font-weight:600}.just-active-root .just-active-table-wrap{padding:12px 24px 20px;overflow-x:auto;overflow-y:visible}.just-active-table thead th{overflow:visible;position:relative;z-index:1}.just-active-table thead th:has(.metric-help:focus-within),.just-active-table thead th:has(.metric-help:hover){z-index:5}.just-active-table .just-active-th-sort .metric-help-tooltip:not(.metric-help-tooltip--portal){top:calc(100% + 8px);bottom:auto;z-index:300;transform:translateY(-4px)}.just-active-table .metric-help:focus-within .metric-help-tooltip:not(.metric-help-tooltip--portal),.just-active-table .metric-help:hover .metric-help-tooltip:not(.metric-help-tooltip--portal){transform:translateY(0)}.just-active-root .just-active-sub{font-size:.72rem;margin-top:4px}.just-active-root .just-active-refreshing,.just-active-root .just-active-source-hint{padding:0 24px;margin:0 0 8px}.just-active-root .just-active-empty-state{padding:28px 24px 32px;text-align:center}.just-active-root .just-active-empty-state p{margin:0}.just-active-root .just-active-empty-hint{margin-top:8px!important;font-size:.82rem}.metric-detail-overlay{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:24px 16px}.metric-detail-panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);width:min(920px,100%);max-height:min(90vh,900px);overflow-y:auto;padding:20px;box-shadow:0 24px 48px rgba(0,0,0,.35)}.metric-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.metric-detail-header h2{margin:0;font-size:1.2rem}.metric-detail-subtitle{margin:6px 0 0;color:var(--muted);font-size:.9rem}.metric-detail-close{background:var(--panel-2);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center}.metric-detail-section{margin-top:16px}.metric-detail-section h3{margin:0 0 10px;font-size:.85rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.metric-detail-table td:first-child,.metric-detail-table th:first-child{text-align:left}.dashboard-section-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0 0 16px}.collapsible-section{margin-bottom:20px}.collapsible-section-header{margin:0 0 8px}.collapsible-section-toggle{display:inline-flex;align-items:center;gap:8px;width:100%;padding:0;border:none;background:none;color:var(--text);cursor:pointer;text-align:left;font:inherit}.collapsible-section-toggle:hover{color:var(--accent-2)}.collapsible-section-chevron{flex-shrink:0;opacity:.85}.collapsible-section-title{font-size:1rem;font-weight:600;line-height:1.3}.collapsible-section-hint{margin:0 0 12px}.collapsible-section-body[hidden]{display:none}.merchant-search{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 10px}.merchant-search--compact{margin:0 0 8px}.merchant-search-input{flex:1 1 180px;min-width:0;max-width:320px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:var(--panel-2);color:var(--text)}.merchant-search-input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.merchant-search-count{font-size:.72rem;color:var(--muted);white-space:nowrap}.empty-state{text-align:center;padding:48px 24px;color:var(--muted)}.empty-state h2{color:var(--text);margin-bottom:8px}.monitor-root.container{max-width:none;margin:0;padding:1rem 1.25rem 2rem}.monitor-root{--card:var(--panel);--cardBorder:var(--border);--text:var(--text);--muted:var(--muted);--accent:var(--accent);--monitor-surface:rgba(255,255,255,0.06);--monitor-surface-strong:rgba(255,255,255,0.08);--monitor-surface-border:rgba(255,255,255,0.14);--monitor-surface-border-soft:rgba(255,255,255,0.12);--monitor-surface-border-faint:rgba(255,255,255,0.1);--monitor-surface-border-muted:rgba(255,255,255,0.08);--monitor-text-soft:rgba(255,255,255,0.88);--monitor-text-muted:rgba(255,255,255,0.76);--monitor-text-faint:rgba(255,255,255,0.55);--monitor-table-head-bg:rgba(11,18,32,0.95);--monitor-table-head-text:rgba(255,255,255,0.75);--monitor-inset-bg:rgba(0,0,0,0.14);--monitor-count-bg:rgba(255,255,255,0.08);--monitor-card-shadow:0 18px 40px rgba(0,0,0,0.16);--monitor-card-shadow-sm:0 12px 28px rgba(0,0,0,0.14)}[data-theme=light] .monitor-root{--monitor-surface:rgba(15,23,42,0.04);--monitor-surface-strong:rgba(15,23,42,0.06);--monitor-surface-border:var(--border);--monitor-surface-border-soft:var(--border);--monitor-surface-border-faint:var(--border);--monitor-surface-border-muted:var(--border);--monitor-text-soft:var(--text);--monitor-text-muted:var(--muted);--monitor-text-faint:var(--muted);--monitor-table-head-bg:var(--panel-2);--monitor-table-head-text:var(--muted);--monitor-inset-bg:rgba(15,23,42,0.04);--monitor-count-bg:rgba(15,23,42,0.06);--monitor-card-shadow:0 8px 24px rgba(15,23,42,0.08);--monitor-card-shadow-sm:0 6px 18px rgba(15,23,42,0.06)}.monitor-root .gridCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.monitor-root .card{background:var(--card);border:1px solid var(--cardBorder);border-radius:16px;padding:14px 14px 12px;box-shadow:var(--monitor-card-shadow)}.monitor-root .cardLabel{color:var(--muted);font-size:12px;margin-bottom:8px}.monitor-root .cardValue{font-size:22px;font-weight:800;display:flex;align-items:baseline;gap:10px}.monitor-root .delta{font-size:12px;color:var(--accent);font-weight:700}.monitor-root .presetAlerts{margin-top:18px}.monitor-root .presetAlertsHeader{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 16px;margin-bottom:10px}.monitor-root .presetAlertsTitle{font-size:14px;font-weight:800;letter-spacing:.02em}.monitor-root .presetAlertsHint{font-size:12px}.monitor-root .presetAlertsGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.monitor-root .presetAlert{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;cursor:pointer;background:var(--card);border:1px solid var(--cardBorder);border-radius:14px;padding:12px 14px;color:var(--text);box-shadow:var(--monitor-card-shadow-sm)}.monitor-root .presetAlertLabel{font-size:13px;font-weight:650;line-height:1.35;flex:1 1;min-width:0}.monitor-root .presetAlertCount{flex-shrink:0;min-width:2.4rem;padding:6px 10px;border-radius:999px;font-size:15px;font-weight:800;text-align:center;background:var(--monitor-count-bg);border:1px solid var(--monitor-surface-border)}.monitor-root .presetAlertActive{border-color:rgba(52,211,153,.9);box-shadow:0 0 0 1px rgba(52,211,153,.35)}.monitor-root .presetAlertFlash{border-color:rgba(251,191,36,.65)}.monitor-root .presetAlertCountActive{color:#052e1c;background:#6ee7b7;border-color:#a7f3d0}.monitor-root .presetAlertCountFlash{color:#0b1220;background:rgba(251,191,36,.95);border-color:rgba(255,220,120,.9)}.monitor-root .toolbar{margin-top:18px;display:grid;grid-template-columns:1.2fr .8fr .8fr .9fr .9fr;gap:12px;align-items:end}.monitor-root .fieldFull{grid-column:1/-1}.monitor-root .field label{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.monitor-root .input,.monitor-root .select{width:100%;box-sizing:border-box;background:var(--monitor-surface);outline:none}.monitor-root .btn,.monitor-root .input,.monitor-root .select{border:1px solid var(--monitor-surface-border);border-radius:12px;padding:10px 12px;color:var(--text)}.monitor-root .btn{background:var(--monitor-surface-strong);cursor:pointer;font-weight:600}.monitor-root .btnReportDownload{white-space:nowrap}.monitor-root .checklist{max-height:120px;overflow:auto;padding:10px 12px;border-radius:12px;border:1px solid var(--monitor-surface-border);background:var(--monitor-surface);columns:260px 2;column-gap:14px}.monitor-root .checkItem{display:flex;align-items:flex-start;gap:10px;padding:6px 0;page-break-inside:avoid;break-inside:avoid}.monitor-root .checkItemText{font-size:13px;color:var(--monitor-text-soft);line-height:1.25}.monitor-root .tableToolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 10px}.monitor-root .tableToolbarSummary{font-size:13px;color:var(--muted)}.monitor-root .tableToolbarSummary strong{color:var(--text)}.monitor-root .monitorTablePager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;padding:0 2px}.monitor-root .monitorTablePagerInfo{font-size:13px;line-height:36px;white-space:nowrap}.monitor-root .monitorTablePagerActions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px}.monitor-root .monitorTablePagerSize{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:13px;color:var(--muted);white-space:nowrap;line-height:36px}.monitor-root .monitorTablePagerNav{display:inline-flex;align-items:center;gap:8px;height:36px}.monitor-root .monitorTablePagerPage{display:inline-flex;align-items:center;justify-content:center;min-width:4.5rem;height:36px;margin:0;padding:0 4px;text-align:center;font-size:13px;line-height:1}.monitor-root .monitorPagerSelect{width:auto;min-width:72px;height:36px;padding:0 10px;margin:0;font-size:13px;line-height:1.2}.monitor-root .monitorPagerBtn{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 12px;font-size:13px;line-height:1}.monitor-root .tableWrap{margin-top:0;overflow:auto;border-radius:16px;border:1px solid var(--cardBorder)}.monitor-root table{width:100%;border-collapse:collapse;min-width:0}.monitor-root thead th{position:sticky;top:0;background:var(--monitor-table-head-bg);color:var(--monitor-table-head-text);font-size:12px;padding:12px 14px;border-bottom:1px solid var(--monitor-surface-border-soft);text-align:left}.monitor-root tbody td{padding:12px 14px;border-bottom:1px solid var(--monitor-surface-border-muted);vertical-align:top;color:var(--monitor-text-soft);font-size:13px}.monitor-root .thButton{appearance:none;border:0;background:transparent;color:inherit;padding:0;margin:0;font:inherit;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:8px}.monitor-root .thArrow{display:inline-block;width:14px;text-align:center;color:var(--monitor-text-faint)}.monitor-root .chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid var(--monitor-surface-border);background:var(--monitor-surface);font-weight:700;font-size:12px;white-space:nowrap}.monitor-root .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:12px;color:var(--monitor-text-muted)}.monitor-root .muted{color:var(--muted)}.monitor-root .referrerFilter{border-radius:14px;border:1px solid var(--monitor-surface-border);background:linear-gradient(145deg,var(--monitor-surface-strong),var(--monitor-surface));overflow:hidden}.monitor-root .referrerFilterToggle{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}.monitor-root .referrerFilterBody{padding:0 14px 14px}.monitor-root .referrerFilterCollapsed .referrerFilterBody{display:none}.monitor-root .referrerFilterHeader{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}.monitor-root .referrerFilterHeaderActions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:1 1 240px;justify-content:flex-end}.monitor-root .referrerFilterSearch{min-width:min(100%,280px);flex:1 1 200px}.monitor-root .referrerFilterChips{display:flex;flex-wrap:wrap;gap:8px}.monitor-root .referrerFilterPartners{margin-top:10px;max-height:168px;overflow:auto;padding:10px;border-radius:12px;border:1px solid var(--monitor-surface-border-faint);background:var(--monitor-inset-bg)}.monitor-root .referrerFilterChip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid var(--monitor-surface-border);background:var(--monitor-surface);color:var(--text);font-size:12px;font-weight:700}.monitor-root .referrerFilterChipActive{border-color:rgba(52,211,153,.95);background:rgba(52,211,153,.22)}.monitor-root .referrerFilterChipCount{min-width:1.6rem;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:800;background:var(--monitor-inset-bg);border:1px solid var(--monitor-surface-border-faint)}@media (max-width:1280px){.monitor-root .presetAlertsGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:980px){.monitor-root .gridCards{grid-template-columns:repeat(2,minmax(0,1fr))}.monitor-root .toolbar{grid-template-columns:1fr 1fr}}@media (max-width:900px){.monitor-root .presetAlertsGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:560px){.monitor-root .presetAlertsGrid{grid-template-columns:1fr}}