/* 딴짓 2026 · 익숙한 종이, 선명한 구조, 손끝에서 살아나는 놀이. */
:root {
  --paper: #fcfaf4;
  --surface: #fffefa;
  --ink: #253f50;
  --muted: #526571;
  --line: #d9dfd7;
  --mint: #b9eccc;
  --yellow: #ffe174;
  --peach: #ffc9b4;
  --blue: #d0e2ff;
  --lavender: #dbcef7;
  --edge: #355463;
  --ui-font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.2,.8,.25,1);
}
body { font-size: 15px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--ui-font); font-weight: 750; letter-spacing: -.035em; }
h1, h2 { line-height: 1.25; }
p, h1, h2, h3, b, small { word-break: keep-all; }
.handword { font-family: LeeSeoyun, var(--ui-font); font-weight: 400; letter-spacing: -.025em; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .075em; color: #526953; }
.app-shell::before { opacity: .045; }
button, input, select, textarea { font-size: 15px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #416ba1; outline-offset: 4px; }
.primary, .secondary, .ghost, .danger { min-height: 46px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.primary { background: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 #172c38; }
.secondary { border: 1px solid #8da18f; box-shadow: 0 2px 0 #d5decf; }
.small { min-height: 44px; font-size: 13px; padding: 9px 12px; }
input:not([type="color"]):not([type="range"]):not([type="checkbox"]):not([type="radio"]):not(.sudoku-cell), select, textarea { min-height: 48px; border-radius: 13px; border-color: #aebcac; }
input::placeholder, textarea::placeholder { color: #61747a; }
.badge { color: #466254; }

/* A compact home gives the next activity room to be seen. */
.student-shell { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.student-header { height: 76px; min-height: 76px; padding: 10px max(24px, calc((100vw - 1160px) / 2)); gap: 18px; background: #fffef9; backdrop-filter: none; border-bottom: 1px solid #d8e0d2; }
.student-header .brand { gap: 12px; }
.student-header .brand img { width: 64px; height: 38px; }
.student-header .brand > span { font-size: 25px; }
.student-header .student-identity { margin-left: auto; gap: 10px; min-height: 48px; }
.student-identity b { font-size: 15px; font-weight: 750; }
.student-identity small { font-size: 12px; color: #526571; }
.student-header .student-avatar { width: 37px; height: 37px; border-color: #6e8c72; box-shadow: 2px 2px 0 #d9dcc0; }
.student-header #fullscreen { min-width: 48px; min-height: 48px; padding: 10px; border: 1px solid #d1ddce; border-radius: 16px; }
.student-main { max-width: 1160px; padding: 22px 28px 38px; }
.student-status-banner { min-height: 44px; padding: 10px 15px; margin-bottom: 20px; border-radius: 14px; border: 1px solid #a7c5ae; font-size: 14px; background: #e8f6e8; box-shadow: none; }
.student-status-banner > svg { width: 20px; height: 20px; }
.student-status-banner.lesson { background: #eee6ff; border-color: #b8a5d0; }
.student-session-chip { font-size: 11px; border-color: #b5cbb6; padding: 4px 9px; }
.connection-pill { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; color: #365c43; border-radius: 999px; padding: 5px 10px; background: #edf5e8; font-size: 12px; }
.connection-pill.offline { color: #7c442f; background: #fff0e3; }
.student-discovery { min-height: 190px; display: flex; position: relative; isolation: isolate; justify-content: space-between; align-items: center; gap: 24px; border: 1.5px solid var(--edge); border-radius: 32px; padding: 25px 32px; background: #ffe892; box-shadow: 0 5px 0 #cfd7b4; margin: 0 0 27px; }
.discovery-copy { min-width: 0; }
.discovery-copy .eyebrow { color: #5d643d; margin-bottom: 7px; }
.discovery-copy h1 { font-size: clamp(34px, 3.8vw, 42px); line-height: 1.13; margin: 0 0 10px; font-weight: 800; letter-spacing: -.055em; }
.discovery-copy h1 .handword { display: inline-block; font-size: 1.12em; line-height: 1.03; }
.discovery-copy > p { font-size: 15px; color: #4a5d5d; margin: 0; }
.discovery-note { font-size: 12px; font-weight: 600; color: #5b684d; margin-top: 10px; }
.discovery-art { flex: 0 0 174px; width: 174px; height: 144px; display: grid; place-items: center; position: relative; }
.discovery-art img { width: 151px; max-height: 144px; object-fit: contain; filter: none; }
.discovery-badge { position: absolute; top: -5px; right: -5px; background: #fffef9; border: 1px solid #688171; box-shadow: 2px 3px 0 #d6ad6f; border-radius: 999px; padding: 6px 11px; color: #415940; font-family: LeeSeoyun, var(--ui-font); font-size: 18px; white-space: nowrap; transform: rotate(5deg); }
.student-recent { margin: 0 0 26px; }
.student-recent > header, .student-recent .section-heading, .browser-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.student-recent h2, .activity-browser h2 { font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -.035em; }
.student-recent header p, .student-recent header small, .student-recent .section-heading p, #catalogue-count { font-size: 13px; color: #546771; margin: 0; }
.recent-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.recent-chip { min-width: 0; min-height: 72px; display: flex; text-align: left; align-items: center; gap: 11px; padding: 11px 14px; background: #fffefa; border: 1px solid #a9b9a5; border-radius: 18px; box-shadow: 0 3px 0 #e3e8d9; position: relative; overflow: hidden; transition: background .18s, transform .18s var(--ease-out); }
.recent-chip .recent-icon { display: grid; place-items: center; width: 41px; height: 41px; flex-shrink: 0; background: #e8dfef; border-radius: 12px; color: var(--ink); }
.recent-chip .recent-icon svg { width: 24px; height: 24px; }
.recent-chip:nth-child(2) .recent-icon { background: #daf0df; }
.recent-chip:nth-child(3) .recent-icon { background: #fff0b5; }
.recent-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.recent-copy b { color: var(--ink); font-size: 15px; }
.recent-copy small { font-size: 12px; color: #576b72; }
.recent-chip > svg { width: 19px; height: 19px; margin-left: auto; flex-shrink: 0; }
.activity-browser { margin-top: 4px; }
.browser-heading { margin-bottom: 15px; }
.activity-search-wrap { position: relative; margin-bottom: 12px; }
.activity-search { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 0 16px; border: 1px solid #9baca0; background: #fffef9; border-radius: 17px; }
.activity-search > svg { width: 21px; height: 21px; color: #566c5b; }
.activity-search input#activity-search { width: auto; flex: 1; min-width: 0; padding: 12px 0; min-height: 51px; border: 0; background: transparent; border-radius: 0; box-shadow: none; margin: 0; font-size: 15px; }
.activity-search:focus-within { border-color: #416ba1; outline: 3px solid #b2c8eb; outline-offset: 2px; }
.activity-search input#activity-search:focus-visible { outline: none; }
#search-clear { position: absolute; right: 5px; top: 4px; min-width: 44px; width: 58px; height: 44px; border-radius: 12px; color: #526571; display: grid; place-items: center; font-size: 12px; background: #fffef9; }
.activity-search input#activity-search { padding-right: 56px; }
#search-clear:hover { background: #eff3e8; }
#search-clear > svg { width: 18px; height: 18px; }
.play-tabs { padding: 2px 1px 9px; gap: 8px; margin-bottom: 14px; }
.play-tabs button { min-height: 48px; padding: 11px 20px; font-size: 14px; font-weight: 750; border: 1px solid #a6b6a4; box-shadow: 0 2px 0 #dce2d5; background: #fffefa; color: #496158; }
.play-tabs button.active, .play-tabs button[aria-pressed="true"] { color: #263d35; background: #b8e8c8; border-color: #698d75; box-shadow: 0 3px 0 #c0d2b8; }
.student-main #play-catalogue > .activity-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.student-main #play-catalogue .activity-card { min-height: 211px; padding: 20px 21px 17px; border: 1.5px solid #718b7c; border-radius: 27px; box-shadow: 0 4px 0 var(--card-shadow,#ccdcca); overflow: hidden; }
.student-main #play-catalogue .activity-card.green { background: #e0f2df; --card-shadow: #a9c5a4; --card-press: #d2ecd1; }
.student-main #play-catalogue .activity-card.yellow { background: #fff0b0; --card-shadow: #d7c389; --card-press: #ffe797; }
.student-main #play-catalogue .activity-card.peach { background: #ffe3d3; --card-shadow: #d5b6a2; --card-press: #ffd6bf; }
.student-main #play-catalogue .activity-card.blue { background: #e0eafa; --card-shadow: #acbfd5; --card-press: #d3e2f9; }
.student-main #play-catalogue .activity-card .card-icon { width: 46px; height: 46px; border-radius: 15px; margin-bottom: 17px; border: 1px solid #668376; box-shadow: 2px 2px 0 #3b566118; transform: rotate(-5deg); background: #aee0b5; }
.student-main #play-catalogue .activity-card.yellow .card-icon { background: #ffdc67; }
.student-main #play-catalogue .activity-card.peach .card-icon { background: #ffbf9b; }
.student-main #play-catalogue .activity-card.blue .card-icon { background: #bfd1f5; }
.student-main #play-catalogue .activity-card[data-open="sudoku"] .card-icon { background: #dbcef7; transform: rotate(4deg); }
.student-main #play-catalogue .activity-card .card-icon svg { width: 27px; height: 27px; }
.activity-kind { position: absolute; right: 18px; top: 21px; display: inline-flex; align-items: center; border: 1px solid #758d7b; border-radius: 999px; padding: 4px 9px; color: #435d51; background: #fffefa85; font-size: 11px; font-weight: 650; }
.student-main #play-catalogue .activity-card h3 { font-size: 22px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.045em; line-height: 1.3; }
.student-main #play-catalogue .activity-card p { font-size: 14px; line-height: 1.55; margin: 0 0 14px; color: #465e63; max-width: 24em; }
.student-main #play-catalogue .activity-card .card-meta { font-size: 12px; font-weight: 650; color: #42604c; padding-top: 2px; }
.student-main #play-catalogue .activity-card .card-meta > svg { background: #fffefa; border: 1px solid #8ba080; width: 27px; height: 27px; padding: 4px; }
.student-main #play-catalogue .activity-card[data-open="drawing"] { grid-column: span 2; background: #cfedcf; --card-shadow: #a0bfa0; --card-press: #c1e8c7; }
.student-main #play-catalogue .activity-card[data-open="drawing"] h3 { font-size: 27px; }
.student-main #play-catalogue .activity-card[data-open="drawing"] .card-icon { width: 56px; height: 56px; margin-bottom: 12px; }
.student-main #play-catalogue .activity-card[data-open="calculator"]:last-child { grid-column: 1 / -1; min-height: 96px; display: grid; grid-template-columns: 49px minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 18px; padding-block: 15px; background: #f0eadc; --card-shadow: #cac5b1; --card-press: #e9e1ce; }
.student-main #play-catalogue .activity-card[data-open="calculator"]:last-child .card-icon { grid-column: 1; grid-row: 1 / 3; margin: 0; background: #fffefa; }
.student-main #play-catalogue .activity-card[data-open="calculator"]:last-child h3 { grid-column: 2; grid-row: 1; font-size: 20px; margin-bottom: 3px; }
.student-main #play-catalogue .activity-card[data-open="calculator"]:last-child p { grid-column: 2; grid-row: 2; margin: 0; font-size: 13px; }
.student-main #play-catalogue .activity-card[data-open="calculator"]:last-child .card-meta { grid-column: 3; grid-row: 1 / 3; gap: 12px; min-width: 88px; margin: 0; }
.student-main #play-catalogue .activity-card[data-open="calculator"]:last-child .activity-kind { display: none; }
.student-main #play-catalogue > .activity-grid.is-filtered .activity-card[data-open="drawing"] { grid-column: auto; }
.catalogue-empty { grid-column: 1 / -1; text-align: center; padding: 36px 22px; border: 1px dashed #96af96; border-radius: 25px; background: #fffef9; }
.catalogue-empty h3 { font-size: 21px; margin-bottom: 7px; }
.catalogue-empty p { font-size: 15px; margin-bottom: 18px; }
.catalogue-empty .secondary { min-height: 48px; }
.student-bottom-nav { width: min(590px,calc(100% - 32px)); bottom: calc(14px + env(safe-area-inset-bottom)); gap: 6px; padding: 7px; border: 1.5px solid #859c83; border-radius: 24px; background: #fffef8; backdrop-filter: none; box-shadow: 0 5px 0 #bbcbb329, 0 7px 24px #304a3521; }
.student-nav-item { min-width: 0; min-height: 61px; max-width: none; padding: 8px 10px; border-radius: 18px; font-size: 13px; font-weight: 750; gap: 4px; color: #546763; }
.student-nav-item > svg { width: 23px; height: 23px; }
.student-nav-item.active { background: #bce8ca; border: 1px solid #8fac8f; color: #254c37; box-shadow: 0 2px 0 #a5c49e; }
.student-nav-item.active > svg { transform: none; }
.student-nav-item .badge { right: 8px; top: 2px; }

/* The teacher's desk puts invitation, teaching and attendance in that order. */
.teacher-topbar { height: 80px; min-height: 80px; padding: 12px 26px; background: #fffef9; backdrop-filter: none; gap: 20px; }
.teacher-topbar .brand img { width: 66px; }
.teacher-topbar .brand > span { font-size: 26px; }
.teacher-class-status { font-size: 13px; gap: 8px; }
.teacher-class-status b { font-size: 14px; font-weight: 750; }
.teacher-top-actions { display: flex; gap: 8px; }
.teacher-top-actions button { min-height: 44px; }
.teacher-shell .teacher-workspace { grid-template-columns: 200px minmax(0,1fr); min-height: calc(100dvh - 80px); }
.teacher-shell .sidebar { padding: 20px 13px; background: #eff2e9; }
.teacher-shell .sidebar .session-strip { padding: 13px 12px; border-radius: 16px; background: #e5eeda; gap: 5px; margin-bottom: 18px; }
.teacher-shell .sidebar .session-strip b { font-size: 15px; }
.teacher-shell .sidebar .session-strip small, .teacher-shell .sidebar .session-strip > span { font-size: 11px; }
.teacher-shell .nav-item { min-height: 48px; padding: 11px 12px; margin: 3px 0; font-size: 14px; gap: 10px; border-radius: 13px; }
.teacher-shell .nav-item.active { background: #bfe6c6; border: 1px solid #94b89a; box-shadow: 0 2px 0 #d0ddc5; color: #254a36; }
.teacher-shell .nav-item > svg { width: 21px; height: 21px; }
.teacher-shell .side-bottom { padding-top: 18px; }
.teacher-shell .side-bottom img { width: 70px; height: 76px; }
.teacher-shell .side-bottom p { font-size: 20px; }
.teacher-shell .side-bottom button { min-height: 44px; font-size: 13px; }
.teacher-shell .main-panel { max-width: 1600px; padding: 18px 26px 38px; }
.teacher-shell .page-head { gap: 20px; margin-bottom: 13px; }
.teacher-shell .page-head h1 { font-size: 27px; line-height: 1.2; font-weight: 800; margin: 0 0 5px; }
.teacher-shell .page-head .eyebrow { font-size: 10px; margin-bottom: 4px; line-height: 1.3; }
.teacher-shell .page-head p { font-size: 12px; color: #586d62; }
.teacher-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.teacher-heading .page-head { flex: 1; }
.teacher-header-summary { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: #385b3d; padding: 7px 11px; background: #edf4e5; border: 1px solid #c2d2b7; border-radius: 999px; flex-shrink: 0; }
.teacher-header-summary small { font-size: 12px; }
.teacher-header-summary b { font-weight: 750; }
.teacher-journey { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 13px; }
.journey-step { display: flex; align-items: center; text-align: left; gap: 10px; min-height: 62px; border: 1px solid #bac9b5; border-radius: 16px; background: #fffef9; padding: 10px 12px; min-width: 0; position: relative; overflow: hidden; }
.step-number { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #b3c4aa; border-radius: 10px; background: #eff3e7; color: #456040; font-size: 14px; font-weight: 750; flex-shrink: 0; }
.journey-step > span:not(.step-number):not(.step-status) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.journey-step b { font-size: 13px; color: #365242; }
.journey-step small { font-size: 11px; color: #5d7262; }
.step-status { font-size: 10px; margin-left: auto; color: #5a7356; white-space: nowrap; }
.journey-step.is-current { background: #def0d7; border-color: #80a17f; box-shadow: 0 2px 0 #c8d7bd; }
.journey-step.is-current .step-number { background: #afdaa8; border-color: #83a783; }
.journey-step.is-complete .step-number { background: #c9e9ca; border-color: #85aa85; }
.teacher-overview { margin: 0 0 13px; gap: 12px; }
.teacher-stat { min-height: 70px; padding: 13px 15px; gap: 10px; border: 1px solid #afc0a8; border-radius: 17px; box-shadow: 0 2px 0 #dbe3cf; }
.teacher-stat > span:first-child { width: 35px; height: 35px; border: 1px solid #a0b792; background: #dbecc6; border-radius: 11px; transform: none; }
.teacher-stat > span:first-child svg { width: 22px; height: 22px; }
.teacher-stat:nth-child(2) > span:first-child { background: #ffe9a4; }
.teacher-stat:nth-child(3) > span:first-child { background: #e2d5f5; transform: none; }
.teacher-stat > div > span { font-size: 11px; color: #5b715a; margin-bottom: 2px; }
.teacher-stat strong { font-size: 22px; line-height: 1.2; font-weight: 800; }
.teacher-stat strong small { font-size: 12px; }
.teacher-board-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 18px; }
.teacher-stage-stack { min-width: 0; }
.teacher-stage { border: 1px solid #aabd9e; border-radius: 23px; box-shadow: 0 3px 0 #dee6d2; margin-bottom: 18px; }
.teacher-stage-stack > .teacher-stage { padding: 0; }
.teacher-stage-head { padding: 16px 18px; border-bottom: 1px solid #aec9a7; background: #d8edce; gap: 12px; }
.teacher-stage-head .eyebrow { font-size: 10px; margin: 0 0 4px; color: #536d44; }
.teacher-stage-head h2 { font-size: 21px; font-weight: 800; margin: 0; }
.teacher-stage-head p { font-size: 12px; margin: 5px 0 0; }
.journey-step > svg { margin-left: auto; width: 18px; height: 18px; flex-shrink: 0; }
.stat-action { text-align: left; }
.stat-action > svg { margin-left: auto; width: 18px; height: 18px; }
.roster-toolbar > p { font-size: 12px; margin: 0; }
.student-nav-item.is-locked { color: #697570; }
.stage-audience { font-size: 11px; color: #436041; text-align: right; display: flex; align-items: center; gap: 6px; max-width: 132px; }
.stage-audience svg { width: 18px; height: 18px; }
.teacher-stage-head .badge { font-size: 11px; color: #416340; padding: 5px 8px; max-width: 138px; white-space: normal; text-align: center; }
.teacher-stage > .teacher-quick-tools, .teacher-quick-tools { margin: 0; padding: 14px; gap: 12px; }
.teacher-quick-tools .tools-grid, .teacher-quick-tools.tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.teacher-shell .teacher-stage button.tool-panel { min-height: 108px; border: 1px solid #a3b89b; border-radius: 17px; box-shadow: 0 3px 0 #d4dec9; padding: 15px 16px 13px 68px; background: #fffefa; display: flex; flex-direction: column; justify-content: center; position: relative; text-align: left; }
.teacher-shell .teacher-stage button.tool-panel .card-icon { width: 37px; height: 37px; position: absolute; top: 18px; left: 16px; border: 1px solid #8fa083; border-radius: 12px; transform: rotate(-4deg); }
.teacher-shell .teacher-stage button.tool-panel .card-icon svg { width: 22px; height: 22px; }
.teacher-shell .teacher-stage button.tool-panel h3 { font-size: 16px; margin: 1px 0 6px; font-weight: 750; }
.teacher-shell .teacher-stage button.tool-panel p { font-size: 12px; line-height: 1.5; margin: 0; color: #5b6d5c; }
.teacher-shell .teacher-stage button.tool-panel .launch-arrow { top: auto; bottom: 11px; right: 11px; width: 23px; height: 23px; background: #eef3df; border-color: #b2c0a5; }
.teacher-stage #host-live { padding: 13px 18px 16px; background: #fffefa; min-height: 0; border-top: 1px solid #e0e6d7; font-size: 13px; }
.teacher-stage #host-live .panel-title { margin-bottom: 9px; }
.teacher-stage #host-live .panel-title h2, .teacher-stage #host-live h2 { font-size: 18px; }
.teacher-stage #host-live > p { font-size: 13px; margin: 0; line-height: 1.5; }
.teacher-rail { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.teacher-rail .panel + .panel { margin-top: 0; }
.teacher-invite { padding: 17px !important; background: #fff0b0 !important; border: 1px solid #bda877 !important; border-radius: 23px; box-shadow: 0 3px 0 #dfd6b0; }
.teacher-invite .panel-title { gap: 7px; margin: 0 0 12px; }
.teacher-invite .panel-title h2 { font-size: 19px; font-weight: 800; }
.teacher-invite .panel-title .badge { font-size: 10px; padding: 4px 7px; background: #fffefa; }
.teacher-invite .qr-code { width: 158px; height: 158px; padding: 9px; margin: 0 auto 11px; border: 1px solid #a9ad7f; border-radius: 15px; box-shadow: 2px 2px 0 #dacba0; }
.teacher-invite .room-code { font-size: 27px; font-weight: 800; letter-spacing: .13em; margin-bottom: 7px; }
.teacher-invite > small { font-size: 11px; margin-bottom: 9px; color: #6b613f; display: block; }
.teacher-invite > .secondary { min-height: 44px; width: 100%; background: #fffefa; font-size: 13px; border-color: #b4a579; }
.teacher-invite > p:last-child { font-size: 11px; line-height: 1.65; color: #6c603f; margin: 10px 0 0; }
.teacher-roster { padding: 18px; border-radius: 23px; }
.teacher-roster .panel-title { margin-bottom: 14px; }
.teacher-roster h2 { font-size: 20px; font-weight: 800; }
.teacher-roster .panel-title > span { font-size: 12px; color: #4e6a54; }
.roster-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.roster-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.roster-filters button { min-height: 44px; font-size: 12px; border: 1px solid #bccbb6; border-radius: 12px; padding: 9px 12px; background: #fffefa; }
.roster-filters button.active, .roster-filters button[aria-pressed="true"] { background: #d6eac9; border-color: #91ac85; color: #365d36; }
.teacher-shell .student-grid { grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 9px; }
.teacher-shell .student-card { padding: 12px; gap: 8px; border-radius: 15px; background: #f2f7e9; }
.teacher-shell .student-avatar { width: 34px; height: 34px; font-size: 24px; }
.teacher-shell .student-card b { font-size: 14px; }
.teacher-shell .student-card small { font-size: 11px; }
.teacher-shell .student-actions button { min-height: 44px; font-size: 12px; }
.teacher-question-preview { padding: 17px; border: 1px solid #bdacca; border-radius: 23px; box-shadow: 0 3px 0 #e7dfea; background: #f6f0fb; }
.teacher-question-preview .panel-title { margin-bottom: 12px; gap: 6px; align-items: baseline; }
.teacher-question-preview h2 { font-size: 19px; font-weight: 800; }
.teacher-question-preview #all-questions { font-size: 12px; padding: 8px; min-height: 44px; }
.teacher-question-row { padding: 11px 0; border-bottom: 1px solid #e1d6e7; }
.teacher-question-row:last-child { border-bottom: 0; }
.teacher-question-row b { font-size: 13px; }
.teacher-question-row p { font-size: 13px; margin: 5px 0 0; color: #4f5d66; line-height: 1.65; }
.teacher-question-preview .empty { padding: 21px 10px; border-color: #d0c0db; font-size: 12px; color: #5c6770; }
.teacher-question-preview .empty p { color: #5c6770; }
.teacher-live-control { min-height: 37px; border-radius: 13px; margin-bottom: 13px; padding: 8px 13px; font-size: 12px; }
.teacher-live-control:empty { display: none; }
.teacher-note { padding: 13px 5px; gap: 11px; }
.teacher-note img { width: 58px; height: 69px; }
.teacher-note p { font-size: 20px; }

/* Honest, readable launches: who will receive the activity is visible. */
.modal-backdrop { background: #243f5066; backdrop-filter: blur(5px); }
.modal { border: 1.5px solid #81957e; border-radius: 28px; padding: 28px; max-width: 650px; background: #fffefa; box-shadow: 0 7px 0 #223e4733, 0 22px 70px #162a3633; }
.modal h2 { font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.modal .panel-title { align-items: center; }
.modal #close-modal { width: 44px; min-width: 44px; height: 44px; font-size: 28px; background: #eff3e8; border: 1px solid #cbd6c4; }
.modal form { gap: 16px; }
.modal label { font-size: 14px; color: #375347; }
.modal > p, .modal p.muted { font-size: 14px; color: #546773; line-height: 1.65; }
.launch-impact { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #b3c8a8; background: #e7f1dd; border-radius: 16px; padding: 13px 15px; margin: 2px 0 19px; }
.launch-impact > svg { width: 24px; height: 24px; color: #446c3d; flex-shrink: 0; margin-top: 2px; }
.launch-impact strong { font-size: 14px; color: #335732; }
.launch-impact p, .launch-impact small { font-size: 12px; color: #50684e; line-height: 1.6; margin: 3px 0 0; }
.launch-audience { font-weight: 750; color: #274c30; }
.quiz-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.quiz-form-grid > .full-width, .quiz-form-grid > .grid-wide { grid-column: 1 / -1; }
.modal .toolbar { gap: 9px; justify-content: flex-end; }
.modal .toolbar .primary, .modal .toolbar .secondary { min-height: 48px; }

/* Entry keeps the student's first action obvious. */
.entry-shell .topbar { height: 80px; padding-inline: max(28px,calc((100vw - 1160px) / 2)); background: #fffef9; }
.entry-shell .landing { max-width: 1160px; padding: 40px 34px 55px; grid-template-columns: 1.06fr .95fr; gap: 60px; min-height: calc(100dvh - 80px); }
.entry-shell .hero-copy h1 { font-size: clamp(43px,4.8vw,63px); font-weight: 800; line-height: 1.13; letter-spacing: -.065em; margin-bottom: 21px; }
.entry-shell .hero-copy h1 > span { font-family: LeeSeoyun,var(--ui-font); font-weight: 400; font-size: 1.17em; text-decoration-thickness: 7px; }
.entry-shell .hero-copy > p { font-size: 17px; line-height: 1.75; }
.entry-shell .hero-art { min-height: 215px; }
.entry-shell .hero-art > img { width: 245px; max-height: 235px; }
.entry-shell .hero-art::before { width: 240px; height: 210px; background: #dfedcc; }
.entry-shell .join-card { border: 1.5px solid #7b987d; border-radius: 28px; box-shadow: 0 5px 0 #ccdab9; padding: 29px; }
.entry-shell .join-tabs { padding: 5px; border-radius: 17px; background: #edf1e5; margin-bottom: 22px; }
.entry-shell .join-tabs button { min-height: 66px; font-size: 14px; border-radius: 12px; }
.entry-shell .join-tabs button.active { background: #bee7c7; border-color: #8cad8f; box-shadow: 0 2px 0 #a7c3a3; }
.entry-shell .join-tabs button small { font-size: 11px; }
.entry-shell .join-form { gap: 17px; }
.entry-shell .join-form h2 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 3px; }
.entry-shell .join-form .eyebrow { margin-bottom: 1px; }
.entry-shell .join-form label { font-size: 14px; }
.entry-shell .join-form .primary { min-height: 54px; font-size: 16px; }
.entry-shell .join-form > p, .entry-shell .join-card footer { font-size: 12px; line-height: 1.7; }
.entry-shell .notice { font-size: 12px; line-height: 1.7; border-radius: 14px; margin-top: 20px; }

@media (hover: hover) and (pointer: fine) {
  .recent-chip:hover { background: #f3f8eb; transform: translateY(-2px); }
  .student-main #play-catalogue .activity-card:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 7px 0 var(--card-shadow); border-color: #46665c; }
  .student-main #play-catalogue .activity-card:hover .card-icon { transform: rotate(3deg) scale(1.045); }
  .journey-step:hover { border-color: #739771; background: #eef6e5; }
  .teacher-shell .teacher-stage button.tool-panel:hover:not(:disabled) { background: #f2f8e8; box-shadow: 0 5px 0 #d4dec9; transform: translateY(-2px); }
}
@media (min-width: 1500px) {
  .teacher-shell .main-panel { padding-inline: 36px; }
  .teacher-board-grid { grid-template-columns: minmax(0,1fr) 290px; gap: 22px; }
  .teacher-invite .qr-code { width: 178px; height: 178px; }
  .teacher-shell .teacher-stage button.tool-panel { min-height: 124px; }
}
@media (min-width: 1100px) {
  .teacher-heading .page-head .eyebrow { display: none; }
  .teacher-stage-head { padding-block: 11px; }
  .teacher-live-control b { font-size: 16px; }
}
@media (min-width: 700px) {
  .teacher-topbar { position: sticky; top: 0; z-index: 35; }
  .teacher-shell .sidebar { position: sticky; top: 80px; align-self: start; height: calc(100dvh - 80px); min-height: 0; overflow-y: auto; }
}
@media (max-width: 1099px) {
  .teacher-shell .teacher-workspace { grid-template-columns: 180px minmax(0,1fr); }
  .teacher-shell .sidebar { padding-inline: 10px; }
  .teacher-shell .nav-item { font-size: 13px; gap: 8px; padding-inline: 10px; }
  .teacher-shell .main-panel { padding-inline: 20px; }
  .teacher-board-grid { grid-template-columns: minmax(0,1fr) 235px; gap: 15px; }
  .teacher-stat { padding: 12px; gap: 8px; }
  .teacher-stat strong { font-size: 20px; }
  .teacher-stat > span:first-child { width: 31px; height: 31px; }
  .journey-step { padding: 10px; gap: 7px; }
  .step-status { display: none; }
  .teacher-stage-head h2 { font-size: 19px; }
  .teacher-shell .teacher-stage button.tool-panel { padding: 14px 12px 13px; min-height: 124px; }
  .teacher-shell .teacher-stage button.tool-panel .card-icon { position: static; width: 32px; height: 32px; margin-bottom: 8px; }
  .teacher-shell .teacher-stage button.tool-panel h3 { font-size: 15px; }
  .teacher-shell .teacher-stage button.tool-panel p { font-size: 11px; }
  .teacher-invite { padding: 15px !important; }
  .teacher-invite .panel-title h2 { font-size: 18px; }
  .teacher-invite .qr-code { width: 151px; height: 151px; }
}
@media (max-width: 899px) {
  .teacher-board-grid { grid-template-columns: 1fr; }
  .teacher-rail { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .teacher-shell .teacher-stage button.tool-panel { padding-left: 64px; min-height: 106px; }
  .teacher-shell .teacher-stage button.tool-panel .card-icon { position: absolute; left: 15px; top: 17px; }
  .teacher-stat > span:first-child { display: none; }
  .teacher-stat { display: flex; }
  .teacher-invite .qr-code { width: 144px; height: 144px; }
  .teacher-header-summary { display: none; }
}
@media (max-width: 699px) {
  .student-header { min-height: 68px; height: 68px; padding: 9px 19px; gap: 10px; }
  .student-header .brand img { width: 55px; height: 33px; }
  .student-header .brand > span { display: none; }
  .student-main { padding: 18px 20px 30px; }
  .student-discovery { min-height: 180px; padding: 22px 24px; gap: 15px; margin-bottom: 23px; border-radius: 27px; }
  .discovery-copy h1 { font-size: 34px; }
  .discovery-copy > p { font-size: 14px; }
  .discovery-art { flex-basis: 118px; width: 118px; height: 123px; }
  .discovery-art img { width: 116px; max-height: 126px; }
  .discovery-badge { font-size: 16px; top: 0; right: -8px; padding: 5px 9px; }
  .recent-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .student-main #play-catalogue > .activity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .student-main #play-catalogue .activity-card { min-height: 205px; padding: 18px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] { min-height: 168px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] .card-icon { margin-bottom: 9px; width: 46px; height: 46px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] h3 { font-size: 24px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] p { margin-bottom: 7px; }
  .teacher-topbar { min-height: 74px; height: auto; padding: 13px 20px; flex-wrap: wrap; gap: 10px; }
  .teacher-class-status { display: none; }
  .teacher-shell .teacher-workspace { grid-template-columns: 1fr; }
  .teacher-shell .sidebar { flex-direction: row; border-bottom: 1px solid #d5decf; padding: 7px 14px; }
  .teacher-shell .sidebar .session-strip, .teacher-shell .side-bottom { display: none; }
  .teacher-shell .sidebar nav { display: flex; gap: 3px; }
  .teacher-shell .nav-item { width: auto; min-height: 46px; white-space: nowrap; }
  .teacher-shell .main-panel { padding: 22px 20px 34px; }
  .teacher-shell .page-head h1 { font-size: 25px; }
  .teacher-stat { min-height: 71px; border-radius: 15px; }
  .teacher-journey { gap: 7px; }
  .journey-step { min-height: 69px; align-items: flex-start; padding: 10px; gap: 6px; }
  .step-number { width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }
  .journey-step b { font-size: 12px; }
  .journey-step small { font-size: 10px; }
  .entry-shell .topbar { height: 72px; padding-inline: 22px; }
  .entry-shell .landing { display: flex; flex-direction: column; gap: 22px; padding: 26px 24px 44px; min-height: 0; }
  .entry-shell .hero-copy { align-self: flex-start; padding: 0; }
  .entry-shell .hero-copy h1 { font-size: 43px; margin-bottom: 15px; }
  .entry-shell .hero-copy > p { font-size: 15px; margin-bottom: 0; }
  .entry-shell .hero-art { display: none; }
  .entry-shell .join-card { width: 100%; max-width: 500px; margin: 0; padding: 25px; }
}
@media (max-width: 540px) {
  .student-shell { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .student-header { min-height: 66px; height: 66px; padding: 9px 16px; gap: 10px; }
  .student-header .brand { display: flex; }
  .student-header .brand img { width: 49px; height: 31px; }
  .student-header .student-identity { flex: 1; gap: 8px; justify-content: flex-end; margin: 0; padding: 0; }
  .student-identity b { max-width: 103px; font-size: 14px; }
  .student-identity small { max-width: 103px; font-size: 11px; }
  .student-header .student-avatar { width: 33px; height: 33px; }
  .student-header > .connection-pill { font-size: 10px; padding: 4px 7px; }
  .student-header #fullscreen { border: 0; padding: 9px; }
  .student-main { padding: 16px 16px 29px; }
  .student-status-banner { min-height: 44px; padding: 9px 12px; border-radius: 13px; font-size: 12px; margin-bottom: 15px; gap: 8px; }
  .student-session-chip { font-size: 10px; padding: 4px 7px; }
  .student-discovery { min-height: 160px; padding: 18px 17px; border-radius: 25px; gap: 8px; box-shadow: 0 4px 0 #cfd7b4; margin-bottom: 23px; }
  .discovery-copy .eyebrow { font-size: 10px; margin-bottom: 7px; letter-spacing: .045em; }
  .discovery-copy h1 { font-size: 29px; line-height: 1.15; letter-spacing: -.055em; margin-bottom: 8px; }
  .discovery-copy h1 .handword { font-size: 1.16em; }
  .discovery-copy > p { font-size: 12px; line-height: 1.5; }
  .discovery-note { font-size: 11px; margin-top: 6px; }
  .discovery-art { width: 91px; flex-basis: 91px; height: 118px; align-self: center; }
  .discovery-art img { width: 90px; max-height: 107px; }
  .discovery-badge { font-size: 13px; top: -1px; right: -5px; padding: 4px 6px; border-radius: 12px; transform: rotate(4deg); }
  .student-recent { margin-bottom: 24px; }
  .student-recent > header, .student-recent .section-heading, .browser-heading { gap: 8px; margin-bottom: 11px; }
  .student-recent h2, .activity-browser h2 { font-size: 21px; }
  .student-recent header p, .student-recent header small, .student-recent .section-heading p, #catalogue-count { font-size: 11px; }
  .recent-list { gap: 9px; }
  .recent-chip { min-height: 69px; padding: 11px 10px; gap: 8px; border-radius: 17px; }
  .recent-chip .recent-icon { width: 33px; height: 37px; border-radius: 11px; }
  .recent-chip .recent-icon svg { width: 21px; height: 21px; }
  .recent-copy b { font-size: 13px; }
  .recent-copy small { font-size: 10px; }
  .recent-chip > svg { width: 16px; }
  .activity-search { padding: 0 12px; gap: 9px; min-height: 51px; border-radius: 15px; }
  .activity-search input#activity-search { font-size: 14px; min-height: 49px; }
  .activity-search-wrap { position: relative; margin-bottom: 12px; }
  .play-tabs { gap: 7px; margin-bottom: 12px; padding-bottom: 7px; }
  .play-tabs button { min-height: 48px; padding: 11px 15px; font-size: 13px; }
  .student-main #play-catalogue > .activity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 12px; }
  .student-main #play-catalogue .activity-card { min-height: 188px; padding: 17px 14px 13px; border-radius: 23px; box-shadow: 0 4px 0 var(--card-shadow); }
  .student-main #play-catalogue .activity-card .card-icon { width: 41px; height: 41px; margin-bottom: 18px; border-radius: 13px; }
  .student-main #play-catalogue .activity-card .card-icon svg { width: 24px; height: 24px; }
  .activity-kind { top: 19px; right: 11px; font-size: 10px; padding: 3px 6px; }
  .student-main #play-catalogue .activity-card h3 { font-size: 19px; margin-bottom: 5px; }
  .student-main #play-catalogue .activity-card p { font-size: 12px; line-height: 1.55; margin-bottom: 11px; }
  .student-main #play-catalogue .activity-card .card-meta { font-size: 11px; }
  .student-main #play-catalogue .activity-card .card-meta > svg { width: 25px; height: 25px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] { min-height: 150px; padding: 18px 18px 14px 83px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] .card-icon { width: 46px; height: 46px; margin: 0; position: absolute; left: 18px; top: 21px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] h3 { font-size: 23px; padding-top: 9px; margin-bottom: 7px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] p { font-size: 13px; margin-bottom: 11px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] .activity-kind { top: 16px; right: 16px; }
  .student-main #play-catalogue .activity-card[data-open="drawing"] .card-meta { margin-left: -65px; width: calc(100% + 65px); }
  .student-main #play-catalogue > .activity-grid.is-filtered .activity-card[data-open="drawing"] { grid-column: 1 / -1; }
  .student-main #play-catalogue .activity-card[data-open="calculator"]:last-child { min-height: 96px; column-gap: 13px; grid-template-columns: 41px minmax(0,1fr) 25px; padding: 15px 16px; }
  .student-main #play-catalogue .activity-card[data-open="calculator"]:last-child h3 { font-size: 18px; }
  .student-main #play-catalogue .activity-card[data-open="calculator"]:last-child p { font-size: 12px; }
  .student-main #play-catalogue .activity-card[data-open="calculator"]:last-child .card-meta { min-width: 0; }
  .student-main #play-catalogue .activity-card[data-open="calculator"]:last-child .card-meta > span { display: none; }
  .student-bottom-nav { width: calc(100% - 28px); bottom: calc(11px + env(safe-area-inset-bottom)); border-radius: 23px; padding: 6px; gap: 5px; }
  .student-nav-item { min-height: 60px; padding: 7px 8px; border-radius: 17px; font-size: 12px; gap: 5px; }
  .student-nav-item > svg { width: 23px; height: 23px; }
  .student-main .page-head h1 { font-size: 29px; }
  .student-main .page-head p { font-size: 14px; }
  .student-main .panel h2, .student-main .tool-panel h2 { font-size: 24px; }
  .teacher-topbar { padding: 13px 16px; gap: 8px; }
  .teacher-topbar .brand img { width: 51px; }
  .teacher-topbar .brand > span { font-size: 22px; }
  .teacher-top-actions button { font-size: 12px; padding-inline: 10px; }
  .teacher-top-actions #fullscreen { display: none; }
  .teacher-shell .main-panel { padding: 20px 16px 30px; }
  .teacher-shell .page-head { gap: 10px; }
  .teacher-shell .page-head h1 { font-size: 24px; }
  .teacher-shell .page-head p { font-size: 12px; }
  .teacher-overview { gap: 8px; }
  .teacher-stat { padding: 12px 10px; }
  .teacher-stat strong { font-size: 18px; }
  .teacher-stat strong small { font-size: 10px; }
  .teacher-stat > div > span { font-size: 10px; }
  .teacher-journey { gap: 7px; }
  .journey-step { min-height: 64px; flex-direction: column; gap: 6px; }
  .journey-step small { display: none; }
  .journey-step > span:not(.step-number):not(.step-status) { gap: 0; }
  .teacher-stage-head { padding: 16px; gap: 8px; }
  .teacher-stage-head h2 { font-size: 18px; }
  .teacher-stage-head .badge { font-size: 10px; max-width: 102px; }
  .stage-audience { font-size: 10px; max-width: 96px; }
  .teacher-stage > .teacher-quick-tools { padding: 12px; gap: 10px; }
  .teacher-shell .teacher-stage button.tool-panel { min-height: 125px; padding: 14px 13px; }
  .teacher-shell .teacher-stage button.tool-panel .card-icon { position: static; margin-bottom: 9px; }
  .teacher-shell .teacher-stage button.tool-panel p { font-size: 11px; }
  .teacher-rail { grid-template-columns: 1fr; }
  .teacher-roster { padding: 17px; }
  .teacher-roster h2 { font-size: 18px; }
  .teacher-shell .student-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .modal-backdrop { padding: 14px; }
  .modal { padding: 22px 20px; max-height: 92dvh; border-radius: 24px; }
  .modal h2 { font-size: 25px; }
  .modal > p, .modal p.muted { font-size: 14px; }
  .quiz-form-grid { grid-template-columns: 1fr; gap: 13px; }
  .launch-impact { padding: 12px; }
  .modal .toolbar { justify-content: stretch; }
  .modal .toolbar .primary, .modal .toolbar .secondary { flex: 1; }
  .entry-shell .topbar { padding: 0 19px; }
  .entry-shell .topbar > .pill { display: none; }
  .entry-shell .landing { padding: 24px 19px 38px; gap: 21px; }
  .entry-shell .hero-copy h1 { font-size: 39px; line-height: 1.12; }
  .entry-shell .hero-copy > p { font-size: 15px; }
  .entry-shell .join-card { padding: 24px 21px; border-radius: 25px; }
  .entry-shell .join-tabs button { font-size: 13px; min-height: 59px; }
  .entry-shell .join-form h2 { font-size: 25px; }
  .entry-shell .join-form .primary { min-height: 54px; }
}
@media (max-width: 360px) {
  .student-main { padding-inline: 13px; }
  .student-header { padding-inline: 13px; gap: 6px; }
  .student-header .brand img { width: 44px; }
  .student-identity b, .student-identity small { max-width: 117px; }
  .student-discovery { padding-inline: 15px; gap: 6px; }
  .discovery-copy h1 { font-size: 27px; }
  .discovery-art { flex-basis: 77px; width: 77px; }
  .discovery-art img { width: 77px; }
  .discovery-badge { font-size: 12px; right: -6px; }
  .student-main #play-catalogue .activity-card { padding-inline: 12px; }
  .activity-kind { right: 8px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .student-main #play-catalogue .activity-card,
  .student-main #play-catalogue .activity-card:hover,
  .student-main #play-catalogue .activity-card:active,
  .student-main #play-catalogue .activity-card .card-icon,
  .recent-chip, .recent-chip:hover,
  .teacher-shell .teacher-stage button.tool-panel,
  .teacher-shell .teacher-stage button.tool-panel:hover,
  .teacher-shell .teacher-stage button.tool-panel:active,
  .discovery-badge { transform: none !important; }
}
/* A running lesson takes priority over launch controls on the dashboard. */
body[data-role="host"] .main-panel { display: flex; flex-direction: column; }
body[data-role="host"] #teacher-live-control { order: 0; }
body[data-role="host"] #content { order: 2; }
body[data-role="host"] #master-media { order: 1; }
body[data-role="host"][data-teacher-view="home"] .has-live-video #master-media,
body[data-role="host"][data-teacher-view="activities"] .has-live-video #master-media { order: 1; margin: 12px 0 20px; }
body[data-role="host"][data-teacher-view="home"] .has-live-video #content,
body[data-role="host"][data-teacher-view="activities"] .has-live-video #content { order: 2; }
body[data-role="host"][data-lesson-active="true"][data-teacher-view="home"] .teacher-stage .teacher-quick-tools { display: none; }
body[data-role="host"][data-lesson-kind="video"][data-teacher-view="home"] .teacher-stage-stack > .teacher-stage { display: none; }
.teacher-activity-clock { margin-left: auto; font: 750 22px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.live-media-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.live-media-heading h2 { display: flex; align-items: center; gap: 10px; font: 750 20px/1.4 system-ui, sans-serif; margin: 0; }
.live-media-heading .badge { white-space: nowrap; }
body[data-role="host"] #master-media .video-wrap { max-height: 380px; }
@media (max-width: 650px) { .live-media-heading { flex-wrap: wrap; } .teacher-activity-clock { font-size: 18px; } }

/* Keep the existing player in the DOM while opening questions or the roster. */
@media (min-width: 1100px) {
 body[data-role="host"][data-teacher-view="messages"] .main-panel.has-live-video,
 body[data-role="host"][data-teacher-view="students"] .main-panel.has-live-video,
 body[data-role="host"][data-teacher-view="activities"] .main-panel.has-live-video { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.85fr); gap:20px; align-content:start; align-items:start; }
 body[data-role="host"] .main-panel.has-live-video #teacher-live-control { grid-column:1/-1; }
 body[data-role="host"] .main-panel.has-live-video #master-media { min-width:0; }
 body[data-role="host"] .main-panel.has-live-video #content { min-width:0; }
 body[data-role="host"][data-teacher-view="messages"] #master-media,
 body[data-role="host"][data-teacher-view="students"] #master-media,
 body[data-role="host"][data-teacher-view="activities"] #master-media { padding:20px; margin:0; }
 body[data-role="host"] .has-live-video .chat-compose { flex-wrap:wrap; }
 body[data-role="host"] .has-live-video .chat-compose input { min-width:140px; }
 body[data-role="host"] .has-live-video .chat-compose select { max-width:100%; }
 body[data-role="host"][data-teacher-view="activities"] .has-live-video .tool-panel { min-height:100px; }
}

/* Keep press feedback inside each control; the brief star burst stays outside. */
.nav-item, .student-nav-item, .activity-card, .recent-chip, .tool-panel,
.journey-step, .stat-action, .play-tabs button, .calc-key,
.primary, .secondary, .ghost, .danger { overflow: hidden; }
