/* Bright storybook courtyard, matched to the approved November reference. */
body.bright-teacher {
  --bg: #fffdf7; --card-bg: #fff; --text: #303645; --text-muted: #667086;
  --border: #e5edf0; --surface: #f0f7fb; --arrow: #92b4c8;
  --c-lime: #d3a333; --c-emerald: #4a9b7d; --c-slate: #60799e;
  --c-navy: #4a9bd0; --c-mint: #9683d4;
  --gf-cinnabar: #ed9589; --gf-jade: #65a886; --gf-gold: #d5ad50;
  --shadow: 0 5px 20px #668dad0b;
  --radius: 22px;
  margin: 0; padding: 0 0 0 218px; min-height: 100svh;
  background: #fffdf7; color: var(--text);
  font-family: 'KaiTi-CJK','LXGW WenKai Lite',serif;
}
.bright-teacher *, .bright-teacher *::before, .bright-teacher *::after { box-sizing: border-box; }
.bright-teacher .site-header {
  width: 100%; max-width: none; height: 210px; min-height: 0; margin: 0;
  padding: 36px 9% 20px; display: flex; align-items: center; justify-content: flex-start;
  border: 0; border-radius: 0; box-shadow: none; text-align: left;
  background: #b9e6fc url('../images/teacher-activities/bright-hero.webp') center / cover no-repeat;
}
.bright-teacher .site-header::after, .bright-teacher .site-header h1::after { content: none; }
.bright-teacher .site-header h1 { color: #243f77; font-size: clamp(26px,2.7vw,42px); letter-spacing: 2px; line-height: 1.5; text-shadow: 0 2px 0 #ffffffaa; }
.bright-teacher .site-header p { color: #335988; font-size: clamp(16px,1.6vw,24px); margin-top: 5px; }
.bright-teacher .site-header p span { color: #efbc35; font-size: 1.5em; }
.bright-teacher .bright-hero-copy { position: relative; z-index: 1; }
.bright-teacher .sticky-top {
  position: fixed; inset: 0 auto 0 0; width: 218px; max-width: none; margin: 0;
  z-index: 40; background: #fffcf5; border-right: 1px solid #efece2;
  overflow-y: auto; box-shadow: 3px 0 15px #8295aa08;
}
.bright-teacher .tab-nav { position: static; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 650px; padding: 24px 15px; background: transparent; border: 0; backdrop-filter: none; gap: 20px; }
.bright-teacher .bright-profile { display: flex; flex-direction: column; align-items: center; padding: 24px 0 15px; gap: 10px; }
.bright-teacher .teacher-art { width: 130px; height: 130px; padding: 5px; border-radius: 50%; background: #caeaff; display: grid; place-items: center; overflow: hidden; }
.bright-teacher .teacher-illustration { width: 100%; height: 100%; display: block; }
.bright-teacher .bright-profile strong { font-size: 23px; color: #333c4d; }
.bright-teacher .courtyard-home { position: static; transform: none; color: #768298; padding: 4px 8px; font-size: 15px; text-decoration: none; background: transparent; border: 0; box-shadow: none; }
.bright-teacher .tab-nav-inner { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: none; margin: 0; padding: 0; overflow: visible; flex-shrink: 0; }
.bright-teacher .tab-btn { width: 100%; justify-content: flex-start; min-height: 56px; padding: 12px 20px; gap: 14px; font-size: 21px; color: #566985; border-radius: 23px; border: 0; background: transparent; box-shadow: none; }
.bright-teacher .tab-btn svg { width: 29px; height: 29px; color: #9b8be2; }
.bright-teacher .tab-btn[data-target='tool-awards'] svg { color: #efb734; }
.bright-teacher .tab-btn[data-target='tool-tools'] svg { color: #72bda7; }
.bright-teacher .tab-btn[data-target='tool-games'] svg { color: #ef9b7f; }
.bright-teacher .tab-btn[data-target='tool-groups'] svg { color: #7793bc; }
.bright-teacher .tab-btn:hover { background: #edf6fb; }
.bright-teacher .tab-btn.active { background: #65bffa; color: #fff; box-shadow: 0 4px 12px #74c7f722; }
.bright-teacher .tab-btn.active svg { color: #fff; }
.bright-teacher .tab-btn.active::after { content: none; }
.bright-teacher .tab-btn[hidden] { display: none; }
.bright-teacher .teacher-nav-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: auto; border: 0; padding: 16px 0 0; }
.bright-teacher .teacher-account-link, .bright-teacher #teacher-signout { font: inherit; font-size: 16px; border: 1px solid #deebf3; background: #fff; border-radius: 24px; padding: 10px 16px; color: #355787; text-align: center; cursor: pointer; }
.bright-teacher .teacher-account-link::before { content: none; }
.bright-teacher .bright-workspace { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; padding: 0 28px 30px; max-width: 1620px; margin: 0 auto; position: relative; z-index: 2; }
.bright-teacher .container { width: 100%; max-width: none; margin: 0; padding: 26px 24px 30px; background: #ffffffed; border-radius: 30px; gap: 24px; min-width: 0; box-shadow: 0 3px 18px #8299b509; scroll-margin-top: 16px; }
.bright-teacher .section-title { color: #34383f; border: 0; padding: 0; margin: 0 0 18px; font-size: 27px; letter-spacing: 1px; }
.bright-teacher .title-icon { background: #fff3ca; border: 0; box-shadow: none; width: 36px; height: 36px; border-radius: 10px; }
.bright-teacher .subject-tabs { gap: 8px; margin-bottom: 20px; }
.bright-teacher .subject-tab-btn { padding: 8px 16px; min-height: 38px; border-radius: 18px; background: #f7fafc; color: #657792; font-size: 15px; border: 1px solid #e8eef5; }
.bright-teacher .subject-tab-btn.active { background: #e4f4ff; color: #347ba8; border-color: #b7dff8; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px 18px; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-item { display: flex; flex-direction: column; gap: 0; align-items: stretch; padding: 0; border: 0; background: #eef5ff; border-radius: 23px; overflow: hidden; box-shadow: 0 3px 12px #82a4bf09; text-align: center; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-item:nth-child(3n+2) { background: #fff7d9; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-item:nth-child(3n) { background: #eaf7f0; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-item:nth-child(4n+1) { background: #fff0ed; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-icon { width: 100%; height: auto; aspect-ratio: 1.3; display: block; border-radius: 0; border: 0; background: transparent; overflow: hidden; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-icon img { width: 100%; height: 100%; object-fit: cover; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-text { padding: 12px 8px 15px; width: 100%; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-title { display: flex; flex-direction: column; gap: 3px; justify-content: center; font-size: 20px; line-height: 1.4; font-weight: 700; color: #343c49; }
.bright-teacher .subject-panel[data-subject='cn'] .sub-title { display: block; padding: 0; margin: 0; font-size: 11px; font-weight: 400; line-height: 1.4; background: transparent; border: 0; color: #6e7d8d; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-arrow { display: none; }
.bright-teacher .subject-panel[data-subject='cn'] .unit-item:hover { transform: translateY(-4px); box-shadow: 0 8px 18px #6c9db91c; }
.bright-teacher .unit-item .fav-pin { position: absolute; z-index: 2; background: #ffffffde; border: 0; box-shadow: none; left: auto; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; color: #ac8737; }
.bright-teacher .unit-item .fav-pin.on { background: #e6b84e; color: #fff; }
.bright-teacher .card { border: 1px solid #e9eef4; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.bright-teacher .card:hover { border-color: #acd9f5; }
.bright-teacher .grid, .bright-teacher .grid.tile-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.bright-teacher .card.tile-card { padding: 20px 14px; }
.bright-teacher .card.tile-card .card-icon { aspect-ratio: 1.35; }
.bright-teacher .card-title { color: #36465e; }
.bright-teacher .card-title .sub-title { background: #f2f7fc; border-color: #e6eef4; color: #718198; }
.bright-teacher .portal-footer { margin: 0; max-width: none; width: 100%; min-height: clamp(180px,22vw,300px); display: flex; align-items: flex-end; justify-content: center; padding: 115px 20px 15px; color: #557768; font-size: 13px; background: url('../images/teacher-activities/bright-landscape.webp') center bottom / 100% auto no-repeat; border: 0; }
.bright-teacher :is(button,a,input):focus-visible { outline: 3px solid #4b9dd5; outline-offset: 3px; }
/* Search controls own their sizing; do not depend on the retired portal theme. */
.bright-teacher .game-discovery { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.bright-teacher .game-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.bright-teacher .game-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid #e0e8f2; border-radius: 16px; background: #f4f7fc; color: #60718a; font: inherit; font-size: 14px; line-height: 1.35; cursor: pointer; }
.bright-teacher .game-filter.active { background: #e7e0fc; border-color: #c9bcf0; color: #655193; }
.bright-teacher .game-filter:hover { border-color: #a998d5; }
.bright-teacher .game-filter span { font-size: 12px; font-variant-numeric: tabular-nums; }
.bright-teacher .game-search-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.bright-teacher .game-search { display: flex; align-items: center; gap: 8px; width: min(100%,360px); min-height: 40px; padding: 8px 12px; background: #fff; border: 1px solid #dce7f1; border-radius: 16px; }
.bright-teacher .game-search svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; color: #7a8ba4; }
.bright-teacher .game-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bright-teacher .game-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: #43536b; font: inherit; font-size: 14px; line-height: 1.5; }
.bright-teacher .game-search input::placeholder { color: #79869a; opacity: 1; }
.bright-teacher .game-search:focus-within { outline: 2px solid #a6cae6; outline-offset: 2px; }
.bright-teacher .game-result-count { margin: 0; color: #7b8799; font-size: 13px; }
.bright-teacher .game-empty { padding: 22px; border: 1px dashed #c7d9e8; border-radius: 18px; color: #6b7b91; }
.bright-teacher .game-empty button { margin-left: 8px; border: 0; background: none; color: #5c82ad; text-decoration: underline; font: inherit; cursor: pointer; }
.bright-teacher #game-grid > [hidden], .bright-teacher .game-discovery[hidden], .bright-teacher .game-empty[hidden] { display: none; }
/* Teaching tools share the approved full-bleed pastel illustration cards. */
.bright-teacher #tool-tools .tile-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.bright-teacher #tool-tools .card.tile-card { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 0; min-height: 0; border: 0; border-radius: 23px; background: #edf6ff; overflow: hidden; box-shadow: 0 3px 12px #82a4bf09; }
.bright-teacher #tool-tools .card:nth-child(5n+2) { background: #fff0ed; }
.bright-teacher #tool-tools .card:nth-child(5n+3) { background: #fff7d9; }
.bright-teacher #tool-tools .card:nth-child(5n+4) { background: #eaf7f0; }
.bright-teacher #tool-tools .card:nth-child(5n+5) { background: #f0edff; }
.bright-teacher #tool-tools .card.tile-card .card-icon.activity-art { width: 100%; height: auto; flex: 0 0 auto; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 0; background: transparent; display: block; overflow: hidden; }
.bright-teacher #tool-tools .card-icon.activity-art .activity-illustration { width: 100%; height: 100%; object-fit: cover; display: block; }
.bright-teacher #tool-tools .card.tile-card .card-title { display: flex; flex-direction: column; align-self: stretch; align-items: center; justify-content: flex-start; gap: 4px; padding: 12px 10px 0; font-size: 20px; line-height: 1.4; color: #343c49; }
.bright-teacher #tool-tools .card-title .sub-title { margin: 0; padding: 0 0 14px; border: 0; background: transparent; color: #738094; font-size: 12px; font-weight: 400; line-height: 1.45; }
.bright-teacher #tool-tools .card.tile-card .card-desc { display: block; overflow: visible; margin: 0; padding: 7px 12px 15px; color: #738094; font-size: 13px; line-height: 1.6; -webkit-line-clamp: unset; }
.bright-teacher #tool-tools .card .fav-pin { left: auto; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; box-shadow: none; color: #ac8737; background: #ffffffde; }
.bright-teacher #tool-tools .card .fav-pin.on { background: #e6b84e; color: #fff; }
.bright-teacher #tool-tools .card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px #6c9db91c; }
@media (min-width: 1450px) { .bright-teacher #tool-tools .tile-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1100px) { .bright-teacher #tool-tools .tile-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; } }
@media (max-width: 760px) {
  .bright-teacher #tool-tools .tile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 12px; }
  .bright-teacher #tool-tools .card.tile-card { border-radius: 20px; }
  .bright-teacher #tool-tools .card.tile-card .card-icon.activity-art { aspect-ratio: 4 / 3; }
  .bright-teacher #tool-tools .card.tile-card .card-title { padding: 11px 7px 0; font-size: 18px; }
  .bright-teacher #tool-tools .card-title .sub-title { font-size: 11px; }
  .bright-teacher #tool-tools .card.tile-card .card-desc { padding: 6px 9px 13px; font-size: 12px; }
}
@media (min-width: 1051px) {
  .bright-teacher .subject-panel[data-subject='cn'] .unit-item:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 90px; }
  .bright-teacher .subject-panel[data-subject='cn'] .unit-item:last-child .unit-icon { width: 125px; height: 90px; flex: 0 0 125px; }
  .bright-teacher .subject-panel[data-subject='cn'] .unit-item:last-child .unit-text { text-align: left; padding-left: 24px; }
  .bright-teacher .subject-panel[data-subject='cn'] .unit-item:last-child .unit-title { align-items: flex-start; }
}
@media (min-width: 1700px) { .bright-teacher .site-header { height: 230px; } }
@media (max-width: 1320px) {
  body.bright-teacher { padding-left: 190px; }
  .bright-teacher .sticky-top { width: 190px; }
  .bright-teacher .tab-btn { font-size: 19px; padding-inline: 12px; }
  .bright-teacher .bright-workspace { grid-template-columns: minmax(0,1fr); padding-inline: 20px; gap: 16px; }
  .bright-teacher .container { padding: 24px 18px; }
  .bright-teacher .subject-panel[data-subject='cn'] .unit-list { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
}
@media (max-width: 1050px) {
  .bright-teacher .subject-panel[data-subject='cn'] .unit-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bright-teacher .bright-workspace { grid-template-columns: minmax(0,1fr); }
  .bright-teacher .site-header { height: 195px; padding-left: 7%; }
}
@media (max-width: 760px) {
  body.bright-teacher { padding-left: 0; }
  .bright-teacher .site-header { height: 160px; padding: 32px 20px 18px; background-position: 55% center; }
  .bright-teacher .site-header h1 { font-size: 24px; letter-spacing: 1px; }
  .bright-teacher .site-header p { max-width: 18em; font-size: 15px; }
  .bright-teacher .sticky-top { position: relative; width: 100%; height: auto; border: 0; box-shadow: none; overflow: visible; }
  .bright-teacher .tab-nav { padding: 10px 14px; min-height: 0; height: auto; gap: 10px; }
  .bright-teacher .bright-profile { flex-direction: row; gap: 10px; padding: 0; }
  .bright-teacher .teacher-art { width: 42px; height: 42px; }
  .bright-teacher .bright-profile strong { font-size: 18px; }
  .bright-teacher .courtyard-home { margin-left: auto; font-size: 13px; }
  .bright-teacher .tab-nav-inner { flex-direction: row; overflow-x: auto; gap: 7px; padding-bottom: 4px; }
  .bright-teacher .tab-btn { width: auto; min-height: 42px; font-size: 15px; padding: 9px 13px; gap: 6px; border-radius: 17px; }
  .bright-teacher .tab-btn svg { width: 19px; height: 19px; }
  .bright-teacher .teacher-nav-actions { flex-direction: row; justify-content: flex-end; padding: 0; margin: 0; gap: 8px; }
  .bright-teacher .teacher-account-link,.bright-teacher #teacher-signout { font-size: 13px; min-height: 38px; padding: 8px 13px; }
  .bright-teacher .bright-workspace { padding: 8px 12px 20px; gap: 15px; }
  .bright-teacher .container { padding: 20px 14px; border-radius: 23px; }
  .bright-teacher .section-title { font-size: 23px; margin-bottom: 15px; }
  .bright-teacher .subject-panel[data-subject='cn'] .unit-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 12px; }
  .bright-teacher .subject-panel[data-subject='cn'] .unit-item { border-radius: 20px; }
  .bright-teacher .subject-panel[data-subject='cn'] .unit-icon { aspect-ratio: 1.12; }
  .bright-teacher .subject-panel[data-subject='cn'] .unit-title { font-size: 18px; }
  .bright-teacher .subject-panel[data-subject='cn'] .unit-text { padding: 11px 5px 13px; }
  .bright-teacher .subject-panel[data-subject='cn'] .sub-title { font-size: 10px; }
  .bright-teacher .grid,.bright-teacher .grid.tile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .bright-teacher .portal-footer { min-height: 110px; padding-top: 80px; background-size: 100% auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bright-teacher *, .bright-teacher *::before,.bright-teacher *::after { transition: none !important; scroll-behavior: auto !important; }
}


/* Game gallery matches the Chinese unit illustration grid in 课章经纬.
   Square illustrations are cropped to the same 1.3:1 framing as unit tiles;
   game filtering, favorites, descriptions, and links remain intact. */
.bright-teacher #tool-games #game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 18px;
}
.bright-teacher #tool-games #game-grid > .card.tile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 23px;
  overflow: hidden;
  background: #eef5ff;
  box-shadow: 0 3px 12px #82a4bf09;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bright-teacher #tool-games #game-grid > .card.tile-card:nth-child(3n+2) { background: #fff7d9; }
.bright-teacher #tool-games #game-grid > .card.tile-card:nth-child(3n) { background: #eaf7f0; }
.bright-teacher #tool-games #game-grid > .card.tile-card:nth-child(4n+1) { background: #fff0ed; }
.bright-teacher #tool-games #game-grid > .card.tile-card[hidden] { display: none !important; }
.bright-teacher #tool-games #game-grid > .card.tile-card::after { content: none; }
.bright-teacher #tool-games #game-grid > .card.tile-card .card-icon.activity-art {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1.3;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.bright-teacher #tool-games #game-grid .card-icon.activity-art .activity-illustration {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center 53%;
}
.bright-teacher #tool-games #game-grid > .card.tile-card .card-title {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 12px 8px 15px;
  color: #343c49;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
.bright-teacher #tool-games #game-grid .card-title .sub-title {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6e7d8d;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}
/* Keep game descriptions readable to screen readers and searchable by JS,
   without making this gallery visually taller than the unit gallery. */
.bright-teacher #tool-games #game-grid > .card.tile-card .card-desc {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  -webkit-line-clamp: unset;
}
.bright-teacher #tool-games #game-grid > .card.tile-card .fav-pin {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  bottom: auto;
  left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #ffffffde;
  color: #ac8737;
  box-shadow: none;
}
.bright-teacher #tool-games #game-grid > .card.tile-card .fav-pin.on {
  color: #fff;
  background: #e6b84e;
}
.bright-teacher #tool-games #game-grid > .card.tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px #6c9db91c;
}
.bright-teacher #tool-games .game-filter {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 18px;
  border-color: #e8eef5;
  background: #f7fafc;
  color: #657792;
}
.bright-teacher #tool-games .game-filter.active {
  border-color: #b7dff8;
  background: #e4f4ff;
  color: #347ba8;
}
@media (max-width: 1050px) {
  .bright-teacher #tool-games #game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 760px) {
  .bright-teacher #tool-games #game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .bright-teacher #tool-games #game-grid > .card.tile-card { border-radius: 20px; }
  .bright-teacher #tool-games #game-grid > .card.tile-card .card-icon.activity-art { aspect-ratio: 1.12; }
  .bright-teacher #tool-games #game-grid > .card.tile-card .card-title { padding: 11px 5px 13px; font-size: 18px; }
  .bright-teacher #tool-games #game-grid .card-title .sub-title { font-size: 10px; }
  .bright-teacher #tool-games .game-filter { padding: 8px 12px; font-size: 13px; }
}

/* Place 课章经纬 subject switches on the same title row. */
.bright-teacher #tool-units > .section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap;
  gap:16px;
  margin-bottom:20px;
}
.bright-teacher #tool-units > .section-title .section-title-main {
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:10px;
  min-width:0;
}
.bright-teacher #tool-units > .section-title .subject-tabs {
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:8px;
  margin:0;
}
.bright-teacher #tool-units > .section-title .subject-tab-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  white-space:nowrap;
  padding:8px 14px;
  min-height:38px;
  font-size:15px;
}
@media(max-width:560px) {
  .bright-teacher #tool-units > .section-title { gap:8px; }
  .bright-teacher #tool-units > .section-title .section-title-main {
    gap:6px;
    font-size:20px;
    white-space:nowrap;
  }
  .bright-teacher #tool-units > .section-title .title-icon {
    width:29px; height:29px; flex:0 0 29px;
  }
  .bright-teacher #tool-units > .section-title .title-icon svg {
    width:20px; height:20px;
  }
  .bright-teacher #tool-units > .section-title .subject-tabs { gap:4px; }
  .bright-teacher #tool-units > .section-title .subject-tab-btn {
    min-height:32px;
    padding:6px 7px;
    font-size:12px;
  }
}
