.attendance-reports-wrap{max-width:1500px!important;padding-bottom:48px}
.reports-toolbar{margin-bottom:18px}
.reports-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.65fr);gap:22px;align-items:center;background:linear-gradient(135deg,#073d8c,#0a63b8);color:#fff;border-radius:24px;padding:28px 30px;margin-bottom:18px;box-shadow:0 18px 45px rgba(7,61,140,.18)}
.reports-hero h2{margin:7px 0 8px;font-size:clamp(22px,2.3vw,34px);line-height:1.08;color:#fff}.reports-hero p{margin:0;color:rgba(255,255,255,.83);max-width:850px}.reports-hero-pill{display:inline-flex;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);padding:7px 10px;border-radius:999px;font-size:11px;font-weight:900;letter-spacing:.06em}.reports-hero-formulas{display:grid;gap:8px;background:rgba(3,27,66,.28);border:1px solid rgba(255,255,255,.18);padding:16px;border-radius:18px}.reports-hero-formulas b{font-size:12px;letter-spacing:.05em}.reports-hero-formulas span{font-size:12px;line-height:1.35;color:rgba(255,255,255,.88)}
.report-mode-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.report-mode-tabs button{border:1px solid #d9e2ee;background:#fff;color:#536175;padding:10px 16px;border-radius:999px;font-weight:850;cursor:pointer}.report-mode-tabs button.active{background:#073d8c;color:#fff;border-color:#073d8c;box-shadow:0 8px 20px rgba(7,61,140,.18)}.report-mode-view{display:none}.report-mode-view.active{display:block}
.report-control-card{margin-bottom:16px}.report-control-grid{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:18px;align-items:end}.report-control-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.report-control-grid label{display:block;font-size:12px;font-weight:850;margin-bottom:6px}
.report-title-card{overflow:hidden}.report-title-band{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#073d8c;color:#fff;padding:18px 20px;border-radius:18px 18px 0 0}.report-title-band h2{margin:3px 0 0;color:#fff;font-size:22px}.report-title-band p{margin:3px 0 0;color:rgba(255,255,255,.8)}.report-title-logo{width:62px;height:62px;object-fit:contain;background:#fff;border-radius:50%;padding:4px;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.report-kpis{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));gap:10px;margin:16px 0}.report-kpis article{background:#fff;border:1px solid #e3e9f2;border-radius:16px;padding:13px 14px;box-shadow:0 7px 18px rgba(22,42,76,.05)}.report-kpis small{display:block;color:#748198;font-weight:750;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.report-kpis b{display:block;font-size:24px;color:#17304f;margin:3px 0}.report-kpis span{font-size:11px;color:#7d899b}.report-kpis article.kpi-good b{color:#158556}.report-kpis article.kpi-warn b{color:#b66b00}.report-kpis article.kpi-bad b{color:#c43136}.report-kpis article.kpi-info b{color:#0565c9}
.week-report-day{border:1px solid #e2e8f1;border-radius:18px;background:#fff;margin-bottom:14px;overflow:hidden;box-shadow:0 8px 24px rgba(20,42,73,.05)}.week-report-day-head{display:grid;grid-template-columns:minmax(190px,1fr) auto;gap:14px;align-items:center;padding:13px 16px;background:#f4f7fb;border-bottom:1px solid #e5eaf2}.week-report-day-head h3{margin:0;color:#17304f}.week-report-day-head p{margin:3px 0 0;color:#7c8798;font-size:12px}.day-mini-stats{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.day-mini-stats span{font-size:10px;font-weight:850;border-radius:999px;padding:5px 8px;background:#fff;border:1px solid #dfe5ee}.day-mini-stats .present{color:#148156}.day-mini-stats .absent{color:#c43136}.day-mini-stats .excused{color:#a46200}.day-mini-stats .pending{color:#6d7787}
.day-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}.day-status-column{border:1px solid #e5eaf2;border-radius:14px;min-width:0;background:#fbfcfe}.day-status-column>h4{display:flex;align-items:center;justify-content:space-between;margin:0;padding:11px 12px;border-bottom:1px solid #e5eaf2;font-size:12px;color:#17304f}.day-status-column>h4 span{min-width:26px;text-align:center;border-radius:999px;padding:3px 7px;background:#eef3f9}.day-status-column.present>h4{border-left:4px solid #1b9a67}.day-status-column.absent>h4{border-left:4px solid #d4484d}.day-status-column.excused>h4{border-left:4px solid #df9a1c}.status-shift{padding:10px 11px;border-top:1px dashed #e6eaf0}.status-shift:first-of-type{border-top:0}.status-shift-title{display:flex;justify-content:space-between;gap:8px;font-size:10px;text-transform:uppercase;font-weight:900;color:#6f7b8d;margin-bottom:7px}.status-person{display:grid;grid-template-columns:26px minmax(0,1fr);gap:7px;padding:6px 0;align-items:start}.status-person-number{width:24px;height:24px;border-radius:8px;background:#eef3f9;color:#5f6d81;display:grid;place-items:center;font-size:10px;font-weight:900}.status-person b{display:block;font-size:12px;color:#1c2f49;overflow-wrap:anywhere}.status-person small{display:block;font-size:10px;color:#7b8798;margin-top:2px}.excuse-reason{margin-top:5px;padding:7px 8px;border-radius:9px;background:#fff7e8;color:#6e4a0f;font-size:10.5px;line-height:1.45;border:1px solid #f0dfbd}.excuse-status{font-weight:900}.report-empty-small{padding:10px 0;font-size:11px;color:#8c96a5}
.report-consistency{margin-top:16px}.report-consistency h3{margin-top:0}.consistency-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.consistency-item{padding:12px;border-radius:13px;background:#f7f9fc;border:1px solid #e3e8f0}.consistency-item b{display:block;font-size:20px;color:#17304f}.consistency-item small{color:#737f91;font-size:11px}.consistency-item.alert{background:#fff5f5;border-color:#f2cfd1}.consistency-item.alert b{color:#b52c31}.consistency-list{margin-top:10px;display:grid;gap:6px}.consistency-row{padding:8px 10px;border-radius:10px;border:1px solid #e5eaf2;background:#fff;font-size:11px;color:#566275}
.monthly-week-table-wrap{overflow:auto;border:1px solid #e1e7ef;border-radius:16px}.monthly-week-table{width:100%;border-collapse:collapse;min-width:820px}.monthly-week-table th{background:#073d8c;color:#fff;text-align:left;padding:10px 11px;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.monthly-week-table td{padding:10px 11px;border-bottom:1px solid #e8ecf2;font-size:12px}.monthly-week-table tbody tr:nth-child(even){background:#f8fafd}.coverage-bar{height:7px;background:#e7ecf3;border-radius:999px;overflow:hidden;margin-top:4px}.coverage-bar span{display:block;height:100%;background:#16865a;border-radius:999px}
.monthly-analysis-card{margin-top:16px}.monthly-analysis-box{background:linear-gradient(180deg,#f7faff,#fff);border:1px solid #dfe8f5;border-radius:16px;padding:18px}.monthly-analysis-box h3{margin-top:0;color:#073d8c}.monthly-analysis-text p{font-size:13px;line-height:1.65;color:#34445b;margin:0 0 12px}.monthly-analysis-text ul{margin:8px 0 0;padding-left:19px;color:#34445b;font-size:12px;line-height:1.55}.monthly-analysis-text strong{color:#17304f}.recurrence-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.recurrence-card{border:1px solid #e1e7ef;border-radius:15px;background:#fff;padding:14px}.recurrence-card h4{margin:0 0 9px;color:#17304f}.recurrence-row{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid #eef1f5;font-size:11px}.recurrence-row:first-of-type{border-top:0}.recurrence-row b{color:#233750}.recurrence-row span{font-weight:900;color:#b33a3f}.recurrence-card.excuses .recurrence-row span{color:#a66700}
.report-note{padding:10px 12px;background:#eef6ff;border:1px solid #d2e5fb;border-radius:12px;color:#31587f;font-size:11px;line-height:1.5;margin-top:12px}.report-generated-meta{font-size:10px;color:#8a95a5;margin:7px 0 0}
@media(max-width:1200px){.report-kpis{grid-template-columns:repeat(4,1fr)}.day-report-grid{grid-template-columns:1fr}.reports-hero{grid-template-columns:1fr}.reports-hero-formulas{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.report-control-grid{grid-template-columns:1fr}.report-control-actions{justify-content:flex-start}.report-kpis{grid-template-columns:repeat(2,1fr)}.reports-hero{padding:20px}.reports-hero-formulas{grid-template-columns:1fr}.week-report-day-head{grid-template-columns:1fr}.day-mini-stats{justify-content:flex-start}.recurrence-grid{grid-template-columns:1fr}}
html[data-theme="dark"] .report-mode-tabs button{background:#132033;border-color:#2c3d54;color:#c8d3e0}html[data-theme="dark"] .report-mode-tabs button.active{background:#1765ad;color:#fff;border-color:#1765ad}html[data-theme="dark"] .report-kpis article,html[data-theme="dark"] .week-report-day,html[data-theme="dark"] .recurrence-card{background:#121f31;border-color:#2b3c53}html[data-theme="dark"] .report-kpis b,html[data-theme="dark"] .week-report-day-head h3,html[data-theme="dark"] .day-status-column>h4,html[data-theme="dark"] .status-person b,html[data-theme="dark"] .consistency-item b,html[data-theme="dark"] .recurrence-card h4,html[data-theme="dark"] .monthly-analysis-text strong{color:#e9f0f8}html[data-theme="dark"] .week-report-day-head{background:#17263a;border-color:#2b3c53}html[data-theme="dark"] .day-status-column{background:#142135;border-color:#2b3c53}html[data-theme="dark"] .day-status-column>h4,html[data-theme="dark"] .status-shift{border-color:#2b3c53}html[data-theme="dark"] .status-person-number,html[data-theme="dark"] .day-status-column>h4 span{background:#22344b;color:#cbd6e2}html[data-theme="dark"] .status-person small,html[data-theme="dark"] .report-kpis small,html[data-theme="dark"] .report-kpis span,html[data-theme="dark"] .week-report-day-head p,html[data-theme="dark"] .report-empty-small{color:#9fafc0}html[data-theme="dark"] .excuse-reason{background:#302815;border-color:#57461f;color:#ead5a6}html[data-theme="dark"] .consistency-item{background:#18263a;border-color:#2b3c53}html[data-theme="dark"] .consistency-item.alert{background:#332027;border-color:#64323b}html[data-theme="dark"] .consistency-row{background:#162438;border-color:#2c3d54;color:#b8c5d4}html[data-theme="dark"] .monthly-week-table-wrap{border-color:#2b3c53}html[data-theme="dark"] .monthly-week-table td{border-color:#2b3c53;color:#c8d3e0}html[data-theme="dark"] .monthly-week-table tbody tr:nth-child(even){background:#152337}html[data-theme="dark"] .monthly-analysis-box{background:#142236;border-color:#2c3e56}html[data-theme="dark"] .monthly-analysis-box h3{color:#71b4f2}html[data-theme="dark"] .monthly-analysis-text p,html[data-theme="dark"] .monthly-analysis-text ul{color:#bdc9d7}html[data-theme="dark"] .report-note{background:#142a42;border-color:#2d5378;color:#aac9e7}
@media print{#staffSidebarHost,.reports-toolbar,.reports-hero,.report-mode-tabs,.report-control-card,#latidoThemeToggle,#latidoSiteFooter{display:none!important}.staff-module-main{padding:0!important}.attendance-reports-wrap{max-width:none!important}.report-mode-view{display:none!important}.report-mode-view.active{display:block!important}.week-report-day,.report-title-card,.monthly-analysis-card{box-shadow:none!important;break-inside:avoid}.day-report-grid{grid-template-columns:repeat(3,1fr)!important}.report-kpis{grid-template-columns:repeat(7,1fr)!important}.report-title-band{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* === Reportes v2: excusas documentadas + archivo histórico === */
.excuse-reason-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px}.excuse-category{font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.035em;background:#f7e5bd;border:1px solid #e8cf97;border-radius:999px;padding:2px 6px;color:#76500d}.excuse-reason-text{white-space:pre-wrap;overflow-wrap:anywhere}.excuse-approved-by{margin-top:6px;padding-top:5px;border-top:1px dashed #dfc98e;color:#2f7551;font-size:9.5px;font-weight:800}.excuse-manual-note{margin-top:7px;padding:7px 8px;border-radius:8px;background:#f8fafc;border:1px solid #e0e7ef;color:#566275}.excuse-manual-note small{display:block!important;margin-top:4px!important;color:#8490a0!important}.manual-excuse-edit{margin-top:7px;border:0;background:transparent;color:#0765c9;padding:0;font-size:9.5px;font-weight:850;cursor:pointer}.manual-excuse-edit:hover{text-decoration:underline}
.report-excuse-modal-box{max-width:680px}.manual-excuse-textarea{min-height:150px;resize:vertical;line-height:1.5}.official-excuse-preview{margin:8px 0 14px;padding:12px 13px;border:1px solid #cfe0f2;background:#f3f8fe;border-radius:13px;color:#344f6e}.official-excuse-preview b{color:#073d8c}.official-excuse-preview p{white-space:pre-wrap;margin:6px 0;line-height:1.5}.official-excuse-preview small{display:block;color:#347255;font-weight:800}.manual-excuse-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:14px}
.archive-import-card{overflow:hidden}.archive-import-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:24px;align-items:center}.archive-import-grid h3{margin:4px 0 6px;color:#17304f}.archive-import-controls{padding:16px;border:1px solid #dfe7f1;border-radius:15px;background:#f8fafd}.archive-import-controls label{display:block;font-size:11px;font-weight:850;margin-bottom:6px}.archive-import-controls .btn{margin-top:9px;width:100%}.historical-report-card{margin-bottom:14px}.historical-card-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.historical-card-head h3{margin:7px 0 3px;color:#17304f;overflow-wrap:anywhere}.historical-card-head p{margin:0;color:#7b8798;font-size:11px}.historical-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.historical-kpis{display:grid;grid-template-columns:repeat(5,minmax(100px,1fr));gap:8px;margin-top:14px}.historical-kpis span{border:1px solid #e2e8f0;background:#f8fafd;border-radius:12px;padding:10px 11px;font-size:10px;color:#748095}.historical-kpis b{font-size:18px;color:#17304f;margin-right:4px}.historical-detail{margin-top:14px;padding-top:14px;border-top:1px solid #e5eaf1}.historical-analysis{margin-top:14px;padding:14px 15px;border:1px solid #dce6f2;border-radius:14px;background:#f8fbff}.historical-analysis h4{margin:0 0 7px;color:#073d8c}.historical-analysis p{white-space:pre-wrap;line-height:1.6;color:#4b5c72;font-size:12px}.historical-raw{margin-top:12px;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px}.historical-raw summary{cursor:pointer;font-weight:800;color:#50627a}.historical-raw pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:480px;overflow:auto;font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;color:#536174;background:#f8fafd;padding:12px;border-radius:9px}
@media(max-width:900px){.archive-import-grid{grid-template-columns:1fr}.historical-kpis{grid-template-columns:repeat(2,1fr)}.historical-card-head{flex-direction:column}.historical-actions{justify-content:flex-start}}
html[data-theme="dark"] .excuse-category{background:#3d3119;border-color:#654f24;color:#f0d89e}html[data-theme="dark"] .excuse-approved-by{border-color:#574c2d;color:#91d0ac}html[data-theme="dark"] .excuse-manual-note{background:#17263a;border-color:#2c3d54;color:#b9c6d5}html[data-theme="dark"] .manual-excuse-edit{color:#74b9f5}html[data-theme="dark"] .official-excuse-preview{background:#14283f;border-color:#315372;color:#bed0e2}html[data-theme="dark"] .official-excuse-preview b{color:#7dbbf1}html[data-theme="dark"] .archive-import-grid h3,html[data-theme="dark"] .historical-card-head h3,html[data-theme="dark"] .historical-kpis b{color:#e8eff7}html[data-theme="dark"] .archive-import-controls,html[data-theme="dark"] .historical-kpis span,html[data-theme="dark"] .historical-analysis,html[data-theme="dark"] .historical-raw pre{background:#152337;border-color:#2b3d54;color:#b9c6d5}html[data-theme="dark"] .historical-detail,html[data-theme="dark"] .historical-raw{border-color:#2b3d54}html[data-theme="dark"] .historical-analysis h4{color:#78b8f1}html[data-theme="dark"] .historical-analysis p,html[data-theme="dark"] .historical-raw summary,html[data-theme="dark"] .historical-raw pre{color:#b9c6d5}
@media print{.manual-excuse-edit,.report-excuse-modal,#archiveReportView{display:none!important}}

/* === Reportes v3: históricos navegables en semanal y mensual === */
.monthly-control-fields{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(320px,1fr);gap:12px;align-items:end}.report-source-line{margin-top:7px;font-size:10px;color:rgba(255,255,255,.78);font-weight:750;line-height:1.4}.table-source-tag{display:inline-flex;margin-left:7px;padding:2px 6px;border-radius:999px;background:#eef4fb;color:#476581;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.excuse-historical-source{margin-top:6px;padding-top:5px;border-top:1px dashed #dfc98e;color:#6e5b33;font-size:9px;font-weight:750}.monthly-excuses-card{margin-top:16px}.monthly-excuse-list{display:grid;border:1px solid #e2e8f0;border-radius:15px;overflow:hidden}.monthly-excuse-row{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(150px,.6fr) minmax(280px,1.6fr) minmax(180px,.75fr);gap:12px;align-items:start;padding:11px 13px;border-top:1px solid #e7ebf1;background:#fff}.monthly-excuse-row:first-child{border-top:0}.monthly-excuse-row:nth-child(even){background:#fafbfd}.monthly-excuse-row b{font-size:11px;color:#20344e}.monthly-excuse-row small{display:block;margin-top:3px;color:#7c899a;font-size:9.5px}.monthly-excuse-reason{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.45;color:#46566b}.monthly-excuse-reason small{padding:6px 7px;border-radius:8px;background:#f5f7fa;margin-top:6px}.monthly-excuse-source{font-size:10px;line-height:1.4;color:#607089;font-weight:750}.imported-resolution-card{margin-top:16px}.imported-resolution-text{white-space:pre-wrap;line-height:1.65;color:#3e4f65;font-size:12px;padding:2px 0 4px}.historical-kpis{grid-template-columns:repeat(6,minmax(100px,1fr))}
@media(max-width:1050px){.monthly-excuse-row{grid-template-columns:1fr 1fr}.monthly-excuse-reason,.monthly-excuse-source{grid-column:span 2}.historical-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.monthly-control-fields{grid-template-columns:1fr}.monthly-excuse-row{grid-template-columns:1fr}.monthly-excuse-reason,.monthly-excuse-source{grid-column:auto}.historical-kpis{grid-template-columns:repeat(2,1fr)}}
html[data-theme="dark"] .table-source-tag{background:#21344a;color:#bcd0e4}html[data-theme="dark"] .excuse-historical-source{border-color:#574c2d;color:#d8c28d}html[data-theme="dark"] .monthly-excuse-list{border-color:#2b3d54}html[data-theme="dark"] .monthly-excuse-row{background:#142236;border-color:#2b3d54}html[data-theme="dark"] .monthly-excuse-row:nth-child(even){background:#17263a}html[data-theme="dark"] .monthly-excuse-row b{color:#e8eff7}html[data-theme="dark"] .monthly-excuse-reason,html[data-theme="dark"] .monthly-excuse-source,html[data-theme="dark"] .imported-resolution-text{color:#becada}html[data-theme="dark"] .monthly-excuse-reason small{background:#1d2d43;color:#aebccd}


/* Identificación de voluntarios nuevos */
.report-new-volunteer-tag{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;border:1px solid rgba(86,167,255,.42);background:rgba(44,132,255,.15);color:#91c8ff;font-size:.56rem;font-weight:900;letter-spacing:.08em;line-height:1.35;vertical-align:middle;white-space:nowrap}
.status-person.is-new-volunteer{border-color:rgba(77,155,255,.30);background:linear-gradient(90deg,rgba(31,113,221,.08),rgba(10,29,49,.15))}


/* Fase 2 · análisis comparativo por rango */
.range-report-control-card{overflow:visible}.range-report-control-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}.range-report-fields{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(150px,.55fr) minmax(240px,1fr);gap:12px;align-items:end}.range-custom-compare{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(170px,1fr));gap:12px;padding:12px;border:1px solid #dfe7f1;border-radius:14px;background:#f8fafd}.range-report-actions{max-width:420px}.range-generate-btn{min-width:148px}.range-comparison-preview{margin-top:12px;padding-top:11px;border-top:1px solid #e6ebf2;font-size:11px;color:#64748b;font-weight:700}.range-comparison-preview b{color:#17304f}.range-verdict-card{margin:14px 0;padding:18px 20px;border-radius:16px;border:1px solid #d9e4ef;background:linear-gradient(145deg,#f8fbff,#fff);display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}.range-verdict-badge{min-width:170px;padding:13px 16px;border-radius:14px;text-align:center;font-weight:950;letter-spacing:.04em;font-size:13px}.range-verdict-badge.good{background:#e8f7ef;color:#167646;border:1px solid #bfe7cf}.range-verdict-badge.warn{background:#fff7e5;color:#966400;border:1px solid #f0ddb1}.range-verdict-badge.bad{background:#fff0f1;color:#ae3038;border:1px solid #efc4c8}.range-verdict-badge.neutral{background:#eef4fb;color:#42627d;border:1px solid #d4e0ed}.range-verdict-copy h3{margin:0 0 5px;color:#17304f}.range-verdict-copy p{margin:0;color:#607089;font-size:12px;line-height:1.55}.range-compare-table .delta-good{color:#16804c;font-weight:900}.range-compare-table .delta-bad{color:#b33a3f;font-weight:900}.range-compare-table .delta-neutral{color:#66788d;font-weight:850}.range-section-card{margin-top:16px}.range-table-note{margin-top:9px;color:#768398;font-size:10px;line-height:1.5}.range-analysis-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:14px;margin-top:14px}.range-analysis-panel{border:1px solid #dfe7f1;border-radius:16px;background:#f8fbff;padding:17px}.range-analysis-panel h3,.range-analysis-panel h4{margin:0 0 9px;color:#17304f}.range-analysis-panel p{margin:0 0 10px;color:#40526a;font-size:12px;line-height:1.62}.range-analysis-panel ul{margin:8px 0 0;padding-left:18px;color:#40526a;font-size:11px;line-height:1.55}.range-data-quality{display:grid;gap:8px}.range-quality-item{padding:10px 12px;border-radius:12px;border:1px solid #dce6f0;background:#fff;color:#586a80;font-size:10.5px;line-height:1.5}.range-quality-item.warn{background:#fff8e8;border-color:#efddb1;color:#795d20}.range-quality-item.bad{background:#fff1f2;border-color:#edc9cd;color:#87343b}.range-source-pills{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.range-source-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef4fb;color:#4b6883;font-size:9px;font-weight:900}.range-mini-bars{display:grid;gap:6px}.range-mini-bar{display:grid;grid-template-columns:minmax(85px,1fr) 2fr auto;gap:8px;align-items:center;font-size:10px;color:#51647a}.range-mini-bar-track{height:7px;background:#e9eef4;border-radius:999px;overflow:hidden}.range-mini-bar-track span{display:block;height:100%;background:#2e76b9;border-radius:999px}.range-mini-bar b{font-size:10px;color:#17304f}.range-comparison-summary{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;margin-top:12px}.range-comparison-summary article{border:1px solid #e0e7ef;border-radius:13px;background:#fff;padding:11px}.range-comparison-summary small{display:block;color:#7d8998;font-size:9px;font-weight:800}.range-comparison-summary b{display:block;margin-top:4px;color:#17304f;font-size:18px}.range-comparison-summary span{font-size:9.5px;color:#718095}.range-no-compare{padding:13px 15px;border-radius:13px;background:#f6f8fb;border:1px solid #e0e6ed;color:#66778b;font-size:11px}
@media(max-width:1100px){.range-report-control-grid{grid-template-columns:1fr}.range-report-actions{max-width:none;justify-content:flex-start}.range-report-fields{grid-template-columns:repeat(2,1fr)}.range-report-fields>div:nth-child(3){grid-column:1/-1}.range-analysis-grid{grid-template-columns:1fr}.range-comparison-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.range-report-fields,.range-custom-compare{grid-template-columns:1fr}.range-report-fields>div:nth-child(3){grid-column:auto}.range-verdict-card{grid-template-columns:1fr}.range-verdict-badge{min-width:0}.range-comparison-summary{grid-template-columns:1fr}.range-report-actions{display:grid;grid-template-columns:1fr 1fr}.range-report-actions .btn{width:100%}}
html[data-theme="dark"] .range-custom-compare,html[data-theme="dark"] .range-verdict-card,html[data-theme="dark"] .range-analysis-panel,html[data-theme="dark"] .range-comparison-summary article,html[data-theme="dark"] .range-quality-item{background:#142236;border-color:#2b3d54}html[data-theme="dark"] .range-comparison-preview{border-color:#2b3d54;color:#9fb0c3}html[data-theme="dark"] .range-comparison-preview b,html[data-theme="dark"] .range-verdict-copy h3,html[data-theme="dark"] .range-analysis-panel h3,html[data-theme="dark"] .range-analysis-panel h4,html[data-theme="dark"] .range-mini-bar b,html[data-theme="dark"] .range-comparison-summary b{color:#e7eff8}html[data-theme="dark"] .range-verdict-copy p,html[data-theme="dark"] .range-analysis-panel p,html[data-theme="dark"] .range-analysis-panel ul,html[data-theme="dark"] .range-quality-item{color:#b9c7d6}html[data-theme="dark"] .range-quality-item.warn{background:#302916;border-color:#5e4c24;color:#e2ce9e}html[data-theme="dark"] .range-quality-item.bad{background:#332027;border-color:#64323b;color:#e2b6ba}html[data-theme="dark"] .range-source-pill{background:#22344b;color:#bed0e1}html[data-theme="dark"] .range-mini-bar-track{background:#26384e}html[data-theme="dark"] .range-no-compare{background:#162438;border-color:#2b3d54;color:#aebccc}
