/* Student School: share the approved bright Teacher Study visual language.
   No icon assets were replaced; learning links and account UI remain intact. */
body.bright-student {
  --student-ink:#303645; --student-muted:#667086; --student-sky:#65bffa;
  margin:0; padding:0 0 0 218px; min-height:100svh;
  background:#fffdf7; color:var(--student-ink);
  font-family:'KaiTi-CJK','LXGW WenKai Lite',serif;
}
.bright-student *, .bright-student *::before, .bright-student *::after { box-sizing:border-box; }
.bright-student .student-bright-hero {
  display:flex; align-items:center; width:100%; max-width:none; height:210px;
  padding:36px 9% 20px; margin:0; border:0; border-radius:0; box-shadow:none;
  background:#b9e6fc url('../images/teacher-activities/bright-hero.webp') center / cover no-repeat;
}
.bright-student .student-bright-hero-copy { position:relative; z-index:1; max-width:840px; }
.bright-student .student-bright-hero h1 {
  margin:0; color:#243f77; font-size:clamp(26px,2.7vw,42px);
  line-height:1.5; letter-spacing:1px; text-shadow:0 2px 0 #ffffffaa;
}
.bright-student .student-bright-hero p {
  margin:5px 0 0; font-size:clamp(16px,1.6vw,24px); color:#335988;
}
.bright-student .student-bright-hero p span { color:#efbc35; font-size:1.5em; }
.storybook-page.courtyard-page.bright-student .student-header.student-toolbar {
  position:fixed; inset:0 auto 0 0; z-index:40; isolation:auto;
  display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:16px;
  width:218px; max-width:none; height:100svh; min-height:0;
  padding:27px 15px 22px; margin:0; overflow-x:hidden; overflow-y:auto;
  border:0; border-right:1px solid #efece2; border-radius:0; box-shadow:3px 0 15px #8295aa08;
  background:#fffcf5;
}
.bright-student .student-header.student-toolbar::before,
.bright-student .student-header.student-toolbar::after { display:none!important; }
.bright-student .student-toolbar-welcome {
  flex:0 0 auto; width:100%; min-width:0; display:flex; flex-direction:column;
  align-items:center; gap:5px; text-align:center; padding:12px 0 4px;
}
.bright-student .toolbar-bunny {
  width:118px; height:118px; padding:9px; flex:0 0 auto; border-radius:50%;
  background:#caeaff; object-fit:contain;
}
.bright-student .student-school-name { display:block; color:#333c4d; font-size:23px; line-height:1.35; }
.bright-student #learning-account {
  width:100%; min-width:0; display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:3px; margin:0; padding:0;
  border:0; background:none; text-align:center;
}
.bright-student #learning-account strong {
  font-size:15px; font-weight:600; line-height:1.45; color:#526583; text-align:center;
}
.bright-student #learning-account > span {
  font-size:12px; line-height:1.4; color:#8491a5; text-align:center;
}
.bright-student .student-home {
  display:block; align-self:center; padding:4px 8px; color:#768298;
  font-size:14px; line-height:1.5; text-decoration:none; border-radius:10px;
}
.bright-student .student-home:hover { background:#edf6fb; color:#355787; }
.bright-student .student-section-nav {
  display:flex; flex-direction:column; align-items:stretch; gap:10px;
  width:100%; margin:10px 0 0; padding:0;
}
.bright-student .student-subject-tab {
  display:flex; align-items:center; justify-content:flex-start; width:100%;
  min-height:56px; padding:12px 15px; gap:13px;
  border:0; border-radius:23px; background:transparent; color:#566985;
  font:inherit; font-size:20px; line-height:1.2; cursor:pointer; text-align:left;
}
.bright-student .student-subject-tab svg {
  width:27px; height:27px; flex:0 0 auto; stroke:currentColor;
}
.bright-student .student-subject-tab[data-student-tab="all"] svg { color:#9b8be2; }
.bright-student .student-subject-tab[data-student-tab="chinese"] svg { color:#72bda7; }
.bright-student .student-subject-tab[data-student-tab="math"] svg { color:#efb734; }
.bright-student .student-subject-tab:hover { background:#edf6fb; }
.bright-student .student-subject-tab.is-active {
  background:#65bffa; color:#fff; box-shadow:0 4px 12px #74c7f722;
}
.bright-student .student-subject-tab.is-active svg { color:#fff; }
.bright-student .student-toolbar-actions {
  display:flex; flex-direction:column; align-items:stretch;
  width:100%; flex:0 0 auto; gap:10px; margin-top:auto; padding:16px 0 0;
}
/* Place the badge collection near the top as a clear fourth destination. */
.bright-student .student-toolbar .student-honors-card {
  display:flex; align-items:center; gap:11px; width:100%; min-width:0;
  flex:0 0 auto; margin:2px 0 0; padding:11px 12px;
  border:2px solid #e5ba68; border-radius:18px;
  background:#fff0c5; box-shadow:inset 0 0 0 1px #fff9e9;
  color:#684b29; text-decoration:none;
}
.bright-student .student-toolbar .student-honors-card:hover {
  background:#ffe7a8; border-color:#d9a44a;
}
.bright-student .student-honors-card img {
  flex:0 0 auto; width:46px; height:46px; object-fit:contain;
}
.bright-student .student-honors-card > span { min-width:0; }
.bright-student .student-honors-card strong {
  display:block; font-size:19px; font-weight:700; line-height:1.35; white-space:normal;
}
.bright-student .student-honors-card small {
  display:block; margin-top:2px; font-size:12px; color:#936e37;
}
.bright-student .student-honors-card b {
  display:block; flex:0 0 auto; margin-left:auto; font-size:24px; color:#a66b25;
}
.bright-student .student-toolbar .student-account-entry {
  width:100%; min-width:0; margin:0; border:1px solid #deebf3;
  border-radius:20px; background:#fff; color:#355787;
  box-shadow:none; font-size:15px; text-align:center;
}
.bright-student .student-toolbar a.student-account-entry,
.bright-student .student-account-menu summary { display:block; padding:10px 12px; }
.bright-student .student-account-entry small { font-size:11px; }
.bright-student .student-account-panel {
  position:static; width:100%; min-width:0; max-width:none; margin:6px 0 0;
  padding:4px; border:1px solid #deebf3; border-radius:14px;
  background:#fff; box-shadow:none;
}
.bright-student .student-account-panel > a,
.bright-student .student-account-panel > button { font-size:13px; padding:10px 7px; }
.storybook-page.courtyard-page.bright-student .student-main {
  position:relative; z-index:1; display:block;
  width:calc(100% - 56px); max-width:1500px; min-height:300px;
  margin:18px auto 25px; padding:25px 24px 30px;
  border:0; border-radius:30px; background:#ffffffed;
  box-shadow:0 3px 18px #8299b509;
}
.bright-student.student-tabs-ready .subject-section:not(.is-active) { display:none!important; }
.storybook-page.courtyard-page.bright-student .student-main .subject-section {
  padding:0; border:0; border-radius:0; background:none; box-shadow:none;
  margin:0 0 36px;
}
.storybook-page.courtyard-page.bright-student .student-main .subject-section:last-child { margin-bottom:0; }
.storybook-page.courtyard-page.bright-student .student-main .section-heading {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  margin:0 0 20px; padding:0; border:0; background:none; box-shadow:none;
}
.bright-student .student-main .section-heading::before,
.bright-student .student-main .section-heading::after { display:none!important; }
.storybook-page.courtyard-page.bright-student .student-main .section-heading h2 {
  display:flex; align-items:center; gap:10px; margin:0;
  font-size:27px; color:#34383f; font-weight:700; letter-spacing:1px;
}
.bright-student .student-main .section-heading h2 small {
  font-size:13px; color:#8895a3; letter-spacing:0; font-weight:400;
}
.bright-student .student-main .subject-seal {
  display:grid; place-items:center; width:36px; height:36px;
  border:0; border-radius:11px; transform:none; box-shadow:none;
  color:#4a9b7d; background:#e5f5e9; font-size:22px;
}
.bright-student .student-main .math-section .subject-seal { color:#ad8b34; background:#fff3ca; }
.bright-student .subject-count { font-size:13px; color:#8b97a7; }
.bright-student .subject-count span { font-size:12px; }
.storybook-page.courtyard-page.bright-student .student-grid,
.storybook-page.courtyard-page.bright-student .math-grid {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px 18px;
}
.storybook-page.courtyard-page.bright-student .student-grid .student-card,
.storybook-page.courtyard-page.bright-student .math-grid .student-card {
  position:relative; display:flex; flex-direction:column; align-items:stretch;
  justify-content:flex-start; gap:0; width:100%; min-width:0; min-height:0;
  margin:0; padding:0; overflow:hidden;
  border:0; border-radius:23px; background:#edf6ff;
  text-decoration:none; box-shadow:0 3px 12px #82a4bf09;
  transform:none; transition:transform .18s ease,box-shadow .18s ease;
}
.storybook-page.courtyard-page.bright-student .student-grid .student-card:nth-child(3n+2),
.storybook-page.courtyard-page.bright-student .math-grid .student-card:nth-child(3n+2) { background:#fff7d9; }
.storybook-page.courtyard-page.bright-student .student-grid .student-card:nth-child(3n),
.storybook-page.courtyard-page.bright-student .math-grid .student-card:nth-child(3n) { background:#eaf7f0; }
.storybook-page.courtyard-page.bright-student .student-grid .student-card:nth-child(4n+1),
.storybook-page.courtyard-page.bright-student .math-grid .student-card:nth-child(4n+1) { background:#fff0ed; }
.bright-student .student-card::before,
.bright-student .student-card::after { content:none!important; display:none!important; }
.storybook-page.courtyard-page.bright-student .student-grid .card-picture.activity-art {
  position:relative; display:block; flex:0 0 auto; width:100%;
  /* Identical visual stage to 课章经纬: square originals cropped to 1.3:1. */
  height:auto; min-height:0; max-height:none;
  aspect-ratio:1.3; margin:0; padding:0;
  border:0; border-radius:0; background:transparent; box-shadow:none; overflow:hidden;
}
.storybook-page.courtyard-page.bright-student .student-grid .card-picture.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%;
}
.storybook-page.courtyard-page.bright-student .student-card .card-label {
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  flex:0 0 auto; width:100%; min-width:0; margin:0;
  padding:12px 8px 15px; text-align:center;
}
.storybook-page.courtyard-page.bright-student .student-card .card-label strong,
.storybook-page.courtyard-page.bright-student .math-grid .card-label strong {
  display:block; width:100%; margin:0; font-size:20px; line-height:1.4;
  color:#343c49; font-weight:700; text-align:center;
}
.storybook-page.courtyard-page.bright-student .student-card .card-label small {
  display:block; width:100%; margin-top:3px; font-size:11px; line-height:1.4;
  font-weight:400; color:#6e7d8d; text-align:center;
}
.bright-student .student-card .card-arrow { display:none!important; }
.storybook-page.courtyard-page.bright-student .student-card:hover {
  transform:translateY(-4px); border:0; box-shadow:0 8px 18px #6c9db91c;
}
.storybook-page.courtyard-page.bright-student .student-card[hidden],
.bright-student .student-honors-card[hidden] { display:none!important; }
.bright-student #pizza-week-card { border:0!important; outline:2px solid #e7b57d; outline-offset:-2px; }
.bright-student #pizza-week-card::before {
  content:'限时'!important; display:block!important; position:absolute;
  top:9px; right:9px; bottom:auto; left:auto; width:auto; height:auto;
  padding:3px 11px; color:#fff; background:#ae553b; border-radius:20px;
  opacity:1; z-index:2; font-size:13px;
}
.bright-student #pizza-week-card::after { content:none!important; }
.bright-student .student-footer {
  width:100%; min-height:clamp(180px,22vw,300px); display:flex; align-items:flex-end;
  justify-content:center; margin:0; padding:115px 20px 15px;
  border:0; background:transparent url('../images/teacher-activities/bright-landscape.webp') center bottom / 100% auto no-repeat;
  color:#557768; font-size:13px; text-align:center;
}
.bright-student :is(button,a):focus-visible { outline:3px solid #4b9dd5; outline-offset:3px; }
@media(max-width:1320px) {
  body.bright-student { padding-left:190px; }
  .storybook-page.courtyard-page.bright-student .student-header.student-toolbar { width:190px; }
  .bright-student .student-subject-tab { padding-inline:11px; font-size:18px; }
  .storybook-page.courtyard-page.bright-student .student-main { width:calc(100% - 40px); padding:24px 18px; }
}
@media(max-width:1050px) {
  .storybook-page.courtyard-page.bright-student .student-grid,
  .storybook-page.courtyard-page.bright-student .math-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
}
@media(max-width:760px) {
  body.bright-student { padding-left:0; }
  .bright-student .student-bright-hero {
    height:160px; padding:29px 20px 17px; background-position:55% center;
  }
  .bright-student .student-bright-hero h1 { font-size:24px; line-height:1.45; }
  .bright-student .student-bright-hero p { max-width:19em; font-size:15px; }
  .storybook-page.courtyard-page.bright-student .student-header.student-toolbar {
    position:relative; inset:auto; z-index:30; display:grid; grid-template-columns:minmax(0,1fr) auto;
    width:100%; height:auto; min-height:0; padding:10px 14px 12px; margin:0;
    gap:9px; border:0; border-radius:0; box-shadow:none; overflow:visible;
  }
  .bright-student .student-toolbar-welcome {
    display:flex; flex-direction:row; align-items:center; gap:10px;
    width:auto; min-width:0; padding:0; text-align:left;
  }
  .bright-student .toolbar-bunny { width:48px; height:48px; padding:4px; }
  .bright-student .student-school-name { display:none; }
  .bright-student #learning-account { align-items:flex-start; text-align:left; }
  .bright-student #learning-account strong { font-size:17px; text-align:left; }
  .bright-student #learning-account > span { font-size:12px; text-align:left; }
  .bright-student .student-home { align-self:center; white-space:nowrap; font-size:13px; }
  .bright-student .student-section-nav {
    grid-column:1 / -1; flex-direction:row; overflow-x:auto;
    margin:0; padding:1px 0 4px; gap:7px;
  }
  .bright-student .student-subject-tab {
    flex:0 0 auto; width:auto; min-height:42px; gap:6px;
    padding:9px 12px; border-radius:17px; font-size:15px;
  }
  .bright-student .student-subject-tab svg { width:19px; height:19px; }
  .bright-student .student-toolbar-actions {
    grid-column:1 / -1; flex-direction:row; align-items:stretch;
    flex-wrap:wrap; gap:8px; padding:0; margin:0; width:100%;
  }
  .bright-student .student-toolbar .student-honors-card {
    grid-column:1 / -1; width:100%; min-height:58px;
    margin:0; padding:8px 12px; gap:10px;
  }
  .bright-student .student-honors-card strong { font-size:17px; }
  .bright-student .student-honors-card img { width:39px; height:39px; }
  .bright-student .student-toolbar .student-account-entry { width:auto; flex:1 1 110px; font-size:13px; }
  .bright-student .student-toolbar a.student-account-entry,
  .bright-student .student-account-menu summary { padding:8px 10px; }
  .storybook-page.courtyard-page.bright-student .student-main {
    width:calc(100% - 24px); margin:8px auto 20px; padding:20px 14px;
    border-radius:23px;
  }
  .storybook-page.courtyard-page.bright-student .student-main .section-heading h2 { font-size:23px; }
  .bright-student .student-main .subject-seal { width:32px; height:32px; font-size:19px; }
  .storybook-page.courtyard-page.bright-student .student-grid,
  .storybook-page.courtyard-page.bright-student .math-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px;
  }
  .storybook-page.courtyard-page.bright-student .student-grid .student-card,
  .storybook-page.courtyard-page.bright-student .math-grid .student-card { border-radius:20px; }
  .storybook-page.courtyard-page.bright-student .student-grid .card-picture.activity-art {
    width:100%; height:auto; max-height:none;
    min-height:0; aspect-ratio:1.12; margin:0; padding:0;
  }
  .storybook-page.courtyard-page.bright-student .student-card .card-label {
    padding:11px 5px 13px; margin:0;
  }
  .storybook-page.courtyard-page.bright-student .student-card .card-label strong,
  .storybook-page.courtyard-page.bright-student .math-grid .card-label strong { font-size:18px; }
  .storybook-page.courtyard-page.bright-student .student-card .card-label small { font-size:10px; }
  .bright-student .student-footer { min-height:110px; padding-top:80px; }
}
@media(prefers-reduced-motion:reduce) {
  .bright-student .student-card { transition:none!important; }
}

/* A quiet, accessible daily warm-up gate; never changes teachers' or guests' cards. */
.bright-student #daily-name-prompt { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:12px 0 22px; padding:18px 22px; background:#fff5dd; border:1px solid #ebcf93; border-radius:16px; color:#68472b; }
.bright-student #daily-name-prompt[hidden] { display:none; }
.bright-student #daily-name-prompt strong { font-size:21px; }
.bright-student #daily-name-prompt span { flex:1 1 250px; }
.bright-student #daily-name-prompt a { padding:9px 14px; border-radius:9px; color:#fff; background:#bc6a32; text-decoration:none; font-weight:700; }
.bright-student .student-card.daily-name-locked { opacity:.42; filter:grayscale(1); cursor:not-allowed; }
.bright-student .student-card.daily-name-locked .card-arrow { display:none; }
.bright-student .student-card.daily-name-locked::after { content:'🔒'; position:absolute; top:8px; right:9px; font-size:19px; }
.bright-student .student-card.daily-name-featured { border-color:#d39a51; }
