
@media (prefers-reduced-motion:no-preference){
 html body .result-page :is(.back-button,.hero-grade-chip,.result-view-chip,.segment-chip--soft,.mobile-action-bar button,.qr-export>summary){
   transition:scale 160ms cubic-bezier(.2,.8,.2,1),background-color 160ms ease-out,color 160ms ease-out!important;
 }
 html body .result-page :is(.back-button,.hero-grade-chip,.result-view-chip,.segment-chip--soft,.mobile-action-bar button,.qr-export>summary):active:not(:disabled){
   scale:.98;transition-duration:70ms!important;
 }
 .qr-export[open]>.hero-action-group{animation:query-reveal 160ms ease-out}
 @keyframes query-reveal{from{opacity:.7;translate:0 -3px}to{opacity:1;translate:0}}
}
/* Keep the data sheet light with native light controls; dim the surrounding chrome. */
@media(prefers-color-scheme:dark){
 html body .result-page{color-scheme:light;background:#192331!important}
 html body .result-page .hero-card{background:#192331!important}
 html body .result-page .hero-card :is(h1,.lz-brand__copy strong){color:#f1f5fc!important}
 html body .result-page .hero-card :is(.lz-brand__copy small,.grade-switch-hint,.hero-grade-label,.hero-grade-title){color:#cbd8e7!important}
 html body .result-page .mobile-action-bar button:focus-visible{outline-color:#a5d3ff!important;outline-offset:-3px!important}
 html body .result-page .mobile-action-bar button.active:focus-visible{outline-color:#0058c7!important}
 html body .result-page .mobile-action-bar{background:#233448!important;border-color:#526479!important}
 html body .result-page .mobile-action-bar button:not(.active){color:#eaf1fb!important;background:transparent!important}
}

.density-context{display:inline-block;font:500 13px/1.5 -apple-system,"Microsoft YaHei",sans-serif;color:#52647a}
html body .result-page .hero-copy:has(.density-context){display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
html body .result-page .hero-copy h1{margin:0!important}
html body .result-page.density-single :is(.grade-switch-hint,.hero-grade-strip){display:none!important}
html body .result-page:not(.density-single) .grade-switch-hint{flex-basis:100%;margin:4px 0 0!important}
html body .result-page .hero-card{gap:6px 10px;padding-bottom:10px!important}
html body .result-page .section-headline--result p{display:none}
html body .result-page .query-filter-summary__values{
 display:flex!important;align-items:baseline;flex-wrap:wrap;gap:3px 13px!important;
}
html body .result-page .query-filter-summary__values>div{display:inline-flex!important;flex-direction:row!important;align-items:baseline;gap:4px!important}
html body .result-page .query-filter-summary__values strong{font-size:13px!important}
html body .result-page .query-filter-summary.density-all .query-filter-summary__values>div:first-child{display:none!important}
html body .result-page .subject-group-detail .query-filter-summary__values{display:none!important}
html body .result-page .subject-group-detail .query-filter-summary:not(:has(.qr-incomplete)){display:none!important}
html body .result-page .subject-group-trigger{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center!important;gap:8px!important;padding:10px 12px!important}
html body .result-page .subject-group-index,html body .result-page .subject-group-metrics>span:not(:last-child){display:none!important}
html body .result-page .subject-group-metrics{display:block!important;grid-column:2!important;grid-row:1!important;padding:0!important;margin:0!important;background:transparent!important}
html body .result-page .subject-group-chevron{grid-column:3!important;grid-row:1!important}
html body .result-page .subject-group-metrics>span:last-child{display:inline-flex!important;flex-direction:row!important;align-items:baseline;gap:5px;padding:0!important;background:transparent!important}
html body .result-page .subject-group-metrics strong{margin:0!important}
html body .result-page .subject-group-title>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
html body .result-page .subject-group-title p{margin:0!important}
@media(prefers-color-scheme:dark){.result-page .density-context{color:#cbd8e7}}
@media(max-width:768px){
 html body .result-page .result-stage{padding:9px 10px!important}
 html body .result-page .section-headline--result{margin:0 0 6px!important}
 html body .result-page .result-toolbar{gap:3px!important}
 html body .result-page .result-sort-bar{margin-bottom:0!important}
 html body .result-page .query-filter-summary{padding:5px 0!important;margin:0!important}
 html body .result-page .history-list-note{padding:3px 0!important}
 html body .result-page .compact-list-heading{padding:6px 8px!important;min-height:32px!important}
 html body .result-page .history-school-card{padding:8px!important;min-height:0!important}
 html body .result-page .history-school-card__head p{margin-top:1px!important}
 html body .result-page .history-school-card>.history-card-meta{margin-top:4px!important}
}
