/* Student workspace: one classroom, two main destinations, private records. */
.student-seat-guidance{margin:10px 14px 0;padding:8px 10px;border-radius:6px;background:var(--surface);color:var(--muted);font-size:12px;line-height:1.65}
.student-seat-guidance summary{cursor:pointer;color:var(--primary);font-weight:600}
.student-seat-guidance p{margin:4px 0 8px}
.student-bag-sides,.student-register-next{display:none}
.student-phone-next{margin-bottom:12px}
.student-saved-phones>div{flex-wrap:wrap}
.student-phone-claim-actions{display:flex;flex-wrap:wrap;gap:4px;margin-left:auto}
@media(max-width:580px){.student-phone-claim-actions{width:100%;margin-left:0}.student-phone-claim-actions>button{flex:1}}
.student-quick-picker,.student-map-toggle{display:none}
@media(max-width:760px){
  .student-quick-picker{display:block;padding:8px 14px 10px}
  .student-quick-help{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:10px}
  .student-row-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
  .student-row-picker>button{min-width:0;min-height:44px;padding:6px 0;font-size:13px;background:var(--bg)}
  .student-row-picker>button[aria-pressed=true]{border-color:var(--primary);color:var(--primary);background:var(--primary-soft);font-weight:650;box-shadow:inset 0 0 0 1px var(--primary)}
  .student-quick-row{font-size:12px;font-weight:600;margin:14px 0 8px}
  .student-quick-seats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
  .student-workspace .student-seat.student-quick-seat{height:auto;min-height:58px;min-width:0;padding:7px 2px}
  .student-seat.student-quick-seat .seat-id{font-size:14px;font-weight:600}
  .student-seat.student-quick-seat .seat-name{font-size:11px}
  .student-seat-panel .student-map-toggle{display:flex;justify-content:center;width:calc(100% - 28px);min-height:44px;margin:0 14px 12px;font-size:12px;color:var(--primary);border:1px solid var(--line)}
  .student-full-map{display:none}
  .show-full-map .student-full-map{display:block}
  .student-workspace .student-inpage-nav>button,.student-seat-panel .selection-box button{min-height:44px}
}
@media(max-width:350px){.student-row-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
.student-workspace .student-page{max-width:1540px}.student-workspace .sidebar .nav{gap:7px}.student-workspace .sidebar .nav button{min-height:46px}.student-workspace .student-top-identity{display:flex;align-items:baseline;gap:10px;font-size:14px;font-weight:600}.student-top-identity small{font-size:12px;font-weight:400;color:var(--muted)}.student-mobile-nav{display:none}.student-workspace .page-heading{margin-bottom:18px}.student-workspace .page-heading h1{font-size:26px}.student-workspace .page-heading p{font-size:13px}
.student-course-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid var(--line);border-radius:10px 10px 0 0;background:var(--bg)}.student-course-heading h2{font-size:21px;line-height:1.45;margin:4px 0}.student-course-heading p{color:var(--muted);font-size:12px}.student-course-phase{display:inline-flex;align-items:center;gap:6px;color:var(--primary);font-size:12px;font-weight:600}.student-course-phase:before{content:'';width:6px;height:6px;background:currentColor;border-radius:50%}.student-course-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.student-own-place{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,.8fr);border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;background:var(--bg);margin-bottom:18px}.student-own-place>div{display:flex;align-items:center;gap:12px;padding:15px 20px;min-width:0}.student-own-place>div+div{border-left:1px solid var(--line)}.student-own-place>div>span:first-child{font-size:12px;white-space:nowrap;color:var(--muted)}.student-own-place strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.student-own-place>p{grid-column:1/-1;display:flex;align-items:flex-start;gap:7px;padding:9px 20px;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--muted);background:var(--surface);border-radius:0 0 10px 10px}.student-own-place>p.complete{color:var(--primary);background:var(--primary-soft)}.student-own-place .icon{width:17px;height:17px;flex-shrink:0;margin-top:1px}
.student-class-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.85fr);gap:16px;align-items:start}.student-class-grid .panel-head h2{display:flex;gap:8px;align-items:center;font-size:15px}.student-class-grid .panel-head .icon{width:18px;height:18px}.student-seat-panel{overflow:hidden}.student-seat-panel .room-scroll{padding:4px 14px 16px}.student-seat-panel .room{min-width:650px}.student-seat-panel .seat{min-height:57px}.student-seat-panel .seat-row{margin:8px 0}.student-seat-panel .seat-name{font-size:12px}.student-seat-panel .room-edge .podium{font-size:11px;letter-spacing:1px}.student-seat-panel .selection-box{margin:0 14px 15px;padding:15px}.student-map-legend{display:flex;gap:12px;flex-wrap:wrap;padding:12px 16px 7px;color:var(--muted);font-size:11px}.student-map-legend>span:first-child{margin-right:auto}.student-map-legend i{display:inline-block;width:9px;height:9px;border:1px solid var(--line);border-radius:2px;margin-right:4px;background:var(--surface)}.student-map-legend i.taken{background:var(--surface-2);border-color:oklch(.73 .02 145)}.student-map-legend i.mine{background:var(--primary-soft);border-color:var(--primary)}.student-map-help{padding:0 16px 16px;color:var(--muted);font-size:11px;line-height:1.7}
.student-phone-content{padding:16px}.student-phone-gate{padding:10px 12px;border-radius:6px;background:var(--surface);color:var(--muted);font-size:12px;line-height:1.7;margin-bottom:14px}.student-bag-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.student-bag-group>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:7px}.student-bag-group h3{font-size:13px}.student-bag-group>div:first-child>span{color:var(--muted);font-size:11px}.student-bag-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.student-workspace .student-bag{position:relative;min-width:0;min-height:35px;padding:5px;border-radius:5px;color:var(--ink);background:var(--surface);font-size:12px;font-variant-numeric:tabular-nums}.student-workspace .student-bag.claimed{border-color:oklch(.8 .035 145);background:var(--primary-soft)}.student-workspace .student-bag.mine{border-color:var(--primary);color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary);font-weight:650}.student-bag.mine>span{position:absolute;top:1px;right:2px;font-size:9px;line-height:1}.student-workspace .student-bag.selected{color:var(--bg);border-color:var(--primary);background:var(--primary)}.student-workspace .student-bag:disabled{opacity:1;color:var(--muted);cursor:default}.student-workspace .student-bag.mine:disabled{color:var(--primary)}.student-phone-form{padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}.student-phone-form .claim{padding:10px 12px}.student-phone-form .claim strong{font-size:13px}.student-phone-form summary{font-size:12px;color:var(--primary);cursor:pointer}.student-phone-form .notice{font-size:12px}.student-phone-form .help-text{font-size:11px}.student-inpage-nav{display:none}
.student-loading{padding:36px 20px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--muted);font-size:13px;text-align:center}.student-no-class{display:flex;flex-direction:column;align-items:center;padding:52px 24px;border:1px solid var(--line);border-radius:10px;background:var(--bg);text-align:center}.student-no-class>.icon{width:30px;height:30px;color:var(--muted);margin-bottom:14px}.student-no-class h2{font-size:20px}.student-no-class p{max-width:42ch;font-size:13px;line-height:1.8;margin:9px 0 20px;color:var(--muted)}.student-upcoming{margin-top:18px;overflow:hidden}.student-upcoming-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 20px;border-bottom:1px solid var(--line)}.student-upcoming-row:last-child{border-bottom:0}.student-upcoming-row>div{display:grid;gap:4px}.student-upcoming-row strong{font-size:14px}.student-upcoming-row span,.student-upcoming-row small{color:var(--muted);font-size:12px}.student-new-course{display:flex;align-items:center;margin-bottom:14px;background:var(--primary-soft)}.student-new-course>span{flex:1}.student-new-course>button{flex-shrink:0}
.student-record-filter{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.student-record-filter select{min-width:170px;max-width:300px}.student-record-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.student-record-overview>div{display:grid;gap:8px;padding:18px 20px}.student-record-overview>div+div{border-left:1px solid var(--line)}.student-record-overview span{font-size:12px;color:var(--muted)}.student-record-overview strong{font-size:27px;font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums}.student-record-overview small{font-size:12px;font-weight:400;color:var(--muted)}.student-row-history{overflow:hidden;margin-bottom:16px}.student-row-counts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:16px 0}.student-row-counts>div{display:grid;gap:6px;justify-items:center;padding:0 12px}.student-row-counts>div+div{border-left:1px solid var(--line)}.student-row-counts span{color:var(--muted);font-size:12px}.student-row-counts strong{font-size:19px;font-weight:600}.student-row-counts small{color:var(--muted);font-size:11px;font-weight:400}.student-weight-explanation{padding:16px 18px;border:1px solid var(--line);border-radius:9px;background:var(--surface);margin-bottom:16px}.student-weight-explanation h2{font-size:14px;margin-bottom:10px}.student-weight-explanation>div{display:flex;gap:22px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.student-weight-explanation b{color:var(--ink);font-size:14px;margin-left:6px}.student-weight-explanation p{margin-top:9px;color:var(--muted);font-size:12px;line-height:1.8;max-width:76ch}.student-count-line{display:flex;flex-wrap:wrap;gap:8px 20px;margin:18px 0;font-size:12px;color:var(--muted)}.student-count-line span{display:flex;gap:7px}.student-count-line b{color:var(--ink);font-weight:550}.student-record-list{overflow:hidden}.student-session-record{padding:18px 20px;border-bottom:1px solid var(--line)}.student-session-record:last-child{border-bottom:0}.student-session-record-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.student-session-record-head h3{font-size:14px}.student-session-record-head p{margin-top:4px;color:var(--muted);font-size:12px}.student-session-facts{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:12px;color:var(--muted);margin-top:12px}.student-session-facts b{color:var(--ink);font-weight:500;margin-left:5px}.student-record-clear{margin-top:12px;color:var(--muted);font-size:12px}.student-session-cases{margin-top:13px;border-top:1px solid var(--line)}.student-case{padding:12px 0}.student-case+.student-case{border-top:1px solid var(--line)}.student-case-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.student-case-top strong{font-size:13px}.student-case-top time{color:var(--muted);font-size:11px}.student-case p{margin-top:6px;font-size:12px;color:var(--ink);line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}.student-case p.student-review-note{color:var(--muted)}.student-case-foot{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:6px;font-size:11px;color:var(--muted)}.student-case-foot .small{margin-left:auto;min-height:30px}.student-session-actions{margin-top:12px}.student-request-status{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 12px;background:var(--surface);border-radius:6px;font-size:12px;margin-top:12px}.student-request-status p{flex-basis:100%;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}.student-history-cases{margin-top:16px}.student-history-cases>.student-case{margin:0 20px}.student-empty-records{padding:30px 20px;text-align:center;font-size:13px;color:var(--muted);line-height:1.8}.student-record-notices{padding:14px 18px;margin-bottom:16px;border:1px solid var(--line);border-radius:8px;background:var(--primary-soft)}.student-record-notices>div{display:flex;align-items:center;justify-content:space-between}.student-record-notices h2{font-size:14px}.student-record-notices>p{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:1.7}.student-record-notices time{white-space:nowrap;color:var(--muted)}
@media(max-width:1360px){.student-class-grid{grid-template-columns:minmax(0,1fr)}.student-bag-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.student-workspace .student-bag{min-height:40px}.student-phone-form{max-width:680px}.student-seat-panel .room{max-width:1100px}.student-own-place>div{padding:14px 16px;gap:8px}}
@media(max-width:860px){.student-mobile-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:5px 20px 0;gap:18px;border-bottom:1px solid var(--line);background:var(--bg)}.student-mobile-nav>button{gap:7px;min-height:47px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:14px}.student-mobile-nav>button.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:650}.student-course-heading{padding:16px}.student-own-place>div{display:grid;gap:5px;align-content:start}.student-own-place strong{font-size:14px}.student-own-place>p{padding:10px 16px}.student-record-overview>div{padding:16px}.student-record-overview strong{font-size:24px}.student-inpage-nav{display:flex;gap:8px;margin-bottom:12px}.student-inpage-nav>button{min-height:38px;flex:1;font-size:12px;background:var(--bg)}.student-seat-panel,.student-phone-panel{scroll-margin-top:14px}}
@media(max-width:580px){.student-workspace .student-page{padding-top:18px}.student-workspace .page-heading h1{font-size:23px}.student-workspace .page-heading p{font-size:12px}.student-top-identity small{font-size:11px}.student-workspace .student-topbar{min-height:57px}.student-mobile-nav{padding:0 14px;gap:12px}.student-mobile-nav>button{min-height:45px;font-size:13px}.student-course-heading{align-items:flex-start;gap:10px}.student-course-heading h2{font-size:19px}.student-course-heading p{font-size:11px;line-height:1.7}.student-course-actions{display:grid;gap:4px}.student-course-actions button{min-height:36px;font-size:11px;padding:5px 8px}.student-own-place{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr);margin-bottom:12px}.student-own-place>div{padding:12px 10px}.student-own-place>div>span:first-child{font-size:11px}.student-own-place strong{font-size:13px}.student-own-place>p{padding:9px 12px;font-size:11px}.student-own-place .pill{font-size:10px;padding:2px 5px;justify-self:start}.student-class-grid{gap:14px}.student-seat-panel .room{min-width:650px}.student-seat-panel .seat{min-height:58px}.student-seat-panel .panel-head,.student-phone-panel .panel-head{padding:14px}.student-map-legend{gap:8px;padding:11px 14px 6px;font-size:10px}.student-map-legend>span:first-child{flex-basis:100%}.student-map-help{font-size:11px;padding:0 14px 13px}.student-bag-groups{grid-template-columns:minmax(0,1fr);gap:18px}.student-phone-content{padding:14px}.student-workspace .student-bag{min-height:44px;font-size:13px}.student-bag-grid{gap:6px}.student-phone-form .help-text{font-size:12px}.student-phone-form .small{min-height:44px}.student-no-class{padding:38px 20px}.student-no-class h2{font-size:18px}.student-no-class p{font-size:12px}.student-upcoming-row{align-items:flex-start;flex-direction:column;gap:7px;padding:14px 16px}.student-new-course{align-items:flex-start;flex-wrap:wrap}.student-new-course>span{min-width:180px}.student-new-course>button{margin-left:23px}.student-record-filter{width:100%}.student-record-filter select{flex:1;max-width:none}.student-record-overview{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}.student-record-overview>div{padding:15px}.student-record-overview>div:nth-child(3){border-left:0}.student-record-overview>div:nth-child(n+3){border-top:1px solid var(--line)}.student-record-overview strong{font-size:25px}.student-row-history .panel-head{flex-wrap:wrap;gap:4px}.student-row-counts{grid-template-columns:repeat(3,minmax(0,1fr));padding:0}.student-row-counts>div{padding:13px 8px;gap:4px}.student-row-counts>div:nth-child(4){border-left:0}.student-row-counts>div:nth-child(n+4){border-top:1px solid var(--line)}.student-row-counts span{font-size:11px}.student-row-counts strong{font-size:18px}.student-weight-explanation{padding:14px}.student-weight-explanation>div{gap:8px 14px}.student-count-line{gap:9px 15px;font-size:11px}.student-session-record{padding:16px 14px}.student-session-record-head{align-items:flex-start}.student-session-record-head h3{font-size:14px}.student-session-record-head p{font-size:11px;line-height:1.7}.student-session-facts{gap:7px 12px;font-size:11px}.student-case-foot .small{min-height:44px}.student-record-notices{padding:12px 14px}.student-record-notices>p{flex-direction:column;gap:2px;margin-top:6px}.student-case-top{gap:6px 8px}.student-case-top time{font-size:11px}.student-weight-explanation p{font-size:11px}.student-session-actions button{min-height:44px}}
.student-course-heading>div:first-child{min-width:0}.student-course-heading h2{overflow-wrap:anywhere}
.student-record-filter{white-space:nowrap;flex-shrink:0}
.student-course-title-line{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.student-course-title-line .student-course-phase{white-space:nowrap}
.student-room-axis>i{white-space:nowrap;justify-self:center}
.student-room{min-width:620px}.student-podium{display:flex;justify-content:center;align-items:center;width:42%;height:25px;margin:0 auto 7px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted);font-size:11px}.student-seat-row{display:grid;grid-template-columns:23px minmax(0,1fr);gap:6px;align-items:center}.student-seat-row+.student-seat-row{margin-top:6px}.student-row-number{color:var(--muted);font-size:11px;white-space:nowrap;text-align:center}.student-seat-cells,.student-room-axis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) 14px repeat(4,minmax(0,1fr)) 14px repeat(4,minmax(0,1fr));gap:6px}.student-room-axis{margin:0 0 7px 29px;align-items:center;text-align:center;color:var(--muted);font-size:11px;line-height:1.5}.student-room-axis>span:nth-child(1){grid-column:1/3}.student-room-axis>span:nth-child(3){grid-column:4/8}.student-room-axis>span:nth-child(5){grid-column:9/13}.student-room-axis>i{font-size:10px;font-style:normal}.student-seat-aisle{align-self:stretch;position:relative}.student-seat-aisle:after{content:'';position:absolute;left:50%;top:3px;bottom:3px;border-left:1px dashed var(--line)}.student-workspace .student-seat{min-height:48px;height:48px;gap:2px;padding:5px 3px;justify-content:center;line-height:1.3}.student-seat .seat-id{font-size:10px;line-height:1.25;white-space:nowrap;flex-shrink:0}.student-seat .seat-name{font-size:12px;line-height:1.4}.student-saved-phones>div{display:flex;align-items:center;gap:7px;font-size:12px}.student-saved-phones strong{font-size:13px;font-weight:600}.student-saved-phones>div>span{color:var(--primary);font-size:11px}.student-saved-phones>div>button{margin-left:auto}.student-saved-phones p{font-size:11px;line-height:1.7;color:var(--muted);margin-top:3px}.student-phone-next{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
@media(min-width:1361px){.student-workspace .student-topbar{min-height:58px}.student-workspace .student-page{padding-top:20px;padding-bottom:24px}.student-workspace .page-heading{margin-bottom:12px}.student-workspace .page-heading h1{font-size:24px;line-height:1.35}.student-workspace .page-heading p:empty{display:none}.student-course-heading{padding:12px 16px}.student-course-heading h2{font-size:20px;line-height:1.35;margin:0 0 3px}.student-own-place{margin-bottom:14px}.student-own-place>div{padding:10px 16px}.student-own-place>p{padding:7px 16px}.student-class-grid{grid-template-columns:minmax(0,1.55fr) minmax(310px,.85fr);gap:14px}.student-class-grid .panel-head{padding:11px 14px;min-height:44px}.student-map-legend{padding:8px 14px 7px;font-size:11px}.student-seat-panel .room-scroll{padding:0 12px 12px}.student-workspace .student-seat{min-height:46px;height:46px}.student-map-help{display:none}.student-phone-content{padding:12px}.student-bag-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.student-bag-group>div:first-child{display:grid;justify-content:start;gap:1px;margin-bottom:6px}.student-bag-group h3{font-size:12px}.student-bag-group>div:first-child>span{font-size:10px}.student-bag-grid{gap:4px}.student-workspace .student-bag{min-height:30px;padding:4px 1px;font-size:12px}.student-phone-form{padding-top:10px;margin-top:10px}.student-saved-phones .small,.student-phone-next .small{min-height:30px;font-size:11px}.student-own-place strong{font-size:14px}}
@media(max-width:760px){.student-bag-groups{grid-template-columns:minmax(0,1fr)}.student-workspace .student-bag{min-height:44px}}
@media(max-width:580px){.student-workspace .student-seat{min-height:57px;height:57px}.student-seat .seat-name{font-size:12px}.student-seat .seat-id{font-size:11px}.student-saved-phones .small,.student-phone-next .small{min-height:44px}.student-saved-phones p{font-size:12px}.student-room-axis{font-size:11px}}
@media(prefers-reduced-motion:reduce){.student-workspace *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.student-unread-dot{display:inline-block;flex-shrink:0;width:7px;height:7px;margin-left:2px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px var(--bg)}.student-unread-dot[hidden]{display:none!important}.student-seat-request-progress{margin:0 14px 14px;padding:11px 13px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.student-seat-request-progress>div{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:5px}.student-seat-request-progress strong{font-size:12px;color:var(--ink)}.student-seat-request-progress>div>span{font-size:11px;color:var(--muted);white-space:nowrap}.student-seat-request-progress p{font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.student-seat-request-progress small{font-size:11px;color:var(--muted)}.student-seat-request-form textarea{min-height:72px;font-size:13px}.student-seat-request-form .form-error:empty{display:none}
.student-record-seat-requests{display:grid;gap:8px;margin-top:12px}.student-record-seat-requests>div{padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.student-record-seat-requests strong{font-size:12px;margin-right:8px}.student-record-seat-requests p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.student-record-seat-requests small{font-size:11px;color:var(--muted)}

/* 未开放课堂：可见但不可点 */
.student-upcoming-state { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.student-upcoming-state button[disabled] { cursor: not-allowed; opacity: .62; }
.student-upcoming-state small { white-space: nowrap; }
@media(max-width: 580px) { .student-upcoming-state { width: 100%; justify-content: space-between; } }

.student-class-reminder{display:flex;align-items:flex-start;gap:9px;margin:0 0 14px;padding:10px 12px;border:1px solid oklch(.86 .07 75);border-radius:8px;background:var(--amber-soft);color:var(--ink);font-size:12px;line-height:1.75}
.student-class-reminder .icon{width:17px;height:17px;flex-shrink:0;margin-top:1px;color:var(--amber)}
.student-class-reminder strong{display:block;margin-bottom:1px;font-size:12px}

.student-after-leave{border:2px solid oklch(.80 .10 75);box-shadow:0 8px 24px oklch(.35 .07 75/.08);margin-bottom:18px;overflow:hidden}
.student-after-leave-head{background:var(--amber-soft);border-bottom-color:oklch(.84 .07 75);padding:13px 18px}
.student-after-leave-title{display:flex;align-items:center;gap:9px}
.student-after-leave-title>.icon{width:21px;height:21px;flex-shrink:0;color:var(--amber)}
.student-after-leave-title strong{display:block;font-size:15px;color:var(--amber)}
.student-after-leave-title small{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.student-after-leave .student-upcoming-row{background:var(--bg);padding:14px 18px}
.student-after-leave .student-upcoming-row>div{flex:1}
.student-after-leave .student-upcoming-row strong{color:var(--ink)}
.student-after-leave .student-session-actions{margin-top:0;flex-shrink:0}
.student-after-leave .student-session-actions button{min-height:40px;white-space:nowrap}
@media(max-width:580px){.student-after-leave-head{align-items:flex-start}.student-after-leave .student-upcoming-row{padding:13px 14px}.student-after-leave .student-upcoming-row>div{width:100%}.student-after-leave .student-session-actions{width:100%}.student-after-leave .student-session-actions button{width:100%}}

.student-absence-alert{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:14px 18px;border:2px solid oklch(.78 .12 25);border-radius:10px;background:var(--red-soft);color:var(--ink)}
.student-absence-count{font-size:34px;line-height:1;font-weight:750;color:var(--red);font-variant-numeric:tabular-nums;flex-shrink:0}
.student-absence-alert strong{display:block;font-size:15px;color:var(--red)}
.student-absence-alert p{margin-top:4px;font-size:12px;line-height:1.65;color:var(--muted)}
@media(max-width:580px){.student-absence-alert{align-items:flex-start;padding:13px 15px}.student-absence-count{font-size:29px}.student-absence-alert strong{font-size:14px}}

@media (max-width: 860px) {
  .student-workspace .student-top-identity { min-width: 0; }
  .student-top-identity > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .student-mobile-nav {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}

@media (max-width: 760px) {
  .student-seat-guidance { padding-block: 0; }
  .student-seat-guidance summary { padding-block: 12px; min-height: 44px; }
  .student-seat-guidance p { padding-bottom: 12px; }
  .student-register-next { display: flex; min-height: 44px; margin: 0 14px 14px; width: calc(100% - 28px); }
  .student-bag-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .student-bag-sides > button { min-height: 44px; min-width: 0; }
  .student-bag-sides > button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); font-weight: 650; }
  .student-bag-groups[data-side="left"] > [data-side="right"],
  .student-bag-groups[data-side="right"] > [data-side="left"],
  .student-phone-gated .student-bag-sides,
  .student-phone-gated .student-bag-groups { display: none; }
  .student-phone-gated .student-phone-gate { margin-bottom: 0; }
  .student-phone-form summary { min-height: 44px; padding-block: 12px; }
}

@media (max-width: 580px) {
  .student-workspace .student-top-identity { display: grid; gap: 0; }
  .student-workspace .connection.offline { font-size: 11px; }
  .student-course-heading > div:first-child,
  .student-session-record-head > div { min-width: 0; overflow-wrap: anywhere; }
  .student-workspace .student-course-actions button { min-height: 44px; font-size: 12px; }
  .student-own-place .pill { white-space: normal; }
  .student-record-filter select { min-width: 0; }
  .student-workspace .student-record-filter select,
  .student-workspace .student-phone-form select,
  .student-workspace .student-seat-request-form textarea { min-height: 44px; font-size: 16px; }
  .student-workspace .student-after-leave-head { flex-wrap: wrap; justify-content: flex-start; }
  .student-after-leave-title { flex-basis: 100%; }
  .student-session-record-head > .pill { flex-shrink: 0; }
  .student-seat-panel .rules-check { min-height: 44px; align-items: center; }
  .student-seat-panel .rules-check input { width: 19px; height: 19px; margin-top: 0; }
}

@media (max-width: 365px) {
  .student-bag-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
