.student-office-filter{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;color:#173e5e;font-size:14px;font-weight:700;max-width:100%;margin:8px 0}
.student-office-filter select,.student-office-form select{min-height:44px;max-width:100%;border:1px solid #ccd9e3;border-radius:6px;background:#fff;color:#173e5e;padding:9px 12px;font:16px Arial,sans-serif}
.student-office-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:16px 0;padding:14px 16px;background:#eef4f8;border:1px solid #dbe4eb;border-radius:8px}
.student-office-form label{display:grid;gap:6px;min-width:170px;max-width:100%;color:#173e5e;font:700 14px Arial,sans-serif}
.student-office-form button{min-height:44px;background:#173e5e;color:#fff;border:0;border-radius:6px;padding:10px 16px;font:700 14px Arial,sans-serif;cursor:pointer}
.student-office-form small{color:#53616d;font:13px/1.5 Arial,sans-serif;align-self:center}
.student-office-form :is(button,select):disabled{opacity:.65;cursor:wait}
:is(.student-office-filter,.student-office-form) :is(button,select):focus-visible{outline:3px solid #c61b29;outline-offset:2px}
@media(max-width:650px){.student-office-filter{width:100%}.student-office-filter select{flex:1;min-width:0}.student-office-form label{flex:1;min-width:140px}.student-office-form small{flex-basis:100%}}
.classroom-history-launch,.classroom-history-more{min-height:44px;border:1px solid #ccd9e3;border-radius:6px;background:#fff;color:#173e5e;padding:10px 14px;font:700 14px Arial,sans-serif;cursor:pointer;margin-top:10px}
.classroom-history-dialog{width:min(900px,calc(100vw - 32px));max-height:85vh;box-sizing:border-box;border:1px solid #ccd9e3;border-radius:12px;padding:20px;color:#173e5e;background:#fff;font:16px Arial,sans-serif}
.classroom-history-dialog::backdrop{background:#10233380}
.classroom-history-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.classroom-history-dialog h2{font-size:22px;margin:0}
.classroom-history-dialog header button{min-width:44px;min-height:44px;border:0;border-radius:6px;background:#173e5e;color:#fff;font-size:24px;cursor:pointer}
.classroom-history-scroll{overflow:auto;max-height:55vh}.classroom-history-scroll table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.classroom-history-scroll :is(th,td){padding:12px;border-bottom:1px solid #dbe4eb;vertical-align:top}.classroom-history-scroll small{display:block;color:#53616d;margin-top:6px;line-height:1.5}
.classroom-history-status{font-size:14px;line-height:1.6;color:#53616d}

/* r118: search and office are separate grid cells, including narrow toolbars. */
.student-search-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,240px);gap:12px;align-items:end;width:100%;min-width:0;max-width:100%;box-sizing:border-box;flex:1 1 100%;grid-column:1/-1}
.student-search-controls .student-search-field,.student-search-controls .student-office-filter{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0;max-width:none;width:100%;margin:0;box-sizing:border-box;font-size:14px;font-weight:700;color:#173e5e}
.student-search-controls #studentSearch,.student-search-controls #studentOfficeFilter{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px;font:16px Arial,sans-serif;border:1px solid #ccd9e3;border-radius:6px;padding:10px 12px;background:#fff;color:#173e5e}
.student-search-controls #studentSearch{flex:none;text-overflow:clip}
.student-search-controls input:focus-visible{outline:3px solid #1769aa;outline-offset:2px}
@media(max-width:700px){.student-search-controls{grid-template-columns:minmax(0,1fr);gap:10px;flex-basis:100%}.student-search-controls .student-search-field,.student-search-controls .student-office-filter{width:100%;min-width:0}}

.student-search-host{flex-wrap:wrap;min-width:0}

/* r121: reset the legacy icon shell; labels and fields participate in normal flow. */
.student-search-controls .student-search-field,.student-search-controls .student-office-filter{position:static;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;transform:none}
.student-search-controls #studentSearch,.student-search-controls #studentOfficeFilter{position:static;inset:auto;height:44px;margin:0;transform:none;float:none}
.student-search-host{height:auto;min-height:0;overflow:visible;gap:16px}
.student-search-controls{padding:0;margin:0 0 16px}
