:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#242c3b;background:#f4f6fb;font-size:16px;line-height:1.5}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
a{color:#1761d7}
button,input,select{font:inherit}
button,.button{cursor:pointer}
.topbar{min-height:60px;padding:0 24px;background:#fff;border-bottom:1px solid #e1e5ec;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 2px 10px rgba(30,52,84,.04)}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.topbar strong{font-size:17px;color:#202b3d}.topbar-time,.topbar-zone{font-weight:600;font-size:12px;color:#555e6c}.topbar-right{font-size:12px}.topbar-right b{color:#175fd1}.topbar form{margin:0}
.topbar-link,.logout-btn{background:#fff;border:1px solid #1f69e5;border-radius:6px;padding:7px 12px;color:#1f69e5;text-decoration:none;font-size:12px}.logout-btn{border-color:#d34f5e;color:#c4364d}
main{width:100%;padding:22px 20px 20px;margin:0 auto}
h1{font-size:23px;margin:0 0 16px}h2{font-size:21px;margin:0 0 16px}h3{font-size:16px}
.filters,.panel,.login{background:#fff;border:1px solid #e8edf4;border-radius:13px;box-shadow:0 7px 20px rgba(27,53,94,.07)}
.filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:6px 16px;margin:0 0 36px}
.dashboard-filters{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(180px,1fr) minmax(220px,1.5fr) auto;gap:14px;align-items:end}
.filter-field{display:flex;flex-direction:column;gap:8px;min-width:0;color:#263fc5;font-weight:700}
.filter-field select,.filter-field input,.filters input,.filters select{height:38px;min-width:0;border:1px solid #dce2eb;background:#fff;border-radius:6px;padding:6px 12px;color:#283342;outline:none}
.filter-field select:focus,.filter-field input:focus,.filters input:focus,.filters select:focus{border-color:#3f7ee9;box-shadow:0 0 0 3px rgba(43,113,228,.12)}
.date-pair{display:flex;align-items:center;gap:8px;border:1px solid #dce2eb;border-radius:6px;padding:0 6px;background:#fff}
.date-pair input{flex:1;border:0;box-shadow:none!important;padding:6px;max-width:calc(50% - 14px)}.date-pair em{font-style:normal;color:#8b95a5;font-weight:400}
.filter-field>select{width:100%}.filter-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}
.button,button{background:#2265e9;color:#fff;border:0;border-radius:6px;padding:9px 15px;text-decoration:none;font-weight:600;line-height:20px;display:inline-block}
.button:hover,button:hover{filter:brightness(.96)}.button-green{background:#17804b}.button-yellow{background:#f2b626;color:#202530}.button-outline{background:#fff;border:1px solid #d5dfeb;color:#385473}
.summary-section{border-top:1px solid #ccd5e1;border-bottom:1px solid #ccd5e1;padding:24px 0 15px;margin:0 0 16px}.summary-section h2{font-size:28px;margin:0 0 14px;color:#141d2e}
.summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.summary-card{min-height:94px;background:#fff;border-radius:13px;box-shadow:0 7px 18px rgba(24,48,84,.07);padding:16px;display:flex;flex-direction:column;justify-content:center;gap:10px;overflow:hidden}
.summary-card small{font-size:12px;color:#697382}.summary-card strong{font-size:22px;line-height:1.16;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#1d2431}
.summary-card.accent-recharge{border-left:4px solid #23a148}.summary-card.accent-withdraw{border-left:4px solid #d73a51}
.report-tabs{display:flex;align-items:end;gap:0;border-bottom:1px solid #d6dee9;overflow-x:auto;white-space:nowrap;margin-bottom:15px}
.report-tabs a{display:inline-block;padding:11px 15px;color:#1260c5;text-decoration:none;border:1px solid transparent;border-bottom:0;border-radius:6px 6px 0 0;font-weight:600}
.report-tabs a.active{color:#1d2531;background:#fff;border-color:#d6dee9;position:relative;top:1px}.report-tabs a:hover:not(.active){background:#e9f1ff}
.report-content{min-height:260px}.meta{color:#758191;font-size:12px;line-height:1.6;margin:7px 0 10px}.notice{background:#fff3da;border:1px solid #f4d68c;color:#704e08;padding:12px;border-radius:8px;margin:12px 0}.error{color:#bf3345}
.scroll{overflow:auto;background:#fff;border:1px solid #dfe5ed;border-radius:10px}.report-table{border-radius:5px}
table{border-collapse:collapse;min-width:100%;white-space:nowrap;font-size:12px}th,td{text-align:center;padding:11px 10px;border:1px solid #e0e4eb;vertical-align:middle}thead th{background:#eef2fa;color:#2c394b;font-weight:700}thead .group-head:nth-child(4){background:#fff0db}thead .group-head:nth-child(5){background:#fff4e8}
tbody tr:nth-child(odd){background:#f5f5f5}tbody tr:hover{background:#eaf3ff}.total-row,.total-row th{background:#f6f6f6!important;color:#de4755;font-weight:700}.report-table td:nth-child(3){min-width:150px}.report-table th,.report-table td{line-height:1.4}.empty{padding:44px 20px;color:#8290a1}
.panel{padding:19px;margin:18px 0}.panel h2{margin-bottom:12px}.panel p,.panel li{line-height:1.7}.panel .scroll{margin-top:12px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:16px 0}.card{background:#fff;border:1px solid #e6ebf2;border-radius:10px;padding:14px;min-height:74px}.card small{display:block;color:#697789}.card strong{display:block;font-size:21px;margin-top:8px}
.chart{border:1px solid #e3eaf2;border-radius:9px;background:#fff;padding:13px}.charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:16px}.chart svg{display:block;width:100%;height:170px}.chart small{color:#738296}
.multi-chart{margin:13px 0 18px}.multi-chart svg{height:auto;max-height:360px}.chart-legend{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;color:#677587;font-size:11px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{display:inline-block;width:16px;height:4px;border-radius:3px}
.share{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:8px;margin:10px 0}.share>div{height:14px;background:#e4ecf5;border-radius:9px;overflow:hidden}.share i{display:block;height:100%;background:#347ed3}
.login{max-width:440px;margin:8vh auto;padding:28px}.login h1{margin:0 0 24px}.login form,.panel form:not(.filters){display:grid;gap:15px}.login label,.panel label:not(.filter-field){display:grid;gap:6px}.login input,.panel input{width:100%;border:1px solid #d6dfe9;border-radius:6px;padding:9px 12px}
.quick{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.quick a{display:inline-block;padding:7px 11px;background:#edf4ff;border-radius:5px;text-decoration:none}
.date-filter-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.date-shortcuts{gap:4px;font-size:12px;font-weight:600}.date-shortcuts a{padding:2px 6px;line-height:20px}.date-shortcuts a[aria-current="date"]{background:#2265e9;color:#fff}.date-shortcuts a:focus-visible{outline:2px solid #2265e9;outline-offset:2px}
.detail-filters{display:grid;grid-template-columns:repeat(2,minmax(150px,1.3fr)) minmax(180px,1.3fr) repeat(3,minmax(130px,1fr)) minmax(100px,.7fr);gap:8px;align-items:center;margin:10px 0 15px}
.detail-filters>*{width:100%}.detail-filters button{height:38px}.deposits-filters{grid-template-columns:repeat(2,minmax(150px,1.4fr)) repeat(3,minmax(140px,1fr)) minmax(100px,.8fr)}
.visitor-badges{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 14px}.visitor-badges span{display:inline-block;color:#fff;background:#8b939b;border-radius:5px;padding:7px 11px;font-weight:700;font-size:12px}.visitor-badges .badge-result{background:#4c82ec}.visitor-badges .badge-0{background:#55c4dc}.visitor-badges .badge-1{background:#348d61}.visitor-badges .badge-2{background:#f8c758;color:#5b450d}
.period-banner{background:#f3f7ff;border-left:3px solid #3479eb;border-radius:5px;padding:11px 14px;color:#4972a9;margin:12px 0 20px}.narrative-block{margin:20px 0 26px}.narrative-block h3,.diagnostic-block h3{color:#2671c6;border-bottom:1px solid #dce9fb;padding:0 0 8px;margin:0 0 12px}.narrative-block p{margin:7px 0}.delta{display:inline-block;padding:2px 6px;border-radius:11px;font-weight:700;font-size:11px}.delta.up{background:#e5f8ed;color:#119d60}.delta.down{background:#ffecee;color:#e8475c}.delta.neutral{background:#eef1f5;color:#69798d}
.diagnostic-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.diagnostic-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;padding:14px 8px;background:#fff;border:1px solid #e7ebf2;border-bottom:3px solid #3f85ea;border-radius:8px;min-height:110px}.diagnostic-card small{color:#8793a3}.diagnostic-card strong{font-size:19px}.diagnostic-card span{font-size:11px;color:#7a8491}.diagnostic-card .delta{color:inherit}.diagnostic-block{margin:25px 0 12px}.diagnostic-block h3{border-left:3px solid #448cff;padding-left:8px}.diagnostic-block h3 small{font-size:11px;color:#8995a7;font-weight:400}
.rank-number{font-weight:800;color:#2678ef}.health-badge{background:#f3a918;color:#fff;border-radius:20px;padding:4px 8px;font-weight:700}.health-badge.good{background:#25a667}.health-badge.poor{background:#e74f5a}.health-badge.unknown{background:#8594a8}.channel-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.bar-chart{height:300px;display:flex;align-items:end;justify-content:space-around;gap:12px;border-bottom:1px solid #dce4ee;padding:20px 8px 0}.bar-item{height:100%;min-width:24px;flex:1;display:flex;flex-direction:column;justify-content:end;align-items:center}.bar-column{width:100%;max-width:90px;min-height:2px;border-radius:4px 4px 0 0}.bar-value{font-size:10px;color:#7c8797;overflow-wrap:anywhere;text-align:center}.bar-item small{height:22px;margin-top:5px}.donut-wrap{display:flex;align-items:center;justify-content:center;gap:25px;min-height:300px}.donut-chart{width:min(250px,50%);aspect-ratio:1;border-radius:50%;position:relative;flex:none}.donut-chart:after{content:"";position:absolute;inset:27%;background:#fff;border-radius:50%}.donut-legend{display:grid;gap:6px;font-size:11px;color:#617082}.donut-legend i{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:2px}
.status-pill{display:inline-block;border-radius:5px;padding:3px 8px;font-size:11px;font-weight:700;background:#848d98;color:#fff}.status-pill.registered,.status-pill.os-pill{background:#47a177}.button-small{padding:5px 9px;font-size:11px;line-height:16px}.pagination{display:flex;gap:8px;margin:14px 0}.pagination a{padding:7px 12px;border:1px solid #d9e1ec;border-radius:5px;background:#fff;text-decoration:none}.result-count{color:#5174a2;font-weight:700}
@media(max-width:1100px){.dashboard-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-actions{grid-column:1/-1}}
@media(max-width:900px){.summary-grid,.diagnostic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){main{padding:12px}.topbar{padding:10px 12px}.topbar-left,.topbar-right{gap:8px}.dashboard-filters{grid-template-columns:1fr}.filter-actions{grid-column:auto;flex-wrap:wrap}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.summary-card{min-height:84px;padding:11px}.summary-card strong{font-size:17px;white-space:normal;overflow-wrap:anywhere;overflow:visible}.summary-section h2{font-size:22px}.report-tabs a{padding:10px 12px}.date-pair input{font-size:12px}}
@media(max-width:1100px){.detail-filters,.deposits-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.detail-filters,.deposits-filters{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.diagnostic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.diagnostic-card strong{font-size:16px;overflow-wrap:anywhere}}
@media(max-width:760px){.channel-chart-grid{grid-template-columns:1fr}.donut-wrap{flex-wrap:wrap}.donut-chart{width:200px}.bar-chart{height:220px}}

/* Match the reference dashboard's Bootstrap scale and table rhythm. */
.topbar-time,.topbar-zone,.topbar-right,.topbar-link,.logout-btn{font-size:14px}
.topbar-link,.logout-btn{padding:4px 9px}
.topbar-link.active{background:#edf4ff}
.account-menu{position:relative;color:#555e6c}
.account-menu summary{cursor:pointer;list-style:none}
.account-menu summary::-webkit-details-marker{display:none}
.account-menu summary:after{content:" ▾";color:#8b96a8;font-size:12px}
.account-menu>div{position:absolute;right:0;top:calc(100% + 12px);z-index:20;min-width:128px;background:#fff;border:1px solid #dce4ee;border-radius:7px;box-shadow:0 8px 22px rgba(28,45,75,.13);padding:5px}
.account-menu a{display:block;padding:8px 10px;color:#2265d9;text-decoration:none;white-space:nowrap}
.account-menu a:hover{background:#edf4ff}
.config-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:3px 0 20px}
.config-heading h1{font-size:30px;margin:0 0 5px}
.config-heading p{margin:0;color:#6f7c8c}
.config-heading-actions{display:flex;gap:8px;flex-wrap:wrap}
.config-panel{padding:18px}
.config-form-panel{max-width:760px}
.config-form-panel form{display:grid;gap:14px}
.config-form-panel input,.config-form-panel select{width:100%;height:40px}
.config-form-panel .meta{margin:-8px 0 0}
.config-form-panel button{justify-self:start}
.config-success{background:#eaf8ef;border-color:#bce8ca;color:#246d3c}
.config-filters{display:grid;grid-template-columns:minmax(240px,2fr) minmax(180px,1fr) minmax(160px,1fr) auto;gap:14px;align-items:end}
.config-filters button{height:38px}
.config-table{margin-top:18px}
.config-table th,.config-table td{white-space:nowrap}
.config-table th{background:#eef2fa}
.config-table .config-link{min-width:320px;max-width:560px;text-align:left}
.config-link a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.config-heading{align-items:flex-start;flex-direction:column}.config-filters{grid-template-columns:1fr}.config-table .config-link{min-width:220px}}
@media(max-width:760px){.summary-section h2{font-size:22px;line-height:1.3}.filters{margin-bottom:18px;padding:12px}.topbar{min-height:60px}}
.dashboard-filters{grid-template-columns:minmax(0,3fr) minmax(0,2fr) minmax(0,3fr) minmax(390px,4fr);gap:16px}
.filter-actions{justify-content:flex-end}
.button,button{font-size:16px;line-height:22px;padding:8px 13px}
.summary-section{padding-top:26px;margin-bottom:19px}
.summary-section h2{font-size:32px;line-height:1.2;margin-bottom:16px}
.summary-card{min-height:90px;border-radius:14px;gap:6px}
.summary-card small{font-size:13px}
.summary-card strong{line-height:1.5}
.report-tabs{margin-bottom:16px}
.report-tabs a{padding:8px 16px;font-weight:500;line-height:24px}
table{font-size:16px;line-height:24px}
th,td{padding:8px;border-color:#d9dee7}
.report-table th,.report-table td{line-height:1.3}
.report-table tbody tr:not(.total-row) td{height:64px}
.meta{font-size:13px}
.status-pill,.button-small,.visitor-badges span{font-size:13px}
@media(max-width:760px){.button,button{font-size:14px}.report-tabs a{padding:8px 12px}table{font-size:14px}.summary-card strong{line-height:1.2}}
.source-status{margin:16px 0 25px;padding:12px 16px;background:#fff;border:1px solid #e3e8f0;border-radius:8px;color:#5d6777;font-size:13px}
.source-status summary{cursor:pointer;font-weight:600}
.source-status .notice{font-size:13px;margin:9px 0}
.hourly-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hourly-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;margin:0;padding:0;box-shadow:none;border:0}
.hourly-filters button{align-self:end}
@media(max-width:760px){.hourly-filters{grid-template-columns:1fr}}
.channel-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(390px,1fr));gap:14px;margin-top:15px}
.channel-detail{margin:0}
.channel-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.channel-kpis>div{background:#f5f8fd;border:1px solid #e4e9f3;border-radius:7px;padding:9px;min-width:0}
.channel-kpis small{display:block;color:#6d7787;font-size:12px}
.channel-kpis strong{display:block;overflow-wrap:anywhere;font-size:16px;margin-top:5px}
.channel-kpis span{display:block;font-size:12px;color:#778397;white-space:normal;margin-top:5px}
@media(max-width:1100px){.dashboard-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-actions{justify-content:flex-start}}
@media(max-width:760px){.dashboard-filters{grid-template-columns:1fr}}
@media(max-width:760px){.channel-detail-grid{grid-template-columns:1fr}.channel-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shared mobile report layout: keep every metric inside its scroll owner. */
.scroll{max-width:100%;min-width:0}
.scroll:focus-visible{outline:2px solid #2265e9;outline-offset:2px}
.table-scroll-hint,.mobile-row-context{display:none}
@media(width > 900px){
  .daily-metrics table{border-collapse:separate;border-spacing:0}
  .daily-metrics :is(th,td){border-width:0 1px 1px 0}
  .daily-metrics :is(thead tr:first-child,tbody tr)>:first-child:not(.empty){position:sticky;left:0;z-index:1}
  .daily-metrics tbody tr:nth-child(even){background:#fff}
  .daily-metrics tbody tr:hover{background:#eaf3ff}
  .daily-metrics tbody tr>td:first-child:not(.empty){background:inherit}
}
@media(min-width:761px) and (max-width:1100px){
  .summary-grid,.diagnostic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .summary-card strong{white-space:normal;overflow-wrap:anywhere;overflow:visible}
}
@media(max-width:760px){
  .topbar{flex-direction:column;align-items:stretch;gap:8px}
  .topbar-left{gap:4px 8px}.topbar-time,.topbar-zone{font-size:11px}
  .topbar-right{justify-content:space-between;gap:8px}
  .account-menu{flex:1;min-width:0}.account-menu summary{overflow-wrap:anywhere}
  .topbar-link,.logout-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px}
  .dashboard-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}
  .filter-dates,.filter-actions{grid-column:1/-1}
  .filter-field{font-size:13px;gap:6px}
  .date-filter-heading{justify-content:space-between;gap:6px}
  .date-shortcuts a{min-width:44px;min-height:36px;padding:8px 6px;text-align:center}
  .date-pair{min-height:44px;gap:4px;padding:0 3px}
  .date-pair input{width:0;max-width:none;font-size:13px;padding:6px 3px}
  .filter-field select,.filter-field input{height:44px}
  .filter-field select{font-size:14px;padding:6px 8px}
  .filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .filter-actions .button{min-height:44px;text-align:center;white-space:normal;display:flex;align-items:center;justify-content:center;padding:8px}
  .summary-section{padding:14px 0 12px;margin-bottom:12px}
  .summary-section h2{font-size:20px;margin-bottom:10px}
  .summary-card{min-height:70px;padding:10px;gap:4px;border-radius:10px}
  .summary-card small{font-size:12px;line-height:1.4}
  .summary-card strong{font-size:clamp(16px,4.6vw,20px);font-variant-numeric:tabular-nums}
  .report-tabs{gap:4px;align-items:stretch;padding-bottom:4px}
  .report-tabs a{min-height:44px;padding:8px 10px;font-size:14px;flex-shrink:0}
  .panel{padding:12px;margin:12px 0}.panel h2{font-size:18px;overflow-wrap:anywhere}
  .notice{padding:10px;font-size:12px;line-height:1.6}
  .source-status{padding:10px 12px;margin:12px 0;font-size:12px}
  .pagination{flex-wrap:wrap;align-items:center}.pagination a{min-height:40px}
  .report-content,.chart,.card,.channel-detail,.channel-kpis>div{min-width:0}
  .card strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
  .detail-filters,.deposits-filters{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
  .detail-filters>*,.deposits-filters>*{min-width:0}
  .donut-legend{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .charts,.channel-chart-grid{grid-template-columns:minmax(0,1fr)}
  .share{grid-template-columns:minmax(0,1fr);gap:5px;overflow-wrap:anywhere}
  .chart{padding:10px}.chart-legend{gap:8px;justify-content:flex-start}
  .hourly-heading{flex-wrap:wrap;align-items:flex-start;gap:10px}
  .hourly-filters{width:100%;min-width:0}
}
@media(max-width:900px){
  .table-scroll-hint{display:block;color:#5174a2;font-size:12px;line-height:1.5;margin:10px 0 6px}
  .daily-metrics,.hourly-metrics{max-height:65vh;max-height:65svh;overscroll-behavior-x:contain;scrollbar-width:thin}
  .daily-metrics table,.hourly-metrics table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
  .daily-metrics th,.daily-metrics td,.hourly-metrics th,.hourly-metrics td{border-width:0 1px 1px 0;padding:9px 10px}
  .daily-metrics thead th,.hourly-metrics thead th{position:sticky;top:0;z-index:2;background:#eef2fa}
  .daily-metrics thead tr:first-child .group-head{height:36px;padding:7px 10px}
  .daily-metrics thead tr:nth-child(2) th{top:36px}
  .daily-metrics tbody tr>:first-child:not(.empty),.daily-metrics thead tr:first-child>th:first-child,.hourly-metrics tr>:first-child:not(.empty){position:sticky;left:0;z-index:1;min-width:108px;max-width:108px;white-space:normal;background:#fff;box-shadow:3px 0 5px rgba(27,53,94,.08)}
  .daily-metrics thead tr:first-child th:first-child,.hourly-metrics thead th:first-child{z-index:4;background:#eef2fa}
  .daily-metrics tbody tr:nth-child(odd)>td:first-child,.hourly-metrics tbody tr:nth-child(odd)>td:first-child{background:#f5f5f5}
  .daily-metrics .row-date,.hourly-metrics .row-date{display:block;font-size:12px;line-height:1.5}
  .mobile-row-context{display:block;font-size:11px;font-weight:400;line-height:1.5;color:#697382;overflow-wrap:anywhere;margin-top:4px}
  .report-table tbody tr:not(.total-row) td{height:auto;min-height:48px}
}

/* Focused report: a shared metric subset and inline details on narrow screens. */
.focused-report{display:none}.extra-filters{grid-column:2/-1;min-width:0}.extra-filters summary{cursor:pointer;color:#526783;font-size:13px;padding:10px 0}.extra-filter-fields{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.extra-filter-fields>.filter-field{flex:1;min-width:150px}.core-summary{grid-template-columns:repeat(7,minmax(0,1fr))}.secondary-summary{margin-top:4px}.secondary-summary h3{color:#526783;font-size:13px;font-weight:400;margin:0;padding:10px 0}.secondary-summary .summary-grid{margin-top:8px}
@media(max-width:1100px){.core-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .dashboard-filters{display:block;padding:10px 12px}.date-filter-heading{display:flex;align-items:center}.filter-dates .date-pair{margin-top:8px}.extra-filters{margin-top:2px}.extra-filters summary{padding:8px 0 0}.extra-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:12px}.extra-filter-fields>.filter-field{min-width:0}.extra-filter-fields .filter-actions{width:100%}
 .summary-section h2{font-size:17px;margin:0 0 8px}.summary-section{padding:6px 0;margin:8px 0}.core-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.core-summary .summary-card{padding:9px 7px;min-height:64px}.core-summary .summary-card small{font-size:11px}.core-summary .summary-card strong{font-size:18px;white-space:normal;overflow-wrap:anywhere}.core-summary .summary-card:nth-child(n+4){background:#eef5ff;border-color:#d6e5fc}.secondary-summary h3{font-size:12px;padding:7px 0}
 .desktop-report-table{display:none}.focused-report{display:block;margin-top:12px}.focus-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:12px 0 8px}.focus-heading strong{font-size:15px}.focus-heading small{font-size:11px;color:#6b7890}.metric-switch{display:flex;gap:4px;margin:0 0 10px;background:#edf1f7;border-radius:8px;padding:4px}.metric-switch button{flex:1;min-width:0;min-height:40px;padding:4px 2px;border:0;border-radius:6px;background:transparent;color:#52627a;font-size:12px;cursor:pointer}.metric-switch button[aria-pressed=true]{background:#fff;color:#185bd1;box-shadow:0 1px 3px #20355618;font-weight:600}.metric-switch button:focus-visible,.row-expand:focus-visible{outline:2px solid #2265e9;outline-offset:-2px}
 .focus-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.focus-table th,.focus-table td{white-space:normal;overflow-wrap:anywhere;padding:10px 3px;text-align:right;font-size:12px;border:0;border-bottom:1px solid #e4eaf3}.focus-table thead th{position:sticky;top:0;background:#edf2fa;z-index:1;font-size:11px;line-height:1.5}.focus-table tr>:first-child{width:27%;text-align:left}.focus-table [hidden]{display:none!important}.focus-table .total-row{background:#eef5ff}.row-expand{display:block;width:100%;padding:2px;border:0;background:transparent;text-align:left;cursor:pointer;color:#263e60;font-size:12px;min-height:44px}.row-expand>span{display:block;font-weight:600}.row-expand small{display:block;color:#718099;font-weight:400;font-size:10px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}.expand-indicator{color:#2265e9}.focus-detail>td{background:#f6f8fc;padding:12px!important;text-align:left!important}.focus-detail p{margin:0 0 10px;color:#536986;font-size:12px}.focus-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin:0}.focus-detail dl>div{display:flex;justify-content:space-between;align-items:start;gap:6px;border-bottom:1px solid #e4eaf3;padding:9px 0}.focus-detail dt{font-size:11px;color:#697b94}.focus-detail dd{font-size:12px;font-weight:600;margin:0;text-align:right;overflow-wrap:anywhere}.focus-detail .metric-definition{font-size:11px;line-height:1.7;margin:12px 0 0}
}

.metric-label{display:inline;white-space:normal;line-height:1.5}
.metric-help{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;min-width:18px;min-height:18px;margin:0 0 0 3px;padding:0;border:1px solid #8a9bb3;border-radius:50%;background:transparent;color:#60738f;font:600 11px/1 system-ui;vertical-align:middle;cursor:help;box-shadow:none}
.metric-help:hover,.metric-help:focus-visible{background:#e9f1ff;border-color:#2265e9;color:#185bd1;filter:none}.metric-help:focus-visible{outline:2px solid #2265e9;outline-offset:2px}
.metric-tooltip{position:fixed;z-index:1000;width:max-content;max-width:min(320px,calc(100vw - 16px));padding:12px 14px;border:1px solid #ced9e9;border-radius:8px;background:#fff;color:#263b59;box-shadow:0 5px 20px #1d35552b;font-size:13px;font-weight:400;line-height:1.7;white-space:normal;overflow-wrap:anywhere;text-align:left;max-height:calc(100vh - 16px);overflow:auto}
.metric-tooltip[hidden]{display:none}
@media(max-width:760px){.metric-help{width:20px;height:20px;min-width:20px;min-height:20px;margin-left:2px;font-size:11px}.focus-table thead th{padding:8px 2px}.summary-card small{overflow:visible}.summary-card:has(.metric-help){overflow:visible}.focus-detail dt{min-width:0}.focus-detail dd{flex-shrink:0}}

/* Keep each question mark attached to its heading. */
.metric-label{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;overflow-wrap:normal;vertical-align:middle}
.metric-label .metric-help{flex:none;margin:0}
@media(max-width:760px){
 .focus-table thead th{padding:8px 1px}
 .focus-table tr>:first-child{width:19%}
 .focus-table thead th[data-focus-metric="registration_first_deposit_rate"],.focus-table thead th[data-focus-metric="visitor_registration_rate"]{width:25%}
 .focus-table .metric-label{gap:1px}
 .focus-table .metric-help{width:14px;height:14px;min-width:14px;min-height:14px;font-size:10px}
 .core-summary .metric-label,
 .focused-report:has([data-metric-group*="total_registration_first_deposit_rate"][aria-pressed="true"]) .focus-table thead .metric-label{display:inline;white-space:normal}
 .focused-report:has([data-metric-group*="total_registration_first_deposit_rate"][aria-pressed="true"]) .focus-table thead th[data-focus-metric="total_registration_first_deposit_rate"]{width:25%}
}
@media(max-width:360px){.focus-table thead th{font-size:10px}.focus-table .metric-help{width:12px;height:12px;min-width:12px;min-height:12px;font-size:9px}}
@media(max-width:760px){
 .focused-report:has([data-metric-group*="registration_callbacks"][aria-pressed="true"]) .focus-table tr>:first-child{width:17%}
 .focused-report:has([data-metric-group*="registration_callbacks"][aria-pressed="true"]) .focus-table thead th[data-focus-metric="visitors"]{width:15%}
 .focused-report:has([data-metric-group*="registration_callbacks"][aria-pressed="true"]) .focus-table thead th[data-focus-metric="new_users"]{width:19%}
 .focused-report:has([data-metric-group*="registration_callbacks"][aria-pressed="true"]) .focus-table thead th[data-focus-metric="visitor_registration_rate"]{width:24%}
 .focused-report:has([data-metric-group*="registration_callbacks"][aria-pressed="true"]) .focus-table thead th[data-focus-metric="registration_callbacks"]{width:25%}
}

/* The report panel owns its loading state; navigation and filters stay usable. */
.report-content{position:relative}
.report-loading{position:absolute;inset:0 0 auto;min-height:260px;display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;border:1px solid #e1e5ec;border-radius:13px;color:#697382;font-weight:600}
.report-loading[hidden]{display:none}
.report-content[data-loading="true"]>:not(.report-loading){visibility:hidden}
main[aria-busy="true"] .summary-section{opacity:.55}
.report-loading__spinner{width:22px;height:22px;flex:0 0 22px;border:3px solid #e1e5ec;border-top-color:#2265e9;border-radius:50%;animation:report-loading-spin .8s linear infinite}
@keyframes report-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.report-loading__spinner{animation:none;border-style:dotted}}

@media(max-width:760px){
 /* Four game counts retain full names without overlapping adjacent columns. */
 .focused-report:has([data-metric-group*="game_"][aria-pressed="true"]) .focus-table tr>:first-child{width:20%}
 .focused-report:has([data-metric-group*="game_"][aria-pressed="true"]) .focus-table .metric-label{display:inline;white-space:normal;overflow-wrap:anywhere}
}

.quick a.is-active{background:#2265e9;color:#fff;font-weight:700;box-shadow:inset 0 0 0 1px #174fbf}.quick a:focus-visible{outline:2px solid #2265e9;outline-offset:3px}
