#ts-shared-header .board-grade-form{ display: inline-flex; min-width: 0; margin-right: 10px; }
#ts-shared-header .board-grade-picker{ position: relative; min-width: 0; }
#ts-shared-header .board-grade-picker summary{ list-style: none; cursor: pointer; }
#ts-shared-header .board-grade-picker summary::-webkit-details-marker{ display: none; }
#ts-shared-header .board-grade-select{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 290px; min-width: 0; min-height: 36px; padding: 7px 12px;
  border: 1.5px solid #cbd5e1; border-radius: 999px;
  background: #f8fafc; color: #1e293b; font: inherit; font-size: 13px; font-weight: 700;
}
#ts-shared-header .board-grade-select span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ts-shared-header .board-grade-picker summary:focus-visible,#ts-shared-header .board-grade-class:focus-visible{
  outline: 2px solid #2563eb; outline-offset: 2px;
}
#ts-shared-header .board-grade-menu{
  position: absolute; top: 100%; left: 0; z-index: 1001;
  width: min(255px, calc(100vw - 32px)); max-height: 65vh; overflow-y: auto;
  padding: 10px; border: 1px solid #e2e8f0;
  border-radius: 14px; background: #fff; color: #1e293b;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}
#ts-shared-header .board-grade-menu__heading{ margin: 0 0 8px; padding: 6px 8px; font-size: 12px; font-weight: 700; color: #64748b; }
#ts-shared-header .board-grade-menu > .board-grade-menu__heading,#ts-shared-header .board-grade-board{ width: 100%; }
#ts-shared-header .board-grade-board__trigger,#ts-shared-header .board-grade-class{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 10px 9px; border: 0; border-radius: 8px;
  background: transparent; color: #334155; font: inherit; font-size: 13px;
  font-weight: 600; text-align: left; cursor: pointer;
}
#ts-shared-header .board-grade-board__trigger:hover,#ts-shared-header .board-grade-board[open] > summary,#ts-shared-header .board-grade-class:hover,#ts-shared-header .board-grade-picker .is-selected{ background: #eff6ff; color: #1d4ed8; }
#ts-shared-header .board-grade-classes{
  position: fixed; z-index: 2100; width: min(170px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px); overflow-y: auto; padding: 10px;
  border: 1px solid #e2e8f0; border-radius: 14px;
  background: #fff; color: #1e293b;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}
#ts-shared-header .board-grade-class + .board-grade-class{ margin-top: 4px; }
#ts-shared-header .board-grade-menu__empty{ padding: 8px; font-size: 13px; color: #64748b; }
#ts-shared-header .board-grade-form--mobile{ display: flex; margin: 8px 0 16px; width: 100%; }
#ts-shared-header .board-grade-form--mobile .board-grade-picker{ width: 100%; }
#ts-shared-header .board-grade-form--mobile .board-grade-select{ width: 100%; max-width: 100%; min-height: 42px; border-radius: 10px; }
#ts-shared-header .board-grade-form--mobile .board-grade-menu{ position: relative; width: 100%; margin-top: 6px; min-height: 0; max-height: 50vh; }
#ts-shared-header .board-grade-form--mobile .board-grade-board,#ts-shared-header .board-grade-form--mobile .board-grade-menu > .board-grade-menu__heading{ width: 100%; }
#ts-shared-header .board-grade-form--mobile .board-grade-board[open] > summary i{ transform: rotate(90deg); }