dialog:has(.report-shell){width:min(1180px,96vw);max-width:1180px;padding:26px} .report-shell{font-size:14px;line-height:1.6}.report-shell [hidden]{display:none!important}.report-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 18px;margin-bottom:20px;border-bottom:1px solid var(--line)}.report-tabs .filter{min-height:40px}.report-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}.report-card{padding:18px;background:var(--surface2);border:1px solid var(--line);border-radius:12px}.report-card>span{color:var(--muted);font-size:12px}.report-card strong{display:block;font:700 24px/1.5 Manrope,sans-serif;color:var(--text);overflow-wrap:anywhere}.report-card small{display:block;color:var(--muted);font-size:11px}.report-section{margin:24px 0}.report-section>h3{font-size:17px;letter-spacing:-.2px;margin:0 0 10px}.report-description,.report-empty{color:var(--muted);font-size:13px;margin:8px 0 14px}.report-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.report-list{padding-left:20px;line-height:1.9;color:var(--muted)}.report-shell h4{font-size:13px;margin:12px 0 8px}.report-shell .detail-table{margin:12px 0;table-layout:auto;line-height:1.6}.report-shell .detail-table td{max-width:340px;white-space:normal;vertical-align:top}.report-shell .detail-table th{background:var(--surface2);font-size:11px;text-transform:uppercase;letter-spacing:.03em}.report-shell .table-scroll{border:1px solid var(--line);border-radius:10px;max-height:600px;overflow:auto}.report-shell .detail-table thead{position:sticky;top:0;z-index:1}.report-audit{border:1px solid var(--line);border-radius:10px;padding:16px;margin:10px 0;background:var(--surface)}.report-audit>summary{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;cursor:pointer;font-weight:600}.report-audit>summary>span:first-child:before{content:'＋';color:var(--blue);margin-right:8px}.report-audit[open]>summary>span:first-child:before{content:'−'}.report-audit summary small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-left:22px}.report-audit>p{margin:14px 0;overflow-wrap:anywhere;color:var(--muted)}.report-audit .badge{flex-shrink:0}.report-audit-value,.report-savings{font-weight:650;color:var(--blue)!important}.report-filter{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:14px;margin-top:18px}.report-filter label{font-size:12px}.report-filter input,.report-filter select{font-size:13px}.evidence-values{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,3fr);gap:4px 14px;padding:10px 0;font-size:12px}.evidence-values dt{color:var(--muted);font-weight:600}.evidence-values dd{margin:0;overflow-wrap:anywhere}.evidence-item{border-top:1px solid var(--line);padding:8px 0}.report-audit code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.waterfall-track{width:180px;height:16px;background:var(--surface2);border-radius:4px;overflow:hidden}.waterfall-track span{display:block;height:100%;background:var(--blue);border-radius:3px;min-width:1px}.report-filmstrip{display:flex;gap:12px;overflow-x:auto;padding:12px;background:var(--surface2);border-radius:10px}.report-filmstrip figure{margin:0;flex:0 0 105px}.report-filmstrip img{width:105px;height:150px;object-fit:contain;object-position:top;background:white;border:1px solid var(--line);border-radius:6px}.report-filmstrip figcaption{text-align:center;font-size:11px;color:var(--muted)}.report-screenshot{display:block;width:auto;max-width:100%;max-height:620px;border:1px solid var(--line);border-radius:10px}.report-chart{margin:0;border:1px solid var(--line);border-radius:12px;padding:15px}.report-chart figcaption{font-weight:600;font-size:13px}.report-chart svg{width:100%;display:block}.report-chart line{stroke:var(--line)}.report-chart text{fill:var(--muted);font-size:11px}.report-chart polyline{fill:none;stroke:var(--blue);stroke-width:2.5;stroke-linejoin:round}.histogram-row{display:grid;grid-template-columns:115px 1fr 65px;gap:12px;align-items:center;font-size:12px;margin:10px 0}.histogram-row>div{height:14px;background:var(--surface2);border-radius:4px;overflow:hidden}.histogram-row i{display:block;height:100%;background:var(--blue)}.histogram-row strong{text-align:right}.report-shell .notice{display:block}.report-shell+.dialog-actions{flex-wrap:wrap}@media(max-width:700px){dialog:has(.report-shell){padding:18px}.report-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.report-card{padding:12px}.report-card strong{font-size:20px}.report-columns,.report-filter{grid-template-columns:1fr}.report-tabs{gap:6px}.report-tabs .filter{font-size:12px;padding:7px 9px}.report-audit{padding:12px}.report-audit>summary{gap:8px;font-size:13px}.report-audit .badge{font-size:10px}.report-filter{gap:0}.report-shell .detail-table{min-width:540px}.report-shell .report-section>.table-scroll{max-height:440px}}

.speed-grade{display:flex;gap:24px;align-items:center;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:24px}.speed-grade h2{color:var(--grade);margin:0 0 8px}.speed-grade p,.speed-grade small{color:var(--muted)}.grade-ring{flex:0 0 100px;width:100px;height:100px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--grade) var(--score),var(--line) 0)}.grade-ring strong{display:grid;place-items:center;width:82px;height:82px;border-radius:50%;background:var(--surface);font-size:30px;color:var(--grade)}.transfer-bars{display:grid;gap:14px}.transfer-bars span{display:block;font-size:13px;margin-bottom:5px}.transfer-bars progress{width:100%;height:14px;accent-color:var(--blue)}.report-card,.report-chart{animation:report-appear .4s ease both}@keyframes report-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.report-card,.report-chart{animation:none}}@media(max-width:500px){.speed-grade{align-items:flex-start;gap:15px;padding:16px}.grade-ring{flex-basis:75px;width:75px;height:75px}.grade-ring strong{width:61px;height:61px;font-size:24px}}

@media print{.report-card,.report-chart{animation:none}.report-shell .table-scroll{max-height:none;overflow:visible}.report-shell .detail-table thead{position:static}}

.metric-bars{display:grid;gap:18px}.metric-bar>div{display:flex;justify-content:space-between;gap:20px}.metric-bar progress{display:block;width:100%;height:12px;margin:8px 0;accent-color:#5772e8}.metric-bar small{color:var(--muted)}.assessment{display:flex;align-items:center;gap:24px;padding:28px;border:1px solid var(--line);border-radius:18px;margin:20px 0;background:var(--surface)}.assessment h2{margin:4px 0}.assessment-orb{display:grid;place-items:center;flex-shrink:0;width:74px;height:74px;border-radius:50%;background:#e0f6ec;color:#137b52;font-size:34px}.assessment.attention .assessment-orb{background:#fff0d7;color:#9b6000}.locked-report{border:1px dashed #8a91b2;background:var(--surface);padding:20px;border-radius:14px;margin:20px 0}.next-action{padding:14px 0;border-bottom:1px solid var(--line)}.live-metrics{background:var(--surface);padding:16px;border-radius:12px;font-variant-numeric:tabular-nums}.report-chart polyline{stroke-linecap:round;stroke-linejoin:round}
@media(prefers-reduced-motion:no-preference){.grade-ring,.assessment-orb{animation:grade-arrive .65s ease-out both}.report-chart polyline{stroke-dasharray:1400;stroke-dashoffset:1400;animation:draw-chart 1.2s ease-out forwards}.metric-bar{animation:grade-arrive .5s ease-out both}@keyframes grade-arrive{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@keyframes draw-chart{to{stroke-dashoffset:0}}}
