:root{--bg: #f7f7f8;--surface: #ffffff;--surface2: #f4f4f5;--border: #e4e4e7;--text: #18181b;--text-muted: #71717a;--accent: #5046e5;--accent-hover: #4338ca;--green: #16a364;--yellow: #ca8a04;--red: #dc2626;--orange: #ea580c}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text)}a{color:var(--accent)}.header-link{color:var(--text-muted);font-size:13px;text-decoration:none}.header-link:hover{color:var(--accent)}.loading-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center}.error-title{font-weight:600;font-size:18px}.button-row{display:flex;gap:8px}button{padding:8px 16px;border-radius:5px;border:1px solid var(--border);background:var(--surface);cursor:pointer;font-size:14px;font-weight:500}button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button.primary:hover{background:var(--accent-hover)}.app-header{background:var(--surface);border-bottom:1px solid var(--border);padding:13px 28px;display:flex;align-items:center;justify-content:space-between}.reco-brand-lockup{align-items:center;display:inline-flex;gap:10px}.reco-logo{display:block;height:25px;object-fit:contain;width:auto}.reco-brand-context{border-left:1px solid var(--border);color:var(--text-muted);font-size:12px;font-weight:500;line-height:18px;padding-left:10px;white-space:nowrap}.container{max-width:1060px;margin:0 auto;padding:24px 32px}.container-wide{max-width:1280px}.toolbar{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap;align-items:flex-end}.filter-group{display:flex;flex-direction:column;gap:4px}.filter-group label{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);font-weight:600}select,input[type=date]{background:var(--surface2);border:1px solid var(--border);padding:8px 12px;border-radius:6px;font-size:13px;min-width:140px}.table-wrapper{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden}.table-header{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.scroll-area{max-height:75vh;overflow-y:auto}table{width:100%;border-collapse:collapse}th{text-align:left;padding:10px 16px;font-size:11px;text-transform:uppercase;color:var(--text-muted);background:var(--surface2);position:sticky;top:0}th.col-score{text-align:center;width:140px}.table-metrics-wide th.col-score{width:260px;min-width:240px}td{border-bottom:1px solid var(--border);font-size:13px}td.cell-score{text-align:center;padding:8px 16px;vertical-align:top}.row-date,.row-campaign,.row-site{display:flex;align-items:center;cursor:pointer;padding:10px 16px}.row-campaign{padding-left:40px}.row-site{padding-left:64px;color:var(--text-muted)}.score-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 11px 3px 9px;border-radius:999px;font-weight:600;font-size:12px;background:var(--surface2);border:1px solid var(--border);color:var(--text)}.score-pill:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--text-muted);flex:none}.score-excellent{color:var(--green);background:#ecfdf5;border-color:#86efac}.score-excellent:before{background:var(--green)}.score-near-goal{color:#047857;background:#f0fdf4;border-color:#bbf7d0}.score-near-goal:before{background:#34d399}.ambassador-brand{align-items:center;display:flex;font-size:14px;margin:0}.ambassador-header-actions{align-items:center;display:flex;gap:12px}.ambassador-header-actions span{color:var(--text-muted);font-size:13px}.ambassador-container{max-width:1160px}.ambassador-toolbar{align-items:flex-start;display:flex;gap:24px;justify-content:space-between;margin-bottom:24px}.ambassador-toolbar h2{font-size:22px;letter-spacing:0;margin:0}.ambassador-toolbar p{color:var(--text-muted);margin:6px 0 0}.ambassador-grid{display:grid;gap:14px}.ambassador-kpis,.ambassador-two-col{display:grid;gap:14px;grid-template-columns:repeat(4,minmax(0,1fr))}.ambassador-two-col{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}.ambassador-stat,.ambassador-card,.ambassador-commitments,.ambassador-link-panel,.ambassador-ref-link{background:var(--surface);border:1px solid var(--border);border-radius:6px}.ambassador-commitments{overflow:hidden}.ambassador-commitment-head{align-items:flex-start;border-bottom:1px solid var(--border);color:var(--text);display:flex;gap:20px;justify-content:space-between;padding:18px 20px}.ambassador-commitment-head .ambassador-section-label{color:var(--text-muted)}.ambassador-commitment-head h2{font-size:20px;letter-spacing:0;line-height:1.2;margin:5px 0}.ambassador-commitment-head p{color:var(--text-muted);font-size:13px;margin:0}.ambassador-since{background:var(--surface2);border:1px solid var(--border);border-radius:5px;min-width:190px;padding:10px 12px;text-align:right}.ambassador-since span{color:var(--text-muted);display:block;font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}.ambassador-since strong{display:block;font-size:14px;margin-top:5px}.ambassador-commitment-list{display:grid}.ambassador-commitment-row{align-items:center;border-top:1px solid var(--border);display:grid;gap:18px;grid-template-columns:104px minmax(0,1fr) 92px;min-height:82px;padding:15px 20px}.ambassador-commitment-row:first-child{border-top:0}.ambassador-commitment-row.link-row{background:#f8fafc}.ambassador-commitment-number{border-right:1px solid var(--border);color:var(--text);font-size:25px;font-weight:650;line-height:1;padding-right:18px}.ambassador-commitment-title{font-size:15px;font-weight:720}.ambassador-commitment-sub{color:var(--text-muted);font-size:13px;margin:4px 0 10px}.ambassador-commitment-frac{color:var(--text-muted);font-size:13px;text-align:right}.ambassador-commitment-frac strong{color:var(--text)}.ambassador-stat{min-height:104px;padding:16px}.ambassador-stat-label,.ambassador-section-label{color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}.ambassador-stat-value{font-size:24px;font-weight:650;line-height:1;margin-top:10px}.ambassador-stat-sub{color:var(--text-muted);font-size:12px;margin-top:8px}.ambassador-link-panel{display:grid;gap:22px;grid-template-columns:minmax(0,1fr) 300px;padding:20px}.ambassador-two-col .ambassador-link-panel{grid-template-columns:1fr}.ambassador-link-panel.active{border-left:3px solid var(--green)}.ambassador-link-panel.inactive{border-left:3px solid var(--yellow)}.ambassador-link-panel h2{font-size:19px;margin:8px 0 6px;text-transform:capitalize}.ambassador-link-panel p{color:var(--text-muted);margin:0;max-width:680px}.ambassador-evidence{background:var(--surface2);border:1px solid var(--border);border-radius:5px;display:grid;gap:4px;margin-top:14px;padding:10px 12px}.ambassador-evidence span{color:var(--text-muted);font-size:11px;font-weight:700;text-transform:uppercase}.ambassador-evidence strong{font-size:12px;overflow-wrap:anywhere}.ambassador-platforms{display:grid;gap:8px}.ambassador-platform{align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:5px;display:flex;gap:12px;justify-content:space-between;padding:9px 11px;text-transform:capitalize}.ambassador-platform small{color:var(--text-muted);display:block;font-size:11px;margin-top:2px;text-transform:none}.ambassador-platform strong{color:var(--text-muted);font-size:12px;font-weight:650;text-align:right;text-transform:capitalize}.ambassador-ref-link{align-items:center;display:flex;gap:20px;justify-content:space-between;padding:18px 20px}.ambassador-ref-link strong{display:block;font-size:13px;margin-top:6px;overflow-wrap:anywhere}.ambassador-ref-link span{color:var(--text-muted);display:block;font-size:12px;margin-top:4px}.ambassador-card{padding:18px}.ambassador-card-head{align-items:baseline;display:flex;justify-content:space-between;margin-bottom:18px}.ambassador-card-head h3{font-size:15px;margin:0}.ambassador-card-head span{color:var(--text-muted);font-size:12px}.ambassador-progress-row+.ambassador-progress-row{margin-top:18px}.ambassador-progress-meta{color:var(--text-muted);display:flex;font-size:13px;justify-content:space-between;margin-bottom:8px}.ambassador-progress-meta strong{color:var(--text)}.ambassador-track{background:var(--surface2);border-radius:99px;height:6px;overflow:hidden}.ambassador-fill{border-radius:inherit;height:100%}.ambassador-fill-accent{background:var(--accent)}.ambassador-fill-green{background:var(--green)}.ambassador-fill-amber{background:var(--yellow)}.ambassador-earning-list,.ambassador-feed{display:grid}.ambassador-earning-row,.ambassador-feed-item{align-items:center;border-top:1px solid var(--border);display:flex;gap:12px;justify-content:space-between;padding:12px 0}.ambassador-earning-row:first-child,.ambassador-feed-item:first-child{border-top:0;padding-top:0}.ambassador-earning-row strong,.ambassador-feed-item strong{display:block;font-size:13px}.ambassador-earning-row span,.ambassador-feed-item span,.ambassador-feed-item time{color:var(--text-muted);font-size:12px}.ambassador-earning-row b{color:var(--green);font-size:14px}.ambassador-feed-item{justify-content:flex-start}.ambassador-feed-item div{flex:1}.ambassador-dot{background:var(--accent);border-radius:50%;flex:none;height:8px;width:8px}.ambassador-dot.completed{background:var(--green)}.ambassador-dot.pending{background:var(--yellow)}.ambassador-dot.expired{background:var(--red)}.ambassador-table .table-header span{color:var(--text-muted);font-size:12px;max-width:50%;overflow-wrap:anywhere}.empty-state{color:var(--text-muted);padding:24px}.empty-state.compact{padding:10px 0 0}@media(max-width:860px){.ambassador-toolbar,.ambassador-ref-link,.ambassador-commitment-head{display:block}.ambassador-since{margin-top:16px;text-align:left}.ambassador-kpis,.ambassador-two-col,.ambassador-link-panel{grid-template-columns:1fr 1fr}.ambassador-link-panel{display:grid}.ambassador-ref-link button{margin-top:14px}}@media(max-width:620px){.app-header{align-items:flex-start;flex-direction:column;gap:12px}.ambassador-header-actions,.ambassador-toolbar .toolbar{align-items:stretch;flex-direction:column}.ambassador-kpis,.ambassador-two-col,.ambassador-link-panel{grid-template-columns:1fr}.ambassador-stat{min-height:0}.ambassador-commitment-row{grid-template-columns:1fr}.ambassador-commitment-number{border-right:0;border-bottom:1px solid var(--border);padding-bottom:10px;padding-right:0}.ambassador-commitment-frac{text-align:left}}.score-fair{color:var(--yellow);background:#fffbeb;border-color:#fde68a}.score-fair:before{background:var(--yellow)}.score-poor{color:var(--red)}.score-poor:before{background:var(--red)}.score-pending{color:var(--text-muted)}.score-pending:before{background:var(--text-muted)}.score-pill-review{border-color:#f59e0b;background:#fffbeb}.metric-cell{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:6px 4px;text-align:left}.metric-cell-compact{align-items:center;gap:4px;text-align:center}.metric-cell-pending{color:var(--text-muted)}.metric-score-header{display:flex;flex-direction:column;align-items:center;gap:4px}.metric-cell-compact .metric-score-header{gap:2px}.metric-score-header-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);line-height:1}.score-pill-lg{padding:5px 14px 5px 11px;font-size:15px}.metric-status-badge{font-size:10px;font-weight:600;text-align:center;line-height:1.2}.metric-status-review{color:#b45309}.metric-status-pending{color:var(--text-muted)}.metric-mini-table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.35}.metric-mini-table thead th{position:static;background:transparent;text-transform:none;font-size:10px;font-weight:600;color:var(--text-muted);padding:0 4px 4px;text-align:right;border:none}.metric-mini-table thead th:first-child{text-align:left;width:42%}.metric-mini-table tbody th{font-weight:500;color:var(--text);text-align:left;padding:3px 4px 3px 0;vertical-align:top;white-space:nowrap}.metric-mini-table td{border:none;padding:3px 4px;text-align:right;font-variant-numeric:tabular-nums;vertical-align:top}.metric-mini-table-compact{max-width:150px;margin:0 auto}.metric-mini-table-compact tbody th,.metric-mini-table-compact td{padding:1px 0;font-size:10px;color:var(--text-muted)}.metric-mini-table-compact tbody th{font-weight:500}.metric-val-muted{color:var(--text-muted)}.metric-val-goal{color:var(--text-muted);font-size:10px}.metric-row-flagged th,.metric-row-flagged td{color:#b45309;font-weight:600}.metric-flag-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#f59e0b;margin-right:5px;vertical-align:middle}.score-pill-flagged-field{color:#b45309}.score-pill-flagged-field:before{background:#f59e0b}.row-cost-pending{color:var(--text-muted)}.row-cost-pending .row-site,.row-cost-pending .count-badge{color:#8a90a3}.count-badge{font-size:11px;color:var(--text-muted);font-weight:400;margin-left:8px}.qi-row-status{display:inline-block;margin-left:8px;padding:2px 7px;border-radius:999px;border:1px solid #d8dce6;background:#f6f7fb;color:#667085;font-size:10px;font-weight:700;line-height:1.4;text-transform:uppercase;vertical-align:middle;white-space:nowrap}.qi-row-status-suspicious{border-color:#fed7aa;background:#fff7ed;color:#b45309}.qi-row-status-estimated,.qi-row-status-pending{border-color:#d8dce6;background:#f6f7fb;color:#667085}.metrics-legend{font-size:12px;color:var(--text-muted);margin:0 0 16px;line-height:1.45}.export-csv-btn{margin-bottom:12px}.summary-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 28px}@media(max-width:720px){.summary-cards{grid-template-columns:1fr}}.summary-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:20px}.summary-card-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}.summary-card-header h3{font-size:15px;font-weight:600;margin:0}.summary-card-header span{font-size:12px;color:var(--text-muted)}.summary-score{text-align:center;margin:16px 0}.summary-os{display:flex;justify-content:space-around;margin-top:12px;font-size:13px}.summary-os-item{text-align:center}.summary-os-label{color:var(--text-muted);font-size:11px;text-transform:uppercase;margin-bottom:4px}.summary-card-note{margin:12px 0 0;font-size:10px;color:var(--text-muted);text-align:center}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px;vertical-align:middle}.dot-red{background:#d32f2f}.dot-orange{background:#e65100}.dot-green{background:#2e7d32}.dot-near{background:#66bb6a}.score-badge{display:inline-block;padding:4px 12px;border-radius:16px;font-size:18px;font-weight:700}.score-green{background:#e8f5e9;color:#2e7d32}.score-orange{background:#fff3e0;color:#e65100}.score-red{background:#fde8e8;color:#d32f2f}.score-pending{background:#f0f0f0;color:#888}.qi-score-green{background:#e8f5e9;color:#2e7d32}.qi-score-orange{background:#fff3e0;color:#e65100}.qi-score-red{background:#fde8e8;color:#d32f2f}.qi-score-pending{background:#f0f0f0;color:#888}.qi-score-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px;vertical-align:middle}.summary-os .score-badge{font-size:14px;padding:3px 10px}.qi-section{margin-top:8px}.qi-section-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}.qi-section-header h2{font-size:20px;font-weight:700;margin:0}.qi-section-header span{font-size:13px;color:var(--text-muted)}.qi-table-wrap{overflow-x:auto;border-radius:8px;box-shadow:0 1px 3px #00000014}.qi-scroll-area{overflow-x:auto}.qi-table{width:100%;min-width:960px;border-collapse:collapse;background:var(--surface)}.qi-table thead th{padding:10px 8px;font-size:11px;font-weight:700;text-transform:uppercase;text-align:center;border-bottom:2px solid var(--border);background:#fafafa;white-space:nowrap}.qi-table thead th.qi-left{text-align:left}.qi-table thead th.qi-group-ios{color:#5b4dc7;border-bottom:3px solid #5b4dc7}.qi-table thead th.qi-group-android{color:#e65100;border-bottom:3px solid #e65100}.qi-table thead th.qi-perf-col{font-size:10px}.qi-table thead th.qi-perf-reco,.qi-table tbody td.qi-perf-reco{background:#f0faf0}.qi-table thead th.qi-perf-game,.qi-table tbody td.qi-perf-game{background:#f0f0fa}.qi-table tbody td{padding:12px 8px;text-align:center;border-bottom:1px solid #f0f0f0;font-size:13px;vertical-align:middle}.qi-table tbody td.qi-left{text-align:left}.qi-table tbody tr:hover{background:#f9f9f9}.qi-table tbody tr.qi-date-row{background:#f4f3fb}.qi-table tbody tr.qi-date-row:hover{background:#eeecf8}.qi-table tbody tr.qi-date-row td{font-weight:700;padding:14px 8px}.qi-table tbody tr.qi-date-row td.qi-left{box-shadow:inset 4px 0 #5b4dc7}.qi-table tbody tr.qi-campaign-row{background:#fbfbfd}.qi-table tbody tr.qi-campaign-row td{font-size:13px;color:#444;font-weight:500}.qi-table tbody tr.qi-campaign-row td.qi-left{box-shadow:inset 4px 0 #c7c3e6}.qi-table tbody tr.qi-site-row td{font-size:13px}.qi-table tbody tr.qi-site-row td.qi-left{box-shadow:inset 4px 0 #e4e4ee}.qi-table tbody tr.qi-site-row-open{background:#f9f9fc}.qi-table tbody tr.qi-site-row-open td{border-bottom-color:transparent}.qi-row-indent{display:inline-block;vertical-align:middle}.qi-row-indent-1{width:18px}.qi-row-indent-2{width:36px}.qi-row-name{vertical-align:middle}.qi-expand-spacer{display:inline-block;width:20px;margin-right:6px;vertical-align:middle}.qi-col-divider{border-left:2px solid #e0e0e0!important}.qi-expand-btn{background:none;border:none;cursor:pointer;font-size:14px;margin-right:6px;color:#888;padding:0;vertical-align:middle}.qi-site-id{font-size:13px;color:var(--text);vertical-align:middle}.qi-empty{color:var(--text-muted)}.qi-regs-td{font-size:14px;font-weight:600}.qi-perf-meter{display:inline-flex;align-items:center;justify-content:center;min-width:46px}.qi-perf-meter-track{display:block;width:44px;height:7px;overflow:hidden;background:#e8eaf0;border-radius:999px}.qi-perf-meter-fill{display:block;height:100%;min-width:2px;border-radius:inherit}.qi-perf-meter-up{background:#2e7d32}.qi-perf-meter-flat{background:#e38b18}.qi-perf-meter-down{background:#c62828}.qi-pending{font-size:11px;color:#bbb;font-style:italic}.qi-actual-goal{display:flex;flex-direction:column;gap:1px;margin-top:5px;color:var(--text-muted);font-size:10px;font-weight:500;line-height:1.2}.qi-review-flag{font-size:10px;color:#e65100;font-weight:600;display:block;margin-top:3px}.qi-score-cell .qi-avg-label{font-size:10px;color:var(--text-muted);text-transform:uppercase;display:block;margin-bottom:2px}.qi-score-cell .qi-score-val{display:inline-block;padding:3px 10px;border-radius:14px;font-size:14px;font-weight:700}.qi-score-cell .qi-status{display:block;margin-top:3px;font-size:11px;color:var(--text-muted)}.qi-true-score{display:block;margin-top:4px;font-size:10px;color:var(--text-muted);font-weight:500}.rollup-true-score{margin-top:6px;text-align:center}.qi-metrics-detail-row td{padding:0;vertical-align:top;border-bottom:1px solid #e8e8e8}.qi-metrics-detail-cell{background:#f9f9fc}.qi-metrics-panel{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:4px 12px 14px 52px;padding:14px 16px;background:var(--surface);border:1px solid #e4e4ee;border-radius:8px}@media(max-width:720px){.qi-metrics-panel{grid-template-columns:1fr}}.qi-metrics-os{min-width:0}.qi-metrics-os-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px;padding-bottom:4px;border-bottom:2px solid var(--border)}.qi-metrics-os-ios{color:#5b4dc7;border-bottom-color:#d6d1f0}.qi-metrics-os-android{color:#e65100;border-bottom-color:#f5d6bf}.qi-metrics-detail-cell .metric-cell{max-width:100%}.qi-metrics-detail-cell .metric-mini-table{width:100%}.hidden{display:none}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:7px;box-shadow:0 10px 30px #18181b0d;max-width:390px;padding:32px;width:100%}.login-shell{align-items:center;display:flex;justify-content:center;min-height:100vh;padding:32px 20px}.login-brand{align-items:center;display:flex;margin-bottom:32px}.login-brand .reco-logo{height:29px}.login-card h1{font-size:25px;letter-spacing:-.4px;margin:0}.login-card>p{color:var(--text-muted);font-size:14px;line-height:1.55;margin:10px 0 24px}.login-card .login-error{background:#fff7f6;border:1px solid #efb2aa;border-radius:5px;color:#9f271e;font-size:13px;margin:0 0 16px;padding:10px 12px}.google-signin-button{align-items:center;background:#fff;border:1px solid #747775;color:#1f1f1f;display:grid;font-family:Google Sans,Roboto,Arial,sans-serif;font-size:14px;font-weight:500;grid-template-columns:20px 1fr 20px;line-height:20px;min-height:42px;padding:10px 12px;width:100%}.google-signin-button img{height:18px;width:17px}.google-signin-button span{grid-column:2;text-align:center}.google-signin-button:hover:not(:disabled){background:#f8faff;border-color:#6f7174}.google-signin-button:focus-visible{outline:2px solid #0b57d0;outline-offset:2px}.google-signin-button:disabled{cursor:wait;opacity:.7}.login-note{color:var(--text-muted);display:block;font-size:11px;margin-top:16px;text-align:center}.performance-header{min-height:57px}.performance-brand{align-items:center;display:flex;font-size:14px;margin:0}.performance-header-actions,.performance-header-actions nav{align-items:center;display:flex;gap:12px}.performance-header-actions nav{border-right:1px solid var(--border);padding-right:14px}.performance-header-actions .header-link{border-radius:4px;padding:6px}.performance-header-actions .header-link.active{background:#eeecff;color:var(--accent);font-weight:700}.performance-org{color:var(--text-muted);font-size:13px}.performance-partner-select{background:var(--surface);border:1px solid var(--border);border-radius:5px;color:var(--text);font:inherit;max-width:220px;padding:7px 28px 7px 9px}.performance-container{max-width:1440px;padding-bottom:48px}.performance-page-head{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.performance-page-head h2{font-size:21px;letter-spacing:-.25px;margin:0}.performance-page-head p{color:var(--text-muted);font-size:12px;margin:4px 0 0}.performance-as-of{align-items:center;color:var(--text-muted);display:flex;font-size:11px;gap:6px}.performance-controls{align-items:flex-end;background:var(--surface);border:1px solid var(--border);border-radius:6px;display:flex;gap:18px;justify-content:space-between;margin-bottom:14px;padding:10px 11px}.performance-tabs{align-self:stretch;border-bottom:1px solid var(--border);display:flex;flex:none;gap:20px}.performance-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;border-color:transparent;border-radius:0;color:var(--text-muted);font-size:13px;font-weight:600;padding:8px 2px 7px}.performance-tabs button.active{border-bottom-color:var(--accent);color:var(--accent)}.performance-filters{align-items:flex-end;display:flex;gap:9px}.performance-filters input[type=date],.performance-filters input[type=text],.performance-filters select{background:var(--surface);border:1px solid var(--border);border-radius:5px;font-size:13px;min-width:130px;padding:8px 12px}.performance-stack{display:grid;gap:14px}.performance-summary-grid{background:var(--surface);border:1px solid var(--border);border-radius:6px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden}.performance-summary-card{border-right:1px solid var(--border);display:grid;gap:5px;min-height:80px;padding:13px 15px}.performance-summary-card:last-child{border-right:0}.performance-summary-card>span{color:var(--text-muted);font-size:12px;font-weight:500}.performance-summary-card strong{font-size:21px;font-weight:650;letter-spacing:-.3px;line-height:1}.performance-summary-card small{color:var(--text-muted);font-size:11px;line-height:1.4}.performance-summary-card.tone-good,.performance-summary-card.tone-warning{background:var(--surface)}.performance-summary-card.tone-warning strong{color:#b42318}.performance-section{background:var(--surface);border:1px solid var(--border);border-radius:6px;overflow:hidden}.performance-section-head{align-items:center;border-bottom:1px solid var(--border);display:flex;gap:12px;justify-content:space-between;min-height:49px;padding:10px 14px}.performance-section-head h2{font-size:14px;letter-spacing:0;margin:0}.performance-section-head p{color:var(--text-muted);font-size:11px;margin:3px 0 0}.performance-meter{background:#dfe5ec;border-radius:999px;height:5px;overflow:hidden}.performance-meter span{background:var(--green);border-radius:inherit;display:block;height:100%}.cap-approaching .performance-meter span{background:#d4a20a}.cap-near_cap .performance-meter span{background:var(--orange)}.cap-at_cap .performance-meter span{background:var(--red)}.performance-cap-table{min-width:850px}.performance-cap-table td{height:48px}.performance-cap-table tbody tr:last-child td{border-bottom:0}.performance-utilization{min-width:130px}.performance-utilization>div{align-items:center;display:grid;gap:8px;grid-template-columns:43px minmax(65px,1fr)}.performance-utilization>div>span{font-size:11px;font-variant-numeric:tabular-nums}.performance-cap-rule{color:var(--text-muted);font-size:11px}.performance-status{background:#f4f4f5;border:1px solid #dce1e8;border-radius:4px;color:var(--text-muted);display:inline-flex;font-size:10px;font-weight:600;padding:4px 8px;white-space:nowrap}.status-under_cap{background:#ecfdf5;border-color:#a7e3bd;color:#087443}.status-approaching{background:#fffbeb;border-color:#f5d789;color:#9a6800}.status-near_cap{background:#fff7ed;border-color:#fdba74;color:#b94708}.status-at_cap{background:#fff1f0;border-color:#f5aca4;color:#b42318}.performance-live{align-items:center;background:#fff1f0;border:1px solid #f5aca4;border-radius:4px;color:#b42318;display:inline-flex;font-size:9px;font-weight:700;gap:5px;letter-spacing:.3px;padding:3px 7px;text-transform:uppercase;white-space:nowrap}.performance-live>span{animation:performance-pulse 1.3s ease-out infinite;background:var(--red);border-radius:50%;height:6px;width:6px}@keyframes performance-pulse{0%{box-shadow:0 0 #dc262673}70%{box-shadow:0 0 0 5px #dc262600}to{box-shadow:0 0 #dc262600}}@media(prefers-reduced-motion:reduce){.performance-live>span{animation:none}}.performance-table-section .performance-section-head{border-bottom:1px solid var(--border)}.performance-row-count{color:var(--text-muted);font-size:11px;padding-top:8px}.performance-table-scroll{overflow:auto}.performance-table{min-width:980px}.performance-table th{padding:9px 12px;white-space:nowrap;z-index:2}.performance-table td{height:46px;padding:8px 12px;white-space:nowrap}.performance-table tbody tr:hover td{background-color:#fafafa}.performance-table .numeric{font-variant-numeric:tabular-nums;text-align:right}.performance-table .date-cell{vertical-align:middle}.performance-table .date-cell .performance-live{margin-left:7px}.performance-table .site-cell{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:700}.performance-table .payable-cell{color:#087443;font-weight:650}.performance-term{display:grid;gap:3px}.performance-term strong{font-size:12px}.performance-term span{color:var(--text-muted);font-size:10px;text-transform:uppercase}.performance-empty{color:var(--text-muted);font-size:12px;padding:32px 20px;text-align:center}.performance-empty.compact{border-top:1px solid var(--border);padding:24px 20px}.performance-loading{align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--text-muted);display:flex;gap:10px;justify-content:center;min-height:160px}.performance-loading>span{animation:performance-spin .8s linear infinite;border:2px solid #d8dbe4;border-radius:50%;border-top-color:var(--accent);height:18px;width:18px}@keyframes performance-spin{to{transform:rotate(360deg)}}.performance-refreshing{color:var(--text-muted);font-size:10px;font-weight:600;margin-bottom:-10px;padding:2px 0;width:max-content}.performance-error{align-items:center;background:#fff7f6;border:1px solid #efb2aa;border-radius:8px;display:flex;gap:16px;justify-content:space-between;margin-bottom:18px;padding:14px 16px}.performance-warning{background:#fffbeb;border:1px solid #f1d37d;border-radius:8px;color:#7a5300;display:grid;font-size:11px;gap:3px;padding:12px 15px}.performance-warning strong{font-size:12px}.performance-error div{display:grid;gap:3px}.performance-error strong{color:#9f271e;font-size:13px}.performance-error span{color:#7c3832;font-size:11px}.roas-section{min-width:0}.roas-scroll{max-height:72vh}.roas-table{min-width:2850px}.roas-table td,.roas-table th{border-right:1px solid #e8ebef;height:37px;padding:7px 9px}.roas-table .roas-day,.roas-table .roas-cell{min-width:72px;width:72px}.roas-table .roas-cell{font-size:11px;transition:filter .12s ease}.roas-table .roas-cell:hover{filter:saturate(1.1) brightness(.96)}.roas-table .roas-cell.future{background:#f6f7f9!important;color:#b3b7c2}.roas-table .sticky-site,.roas-table .sticky-date,.roas-table .sticky-regs{background:var(--surface);left:0;position:sticky;z-index:3}.roas-table thead .sticky-site,.roas-table thead .sticky-date,.roas-table thead .sticky-regs{background:var(--surface2);z-index:5}.roas-table .sticky-site{min-width:105px;width:105px}.roas-table .sticky-date{left:105px;min-width:145px;width:145px}.roas-table .sticky-regs{border-right:2px solid #d7dbe2;left:250px;min-width:70px;width:70px}@media(max-width:1060px){.performance-controls{align-items:stretch;flex-direction:column}.performance-tabs{width:100%}.performance-tabs button{min-width:0}.performance-filters{flex-wrap:wrap}.performance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-summary-card:nth-child(2){border-right:0}.performance-summary-card:nth-child(-n+2){border-bottom:1px solid var(--border)}}@media(max-width:760px){.app-header.performance-header{align-items:flex-start;flex-direction:column;gap:12px;padding:14px 18px}.performance-header-actions{flex-wrap:wrap;width:100%}.performance-header-actions nav{border-right:0;flex:1 1 100%;overflow-x:auto;padding-right:0}.performance-container{padding:16px}.performance-page-head{align-items:flex-start;flex-direction:column;gap:6px}.performance-tabs,.performance-summary-grid{grid-template-columns:1fr}.performance-tabs{overflow-x:auto}.performance-summary-card,.performance-summary-card:nth-child(2){border-bottom:1px solid var(--border);border-right:0}.performance-summary-card:last-child{border-bottom:0}.performance-filters .filter-group{flex:1 1 135px}.performance-filters input[type=date],.performance-filters input[type=text],.performance-filters select{min-width:0;width:100%}}
