.deviation-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:24px 0 12px; }
.deviation-filters label { display:grid; gap:5px; font-size:14px; font-weight:600; }
.deviation-filters label:first-child { flex:1 1 240px; }
.deviation-filters :is(input,select,button) { min-height:44px; max-width:100%; padding:8px 12px; border:1px solid #b8ddef; border-radius:6px; font:inherit; background:white; color:#20365b; }
.deviation-filters button { background:#edf8fe; cursor:pointer; }
.deviation-panel :is(input,select,button):focus-visible { outline:3px solid #08a9e7; outline-offset:2px; }
.deviation-count { color:#536576; font-size:14px; }
.deviation-panel table { table-layout:fixed; }
.deviation-panel th:first-child { width:80px; }
.deviation-panel th:nth-child(3) { width:27%; }
.deviation-panel th:last-child { width:128px; }
.deviation-score strong { color:#1d386e; font-size:22px; }
.deviation-course { display:block; margin-top:4px; }
.deviation-external { font-size:12px; display:inline-block; }
.deviation-table-caption { font-size:14px; }
@media(max-width:600px) {
 .deviation-panel th:first-child { width:58px; }
 .deviation-panel th:nth-child(3) { width:27%; }
 .deviation-panel :is(th,td) { padding:10px 6px; font-size:13px; }
 .deviation-score strong { font-size:18px; }
 .deviation-filters label:first-child { flex-basis:100%; min-width:0; }
}
.deviation-panel { font-size:16px; padding:24px; }
@media(max-width:600px) { .deviation-panel { padding:12px; } }
@media(max-width:600px) {
 .deviation-panel .entrance-heading { flex-basis:100%; }
 .deviation-panel .entrance-header { gap:12px; }
 .deviation-panel .entrance-header h1 { font-size:23px; }
}
/* Keep admissions controls alongside the existing content, never below it. */
.deviation-results { overflow-x:auto; }
.deviation-panel table { min-width:620px; }
.deviation-action-cell { text-align:right !important; vertical-align:middle; white-space:nowrap; }
.deviation-action-heading { text-align:right !important; }
.deviation-entrance-button, .deviation-entrance-select { box-sizing:border-box; width:96px; height:36px; min-height:0; padding:5px 8px; border:1px solid #9bb8c9; border-radius:6px; background:#edf8fe; color:#12658e; cursor:pointer; font:inherit; font-size:14px; white-space:nowrap; }
.deviation-entrance-button:hover, .deviation-entrance-select:hover { background:#d2edfc; }
