.school-summary { margin-bottom: 24px; }
.school-summary p { margin: 8px 0; }
.school-actions { flex-wrap: wrap; }
.school-page .page-head { margin-bottom: 14px; }
.school-page .page-head h1 { font-size: 28px; }
.school-tools { margin-bottom: 10px; }
.school-live { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.school-live > span { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.school-week { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.school-table { width: 100%; min-width: 340px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.school-time-col { width: 78px; }
.school-table th, .school-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.school-table tr > :last-child { border-right: 0; }
.school-table tbody tr:last-child > * { border-bottom: 0; }
.school-table thead th { background: var(--surface2); padding: 10px 4px; font-size: 13px; }
.school-table .is-today { background: #23324a; }
.school-table thead .is-today { color: #a9c9ff; box-shadow: inset 0 3px #79a7ff; }
.school-time-cell { font-size: 11px; font-weight: 500; line-height: 1.25; text-align: center; background: #192230; position: sticky; left: 0; z-index: 1; }
.school-time-cell > span { display: block; font-variant-numeric: tabular-nums; }
.school-row-label { font-size: 9px; color: var(--muted); margin-bottom: 3px; }
.school-slot { padding: 3px; vertical-align: middle; background: color-mix(in srgb, var(--class-color) 7%, var(--surface)); }
.school-slot.is-today { background: color-mix(in srgb, var(--class-color) 10%, #23324a); }
.school-cell-button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; width: 100%; height: 46px; padding: 2px 6px; background: transparent; color: var(--class-color); border: 0; border-left: 2px solid var(--class-color); border-radius: 4px; text-align: center; font-size: 12px; line-height: 1.2; font-weight: 550; }
.school-cell-button:hover { background: #ffffff0b; }
.school-cell-button > .school-full, .school-cell-button > .school-short { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.school-teacher { color: var(--text); font-size: 11px; font-weight: 400; }
.school-own-time { font-size: 9px; font-weight: 400; color: var(--muted); }
.school-slot.is-current { box-shadow: inset 0 0 0 2px var(--class-color); }
.school-now { color: var(--text); font-size: 9px; line-height: 1; }
.school-table .school-short { display: none; }
.school-grid-hint { margin: 10px 0 4px; font-size: 11px; }
.school-help { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.school-help summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; }
.school-help .notice { margin: 8px 0; }
.school-original { display: block; width: 100%; height: auto; margin-top: 20px; border-radius: 12px; }
.school-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#spotlight-results { display: grid; gap: 10px; }
.spotlight-result { justify-content: flex-start; min-height: 48px; }
@media (max-width: 600px) {
  .school-page .page-head h1 { font-size: 24px; }
  .school-page .page-head { margin-bottom: 12px; }
  .school-live { display: block; font-size: 11px; }
  .school-live p { margin-top: 3px; }
  .school-time-col { width: 44px; }
  .school-table thead th { font-size: 11px; padding: 9px 2px; }
  .school-table .school-full { display: none; }
  .school-table .school-short { display: inline; text-decoration: none; }
  .school-cell-button > .school-short { display: -webkit-box; }
  .school-slot { padding: 2px; }
  .school-cell-button { height: 48px; font-size: 10px; padding: 2px; border-left-width: 1px; }
  .school-teacher { font-size: 10px; }
  .school-time-cell { font-size: 9px; }
  .school-row-label { font-size: 8px; }
  .school-grid-hint { font-size: 10px; }
  .school-grid-hint span { display: block; }
  #schedule-form { grid-template-columns: 1fr; }
}
