@charset "UTF-8";
/* 课堂层：一幅海景贯穿页面，内容保持明亮易读。 */
.classroom-app:has(.app-shell) {
  background: #dff6f7 url('/static/classroom/ocean-header.webp') center top / cover fixed no-repeat;
  overflow-anchor: none;
}
.classroom-app .app-shell { background: linear-gradient(90deg,#e6fbfc4d,#e6fbfc08); }
.classroom-app .sea-nav { background: linear-gradient(160deg,#05b7dedf,#0677b4eb); backdrop-filter: blur(12px); }
.classroom-app .student-card { background: #fffffff0; box-shadow: 0 8px 24px #167c9c16, inset 0 1px #fff; }
.classroom-app .class-hero {
  position: sticky; top: 14px; z-index: 15;
  height: 150px; min-height: 0;
  background: linear-gradient(95deg,#f2fffff0 0%,#f2ffffb5 44%,#f2ffff26);
  backdrop-filter: blur(3px);
  transition: height .24s ease, padding .24s ease, border-radius .24s ease;
}
.classroom-app .hero-account-tools { display: flex; gap: 10px; align-items: center; }
.classroom-app .compact-batch-toggle { display: none; }
.classroom-app.header-compact .compact-batch-toggle { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.classroom-app.header-compact .class-hero { gap: 12px; }
.classroom-app.header-compact .hero-copy { min-width: 0; }
.classroom-app.header-compact .class-hero h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classroom-app.header-compact .hero-tools { flex-shrink: 0; }
.classroom-app .sound-toggle { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #fff; border-radius: 25px; background: #ffffffe6; color: #3c839c; font-size: 12px; }
.classroom-app .sound-toggle>span:first-child { font-size: 22px; color: #0c99c0; }
.classroom-app .sound-toggle[aria-pressed="true"] { color: #758e99; background: #eef5f5; }
.classroom-app.header-compact .class-hero { height: 72px; padding: 10px 24px; border-radius: 22px; background: #f3fffff2; box-shadow: 0 7px 25px #1c7f9820; }
.classroom-app.header-compact .class-hero h1 { font-size: 23px; letter-spacing: 1px; }
.classroom-app.header-compact .class-hero .eyebrow,
.classroom-app.header-compact .hero-subtitle,
.classroom-app.header-compact .semester-label,
.classroom-app.header-compact .hero-counters { display: none; }
.classroom-app.header-compact .hero-tools { justify-content: center; }
.classroom-app .partner-arc { align-items: center; margin-bottom: 0; }
.classroom-app .partner-target { padding: 0; width: 53px; height: 54px; min-height: 44px; border-radius: 16px; flex-shrink: 0; transition: transform .18s ease; }
.classroom-app .partner-target:nth-child(2) { transform: translateY(-6px); }
.classroom-app .partner-target:hover { background: #bceff330; }
.classroom-app .partner-target:focus-visible { background: #dff8f9; }
.classroom-app .partner-target .partner { transform: none!important; }
/* 伙伴只保留水位图（密度优先）：进度悬停 title 可读，无障碍标签在 img alt 中 */
.classroom-app .partner-arc { height: 38px; }
.classroom-app .partner-target { position: relative; width: 40px; max-width: 40px; min-width: 0; flex: 1 1 0; height: 38px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.classroom-app .partner-target .partner { width: min(32px,100%); height: auto; aspect-ratio: 58/62; }
.classroom-app .partner-growing { background: #d9f9ff; box-shadow: 0 0 0 2px #16b6d6,0 0 22px #21c6e855; }
.classroom-app .partner-gain { position: absolute; top: 0; right: -7px; padding: 3px 7px; border-radius: 12px; background: #009fbe; color: white; font-size: 14px; font-weight: 800; box-shadow: 0 2px 8px #0787a52b; }
.classroom-app .growth-feedback { position: absolute; bottom: 3px; left: 5px; right: 5px; padding: 6px 2px; border-radius: 10px; color: #08738e; background: #e0faff; text-align: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.classroom-app .student-points { white-space: nowrap; color: #16839f; font-size: 12px; }
.classroom-app .growth-source-note { display: block; margin-top: 5px; color: #618c9b; font-size: 11px; }
.classroom-app .student-meta { margin: 2px 0 8px; }
.classroom-app .evaluator-summary { margin-bottom: 23px; }
.classroom-app .evaluator-summary h3 { margin-bottom: 6px; }
.classroom-app .evaluator-list { list-style: none; margin: 9px 0 0; padding: 0; max-height: 160px; overflow: auto; }
.classroom-app .evaluator-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e3f1f3; font-size: 13px; }
.classroom-app .evaluator-item span { color: #4f879d; font-size: 12px; }

/* 评价面板：有角色、有场景色彩，行为与收藏仍是两个独立触摸目标。 */
.classroom-app .setup-dialog { width: min(790px,94vw); padding: 30px 38px; }
.classroom-app .setup-welcome { text-align: center; }
.classroom-app .setup-welcome>img { width: 112px; height: 112px; }
.classroom-app .setup-welcome h2 { font-size: 30px; margin-bottom: 10px; }
.classroom-app .setup-grade-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 25px 0 20px; }
.classroom-app .setup-grade { border-radius: 16px; background: #edf7fa; color: #397792; min-height: 58px; font-size: 18px; font-weight: 700; }
.classroom-app .setup-grade.active { background: #079ed0; color: white; }
.classroom-app .setup-class-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 12px 0; max-height: 28vh; overflow: auto; }
.classroom-app .setup-class { background: #fff; border: 2px solid #d8edf2; border-radius: 16px; min-height: 62px; padding: 8px; font-weight: 700; color: #286c8b; }
.classroom-app .setup-class.active { border-color: #079ed0; background: #e1f7fc; }
.classroom-app .setup-feedback { color: #936842; font-size: 13px; min-height: 27px; margin: 8px 0; }
.classroom-app #setup-confirm { width: 100%; min-height: 54px; font-size: 18px; }
.classroom-app .setup-footnote { margin-top: 14px; text-align: center; font-size: 12px; color: #7197a7; }
@media(max-width:760px) { .classroom-app .setup-welcome h2 { font-size: 23px; } .classroom-app .setup-class-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.classroom-app .behavior-dialog { width: min(1080px,96vw); padding: 24px 28px; background: linear-gradient(145deg,#f4ffff,#fffaf1 70%,#eefbff); border: 3px solid #fff; box-shadow: 0 0 0 5px #bdedf549,0 25px 100px #0b668e40; }
.classroom-app .behavior-intro { position: relative; isolation: isolate; align-items: center; min-height: 108px; padding: 8px 125px 10px 8px; margin-bottom: 4px; }
.classroom-app .behavior-intro:before { content: ""; position: absolute; inset: 0 55px 0 0; z-index: -1; background: linear-gradient(110deg,#d6f7fb,#e9fbf800); border-radius: 24px; }
.classroom-app .behavior-intro h2 { font-size: 28px; color: #10516d; }
.classroom-app .behavior-intro>.close-button { position: absolute; right: 0; top: 0; }
.classroom-app .behavior-mascot { position: absolute; width: 110px; height: 105px; right: 50px; bottom: 4px; filter: drop-shadow(0 5px 8px #13bdd62b); transform: rotate(7deg); }
.classroom-app .behavior-students { display: flex; align-items: center; gap: 5px; color: #618c9b; font-size: 12px; margin-top: 9px; }
.classroom-app .behavior-students img { width: 29px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid white; margin-right: -9px; }
.classroom-app .behavior-students span { margin-left: 13px; }
.classroom-app .behavior-search { margin: 13px 0 10px; box-shadow: 0 2px 5px #0d849407; }
.classroom-app .behavior-tabs { gap: 8px; padding-bottom: 9px; }
.classroom-app .behavior-tab { border-radius: 16px; min-height: 44px; padding: 9px 24px; }
.classroom-app .behavior-tab.active { background: linear-gradient(135deg,#0bb5db,#1496cb); box-shadow: 0 5px 12px #159fcb24; }
.classroom-app .behavior-filter-bar { display: flex; justify-content: space-between; align-items: center; color: #7d9caa; font-size: 12px; min-height: 35px; }
.classroom-app .behavior-filter-bar .text-button { min-height: 32px; font-size: 12px; text-decoration: none; }
.classroom-app .behavior-summary { margin: 6px 0 9px; }
.classroom-app .behavior-list { gap: 12px; max-height: 48vh; padding-bottom: 4px; }
.classroom-app .behavior-card { background: var(--behavior-tint,#e7f9ff); border: 2px solid #ffffff; border-radius: 21px; box-shadow: 0 3px 8px #396d7e0d; }
.classroom-app .behavior-pick { min-height: 109px; position: relative; padding: 11px 14px 10px; }
.classroom-app .behavior-pick:hover { background: #ffffff65; }
.classroom-app .behavior-card-art { display: flex; justify-content: space-between; align-items: center; height: 31px; margin-bottom: 6px; }
.classroom-app .behavior-card-art img { width: 39px; height: 39px; filter: drop-shadow(0 2px 3px #46758919); }
.classroom-app .behavior-points-stamp { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 30px; font-size: 18px; font-weight: 900; color: #fa8362; background: #ffffffb0; border-radius: 12px; transform: rotate(5deg); }
.classroom-app .behavior-pick strong { font-size: 15px; line-height: 1.5; color: #23495e; }
.classroom-app .behavior-pick small { font-size: 10px; margin-top: 5px; color: var(--behavior-ink,#377d96); }
.classroom-app .behavior-card-footer { background: #ffffff8f; padding: 0 9px; }
.classroom-app .behavior-card-footer>span { color: var(--behavior-ink,#377d96); font-size: 10px; }
.classroom-app .favorite-button { color: #7698a7; }
.classroom-app .favorite-button.saved { color: #dc8b37; }
.classroom-app .optional-note { margin-top: 9px; }

/* 非阻塞庆祝层：真实确认后进入浏览器顶层，下一次操作可直接穿透。 */
.classroom-app .encouragement { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: radial-gradient(ellipse at 50% 50%,#e9ffff61,transparent 66%); pointer-events: none; z-index: 1000; overflow: hidden; color: #154b65; }
.classroom-app .encouragement::backdrop { background: transparent; pointer-events: none; }
.classroom-app .encouragement-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(580px,84vw); padding: 115px 30px 30px; text-align: center; border-radius: 42px; border: 4px solid #fff; background: linear-gradient(145deg,#edfffff5,#fffaf1f5); box-shadow: 0 20px 80px #0a8ba444,0 0 0 9px #b4eef56b; animation: ocean-cheer-enter .5s cubic-bezier(.2,.8,.3,1.15) both; }
.classroom-app .encouragement-panel>.close-button { position: absolute; top: 13px; right: 13px; pointer-events: auto; }
.classroom-app .encouragement-mascot { width: 175px; height: 170px; position: absolute; left: calc(50% - 88px); top: -58px; filter: drop-shadow(0 7px 12px #0985aa25); animation: ocean-cheer-bob 1.5s ease-in-out both; }
.classroom-app .encouragement-portraits { display: flex; justify-content: center; margin: -3px 0 10px; gap: 5px; }
.classroom-app .encouragement-portraits img { width: 65px; height: 65px; background: #dcf8fc; border-radius: 50%; border: 3px solid white; }
.classroom-app #encouragement-kicker { color: #4f9db0; font-size: 13px; margin: 10px 0 9px; }
.classroom-app #encouragement-title { font-size: 28px; line-height: 1.4; }
.classroom-app #encouragement-behavior { font-size: 17px; color: #4c7990; margin: 12px 0; }
.classroom-app #encouragement-points { display: inline-block; font-size: 32px; color: #f4825f; background: #fff0dc; padding: 12px 25px; border-radius: 23px; margin-bottom: 15px; }
.classroom-app #encouragement-note { font-size: 12px; color: #7b9aa6; }
.classroom-app .encouragement-bubbles { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; background: #70d8e6; border-radius: 50%; box-shadow: -290px -90px #6fd5e0,270px -150px #ffc988,300px 40px #77d8e5,-240px 160px #ffd6a0,190px 220px #8cdeea,-150px -250px #b3e9f4,-340px 30px #f8c0a2,140px -290px #ffd39d,350px 155px #7fdee3; animation: ocean-cheer-bubbles 1.7s ease-out both; }
.classroom-app .encouragement[data-kind="encouragement"] #encouragement-points { color: #1ca1b4; background: #e2f8f8; font-size: 25px; }
@keyframes ocean-cheer-enter { from { opacity: 0; transform: translate(-50%,-44%) scale(.86); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes ocean-cheer-bob { 0% { transform: translateY(7px) rotate(-7deg); } 55% { transform: translateY(-8px) rotate(5deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes ocean-cheer-bubbles { from { opacity: 0; transform: scale(.4) rotate(-8deg); } 35% { opacity: 1; } to { opacity: 0; transform: scale(1.4) rotate(14deg); } }
@media(max-width:1100px) { .classroom-app .class-hero { height: 180px; } .classroom-app .hero-account-tools { gap: 6px; } }
@media(max-width:760px) {
  .classroom-app .class-hero { height: 150px; top: 8px; }
  .classroom-app.header-compact .class-hero { height: 62px; padding: 10px 12px; }
  .classroom-app.header-compact .class-hero h1 { font-size: 17px; }
  .classroom-app.header-compact .hero-tools { position: static; margin-left: auto; align-self: center; }
  .classroom-app.header-compact .compact-batch-toggle { min-height: 44px; padding: 8px; font-size: 11px; }
  .classroom-app .sound-toggle { min-height: 35px; padding: 3px 7px; }
  .classroom-app .sound-label { display: none; }
  .classroom-app .partner-target { width: 35px; height: 38px; padding: 0; }
  .classroom-app .partner-target .partner { width: 32px; height: 34px; }
  .classroom-app .partner-arc { height: 38px; }
  .classroom-app .partner-gain { right: -4px; top: 0; font-size: 11px; padding: 2px 4px; }
  .classroom-app .growth-feedback { font-size: 10px; }
  .classroom-app .behavior-intro { min-height: 98px; padding: 5px 95px 8px 2px; }
  .classroom-app .behavior-intro h2 { font-size: 21px; }
  .classroom-app .behavior-mascot { width: 75px; height: 78px; right: 27px; bottom: 5px; }
  .classroom-app .behavior-students span { font-size: 10px; }
  .classroom-app .behavior-students img { width: 23px; height: 25px; }
  .classroom-app .behavior-pick strong { font-size: 13px; }
  .classroom-app .behavior-card-art img { width: 33px; height: 33px; }
  .classroom-app .behavior-list { gap: 8px; max-height: 44vh; }
  .classroom-app .behavior-pick { min-height: 112px; padding: 10px; }
  .classroom-app .behavior-filter-bar { font-size: 10px; }
  .classroom-app #encouragement-title { font-size: 23px; }
  .classroom-app .encouragement-panel { padding: 98px 18px 24px; }
}
@media(prefers-reduced-motion:reduce) { .classroom-app .class-hero,.classroom-app .partner-target { transition: none; } .classroom-app .encouragement-panel,.classroom-app .encouragement-mascot,.classroom-app .encouragement-bubbles { animation: none; } .classroom-app .encouragement-bubbles { display: none; } }

/* 一体机横向选择：扩大内容宽度，用更多列替代细长的纵向弹窗。 */
.classroom-app .behavior-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #cceaf0; }
.classroom-app .behavior-navigation .behavior-tabs { border-bottom: 0; flex-wrap: wrap; }
.classroom-app .behavior-navigation .behavior-filter-bar { flex-shrink: 0; }
@media(min-width:761px) {
  .classroom-app .teacher-dialog,
  .classroom-app .behavior-dialog { width: min(1680px,94vw); padding: 24px 30px; }
  .classroom-app .teacher-dialog { max-height: 88dvh; }
  .classroom-app .teacher-list { grid-template-columns: repeat(auto-fill,minmax(172px,1fr)); gap: 14px; margin: 18px 0; max-height: calc(88dvh - 195px); overflow-y: auto; padding: 3px; }
  .classroom-app .teacher-option { padding: 13px 10px; gap: 8px; min-height: 138px; font-size: 17px; }
  .classroom-app .teacher-avatar { width: 82px; height: 82px; }
  .classroom-app .setup-dialog { width: min(1440px,94vw); padding: 26px 34px; }
  .classroom-app .setup-welcome { position: relative; min-height: 108px; text-align: left; padding: 7px 0 8px 124px; }
  .classroom-app .setup-welcome>img { position: absolute; left: 0; top: 0; width: 100px; height: 100px; }
  .classroom-app .setup-welcome h2 { font-size: 28px; }
  .classroom-app .setup-grade-list { grid-template-columns: repeat(6,minmax(0,1fr)); margin: 14px 0 17px; }
  .classroom-app .setup-class-list { grid-template-columns: repeat(auto-fill,minmax(172px,1fr)); max-height: 35dvh; }
  .classroom-app .setup-grade { min-height: 52px; }
  .classroom-app #setup-confirm { width: auto; min-width: 290px; display: block; margin: 0 auto; padding-inline: 32px; }
  .classroom-app #settings-dialog[open] { width: min(1200px,94vw); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
  .classroom-app #settings-dialog>.dialog-header,
  .classroom-app #settings-dialog>p,
  .classroom-app #settings-dialog>.primary-button { grid-column: 1/-1; }
  .classroom-app #settings-dialog .field-label { margin: 18px 0; }
  .classroom-app #settings-dialog select { width: 100%; min-height: 58px; font-size: 18px; }
  .classroom-app .companions-dialog { width: min(1440px,94vw); }
  .classroom-app .companion-slots { margin: 14px 0; }
  .classroom-app .companion-slot { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 88px; font-size: 16px; }
  .classroom-app .companion-slot img { width: 62px; height: 62px; margin: 0; }
  .classroom-app .companion-options { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
  .classroom-app .companion-choice { min-height: 112px; padding: 9px; font-size: 15px; }
  .classroom-app .companion-choice img { width: 72px; height: 72px; }
  .classroom-app .behavior-list { grid-template-columns: repeat(6,minmax(0,1fr)); }
  /* 头部收紧，滚动只留在行为列表，短屏也能完整看见三行。 */
  .classroom-app .behavior-dialog[open] { display: flex; flex-direction: column; height: min(860px,94dvh); max-height: 94dvh; overflow: hidden; padding: 16px 24px; }
  .classroom-app .behavior-dialog> :not(.behavior-list) { flex-shrink: 0; }
  .classroom-app .behavior-intro { min-height: 56px; margin: 0 0 4px; padding: 2px 115px 2px 6px; }
  .classroom-app .behavior-intro>div { display: flex; align-items: center; gap: 20px; min-height: 48px; }
  .classroom-app .behavior-intro .eyebrow { display: none; }
  .classroom-app .behavior-intro h2 { font-size: 24px; white-space: nowrap; }
  .classroom-app .behavior-mascot { width: 56px; height: 56px; right: 50px; bottom: 0; }
  .classroom-app .behavior-students { margin-top: 0; flex-wrap: wrap; }
  .classroom-app .behavior-search { margin: 4px 0 8px; min-height: 44px; }
  .classroom-app .behavior-search input { height: 42px; min-height: 0; }
  .classroom-app .behavior-tabs { padding-bottom: 5px; }
  .classroom-app .behavior-tab { min-height: 44px; padding: 8px 22px; }
  .classroom-app .behavior-filter-bar { min-height: 44px; }
  .classroom-app .behavior-summary { margin: 7px 0; }
  .classroom-app .behavior-filters { margin: 7px 0 0; }
  .classroom-app .behavior-list { flex: 1; min-height: 0; max-height: none; align-content: start; grid-auto-rows: 138px; gap: 10px; }
  .classroom-app .behavior-pick { min-height: 0; padding: 8px 12px 6px; }
  .classroom-app .behavior-card-art { height: 27px; margin-bottom: 4px; }
  .classroom-app .behavior-card-art img { width: 32px; height: 32px; }
  .classroom-app .behavior-pick strong { font-size: 15px; line-height: 1.35; }
  .classroom-app .behavior-pick small { margin-top: 4px; }
  .classroom-app .favorite-button { min-height: 34px; }
  .classroom-app .optional-note { margin-top: 5px; }
}
@media(min-width:761px) and (max-width:1400px) {
  .classroom-app .teacher-list { grid-template-columns: repeat(auto-fill,minmax(154px,1fr)); gap: 12px; }
  .classroom-app .behavior-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media(min-width:761px) and (max-width:1000px) {
  .classroom-app .teacher-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .classroom-app .teacher-option { min-height: 120px; font-size: 15px; }
  .classroom-app .teacher-avatar { width: 66px; height: 66px; }
  .classroom-app .setup-grade-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .classroom-app .companion-options { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .classroom-app .behavior-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .classroom-app .behavior-intro>div { display: block; }
  .classroom-app .behavior-students { margin-top: 4px; }
}
@media(min-width:761px) and (max-height:850px) {
  .classroom-app .behavior-dialog[open] { height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  .classroom-app .behavior-list { grid-auto-rows: 128px; gap: 9px; }
  .classroom-app .behavior-card-art { height: 23px; margin-bottom: 3px; }
  .classroom-app .behavior-card-art img { width: 28px; height: 28px; }
  .classroom-app .behavior-pick small { margin-top: 3px; }
}
@media(min-width:2200px) {
  .classroom-app .teacher-dialog,
  .classroom-app .behavior-dialog { width: min(2240px,90vw); }
  .classroom-app .teacher-list { grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); }
  .classroom-app .setup-dialog,
  .classroom-app .companions-dialog { width: min(1920px,90vw); }
  .classroom-app .companion-options { grid-template-columns: repeat(8,minmax(0,1fr)); }
  .classroom-app .behavior-list { grid-template-columns: repeat(8,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .classroom-app .teacher-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .classroom-app .teacher-option { min-width: 0; padding: 14px 8px; overflow-wrap: anywhere; }
  .classroom-app .teacher-avatar { width: 72px; height: 72px; }
  .classroom-app .companion-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* 已选学生随批量栏展示，长名单只在头像条内横向滑动。 */
.classroom-app .batch-bar { width: min(1140px,calc(100vw - 32px)); max-width: calc(100vw - 32px); gap: 16px; padding: 12px 18px; }
.classroom-app .batch-selection { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.classroom-app #selected-count { flex-shrink: 0; }
.classroom-app .batch-selected-students { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; overflow-x: auto; overflow-y: hidden; padding: 2px 1px; scrollbar-width: thin; overscroll-behavior-x: contain; touch-action: pan-x; }
.classroom-app .batch-selected-student { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 46px; min-width: 0; }
.classroom-app .batch-selected-student img { width: 34px; height: 34px; object-fit: cover; border: 2px solid white; border-radius: 50%; background: #e7f8fb; }
.classroom-app .batch-selected-student small { display: block; max-width: 46px; overflow: hidden; text-overflow: ellipsis; color: #4e8094; font-size: 10px; line-height: 14px; }
.classroom-app .batch-bar>button { flex-shrink: 0; }
.classroom-app:has(.batch-bar:not([hidden])) .workspace { padding-bottom: 130px; }
@media(max-width:900px) {
  .classroom-app .batch-bar { width: calc(100vw - 16px); max-width: calc(100vw - 16px); flex-wrap: wrap; gap: 8px; padding: 10px 12px; justify-content: space-between; }
  .classroom-app .batch-selection { flex-basis: 100%; }
  .classroom-app .batch-bar>button { min-height: 40px; font-size: 12px; }
  .classroom-app:has(.batch-bar:not([hidden])) .workspace { padding-bottom: 180px; }
}

/* 一体机密度优先：≥1401px 默认 8 列，一屏至少 3 行（24 人）。
   紧凑卡片是全局基座（classroom.css），这里只控制列数。 */
@media(min-width:1401px) and (max-width:2199px) {
  .classroom-app .student-grid { grid-template-columns: repeat(8,minmax(0,1fr)); gap: 12px 10px; }
}

/* 矮屏（768p 一体机 / 笔记本窗口）：头部紧凑化 + 卡片再缩，保证 ≥3 行 */
@media(min-width:761px) and (max-height:820px) {
  .classroom-app .class-hero { height: 78px; padding: 8px 24px; border-radius: 20px; }
  .classroom-app .class-hero .eyebrow,
  .classroom-app .class-hero .hero-subtitle,
  .classroom-app .class-hero .semester-label,
  .classroom-app .class-hero .hero-counters { display: none; }
  .classroom-app .class-hero h1 { font-size: 22px; }
  .classroom-app .wall-toolbar { padding: 6px 12px 6px; }
  .classroom-app .partner-arc { height: 30px; }
  .classroom-app .partner-target { height: 30px; }
  .classroom-app .partner-target .partner { width: min(24px,100%); }
  .classroom-app .avatar { width: 60px; height: 61px; }
  .classroom-app .student-name { font-size: 14px; min-height: 18px; padding: 2px 4px; }
  .classroom-app .student-meta { margin: 1px 0 4px; font-size: 10px; gap: 5px; }
  .classroom-app .student-grid { gap: 10px 8px; }
}

/* 班级文化（一班一品）：班主任自助维护特色班名、班徽、一句话与主题背景图。
   主题背景叠加白色纱层保证文字安全，配置按学年归属，恢复默认即回到海洋主题。 */
.classroom-app.has-class-theme { background-image: linear-gradient(rgba(243,252,255,.84),rgba(243,252,255,.9)), var(--class-theme-image); }
.classroom-app .class-title-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.classroom-app .class-badge { flex: 0 0 auto; width: 46px; height: 46px; padding: 3px; object-fit: contain; border-radius: 12px; background: #fffffff2; border: 2px solid #fff; box-shadow: 0 4px 14px #0a7d9c22; }
.classroom-app.header-compact .class-badge { width: 30px; height: 30px; border-radius: 9px; }
.classroom-app .identity-dialog { width: min(620px,94vw); }
.classroom-app .identity-assets { display: flex; gap: 14px; margin: 4px 0 10px; }
.classroom-app .identity-asset { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: #f2fbfd; border: 1px solid #d9eef4; }
.classroom-app .identity-asset > small { font-weight: 800; color: #2a7492; }
.classroom-app .identity-asset img { width: 76px; height: 76px; object-fit: contain; border-radius: 12px; background: #fff; border: 2px solid #fff; box-shadow: 0 3px 10px #0a7d9c1c; }
.classroom-app .identity-asset img.identity-preview-bg { width: 150px; height: 76px; object-fit: cover; }
.classroom-app .identity-asset-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.classroom-app .identity-upload-label { cursor: pointer; }

/* 选择老师：身份标签——班主任珊瑚橙高亮，任课老师深湖蓝；文字对比均≥4.5:1（WCAG AA 实测）。 */
.classroom-app .teacher-option .teacher-role { margin-top: 2px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; color: #1d6e8f; background: #e8f6fb; border: 1px solid #b9e0ee; }
.classroom-app .teacher-option .teacher-role.role-head { color: #92400e; background: #fff1e4; border-color: #ffd9b8; }
.classroom-app .teacher-option .teacher-role.role-head::before { content: "◈  "; font-size: 11px; }
/* 学号来自已核验名册；角标位于头像下缘，不占用批量勾选和伙伴入口。 */
.classroom-app .student-number { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); padding: 2px 8px; border: 1px solid #a9d8e8; border-radius: 8px; background: #f0faff; color: #175c7a; font-size: 14px; font-weight: 700; line-height: 1.35; white-space: nowrap; pointer-events: none; box-shadow: 0 1px 4px #136c8520; }
.classroom-app .student-number.is-missing { color: #657885; background: #f3f7f9; border-color: #d3dfe6; font-size: 11px; font-weight: 500; }
@media(max-height:820px) and (min-width:1100px) {
  .classroom-app .student-number { font-size: 12px; padding: 1px 6px; }
  .classroom-app .student-number.is-missing { font-size: 10px; }
}
@media(min-width:761px) and (max-width:1400px) {
  .classroom-app .teacher-option .teacher-role { font-size: 11px; padding: 2px 10px; }
}

/* 三合一评价：八项为主要工作区，语音是清晰的第二入口。 */
.classroom-app .behavior-list.quick-eight { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: minmax(104px,1fr); flex: 0 0 auto; gap: 12px; overflow: visible; max-height: none; }
.classroom-app .quick-choice { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 16px 14px; text-align: left; border: 1px solid #b9dfe9; border-radius: 16px; background: #fff; color: #184e65; box-shadow: 0 2px 5px #2368820a; transition: background .18s,transform .18s,border-color .18s; }
.classroom-app .quick-choice:hover { background: #eafaff; border-color: #238caf; transform: translateY(-2px); }
.classroom-app .quick-choice:active { transform: scale(.98); }
.classroom-app .quick-choice>img { width: 40px; height: 40px; object-fit: contain; }
.classroom-app .quick-choice>span { min-width: 0; flex: 1; }
.classroom-app .quick-choice strong { display: block; font-size: 21px; letter-spacing: .05em; }
.classroom-app .quick-choice small { display: block; font-size: 12px; color: #597481; margin-top: 6px; line-height: 1.5; }
.classroom-app .quick-points { color: #c85e3f; font-size: 15px; align-self: flex-start; }
.classroom-app .personalized-panel { position: relative; z-index: 2; --voice-size: 104px; margin-top: 16px; padding: 14px 20px 10px; border-top: 1px solid #c7e4eb; background: #f1fafc; border-radius: 0 0 16px 16px; }
.classroom-app .personalized-panel[hidden],.classroom-app .voice-live[hidden],.classroom-app .voice-review[hidden] { display: none; }
.classroom-app .voice-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.classroom-app .voice-intro strong { font-size: 16px; color: #24556a; }
.classroom-app .voice-intro .text-button { min-height: 36px; color: #086b90; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.classroom-app .voice-anchor { position: relative; width: var(--voice-size); height: var(--voice-size); margin: 0 auto; }
.classroom-app .voice-hold { display: grid; grid-template-rows: 34px 22px; place-content: center; justify-items: center; gap: 5px; box-sizing: border-box; width: var(--voice-size); height: var(--voice-size); min-height: var(--voice-size); padding: 10px; margin: 0; border: 0; border-radius: 50%; color: #fff; background: #147fa5; font-weight: 700; font-size: 16px; line-height: 22px; white-space: nowrap; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 4px 0 #0e5e7b; transform: none; transition: background .18s,box-shadow .18s; }
.classroom-app #voice-hold-label { grid-area: 2 / 1; }
.classroom-app .voice-hold:disabled { opacity: .6; }
.classroom-app .voice-hold:hover { background: #096d94; }
.classroom-app .voice-hold:focus-visible { outline: 3px solid #f08968; outline-offset: 5px; }
.classroom-app .voice-mic { grid-area: 1 / 1; align-self: center; width: 30px; height: 30px; }
.classroom-app .voice-wave { grid-area: 1 / 1; display: flex; align-items: center; align-self: center; gap: 4px; height: 30px; opacity: 0; }
.classroom-app .voice-wave i { display: block; background: currentColor; width: 4px; height: 8px; border-radius: 4px; transition: height .12s; }
.classroom-app .voice-wave i:nth-child(2n) { height: 17px; }
.classroom-app .voice-wave i:nth-child(3) { height: 25px; }
.classroom-app [data-state="recording"] .voice-hold { background: #0c8b83; box-shadow: 0 0 0 5px #40b4aa33; }
.classroom-app [data-state="recording"] .voice-mic,.classroom-app [data-state="recognizing"] .voice-mic { opacity: 0; }
.classroom-app [data-state="recording"] .voice-wave,.classroom-app [data-state="recognizing"] .voice-wave { opacity: 1; }
.classroom-app [data-state="recording"] .voice-wave i { height: calc(7px + var(--voice-level,0) * 18px); }
.classroom-app [data-state="recording"] .voice-wave i:nth-child(2n) { height: calc(12px + var(--voice-level,0) * 14px); }
.classroom-app [data-state="recording"] .voice-wave { animation: voice-breathe 1s ease-in-out infinite alternate; }
.classroom-app .voice-cancel .voice-hold { background: #c4523c; box-shadow: 0 0 0 5px #db806833; }
.classroom-app .voice-cancel .voice-live { border-color: #d67e67; background: #fff4ef; }
.classroom-app .voice-status { text-align: center; font-size: 14px; line-height: 21px; color: #486672; margin: 14px 0 0; height: 42px; overflow: auto; }
.classroom-app .voice-live,.classroom-app .voice-review { position: absolute; z-index: 4; left: 50%; bottom: calc(100% + 18px); transform: translateX(-50%); box-sizing: border-box; width: min(680px,calc(100vw - 88px)); padding: 16px 20px; margin: 0; border: 1px solid #80bccb; border-radius: 18px; background: #fffffff7; box-shadow: 0 10px 36px #174b6230; }
.classroom-app .voice-live { min-height: 104px; max-height: 190px; overflow: hidden; pointer-events: none; }
.classroom-app .voice-live-label { color: #0a7b85; font-size: 11px; font-weight: 700; }
.classroom-app .voice-live p { max-height: 128px; overflow-y: auto; scrollbar-width: thin; font-size: 20px; line-height: 1.6; margin: 2px 0 0; color: #174b62; white-space: pre-wrap; overflow-wrap: anywhere; }
.classroom-app .voice-review { max-height: 300px; overflow: auto; }
.classroom-app .voice-review label { display: block; font-size: 13px; color: #24566b; margin: 4px 0 6px; font-weight: 700; }
.classroom-app .voice-review label small { color: #607d88; font-weight: 400; margin-left: 10px; }
.classroom-app .voice-review textarea { display: block; width: 100%; box-sizing: border-box; min-height: 68px; max-height: 140px; padding: 10px 13px; border: 1px solid #9ec7d2; border-radius: 12px; font: inherit; font-size: 17px; color: #204b5e; resize: vertical; }
.classroom-app .voice-review-actions { display: flex; align-items: center; gap: 14px; margin-top: 7px; }
.classroom-app .voice-review-actions .primary-button { margin-left: auto; min-height: 42px; padding: 8px 25px; }
.classroom-app .quick-mode .optional-note { display: none; }
.classroom-app .behavior-navigation { column-gap: 24px; }
.classroom-app .behavior-tabs { gap: 8px; }
@keyframes voice-breathe { from { opacity: .68; } to { opacity: 1; } }
@media(min-width:761px) {
  .classroom-app .behavior-dialog.quick-mode[open] { height: auto; max-height: calc(100dvh - 26px); overflow-y: auto; }
}
@media(max-height:820px) and (min-width:1000px) {
  .classroom-app .behavior-list.quick-eight { grid-auto-rows: 86px; gap: 8px; }
  .classroom-app .quick-choice { padding: 10px 12px; }
  .classroom-app .quick-choice strong { font-size: 19px; }
  .classroom-app .quick-choice small { margin-top: 3px; font-size: 11px; }
  .classroom-app .personalized-panel { margin-top: 9px; padding-top: 6px; }
  .classroom-app .personalized-panel { --voice-size: 92px; }
}
@media(max-width:760px) {
  .classroom-app .behavior-list.quick-eight { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: minmax(92px,auto); gap: 8px; }
  .classroom-app .quick-choice { gap: 8px; padding: 10px; }
  .classroom-app .quick-choice>img { display: none; }
  .classroom-app .quick-choice strong { font-size: 18px; }
  .classroom-app .quick-choice small { font-size: 11px; line-height: 1.65; white-space: normal; overflow: visible; }
  .classroom-app .quick-points { font-size: 12px; }
  .classroom-app .personalized-panel { padding: 14px 3px 10px; margin-top: 18px; }
  .classroom-app .voice-intro strong { font-size: 14px; }
  .classroom-app .personalized-panel { --voice-size: 96px; }
  .classroom-app .voice-hold { font-size: 15px; }
  .classroom-app .voice-live,.classroom-app .voice-review { padding: 12px; }
  .classroom-app .voice-live p { font-size: 17px; }
  .classroom-app .voice-review label small { display: block; margin-left: 0; margin-top: 3px; }
  .classroom-app .voice-review-actions { gap: 8px; }
  .classroom-app .voice-review-actions .primary-button { padding: 8px 14px; }
  .classroom-app .behavior-dialog[open] { overflow-y: auto; }
  .classroom-app .behavior-dialog>.behavior-list.quick-eight { flex-shrink: 0; }
  .classroom-app .behavior-navigation { display: block; margin-bottom: 10px; }
  .classroom-app .behavior-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; padding-bottom: 8px; }
  .classroom-app .behavior-tab { min-width: 0; min-height: 42px; padding: 7px 2px; font-size: 13px; text-align: center; }
  .classroom-app .behavior-filter-bar { display: flex; justify-content: flex-end; padding-right: 5px; }
  .classroom-app .behavior-summary { gap: 10px; line-height: 1.6; margin: 10px 0 14px; font-size: 11px; flex-wrap: wrap; }
  .classroom-app .voice-status { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  .classroom-app .voice-wave,.classroom-app .quick-choice { animation: none !important; transition: none !important; }
}
