:root { --paper: #fcfaf3; --surface: #fffefb; --ink: #263f55; --muted: #576a78; --line: #dce3dc; --yellow: #ffe7a0; --peach: #ffd7c3; --green: #c9eadb; --blue: #d4e9f5; --lavender: #e4dcfa; --mint: #bcebd7; --mint-deep: #276d59; --danger: #a3423c; --shadow: 0 7px 22px #263f5508; --spring: cubic-bezier(.22, 1.3, .48, 1); }
body { font-size: 16px; line-height: 1.65; }
button, input, select, textarea { font-size: 16px; }
button { position: relative; isolation: isolate; }
h1, h2 { font-weight: 500; }
h3, h4 { font-weight: 700; }
p { color: var(--muted); }
small { font-size: 13px; }
label { font-size: 15px; line-height: 1.5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: rgb(54, 137, 110) solid 3px; outline-offset: 4px; }
.app-shell::before { opacity: 0.035; }
.primary, .secondary, .ghost, .danger { position: relative; isolation: isolate; overflow: hidden; min-height: 48px; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 650; line-height: 1.4; transition: background .18s, border-color .18s, box-shadow .18s, transform .2s var(--spring); }
.primary { background: var(--ink); border-color: var(--ink); box-shadow: rgba(23, 45, 65, 0.145) 0px 4px 0px; }
.primary:hover:not(:disabled) { background: rgb(52, 88, 114); border-color: rgb(52, 88, 114); box-shadow: rgba(23, 45, 65, 0.145) 0px 5px 0px; }
.secondary { background: rgb(255, 254, 251); border-color: rgb(207, 217, 212); box-shadow: rgba(38, 63, 85, 0.024) 0px 3px 0px; }
.secondary:hover:not(:disabled) { background: rgb(237, 249, 242); border-color: rgb(167, 207, 189); }
.ghost { color: rgb(82, 102, 116); }
.ghost:hover:not(:disabled) { background: rgb(233, 241, 233); }
.danger { color: rgb(151, 62, 55); background: rgb(255, 241, 233); border-color: rgb(237, 198, 181); }
.small { min-height: 44px; padding: 10px 13px; font-size: 14px; border-radius: 12px; }
button:not(:disabled):active { transform: scale(0.97); }
button:disabled { opacity: 0.58; }
.input, body input:not([type="color"]):not([type="range"]):not([type="checkbox"]):not([type="radio"]):not(.sudoku-cell), body select, body textarea { min-height: 50px; padding: 12px 15px; border-radius: 13px; font-size: 16px; color: var(--ink); border-color: rgb(203, 215, 208); background: rgb(255, 254, 251); }
input::placeholder, textarea::placeholder { color: rgb(113, 130, 140); }
body input:focus, body select:focus, body textarea:focus { border-color: rgb(90, 157, 130); box-shadow: rgba(188, 235, 215, 0.376) 0px 0px 0px 4px; }
input[type="range"] { min-height: 36px; accent-color: var(--mint-deep); }
.pill, .badge { color: rgb(73, 96, 113); font-size: 13px; line-height: 1.4; border-color: rgb(208, 223, 213); padding: 7px 11px; }
.badge { background: rgb(236, 243, 231); font-size: 12px; }
.live-dot { width: 8px; height: 8px; background: rgb(52, 135, 103); box-shadow: rgba(188, 235, 215, 0.36) 0px 0px 0px 4px; }
.eyebrow, .section-label { color: rgb(97, 119, 104); font-size: 12px; font-weight: 750; letter-spacing: 0.08em; }
.panel, .tool-panel { border-radius: 20px; padding: 24px; border-color: var(--line); box-shadow: var(--shadow); }
.panel-title h2 { font-size: 30px; }
.panel-title h3 { font-size: 18px; }
.panel-title > span, .panel-title > a { font-size: 14px; color: rgb(86, 110, 99); }
.page-head h1 { font-size: 42px; }
.page-head p { font-size: 16px; line-height: 1.6; }
.page-head .eyebrow { font-size: 12px; }
.notice { padding: 16px 18px; border-radius: 15px; background: rgb(255, 246, 216); border-color: rgb(235, 219, 171); color: rgb(110, 91, 48); font-size: 14px; }
.empty { color: rgb(100, 119, 106); font-size: 15px; border-color: rgb(198, 215, 200); background: rgb(245, 248, 237); border-radius: 15px; }
.result { padding: 15px 18px; border-color: rgb(188, 217, 198); background: rgb(237, 248, 239); color: rgb(54, 101, 68); border-radius: 13px; font-size: 16px; }
.result.error { color: rgb(144, 62, 55); background: rgb(255, 240, 232); border-color: rgb(233, 193, 173); }
.entry-shell .topbar { height: 90px; max-width: none; padding-inline: max(28px, -630px + 50vw); background: rgb(252, 250, 243); }
.entry-shell .brand > span, .teacher-shell .brand > span { font-size: 29px; }
.entry-shell .brand .brand-name, .teacher-shell .brand .brand-name { font-size: 12px; color: rgb(96, 116, 129); letter-spacing: 0px; }
.entry-shell .landing { max-width: 1220px; grid-template-columns: 1.06fr 0.92fr; gap: 65px; padding: 52px 36px 64px; }
.entry-shell .hero-copy h1 { font-size: clamp(56px, 5.5vw, 76px); line-height: 1.05; }
.entry-shell .hero-copy > p { font-size: 18px; line-height: 1.85; max-width: 490px; }
.entry-shell .hero-art { margin: 28px 0px 0px; min-height: 250px; }
.entry-shell .hero-art::before { background: rgb(226, 244, 222); width: 295px; height: 245px; }
.entry-shell .join-card { border: 1px solid rgb(217, 226, 215); border-radius: 28px; padding: 32px; box-shadow: rgb(237, 240, 229) 0px 12px 0px, rgba(41, 72, 102, 0.04) 0px 15px 35px; }
.entry-shell .join-tabs { padding: 6px; gap: 6px; border-radius: 18px; background: rgb(238, 240, 230); margin-bottom: 28px; }
.entry-shell .join-tabs button { min-height: 70px; border-radius: 13px; padding: 12px 7px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.entry-shell .join-tabs button small { display: block; font-weight: 450; font-size: 12px; }
.entry-shell .join-tabs button.active { background: var(--mint); box-shadow: rgba(36, 95, 77, 0.07) 0px 3px 0px; }
.entry-shell .join-form { gap: 20px; }
.entry-shell .join-form h2 { font-size: 36px; }
.entry-shell .join-form .primary { min-height: 58px; margin-top: 4px; font-size: 17px; border-radius: 15px; }
.entry-shell .join-form > p, .entry-shell .join-card footer { font-size: 14px; color: rgb(96, 117, 130); line-height: 1.7; }
.entry-shell .join-form .eyebrow { font-size: 12px; color: rgb(71, 118, 91); }
.entry-shell .notice { margin-top: 24px; }
.entry-device-note { display: flex; gap: 12px; align-items: center; padding: 15px 18px; background: rgb(233, 245, 232); border-radius: 15px; margin: 20px 0px; color: rgb(65, 99, 73); font-size: 15px; }
.student-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.student-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; padding: 15px max(24px, -580px + 50vw); background: rgba(255, 254, 251, 0.8); border-bottom: 1px solid rgb(221, 230, 218); backdrop-filter: blur(12px); }
.student-header .brand img { width: 69px; height: 37px; }
.student-header .brand > span { font-size: 26px; }
.student-header .brand .brand-name { display: none; }
.student-header .toolbar { flex-shrink: 0; gap: 8px; }
.student-header .ghost, .student-header .secondary { min-height: 48px; }
.student-identity { display: flex; align-items: center; gap: 10px; min-width: 0px; }
.student-identity .student-avatar { width: 44px; height: 44px; background: var(--yellow); font-size: 27px; border: 1px solid rgb(235, 213, 142); }
.student-identity b { display: block; font-size: 17px; color: var(--ink); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.student-identity small { display: block; font-size: 13px; color: rgb(91, 112, 96); line-height: 1.5; }
.student-session-chip { display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: rgb(237, 245, 233); border: 1px solid rgb(213, 228, 209); border-radius: 12px; color: rgb(66, 99, 77); font-size: 13px; }
.student-workspace { display: block; min-height: calc(-190px + 100vh); }
.student-main { width: 100%; max-width: 1160px; margin: auto; padding: 26px 28px 34px; min-width: 0px; }
.student-main > #content { min-width: 0px; }
.student-main .page-head { margin: 18px 0px 22px; gap: 16px; }
.student-main .page-head .toolbar { max-width: none; }
.student-main .page-head h1 { font-size: 40px; }
.student-main .page-head p { font-size: 16px; }
.student-status-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border: 1px solid rgb(197, 222, 201); background: rgb(234, 245, 231); border-radius: 17px; color: rgb(62, 99, 76); margin-bottom: 24px; font-size: 15px; }
.student-status-banner b { color: rgb(54, 87, 68); font-size: 16px; }
.student-status-banner p { margin: 0px; color: rgb(77, 106, 83); font-size: 14px; }
.student-status-banner.lesson { background: rgb(238, 232, 255); border-color: rgb(212, 199, 245); color: rgb(84, 64, 113); }
.student-status-banner.lesson b, .student-status-banner.lesson p { color: rgb(84, 64, 113); }
.student-status-banner > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.6); border-radius: 11px; font-size: 23px; flex-shrink: 0; }
.student-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 27px 30px; border: 1px solid rgb(219, 223, 175); border-radius: 25px; background: rgb(244, 241, 204); margin-bottom: 24px; overflow: hidden; }
.student-hero h1 { font-size: clamp(40px, 5vw, 55px); line-height: 1.12; margin: 5px 0px 12px; }
.student-hero p { font-size: 17px; color: rgb(94, 102, 83); line-height: 1.7; margin: 0px; }
.student-hero .eyebrow { font-size: 12px; color: rgb(103, 112, 66); }
.student-hero > img { width: 148px; max-height: 170px; object-fit: contain; transform: rotate(4deg); }
.play-tabs { display: flex; gap: 9px; overflow-x: auto; padding: 3px 1px 11px; margin: 0px 0px 13px; scrollbar-width: none; }
.play-tabs::-webkit-scrollbar { display: none; }
.play-tabs button { position: relative; overflow: hidden; min-height: 48px; flex-shrink: 0; border-radius: 999px; padding: 12px 20px; background: rgb(255, 254, 251); border: 1px solid rgb(214, 223, 212); color: rgb(90, 109, 117); font-size: 15px; font-weight: 650; }
.play-tabs button.active { background: var(--ink); color: rgb(255, 254, 251); border-color: var(--ink); box-shadow: rgba(38, 63, 85, 0.1) 0px 3px 0px; }
.student-main .activity-grid { grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 18px; }
.student-main .activity-card { min-height: 213px; padding: 23px; border-radius: 24px; background: rgb(255, 254, 251); border: 1px solid rgb(216, 226, 214); box-shadow: rgb(232, 235, 223) 0px 5px 0px; overflow: hidden; isolation: isolate; transition: transform .22s var(--spring), background .18s, border-color .18s, box-shadow .22s; }
.student-main .activity-card h3 { font-size: 21px; line-height: 1.4; margin: 0px 0px 6px; }
.student-main .activity-card p { font-size: 15px; color: rgb(87, 110, 115); line-height: 1.6; margin-bottom: 15px; }
.student-main .activity-card .card-icon { width: 60px; height: 60px; border-radius: 19px; font-size: 34px; margin-bottom: 19px; box-shadow: rgba(38, 63, 85, 0.03) 0px -3px 0px inset; }
.student-main .activity-card .card-meta { font-size: 13px; color: rgb(79, 106, 101); font-weight: 550; }
.student-main .activity-card .card-meta > span:last-child { background: rgb(238, 245, 232); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: rgb(82, 124, 89); font-size: 19px; }
.student-main .activity-card:active:not(:disabled) { transform: scale(0.96); box-shadow: rgb(232, 235, 223) 0px 1px 0px; border-color: rgb(128, 188, 155); background: rgb(242, 255, 245); }
.student-main .activity-card > .badge { top: 19px; right: 18px; }
.student-main .activity-grid + .notice { margin-top: 24px; }
.student-activity-head { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin: 8px 0px 24px; }
.student-activity-head h1 { font-size: 40px; margin: 0px 0px 8px; }
.student-activity-head p { font-size: 16px; margin: 0px; }
.student-activity-head > button { flex-shrink: 0; }
.touch-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0px 17px; font-size: 14px; color: rgb(92, 115, 101); }
.student-bottom-nav { position: fixed; z-index: 40; left: 50%; bottom: 0px; transform: translateX(-50%); width: 100%; max-width: none; display: flex; justify-content: center; gap: 10px; padding: 10px 22px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 254, 251, 0.937); backdrop-filter: blur(18px); border-top: 1px solid rgb(220, 230, 219); box-shadow: rgba(38, 63, 85, 0.035) 0px -4px 24px; }
.student-nav-item { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 140px; max-width: 220px; min-height: 65px; flex: 1 1 0%; padding: 7px 16px; border-radius: 17px; font-size: 14px; font-weight: 650; color: rgb(102, 119, 126); transition: background .18s, transform .2s var(--spring); }
.student-nav-item > span:first-child { font-size: 24px; line-height: 1; }
.student-nav-item.active { background: rgb(218, 244, 229); color: rgb(38, 94, 71); }
.student-nav-item .badge { position: absolute; right: 12px; top: 3px; font-size: 11px; background: rgb(255, 229, 160); color: rgb(108, 86, 42); }
.student-main .toolbar { gap: 10px; }
.student-main .small { min-height: 48px; }
.student-main .tools-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
.student-main .chat-list { max-height: 52dvh; min-height: 260px; padding-right: 8px; gap: 16px; }
.student-main .chat-message { max-width: 88%; padding: 15px 18px; border-radius: 18px 18px 18px 5px; font-size: 17px; }
.student-main .chat-message.self { background: rgb(223, 243, 223); border-radius: 18px 18px 5px; }
.student-main .chat-message b { font-size: 13px; color: rgb(70, 101, 92); }
.student-main .chat-message small { font-size: 12px; color: rgb(96, 115, 105); }
.student-main .chat-compose { gap: 10px; margin-top: 18px; padding-top: 18px; }
.student-main .chat-compose input { min-height: 52px !important; font-size: 16px; }
.student-main .chat-compose .primary { min-height: 52px; }
.student-main .chat-compose select { max-width: 175px; min-height: 52px; }
.student-main .quiz-option { min-height: 68px; padding: 16px 20px; font-size: 18px; border-radius: 17px; gap: 15px; }
.student-main .quiz-option span:first-child { width: 38px; height: 38px; font-size: 25px; flex-shrink: 0; background: rgb(240, 243, 229); }
.student-main .quiz-option.selected, .student-main .quiz-option.correct { border-color: rgb(99, 168, 119); background: rgb(220, 241, 223); }
.student-main .quiz-option.incorrect { border-color: rgb(204, 140, 113); background: rgb(255, 233, 221); }
.student-main .quiz-question { font-size: 39px; }
.student-main .game-status { padding: 15px; font-size: 16px; gap: 12px; background: rgb(237, 244, 229); border-radius: 15px; flex-wrap: wrap; }
.gomoku-scroll { max-height: min(52dvh, 620px); overflow: auto; overscroll-behavior: contain; padding-bottom: 9px; scrollbar-color: rgb(169, 202, 180) rgb(237, 243, 232); }
.student-main .gomoku-scroll .gomoku-board { min-width: 744px; }
.student-main .gomoku-board { max-width: 690px; border-radius: 17px; padding: 18px; border-color: rgb(200, 174, 120); background-color: rgb(241, 220, 175); }
.student-main .bingo-grid { gap: 9px; max-width: 510px; }
.student-main .bingo-cell { font-size: 36px; border-radius: 14px; border-color: rgb(214, 224, 200); min-height: 50px; background: rgb(255, 252, 235); }
.student-main .bingo-cell.drawn { background: rgb(215, 239, 199); border-color: rgb(138, 178, 122); color: rgb(53, 101, 59); }
.student-main .math-problem { font-size: clamp(45px, 7vw, 65px); padding: 42px 18px; border-radius: 20px; background: rgb(255, 241, 192); border-color: rgb(234, 214, 154); }
.student-main .sudoku-grid { margin-inline: auto; max-width: 486px; width: 100%; border-radius: 4px; overflow: hidden; }
.student-main .sudoku-cell { font-size: 25px; line-height: 1; background: rgb(255, 254, 251); }
.student-main .sudoku-cell.given { background: rgb(224, 239, 242); color: rgb(41, 73, 93); }
.student-main .sudoku-cell:focus { position: relative; z-index: 1; background: rgb(255, 241, 185); outline: rgb(93, 142, 111) solid 3px; outline-offset: -3px; box-shadow: none; }
.student-main .drawing-tools { gap: 14px; background: rgb(238, 244, 231); padding: 13px; border-radius: 17px; margin: 0px 0px 18px; }
.student-main .drawing-tools .toolbar { flex-wrap: wrap; gap: 9px; margin: 0px; }
.student-main .drawing-tools button, .student-main .drawing-tools .toolbar button { width: auto; min-width: 48px; min-height: 48px; height: auto; padding: 11px 13px; font-size: 15px; border-radius: 12px; }
.student-main .drawing-tools button.active { background: rgb(197, 236, 214); border-color: rgb(115, 174, 136); }
.student-main .drawing-tools label { font-size: 14px; gap: 8px; padding: 5px; }
.student-main .drawing-tools input[type="color"] { width: 48px; height: 48px; border-radius: 13px; padding: 4px; border: 1px solid rgb(168, 193, 164); }
.student-main .drawing-tools input[type="range"] { width: 106px; }
.student-main .drawing-layout { grid-template-columns: minmax(0px, 1fr) 215px; gap: 18px; }
.student-main .drawing-canvas { border: 1px solid rgb(197, 217, 198); border-radius: 17px; box-shadow: rgba(38, 63, 85, 0.027) 0px 4px 14px; }
.student-main .layers { border-radius: 17px; padding: 15px; background: rgb(248, 246, 234); border: 1px solid rgb(226, 223, 202); }
.student-main .layers .panel-title { margin-bottom: 12px; }
.student-main .layers .panel-title b { font-size: 17px; }
.student-main .layers p { font-size: 14px; }
.student-main .layer-row { gap: 5px; margin-bottom: 8px; }
.student-main .layer-button { min-height: 48px; font-size: 15px; border-radius: 11px; padding: 10px 13px; }
.student-main .layer-button.active { background: rgb(255, 241, 173); border-color: rgb(216, 182, 78); }
.student-main .layers .toolbar { gap: 4px; }
.student-main .layers .toolbar button { padding-inline: 9px; font-size: 13px; }
.student-main .layers > label { margin-top: 15px; }
.student-main .video-wrap { border-radius: 18px; }
.student-main .video-controls { gap: 12px; }
.student-main #video-note, .student-main #draw-status { font-size: 15px; margin: 15px 0px 0px; }
.student-home-head { margin-bottom: 20px; }
.student-home-head h1 { font-size: 43px; margin-bottom: 8px; }
.student-home-head p { font-size: 16px; margin: 0px; }
.calculator-display { width: 100%; min-height: 100px; display: flex; justify-content: flex-end; align-items: center; padding: 20px 24px; margin-bottom: 18px; background: rgb(237, 246, 230); border: 1px solid rgb(210, 226, 195); border-radius: 19px; color: var(--ink); font-size: clamp(28px, 5vw, 45px); font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.calculator-keypad { display: grid; grid-template-columns: repeat(4, minmax(0px, 1fr)); gap: 12px; max-width: 530px; margin-inline: auto; }
.calculator-keypad .calc-key { min-height: 70px; padding: 13px; border-radius: 17px; background: rgb(255, 254, 251); border: 1px solid rgb(217, 224, 211); color: var(--ink); font-size: 27px; font-weight: 600; box-shadow: rgb(231, 236, 217) 0px 4px 0px; position: relative; overflow: hidden; isolation: isolate; transition: transform .18s var(--spring), background .18s; }
.calculator-keypad .calc-key.accent { background: rgb(255, 240, 185); border-color: rgb(231, 211, 154); box-shadow: rgb(231, 219, 165) 0px 4px 0px; }
.calculator-keypad .calc-key.equals { background: rgb(195, 234, 211); border-color: rgb(169, 208, 181); box-shadow: rgb(169, 208, 181) 0px 4px 0px; color: rgb(38, 82, 60); }
.calculator-keypad .calc-key:active { transform: translateY(3px) scale(0.97); box-shadow: rgb(231, 236, 217) 0px 1px 0px; }
.sudoku-pad { display: grid; grid-template-columns: repeat(5, minmax(0px, 1fr)); gap: 9px; max-width: 486px; margin: 18px auto 23px; }
.sudoku-pad button { min-height: 54px; background: rgb(255, 243, 191); border: 1px solid rgb(228, 212, 154); border-radius: 12px; font-size: 23px; font-weight: 650; color: var(--ink); box-shadow: rgb(236, 227, 190) 0px 3px 0px; position: relative; isolation: isolate; overflow: hidden; }
.sudoku-pad button:last-child { font-size: 14px; background: rgb(237, 242, 229); border-color: rgb(211, 221, 199); box-shadow: rgb(220, 229, 210) 0px 3px 0px; }
.student-main .sudoku-cell { cursor: pointer; }
.student-main .sudoku-cell.related { background: rgb(237, 245, 229); }
.student-main .sudoku-cell.selected { background: rgb(255, 229, 160); outline: rgb(86, 136, 94) solid 3px; outline-offset: -3px; position: relative; z-index: 1; }
.student-main .sudoku-cell.wrong { background: rgb(255, 217, 206); color: rgb(139, 54, 46); }
.student-main .gomoku-cell.pending { background-color: rgba(255, 241, 181, 0.62); }
.student-main .gomoku-cell.pending::after { content: ""; position: absolute; inset: 6%; border: 3px solid rgb(30, 120, 101); border-radius: 50%; background: rgba(188, 235, 215, 0.22); }
.gomoku-confirm { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 14px; padding: 16px; border: 1px solid rgb(188, 213, 197); border-radius: 16px; background: rgb(237, 248, 239); }
.gomoku-confirm .selected-position { font-size: 16px; color: rgb(51, 95, 72); font-weight: 650; }
.gomoku-confirm .primary { background: rgb(50, 104, 75); border-color: rgb(50, 104, 75); min-width: 138px; }
.student-main .drawing-tools button[aria-pressed="true"] { color: rgb(40, 92, 66); background: rgb(197, 236, 214); border-color: rgb(115, 174, 136); box-shadow: rgb(164, 209, 178) 0px 3px 0px; }
.student-main .quiz-option.chosen { color: rgb(40, 78, 57); border: 2px solid rgb(116, 169, 137); background: rgb(224, 245, 230); }
.submitted-note { padding: 17px 20px; border: 1px solid rgb(185, 215, 195); border-radius: 16px; background: rgb(228, 245, 233); color: rgb(49, 95, 68); font-size: 16px; line-height: 1.7; }
.submitted-note.success { background: rgb(221, 244, 226); color: rgb(45, 97, 64); border-color: rgb(159, 201, 172); }
.teacher-topbar { min-height: 84px; height: auto; display: flex; justify-content: space-between; align-items: center; padding: 15px 28px; background: rgba(255, 254, 251, 0.91); border-bottom: 1px solid rgb(221, 228, 218); gap: 20px; }
.teacher-top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.teacher-class-status { display: inline-flex; align-items: center; gap: 9px; color: rgb(71, 109, 82); font-size: 14px; padding: 8px 12px; border-radius: 12px; background: rgb(238, 246, 231); }
.teacher-workspace { display: grid; grid-template-columns: 220px minmax(0px, 1fr); min-height: calc(-85px + 100vh); }
.teacher-shell .sidebar { padding: 22px 15px; background: rgb(241, 243, 232); border-right-color: rgb(219, 227, 212); }
.teacher-shell .sidebar .session-strip { background: rgb(229, 238, 220); border: 1px solid rgb(210, 223, 198); border-radius: 16px; padding: 16px; gap: 6px; margin-bottom: 17px; }
.teacher-shell .sidebar .session-strip b { font-size: 17px; line-height: 1.5; }
.teacher-shell .sidebar .session-strip small, .teacher-shell .sidebar .session-strip > span { font-size: 12px; color: rgb(87, 114, 72); }
.teacher-shell .nav-item { min-height: 54px; padding: 13px 15px; gap: 12px; border-radius: 14px; font-size: 15px; margin: 4px 0px; color: rgb(91, 112, 98); }
.teacher-shell .nav-item.active { background: rgb(206, 233, 214); color: rgb(39, 88, 64); box-shadow: rgb(183, 218, 193) 0px 0px 0px 1px inset; }
.teacher-shell .nav-item > span:first-child { font-size: 23px; width: 23px; color: rgb(90, 126, 89); }
.teacher-shell .side-bottom { padding: 20px 6px 0px; font-size: 13px; }
.teacher-shell .side-bottom p { font-size: 25px; color: rgb(86, 116, 78); }
.teacher-shell .side-bottom button { font-size: 14px; width: 100%; }
.teacher-shell .main-panel { max-width: 1720px; padding: 28px 30px 46px; }
.teacher-shell .page-head { margin-bottom: 24px; }
.teacher-shell .page-head h1 { font-size: 39px; line-height: 1.2; }
.teacher-shell .page-head p { font-size: 15px; }
.teacher-board-grid { display: grid; grid-template-columns: minmax(0px, 1fr) 300px; gap: 24px; align-items: start; }
.teacher-board-main { min-width: 0px; }
.teacher-rail { display: grid; gap: 20px; min-width: 0px; }
.teacher-rail > .panel + .panel { margin-top: 0px; }
.teacher-overview { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 14px; margin: 0px 0px 24px; }
.teacher-stat { display: flex; align-items: center; gap: 13px; padding: 18px 20px; min-height: 86px; border: 1px solid rgb(219, 227, 214); border-radius: 19px; background: rgb(255, 254, 251); box-shadow: rgb(235, 237, 223) 0px 3px 0px; }
.teacher-stat > span:first-child { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: rgb(229, 241, 215); font-size: 23px; }
.teacher-stat:nth-child(2) > span:first-child { background: var(--yellow); }
.teacher-stat:nth-child(3) > span:first-child { background: var(--lavender); }
.teacher-stat strong { display: block; font-size: 25px; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; }
.teacher-stat small { display: block; font-size: 13px; color: rgb(88, 115, 101); }
.teacher-stat strong span { font-size: 14px; color: rgb(86, 115, 101); }
.teacher-stage { background: rgb(255, 254, 251); border: 1px solid rgb(214, 226, 212); border-radius: 23px; overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); }
.teacher-stage-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 23px; background: rgb(230, 240, 219); border-bottom: 1px solid rgb(212, 225, 198); }
.teacher-stage-head h2 { font-size: 31px; margin: 0px; }
.teacher-stage-head p { color: rgb(82, 108, 73); font-size: 14px; margin: 6px 0px 0px; }
.teacher-stage-head .badge { background: rgb(255, 254, 251); }
.teacher-stage #host-live { border: 0px; border-radius: 0px; box-shadow: none; margin: 0px; padding: 23px; background: rgb(255, 254, 251); }
.teacher-stage #host-live:empty { display: block; min-height: 100px; }
.teacher-live-control { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: rgb(237, 247, 235); border: 1px solid rgb(203, 220, 196); border-radius: 16px; padding: 15px 18px; margin: 0px 0px 24px; }
.teacher-live-control b { color: rgb(54, 95, 64); font-size: 17px; }
.teacher-live-control p { color: rgb(81, 111, 85); font-size: 14px; margin: 3px 0px 0px; }
.teacher-live-control .toolbar { flex-shrink: 0; }
.teacher-quick-tools { margin: 0px 0px 24px; }
.teacher-quick-tools .tools-grid, .teacher-quick-tools.tools-grid { grid-template-columns: repeat(4, minmax(0px, 1fr)); gap: 13px; }
.teacher-shell button.tool-panel { min-height: 174px; padding: 20px 17px; border-radius: 19px; background: rgb(255, 254, 251); border-color: rgb(216, 225, 212); box-shadow: rgb(233, 237, 222) 0px 4px 0px; overflow: hidden; isolation: isolate; }
.teacher-shell button.tool-panel .card-icon { width: 48px; height: 48px; font-size: 28px; border-radius: 15px; }
.teacher-shell button.tool-panel h3 { font-size: 17px; margin: 15px 0px 7px; line-height: 1.35; }
.teacher-shell button.tool-panel p { font-size: 13px; line-height: 1.55; color: rgb(91, 112, 102); }
.teacher-shell button.tool-panel:active { transform: scale(0.97); box-shadow: rgb(233, 237, 222) 0px 1px 0px; }
.teacher-shell .qr-panel, .teacher-invite { padding: 23px; border: 1px solid rgb(231, 219, 167); background: rgb(255, 246, 216); border-radius: 23px; }
.teacher-shell .qr-code { width: 198px; height: 198px; border-radius: 15px; padding: 12px; margin: 4px auto 17px; border-color: rgb(228, 213, 153); }
.teacher-shell .room-code { font-family: inherit; font-size: 31px; font-weight: 800; letter-spacing: 0.16em; line-height: 1.3; margin-bottom: 12px; }
.teacher-shell .qr-panel > small { font-size: 12px; color: rgb(112, 94, 53); }
.teacher-shell .qr-panel .eyebrow { color: rgb(118, 100, 51); font-size: 12px; }
.teacher-shell .qr-panel > p:last-child { font-size: 13px; color: rgb(109, 98, 70); }
.teacher-shell .qr-panel > .secondary { min-height: 46px; font-size: 14px; width: 100%; background: rgb(255, 254, 251); border-color: rgb(222, 207, 163); }
.teacher-roster { margin-top: 22px; }
.teacher-roster .panel-title { margin-bottom: 17px; }
.teacher-shell .student-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.teacher-shell .student-card { padding: 15px; border-radius: 15px; border-color: rgb(215, 228, 210); background: rgb(242, 248, 233); gap: 11px; }
.teacher-shell .student-avatar { width: 39px; height: 39px; font-size: 26px; }
.teacher-shell .student-card b { font-size: 15px; line-height: 1.45; }
.teacher-shell .student-card small { color: rgb(91, 119, 91); font-size: 12px; margin-top: 3px; }
.teacher-shell .student-card.offline { background: rgb(241, 241, 232); color: rgb(99, 113, 107); }
.teacher-shell .student-actions { gap: 7px; }
.teacher-shell .student-actions button { min-height: 40px; font-size: 13px; padding: 8px 10px; }
.teacher-rail .teacher-roster { margin-top: 0px; }
.teacher-rail .student-grid { grid-template-columns: 1fr; }
.teacher-activity-card { display: flex; align-items: center; gap: 14px; padding: 19px; border-radius: 17px; background: rgb(237, 245, 228); border: 1px solid rgb(211, 225, 199); }
.teacher-activity-card h3 { font-size: 17px; margin-bottom: 5px; }
.teacher-activity-card p { font-size: 14px; margin: 0px; }
.teacher-active-mode { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgb(196, 215, 181); background: rgb(247, 252, 237); color: rgb(66, 97, 54); border-radius: 11px; font-size: 13px; font-weight: 650; }
.teacher-question-preview { padding: 23px; border-radius: 22px; background: rgb(246, 241, 255); border: 1px solid rgb(221, 209, 243); }
.teacher-question-preview .panel-title { margin-bottom: 13px; }
.teacher-question-preview .panel-title h2 { font-size: 29px; }
.teacher-question-preview > p { font-size: 14px; margin: 0px; color: rgb(103, 85, 119); }
.teacher-question-row { display: block; text-align: left; padding: 14px 15px; border-radius: 13px; background: rgb(255, 254, 251); border: 1px solid rgb(227, 220, 237); margin-top: 10px; width: 100%; }
.teacher-question-row b { display: block; color: rgb(88, 65, 110); font-size: 14px; margin-bottom: 4px; }
.teacher-question-row p { color: rgb(87, 101, 115); font-size: 14px; line-height: 1.6; margin: 0px; overflow-wrap: anywhere; }
.question-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: rgb(219, 201, 243); color: rgb(83, 55, 116); font-weight: 750; font-size: 14px; }
.teacher-shell .chat-message { font-size: 16px; padding: 14px 17px; border-radius: 15px; }
.teacher-shell .chat-message b { font-size: 13px; color: rgb(82, 112, 90); }
.teacher-shell .chat-message small { font-size: 12px; color: rgb(98, 117, 102); }
.teacher-shell .chat-compose input { min-height: 48px !important; font-size: 16px; }
.teacher-shell .chat-compose .primary { min-height: 48px; }
.teacher-shell .table { font-size: 15px; }
.teacher-shell .table th { font-size: 13px; color: rgb(88, 115, 84); background: rgb(234, 242, 223); padding: 13px 15px; }
.teacher-shell .table td { padding: 15px; }
.teacher-shell .video-wrap { border-radius: 17px; }
.teacher-shell .timer-face { font-size: clamp(85px, 10vw, 130px); }
.teacher-shell #master-media { border-radius: 22px; margin-top: 23px; }
.tap-ripple { pointer-events: none; position: absolute; z-index: -1; left: var(--ripple-x, 50%); top: var(--ripple-y, 50%); width: 160px; height: 160px; border-radius: 50%; transform: translate(-50%, -50%) scale(0); background: rgba(128, 199, 159, 0.208); animation: 0.52s ease-out 0s 1 normal forwards running touch-ripple; }
.primary .tap-ripple { background: rgba(229, 255, 235, 0.208); }
.activity-card .tap-ripple, .tool-panel .tap-ripple { background: rgba(165, 231, 188, 0.25); }
.is-tapped { animation: touch-spring .34s var(--spring); }
@keyframes touch-ripple { 
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4); }
}
@keyframes touch-spring { 
  0% { transform: scale(1); }
  35% { transform: scale(0.96); }
  70% { transform: scale(1.015); }
  100% { transform: scale(1); }
}
.toast, .app-toast { bottom: 27px; padding: 15px 23px; border-radius: 16px; font-size: 16px; line-height: 1.5; background: rgb(38, 63, 85); box-shadow: rgba(38, 63, 85, 0.09) 0px 7px 0px, rgba(38, 63, 85, 0.125) 0px 12px 30px; max-width: min(520px, 100% - 36px); }
body[data-role="student"] .toast, body[data-role="student"] .app-toast { bottom: calc(106px + env(safe-area-inset-bottom)); }
.toast.success, .app-toast.success { background: rgb(40, 100, 72); }
.toast.error, .app-toast.error { background: rgb(152, 68, 55); }
.modal-backdrop { background: rgba(32, 55, 66, 0.44); backdrop-filter: blur(8px); padding: 28px; }
.modal { max-width: 630px; padding: 30px; border-radius: 25px; border-color: rgb(220, 227, 213); max-height: min(90dvh, 900px); }
.modal h2 { font-size: 37px; }
.modal > p, .modal p.muted { font-size: 16px; line-height: 1.75; }
.modal form { gap: 18px; }
.modal .panel-title { align-items: flex-start; }
.modal #close-modal { width: 48px; min-width: 48px; height: 48px; padding: 0px; font-size: 31px; border-radius: 50%; background: rgb(237, 241, 228); }
.modal .qr-panel { background: rgb(255, 247, 217); padding: 25px; border-radius: 18px; }
.ended h1 { font-size: 51px; }
.ended p { font-size: 17px; }
@media (hover: hover) and (pointer: fine) {
  .student-main .activity-card:hover:not(:disabled) { transform: translateY(-4px); background: rgb(251, 255, 245); border-color: rgb(163, 207, 173); box-shadow: rgb(232, 235, 223) 0px 8px 0px; }
  .teacher-shell button.tool-panel:hover { transform: translateY(-3px); border-color: rgb(154, 197, 167); background: rgb(251, 255, 246); box-shadow: rgb(233, 237, 222) 0px 7px 0px; }
}
@media (min-width: 1600px) {
  .teacher-board-grid { grid-template-columns: minmax(0px, 1fr) 320px; }
  .teacher-shell .main-panel { padding: 32px 38px 50px; }
  .student-main .activity-grid { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
}
@media (max-width: 1270px) {
  .teacher-workspace { grid-template-columns: 195px minmax(0px, 1fr); }
  .teacher-shell .main-panel { padding-inline: 23px; }
  .teacher-board-grid { grid-template-columns: minmax(0px, 1fr) 270px; gap: 19px; }
  .teacher-shell .qr-code { width: 180px; height: 180px; }
  .teacher-quick-tools .tools-grid, .teacher-quick-tools.tools-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .teacher-shell button.tool-panel { min-height: 155px; }
  .teacher-overview { gap: 11px; }
  .teacher-stat { padding: 15px; gap: 9px; }
  .teacher-stat > span:first-child { width: 36px; height: 36px; border-radius: 11px; }
}
@media (max-width: 1099px) {
  .teacher-board-grid { grid-template-columns: 1fr; }
  .teacher-rail { grid-template-columns: 1fr 1fr; gap: 18px; }
  .teacher-shell .page-head h1 { font-size: 35px; }
  .teacher-overview { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
  .teacher-stat { display: block; }
  .teacher-stat > span:first-child { display: none; }
  .teacher-topbar { padding-inline: 22px; }
  .teacher-class-status { font-size: 12px; }
  .entry-shell .landing { gap: 35px; padding-inline: 28px; }
  .entry-shell .hero-copy h1 { font-size: 59px; }
  .entry-shell .join-card { padding: 26px; }
}
@media (max-width: 767px) {
  .student-header { min-height: 78px; padding: 12px 20px; gap: 12px; }
  .student-main { padding: 21px 20px 32px; }
  .student-main .activity-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 15px; }
  .student-main .activity-card { min-height: 217px; padding: 21px; }
  .student-hero { padding: 24px; border-radius: 23px; }
  .student-hero h1 { font-size: 45px; }
  .student-hero > img { width: 117px; }
  .student-identity b { max-width: 150px; }
  .student-main .drawing-layout { grid-template-columns: 1fr; }
  .student-main .layers { width: 100%; }
  .student-main #layer-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .student-main .layer-row { flex: 1 1 180px; }
  .student-main .layers > label { max-width: 300px; }
  .student-main .layers > p { margin-bottom: 0px; }
  .student-main .drawing-tools { gap: 10px; }
  .student-main .drawing-canvas { aspect-ratio: 4 / 3; }
  .student-main .page-head h1 { font-size: 37px; }
  .entry-shell .topbar { height: 78px; padding: 0px 22px; }
  .entry-shell .landing { display: flex; flex-direction: column; gap: 10px; padding: 30px 22px 45px; }
  .entry-shell .hero-copy { padding: 0px; }
  .entry-shell .hero-copy h1 { font-size: 56px; margin-bottom: 20px; }
  .entry-shell .hero-copy > p { font-size: 17px; margin-bottom: 18px; }
  .entry-shell .hero-art { display: none; }
  .entry-shell .join-card { max-width: 540px; padding: 27px; width: 100%; border-radius: 25px; margin-top: 13px; }
  .teacher-workspace { grid-template-columns: 1fr; }
  .teacher-shell .sidebar { display: flex; flex-direction: row; overflow-x: auto; padding: 8px 14px; border-bottom: 1px solid rgb(219, 227, 212); }
  .teacher-shell .sidebar .session-strip, .teacher-shell .side-bottom { display: none; }
  .teacher-shell .sidebar nav { display: flex; }
  .teacher-shell .nav-item { min-height: 48px; width: auto; white-space: nowrap; margin: 0px 2px; font-size: 14px; padding: 11px 13px; }
  .teacher-shell .main-panel { padding: 23px 20px 35px; }
  .teacher-topbar { gap: 12px; padding: 14px 20px; }
  .teacher-top-actions { gap: 6px; }
  .teacher-top-actions .teacher-class-status { display: none; }
  .teacher-rail { grid-template-columns: 1fr 1fr; }
  .teacher-live-control { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .student-shell { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  .student-header { padding: 11px 16px; gap: 10px; align-items: center; }
  .student-header .brand { display: none; }
  .student-header .toolbar { gap: 3px; }
  .student-header .toolbar .ghost, .student-header .toolbar .secondary { padding: 10px; font-size: 13px; min-width: 44px; }
  .student-identity .student-avatar { width: 42px; height: 42px; }
  .student-identity b { font-size: 16px; max-width: 150px; }
  .student-identity small { font-size: 12px; max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .student-session-chip { display: none; }
  .student-main { padding: 18px 16px 29px; }
  .student-status-banner { border-radius: 15px; gap: 9px; padding: 13px; margin-bottom: 18px; font-size: 13px; }
  .student-status-banner b { font-size: 15px; }
  .student-status-banner p { font-size: 13px; }
  .student-status-banner > span:last-child { font-size: 12px; }
  .student-hero { padding: 22px 19px; border-radius: 21px; gap: 10px; margin-bottom: 20px; }
  .student-hero h1 { font-size: 39px; line-height: 1.14; margin: 2px 0px 9px; }
  .student-hero p { font-size: 15px; line-height: 1.6; }
  .student-hero .eyebrow { font-size: 11px; }
  .student-hero > img { width: 77px; max-height: 108px; flex-shrink: 0; }
  .play-tabs { gap: 7px; margin-bottom: 10px; }
  .play-tabs button { min-height: 48px; padding: 11px 17px; font-size: 14px; }
  .student-main .activity-grid { gap: 12px; }
  .student-main .activity-card { min-height: 219px; padding: 18px 15px; border-radius: 20px; }
  .student-main .activity-card .card-icon { width: 52px; height: 52px; border-radius: 16px; font-size: 31px; margin-bottom: 16px; }
  .student-main .activity-card h3 { font-size: 18px; margin-bottom: 6px; }
  .student-main .activity-card p { font-size: 14px; line-height: 1.6; margin-bottom: 13px; }
  .student-main .activity-card .card-meta { font-size: 12px; }
  .student-main .activity-card > .badge { font-size: 10px; top: 14px; right: 12px; padding: 5px 7px; }
  .student-nav-item { min-width: 0px; max-width: none; min-height: 65px; font-size: 13px; gap: 5px; padding: 7px 8px; border-radius: 15px; }
  .student-bottom-nav { gap: 8px; padding-inline: 16px; }
  .student-main .page-head { margin: 10px 0px 21px; }
  .student-main .page-head h1 { font-size: 35px; }
  .student-main .page-head p { font-size: 15px; }
  .student-main .page-head .toolbar .primary, .student-main .page-head .toolbar .secondary { min-height: 48px; padding: 11px 15px; font-size: 14px; }
  .student-activity-head { gap: 11px; flex-wrap: wrap; }
  .student-activity-head h1 { font-size: 36px; }
  .student-activity-head p { font-size: 15px; }
  .student-main .panel, .student-main .tool-panel { padding: 19px 17px; border-radius: 19px; }
  .student-main .tools-grid { grid-template-columns: 1fr; }
  .student-main .gomoku-board { margin-left: 0px; }
  .student-main .game-status { font-size: 15px; padding: 13px; }
  .student-main .bingo-grid { gap: 6px; margin: 20px auto; }
  .student-main .bingo-cell { min-height: 46px; font-size: 30px; border-radius: 10px; }
  .student-main .quiz-option { min-height: 68px; padding: 15px; font-size: 17px; }
  .student-main .sudoku-cell { font-size: 21px; }
  .sudoku-pad { gap: 7px; }
  .sudoku-pad button { min-height: 52px; border-radius: 10px; font-size: 21px; }
  .calculator-keypad { gap: 10px; }
  .calculator-keypad .calc-key { min-height: 64px; border-radius: 14px; font-size: 25px; }
  .calculator-display { min-height: 92px; padding: 18px; border-radius: 17px; }
  .gomoku-confirm { padding: 14px; gap: 10px; }
  .gomoku-confirm .selected-position { font-size: 14px; }
  .gomoku-confirm .primary { min-width: 112px; padding-inline: 13px; }
  .student-main .drawing-tools { padding: 10px; }
  .student-main .drawing-tools .toolbar { gap: 6px; }
  .student-main .drawing-tools button, .student-main .drawing-tools .toolbar button { font-size: 14px; padding-inline: 11px; }
  .student-main .drawing-tools label { font-size: 13px; padding: 0px 3px; }
  .student-main .drawing-tools input[type="range"] { width: 90px; }
  .student-main .chat-message { max-width: 93%; font-size: 16px; padding: 14px 15px; }
  .student-main .chat-compose { flex-wrap: wrap; align-items: stretch; gap: 9px; }
  .student-main .chat-compose select { width: 100%; max-width: 100%; flex-basis: 100%; }
  .student-main .chat-compose input { flex: 1 1 55%; width: 0px; min-width: 0px; }
  .student-main .chat-compose .primary { flex-shrink: 0; padding-inline: 17px; }
  .touch-hint { font-size: 13px; }
  .teacher-topbar .brand img { width: 60px; }
  .teacher-topbar .brand > span { font-size: 25px; }
  .teacher-topbar .brand .brand-name { display: none; }
  .teacher-top-actions button { padding-inline: 10px; font-size: 13px; }
  .teacher-shell .page-head { flex-wrap: wrap; }
  .teacher-shell .page-head .toolbar { max-width: none; }
  .teacher-overview { gap: 8px; }
  .teacher-stat { padding: 14px 10px; border-radius: 15px; min-height: 81px; }
  .teacher-stat strong { font-size: 22px; }
  .teacher-stat small { font-size: 12px; }
  .teacher-rail { grid-template-columns: 1fr; }
  .teacher-stage-head { padding: 18px; }
  .teacher-stage-head h2 { font-size: 28px; }
  .teacher-stage #host-live { padding: 18px; }
  .teacher-shell button.tool-panel { padding: 17px; }
  .teacher-shell .student-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .entry-shell .topbar { padding: 0px 19px; }
  .entry-shell .topbar > .pill { display: none; }
  .entry-shell .landing { padding-inline: 19px; }
  .entry-shell .hero-copy h1 { font-size: 50px; }
  .entry-shell .join-card { padding: 23px 21px; }
  .entry-shell .join-tabs button { min-height: 72px; font-size: 15px; }
  .entry-shell .join-form h2 { font-size: 34px; }
  .modal-backdrop { padding: 14px; align-items: center; }
  .modal { padding: 24px 20px; border-radius: 23px; max-height: 92dvh; }
  .modal h2 { font-size: 33px; }
  .modal .panel-title { gap: 8px; }
  .modal > p { font-size: 16px; }
  .toast, .app-toast { padding: 13px 18px; font-size: 15px; border-radius: 14px; }
  .ended h1 { font-size: 42px; }
}
@media (max-width: 360px) {
  .student-main { padding-inline: 12px; }
  .student-main .activity-card { padding-inline: 12px; }
  .student-main .activity-card h3 { font-size: 17px; }
  .student-hero h1 { font-size: 34px; }
  .student-hero > img { width: 60px; }
  .student-identity b { max-width: 125px; }
  .student-main .sudoku-cell { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { scroll-behavior: auto !important; animation: auto ease 0s 1 normal none running none !important; transition: none !important; }
  .tap-ripple { display: none; }
  button:not(:disabled):active { transform: none; }
}
[hidden] { display: none !important; }
#content h1:focus { outline: none; }
.student-identity { min-height: 48px; padding: 4px; border-radius: 13px; text-align: left; }
.student-status-banner > svg { width: 24px; height: 24px; flex-shrink: 0; }
.student-status-banner > span:not(.student-session-chip) { flex: 1 1 0%; }
.student-hero { position: relative; }
.student-hero .hero-spark { position: absolute; right: 23px; top: 14px; font-size: 25px; color: rgb(122, 134, 81); transform: rotate(12deg); pointer-events: none; }
.student-main .activity-card .card-icon svg { width: 31px; height: 31px; }
.student-main .activity-card .card-meta > svg { margin-left: auto; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: rgb(234, 243, 227); color: rgb(82, 124, 89); }
.student-nav-item > svg { width: 25px; height: 25px; }
.student-home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.student-home-head h2 { font-size: 32px; margin: 0px; }
.student-home-head .touch-hint { margin: 0px; font-size: 14px; }
.student-main #calc-expr { min-height: 92px; padding: 20px; margin-top: 10px; margin-bottom: 0px; border-radius: 18px; background: rgb(237, 246, 230); border-color: rgb(197, 218, 187); font-size: clamp(28px, 5vw, 43px); text-align: right; }
.calculator-panel { max-width: 580px; margin-inline: auto; }
.calculator-answer { font-size: 28px; font-weight: 650; color: rgb(53, 98, 72); text-align: right; padding: 5px 8px; margin: 12px 0px 19px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calculator-panel > p:last-child { text-align: center; font-size: 14px; margin: 23px 0px 0px; }
.teacher-stat > div > span { display: block; color: rgb(89, 113, 94); font-size: 13px; margin-bottom: 4px; }
.teacher-stat strong small { display: inline; font-size: 14px; font-weight: 450; }
.teacher-shell .nav-item > svg { width: 22px; height: 22px; color: rgb(90, 126, 89); }
.teacher-shell .nav-item .question-count { margin-left: auto; min-width: 24px; height: 24px; font-size: 12px; }
.teacher-shell button.tool-panel .launch-arrow { position: absolute; right: 15px; top: 20px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgb(237, 245, 230); color: rgb(92, 120, 81); }
.teacher-shell button.tool-panel .launch-arrow svg { width: 18px; height: 18px; }
.teacher-question-preview #all-questions { font-size: 13px; min-height: 44px; padding: 10px; white-space: nowrap; }
.teacher-note { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 10px; }
.teacher-note img { width: 94px; height: 100px; object-fit: contain; }
.teacher-note p { font-family: LeeSeoyun, sans-serif; font-size: 25px; color: rgb(103, 131, 91); line-height: 1.4; margin: 0px; }
.student-waiting { display: flex; flex-direction: column; align-items: center; text-align: center; background: rgb(243, 240, 212); border: 1px solid rgb(226, 223, 185); border-radius: 25px; padding: 36px 25px; margin-top: 12px; }
.student-waiting .card-icon { width: 65px; height: 65px; border-radius: 21px; background: rgb(219, 237, 202); margin-bottom: 20px; }
.student-waiting .card-icon svg { width: 32px; height: 32px; }
.student-waiting h1 { font-size: 44px; margin-bottom: 15px; }
.student-waiting p { font-size: 18px; color: rgb(104, 115, 78); }
.student-waiting img { width: 160px; max-height: 180px; object-fit: contain; margin: 12px 0px 27px; }
.screen-enter { animation: 0.25s ease-out 0s 1 normal none running screen-fresh; }
@keyframes screen-fresh { 
  0% { opacity: 0.4; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0px); }
}
.toast, .app-toast { display: flex; align-items: center; gap: 11px; }
.celebration { position: fixed; left: 50%; top: 45%; width: 1px; height: 1px; pointer-events: none; z-index: 200; }
.celebration span, .celebration i { position: absolute; width: 10px; height: 18px; border-radius: 4px; background: var(--confetti-color, #bcebd7); transform: rotate(var(--angle, 0deg)) translateY(0); animation: 0.8s ease-out 0s 1 normal forwards running happy-confetti; opacity: 0.95; }
@keyframes happy-confetti { 
  100% { transform: rotate(var(--angle, 0deg)) translateY(-160px) rotate(110deg); opacity: 0; }
}
@media (max-width: 540px) {
  .student-header .brand { display: flex; gap: 0px; }
  .student-header .brand img { width: 52px; height: 31px; }
  .student-header .brand > span { display: none; }
  .student-header .student-identity { flex: 1 1 0%; }
  .student-header .student-identity b { max-width: 137px; }
  .student-header .student-identity small { max-width: 137px; }
  .student-hero h1 { font-size: 31px; line-height: 1.15; }
  .student-hero > img { width: 85px; }
  .student-home-head h2 { font-size: 30px; }
  .student-home-head .touch-hint { font-size: 12px; }
  .student-waiting { padding: 31px 20px; }
  .student-waiting h1 { font-size: 36px; }
  .student-waiting p { font-size: 16px; }
  .student-waiting img { width: 137px; }
}
.teacher-invite .panel-title { gap: 8px; }
.teacher-invite .panel-title h2 { font-size: 27px; white-space: nowrap; }
.teacher-invite .panel-title .badge { white-space: nowrap; font-size: 11px; padding: 6px 8px; }
@media (max-width: 360px) {
  .student-header { gap: 8px; padding-inline: 12px; }
  .student-header .brand img { width: 45px; }
  .student-header .student-identity b, .student-header .student-identity small { max-width: 112px; }
  .student-hero h1 { font-size: 29px; }
  .student-hero > img { width: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-enter { animation: auto ease 0s 1 normal none running none; }
  .celebration { display: none; }
}
@media (min-width: 1100px) {
  .teacher-shell .main-panel { padding-top: 20px; }
  .teacher-live-control { padding: 12px 16px; margin-bottom: 17px; }
  .teacher-shell .page-head { margin-bottom: 18px; }
  .teacher-shell .page-head .eyebrow { margin-bottom: 4px; }
  .teacher-shell .page-head h1 { font-size: 36px; }
  .teacher-overview { margin-bottom: 20px; }
  .teacher-stat { min-height: 78px; padding: 14px 18px; }
  .teacher-stage-stack > .teacher-stage { padding: 0px; }
  .teacher-stage-head { padding: 16px 22px; }
  .teacher-stage-head h2 { font-size: 29px; }
  .teacher-stage > .teacher-quick-tools { padding: 18px; margin: 0px; }
  .teacher-stage button.tool-panel { min-height: 150px; }
  .teacher-stage #host-live { padding: 14px 22px 20px; }
  .teacher-stage #host-live .panel-title { margin-bottom: 10px; }
  .teacher-stage #host-live > p { margin-bottom: 0px; }
  .teacher-invite { padding: 20px !important; }
  .teacher-invite .panel-title { margin-bottom: 12px; }
  .teacher-invite .qr-code { width: 176px; height: 176px; margin-bottom: 12px; }
  .teacher-invite .room-code { font-size: 28px; margin-bottom: 8px; }
  .teacher-invite > small { margin-bottom: 10px; }
  .teacher-invite > p:last-child { font-size: 12px; line-height: 1.6; margin-top: 10px; }
}
