.report-main{max-width:78rem}
.report-page .mgmt-header{flex-wrap:wrap}
.report-main .manage-heading>div{max-width:100%;min-width:0;overflow-wrap:anywhere}
#report-nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted)}
.report-main .manage-heading{margin-top:clamp(1rem,3vw,2.5rem);margin-bottom:1.7rem}
.report-main .manage-heading h1{font-size:clamp(2.65rem,6vw,5.2rem)}
.report-main .manage-heading p{margin-top:.7rem}
#report-filters,.report-detail-filters{display:flex;align-items:end;flex-wrap:wrap;gap:.8rem 1rem}
#report-filters{padding:1rem 0;border-block:1px solid var(--line)}
#report-filters label,.report-detail-filters label{min-width:0;flex:1 1 10rem}
#report-filters label:first-of-type{flex-grow:1.6}
#report-filters button{margin-bottom:1px}#report-zone{flex:1 0 100%;font-size:.83rem}
.report-main :is(input,select,button){max-width:100%;min-width:0}
.report-select{position:relative}
.report-main .report-select select{appearance:none;min-height:44px;padding:.65rem 2.4rem .65rem .8rem}
.report-select::after{content:"";pointer-events:none;position:absolute;right:1rem;bottom:1.23rem;width:.45rem;height:.45rem;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
#report-notice:empty,#detail-notice:empty{display:none}
#report-notice:not(:empty),#detail-notice:not(:empty){margin:.8rem 0;color:var(--muted)}
#report-retry{margin-bottom:1rem}
.report-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.report-section-head p,#report-guide{font-size:.9rem}
#report-summary,#report-students{margin-top:clamp(1.8rem,4vw,3.5rem);min-width:0}
.report-section-head h2{margin-bottom:.35rem}#report-guide{margin-top:.85rem}
#report-grid{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;margin:.65rem 0 1rem}
#report-matrix{width:100%;min-width:17rem;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
#report-matrix th,#report-matrix td{border-bottom:1px solid var(--line);padding:0;text-align:center}
#report-matrix thead th{padding:.5rem 0;color:var(--muted);font-size:.88rem;font-weight:500}
#report-matrix th:first-child{width:32%;text-align:left;padding:.45rem .35rem .45rem 0}
#report-matrix tbody th{font-weight:550;font-size:clamp(.83rem,1.6vw,1rem);line-height:1.3}
#report-matrix td:last-child{background:var(--surface)}
#report-matrix button{width:100%;margin:0;border:1px solid transparent;background:transparent;color:var(--ink);min-height:44px;font-size:1.03rem;font-weight:500;padding:.45rem .1rem}
#report-matrix button:hover{background:var(--raised)}
#report-matrix button:focus-visible{outline-offset:-3px}
#report-matrix button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
#report-definitions summary{cursor:pointer;min-height:44px;color:var(--muted);font-size:.9rem}#report-definitions p{max-width:76ch;font-size:.9rem;margin:0 0 .65rem}
.report-detail-filters{margin:.9rem 0 1rem}.report-detail-filters label{flex:0 1 15rem}
#report-rows{margin:.4rem 0 1rem}
#report-rows li{padding:1rem 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);column-gap:1.5rem}
#report-rows li:last-child{border-bottom:1px solid var(--line)}
.student-name{font:550 1.05rem/1.35 var(--display);color:var(--ink);text-underline-offset:.2em}
.student-meta,.student-outcomes,.student-facts dt{font-size:.85rem;color:var(--muted)}.student-meta{margin-top:.2rem}
.student-outcomes{text-align:right}.student-outcomes strong{display:block;color:var(--ink);font-weight:550}
#report-rows details{grid-column:1/-1;margin-top:.35rem}
#report-rows summary{cursor:pointer;color:var(--muted);font-size:.85rem;min-height:44px;padding-top:.45rem}
.student-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:.6rem 1rem;margin:.3rem 0 .7rem}
.student-facts dd{margin:.12rem 0 0}
@media(max-width:600px){.report-main{padding-inline:1rem}#report-filters label{flex:1 1 8rem}#report-filters label:first-of-type{flex-basis:100%}
  #report-matrix th:first-child{width:31%}#report-matrix thead th{font-size:.74rem}#report-matrix button{font-size:.92rem}
  .report-detail-filters{gap:.6rem}.report-detail-filters label{flex:1 1 7.5rem}
  #report-rows li{grid-template-columns:minmax(0,1fr);gap:.4rem}.student-outcomes{text-align:left}
  .report-section-head{align-items:center}
}
@media(max-width:430px){.report-detail-filters label{flex-basis:100%}}
#report-matrix{min-width:24rem}
#placement-summary{margin-top:1.75rem}
#placement-summary table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
#placement-summary th,#placement-summary td{padding:.5rem .35rem;border-bottom:1px solid var(--line);text-align:right}
#placement-summary th:first-child{text-align:left;width:47%}
#placement-summary thead th,.student-facts dt{color:var(--muted);font-size:.83rem;font-weight:500}
#placement-summary small{display:block;color:var(--muted);font-weight:400;overflow-wrap:anywhere}
#placement-summary .placement-link,#report-rows button.student-name{display:inline-block;text-align:left;padding:.25rem 0;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:600;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:.2em;min-height:44px}
#origin-dialog{max-width:min(30rem,calc(100% - 2rem));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:1rem;background:var(--surface);color:var(--ink);padding:clamp(1rem,4vw,2rem)}
#origin-dialog::backdrop{background:rgb(0 0 0 / .65)}
.origin-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.origin-bar h2{margin:0;overflow-wrap:anywhere}#origin-dialog .student-facts{margin-top:1rem}#origin-dialog dd{overflow-wrap:anywhere}

.placement-table{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
#placement-summary .placement-link[aria-pressed=true]{color:var(--accent)}
#placement-summary :is(th,td){vertical-align:middle}
#student-filters{border-block:1px solid var(--line);margin-block:1rem}
#student-filters summary{cursor:pointer;min-height:44px;padding:.7rem 0;color:var(--muted)}
#origin-dialog .origin-bar{flex-wrap:wrap}#origin-dialog .origin-bar>*{min-width:0;max-width:100%}
#origin-dialog{width:30rem;max-width:calc(100vw - 1.5rem);overflow-wrap:anywhere}
@media(min-width:601px){#student-filters{border:0}#student-filters[open]>summary{font-size:.88rem}}

#report-conversion{margin:1rem 0 1.15rem}
#report-conversion h3{margin:0 0 .65rem}
#conversion-values{grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr));gap:.75rem}
#conversion-values>div{padding:.7rem .8rem;border-top:1px solid var(--line);min-width:0}
#conversion-values dd{font-size:1.1rem;font-weight:600;font-variant-numeric:tabular-nums}

#conversion-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:.8rem;list-style:none;margin:1rem 0;padding:0}
#conversion-steps li{display:flex;flex-direction:column;align-items:start;gap:.3rem;border-inline-start:2px solid var(--line);padding:.25rem .75rem}
#conversion-steps button{background:none;color:var(--accent,var(--mc-action));border:0;padding:0;text-decoration:underline;text-underline-offset:.2em;min-height:44px}
#conversion-attribution{font-size:.9rem;color:var(--muted)}
