/* ===== 密铺课堂 · 阳光积木课堂 UI =====
   小学数学课堂大屏专用：暖奶油底色 + 积木糖果色 + 大圆角 + 大字号 */
:root{
  --paper:#FFF7E6;
  --paper-soft:#FFFCF3;
  --ink:#4A3B2A;
  --muted:#9A8871;
  --line:#F2E3C4;
  --white:#fff;
  /* 积木色 */
  --blue:#3E9BE6;    --blue-dark:#2B7CC0;   --blue-soft:#E3F1FD;
  --orange:#FF7A59;  --orange-dark:#E85C3A; --orange-soft:#FFEBE3;
  --yellow:#FFC93C;  --yellow-dark:#E0A812; --yellow-soft:#FFF3D1;
  --green:#45B26B;   --green-dark:#339154;  --green-soft:#E4F5E9;
  --purple:#9B72CF;  --purple-soft:#F1E9FB;
  --red:#E8564A;     --red-soft:#FFECEA;
  --radius:16px;
  --shadow-toy:0 4px 0 rgba(74,59,42,.12);
}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:18px;line-height:1.5}
button,input,select{font:inherit}
button,a,input,select{touch-action:manipulation}

/* --- 积木按钮：厚实、大圆角、带底部厚度 --- */
button,.button{
  min-height:54px;border:2px solid var(--line);border-radius:var(--radius);
  padding:12px 24px;background:#fff;color:var(--ink);cursor:pointer;
  font-weight:700;font-size:18px;
  text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  box-shadow:var(--shadow-toy);
  transition:transform .12s ease,box-shadow .12s ease,background .15s ease;
}
button:hover,.button:hover{background:var(--yellow-soft);border-color:var(--yellow-dark);transform:translateY(-1px)}
button:active,.button:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(74,59,42,.12)}
button.primary,.button.primary{background:var(--blue);border-color:var(--blue-dark);color:#fff;box-shadow:0 4px 0 var(--blue-dark)}
button.primary:hover{background:#55A9EA;border-color:var(--blue-dark)}
button.primary:active{box-shadow:0 1px 0 var(--blue-dark)}
button.earth{background:var(--orange);color:#fff;border-color:var(--orange-dark);box-shadow:0 4px 0 var(--orange-dark)}
button.earth:hover{background:#FF8D70;border-color:var(--orange-dark)}
button.earth:active{box-shadow:0 1px 0 var(--orange-dark)}
button.danger{color:var(--red);background:var(--red-soft);border-color:#F5B8B2}
button:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:var(--shadow-toy)}
button.quiet,.button.quiet{background:transparent;border-color:transparent;box-shadow:none}
button.quiet:hover,.button.quiet:hover{background:var(--yellow-soft)}

input,select,textarea{
  min-height:54px;border:2px solid #E7D3AC;background:#fff;border-radius:14px;
  padding:12px 16px;color:var(--ink);width:100%;font-size:18px;
}
input:focus,select:focus,textarea:focus{outline:4px solid #BFE0F8;outline-offset:2px;border-color:var(--blue)}
button:focus-visible,a:focus-visible{outline:4px solid var(--yellow);outline-offset:3px}

label{display:block;font-size:16px;font-weight:700;margin:0 0 8px}
h1,h2,h3,p{margin-top:0}
h1{font-size:40px;line-height:1.25;font-weight:800}
h2{font-size:27px;font-weight:800}
h3{font-size:20px}
small,.small{font-size:15px}
.muted{color:var(--muted)}
.eyebrow{font-size:15px;font-weight:800;color:var(--orange-dark);margin-bottom:14px;letter-spacing:0}

.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.spread{justify-content:space-between}
.stack{display:grid;gap:20px}
.field{display:grid;gap:0}
.hidden,[hidden]{display:none!important}

/* --- 品牌 --- */
.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:800;text-decoration:none;color:var(--ink);white-space:nowrap}
.brand svg{width:44px;height:44px}

/* --- 徽章 --- */
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 16px;font-size:15px;border-radius:999px;
  background:var(--green-soft);color:var(--green-dark);font-weight:700;border:2px solid transparent}
.pill.orange{background:var(--yellow-soft);color:#9A7200}
.dot{width:9px;height:9px;border-radius:50%;background:currentColor}

/* --- 顶栏 --- */
.topbar{min-height:88px;border-bottom:3px solid var(--line);padding:16px 40px;background:var(--paper-soft);
  display:flex;align-items:center;justify-content:space-between;gap:16px}
.topbar .subtitle{font-size:15px;color:var(--muted);font-weight:400}

.shell{max-width:1600px;margin:auto;padding:36px 40px}

/* --- 提示条 --- */
.notice{padding:14px 18px;border:2px solid #EDD9A8;background:var(--yellow-soft);border-radius:14px;color:#8A6A00;font-weight:600}
.notice:empty{display:none}
.error{color:var(--red);background:var(--red-soft);border-color:#F2B3AD}
.success{background:var(--green-soft);color:var(--green-dark);border-color:#B7E2C5}

#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);
  background:var(--ink);color:#fff;padding:16px 28px;border-radius:999px;z-index:100;
  box-shadow:0 10px 30px rgba(74,59,42,.25);max-width:90vw;font-size:17px;font-weight:600}
#toast:empty{display:none}

/* --- 弹窗 --- */
dialog{border:3px solid var(--line);border-radius:22px;color:var(--ink);padding:32px;
  background:var(--paper-soft);width:min(560px,94vw);max-height:92dvh;overflow:auto;
  box-shadow:0 20px 60px rgba(74,59,42,.2)}
dialog::backdrop{background:rgba(74,59,42,.4)}
dialog h2{margin-bottom:8px}
dialog form{display:grid;gap:20px}
.divider{height:2px;background:var(--line);margin:26px 0;border-radius:2px}

/* --- 激活首页 --- */
.login-wrap{min-height:100dvh;display:flex;flex-direction:column}
.login-main{max-width:1376px;width:100%;margin:auto;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:90px;padding:60px 70px}
.login-story h1{font-size:64px;line-height:1.15;margin:24px 0}
.login-story h1 em{font-style:normal;color:var(--blue)}
.login-story p{font-size:20px;max-width:440px;color:var(--muted);line-height:1.8}
.geometry{width:360px;height:180px;margin:30px 0 24px;overflow:visible;display:block;border-radius:20px}
.login-card{background:#fff;padding:44px;border:3px solid var(--line);border-top:8px solid var(--yellow);
  border-radius:22px;box-shadow:0 14px 44px rgba(74,59,42,.1)}
.login-card h2{font-size:30px;margin-bottom:8px}
.login-card form{margin-top:32px}
.code-input{font-size:26px;min-height:66px;background:var(--paper-soft);font-weight:700;text-align:center;letter-spacing:0}
.wide{width:100%}
.login-foot{padding:24px 40px;display:flex;justify-content:space-between;font-size:14px;color:var(--muted);gap:20px}
.login-foot a{color:var(--muted)}

/* --- 身份选择 --- */
.role-main{max-width:1040px;margin:auto;padding:56px 32px}
.role-heading{text-align:center;margin:0 0 44px}
.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.role-card{border:3px solid var(--line);border-radius:22px;padding:36px;background:#fff;
  display:flex;align-items:flex-start;flex-direction:column;min-height:330px;
  box-shadow:var(--shadow-toy);transition:transform .15s ease,box-shadow .15s ease}
.role-card:hover{transform:translateY(-3px);box-shadow:0 8px 0 rgba(74,59,42,.1)}
.role-card.teacher{background:var(--blue-soft);border-color:#BCDDF7}
.role-card:not(.teacher){background:var(--yellow-soft);border-color:#F2DFA6}
.role-card h2{font-size:34px;margin-top:26px}
.role-card p{color:var(--muted);min-height:54px;font-size:17px}
.role-card button{margin-top:auto;width:100%}
.role-icon{font-size:36px;width:72px;height:72px;display:grid;place-items:center;
  border:3px solid rgba(74,59,42,.1);border-radius:20px;background:#fff}

/* --- 教师作品墙 --- */
.toolbar{margin:28px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.tabs{display:flex;gap:8px;padding:6px;background:#F5EAD0;border-radius:999px}
.tabs button{border:0;background:transparent;min-height:48px;padding:10px 24px;border-radius:999px;box-shadow:none}
.tabs button.active{background:#fff;box-shadow:0 2px 0 rgba(74,59,42,.12);color:var(--blue-dark)}
.stats{display:flex;gap:38px;align-items:center}
.stat{display:flex;align-items:baseline;gap:10px}
.stat b{font-size:38px;line-height:1.2;font-weight:800;color:var(--blue-dark)}
.stat span{font-size:15px;color:var(--muted);font-weight:600}
.lesson-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.lesson-heading h1{margin:6px 0 14px}

.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.work-card{position:relative;background:#fff;border:3px solid var(--line);border-radius:18px;overflow:hidden;min-width:0;
  transition:transform .12s ease,border-color .15s ease}
.work-card:hover{transform:translateY(-2px)}
.work-card.selected{border:3px solid var(--yellow);box-shadow:0 0 0 4px var(--yellow-soft),var(--shadow-toy)}
.work-card .preview{position:relative;width:100%;height:190px;display:flex;align-items:center;justify-content:center;
  background:#fff;border:0;border-bottom:3px solid var(--line);border-radius:0;padding:0;box-shadow:none;min-height:0}
.work-card .preview:hover{transform:none;background:#fff}
.work-card img{width:100%;height:100%;object-fit:contain;padding:10px}
.work-card .placeholder{color:#B6A789;display:grid;text-align:center;gap:10px;font-size:15px;font-weight:400}
.placeholder .seat-number{font-size:42px;color:#EBDCBB;font-weight:800}
.work-card footer{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.select-work{min-height:44px;padding:8px 14px;font-size:15px;border-radius:12px}
.work-meta{font-size:13px;color:var(--muted);margin-top:3px}
.empty{border:3px dashed #E3CE9E;background:var(--paper-soft);text-align:center;padding:68px 24px;border-radius:22px;margin:38px 0}
.empty h2{font-size:30px}
.empty p{color:var(--muted)}
.selectionbar{position:sticky;bottom:20px;margin:26px auto 0;width:fit-content;max-width:100%;padding:14px 20px;
  border:3px solid var(--yellow-dark);border-radius:999px;background:var(--yellow-soft);
  box-shadow:0 8px 28px rgba(74,59,42,.18);z-index:5}
.board-pager{margin-top:22px}
.board-pager button{min-width:110px}

/* --- 实验台（iframe 容器） --- */
.studio{height:calc(100dvh - var(--topbar-height,88px));display:flex;flex-direction:column;position:relative}
.studio.full{height:100dvh}
.studio-bar{padding:14px 28px;background:var(--paper-soft);border-bottom:3px solid var(--line);min-height:78px}
.studio iframe{border:0;flex:1;width:100%;min-height:0;background:#fff}
/* 学生端：提交按钮浮动在画布右下角 */
.floating-submit{position:absolute;right:28px;bottom:28px;z-index:30;min-height:68px;padding:16px 36px;
  font-size:22px;border-radius:999px;box-shadow:0 6px 0 var(--orange-dark),0 14px 28px rgba(74,59,42,.25)}
.floating-submit:active{transform:translateY(3px);box-shadow:0 2px 0 var(--orange-dark)}
.floating-submit:disabled{box-shadow:0 6px 0 rgba(74,59,42,.15)}

/* --- 学生学号选择 --- */
.student-wait{max-width:960px;margin:44px auto;padding:24px 32px}
.seat-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:12px;margin:26px 0}
.seat-grid button{aspect-ratio:1;min-height:56px;padding:6px;font-size:24px;font-weight:800;border-radius:16px}
.seat-grid.labeled{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
.seat-grid.labeled button{aspect-ratio:auto;min-height:70px;font-size:17px;overflow-wrap:anywhere;line-height:1.25}
.placeholder .seat-number.participant-name{display:block;max-width:100%;font-size:23px;line-height:1.25;overflow-wrap:anywhere}
.identity-modes{display:flex;border:0;padding:0;margin:0;gap:6px;flex-wrap:wrap}
.identity-modes legend{font-weight:700;margin-bottom:8px}
.identity-modes label{margin:0;padding:8px 12px;border:2px solid var(--line);border-radius:8px;cursor:pointer;font-size:15px}
.identity-modes label:has(input:checked){border-color:var(--blue);background:#e4f3ff}
.identity-modes input{width:auto;min-height:0;margin:0 5px 0 0;padding:0;accent-color:var(--blue)}
#participantLabels{resize:vertical;min-height:120px;line-height:1.5;font-size:16px}
.seat-grid button:hover{background:var(--yellow-soft)}
.seat-grid button.chosen{background:var(--green);border-color:var(--green-dark);color:#fff;box-shadow:0 4px 0 var(--green-dark)}
.seat-grid button:disabled{background:#EFE6D2;border-color:#E3D5B8;color:#B6A789;box-shadow:none}
.seat-legend{font-size:15px;color:var(--muted)}

/* --- 对比观察室 --- */
.compare-dialog{width:96vw;height:94dvh;max-width:none;padding:26px}
.compare-grid{height:calc(100% - 110px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.compare-grid.single{grid-template-columns:1fr}
.compare-work{min-height:0;display:flex;flex-direction:column;border:3px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}
.compare-work img{width:100%;min-height:0;flex:1;object-fit:contain}
.compare-work canvas{display:block;width:100%;height:0;flex:1;min-height:0}
.compare-work footer{padding:14px 22px;background:var(--paper-soft);display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:3px solid var(--line)}
.compare-grid[data-count="3"],.compare-grid[data-count="4"]{grid-template-rows:repeat(2,minmax(0,1fr))}
.compare-dialog[open]{display:flex;flex-direction:column;gap:10px}
.compare-heading{flex:none}
.compare-heading h2{margin:0}
.compare-dialog .compare-grid{height:auto;flex:1;min-height:0}
.compare-stage{position:relative;min-height:0;flex:1;background:#fff}
.compare-work .compare-stage > img,.compare-work .compare-stage > canvas[data-vector]{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.compare-work .ink-layer{position:absolute;inset:0;width:100%;height:100%;min-height:0;z-index:2;touch-action:none;pointer-events:none}
.compare-grid.annotating .ink-layer{pointer-events:auto;cursor:crosshair}
.compare-work.active-note{border-color:var(--blue-dark)}
.ink-toolbar{flex:none;gap:8px;padding:4px 0 8px;border-bottom:2px solid var(--line)}
.ink-toolbar button{min-height:38px;padding:5px 12px;font-size:14px;box-shadow:none}
.ink-modes{gap:3px;padding:3px;background:var(--yellow-soft);border-radius:8px}
.ink-modes button{border:0;background:transparent}
.ink-modes button.active{background:#fff;color:var(--blue-dark)}
.ink-colors{gap:5px}
.ink-colors button{width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;background:var(--swatch);border:3px solid #fff;outline:1px solid var(--line)}
.ink-colors button.active{outline:3px solid var(--ink)}
.ink-width{display:flex;align-items:center;gap:6px;margin:0;font-size:14px;white-space:nowrap}
.ink-width input{width:90px;min-height:24px;padding:0;accent-color:var(--blue)}

/* --- 超管后台 --- */
.admin-grid{display:grid;grid-template-columns:360px 1fr;gap:36px}
.panel{background:#fff;padding:28px;border:3px solid var(--line);border-radius:20px}
.tenant-row{padding:24px 0;border-bottom:3px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}
.tenant-row:first-child{padding-top:0}
.tenant-row h3{margin:0 0 8px}
.tenant-row p{margin:0}
.tenant-row .row{justify-content:flex-end}
.tenant-row button{font-size:15px;padding:10px 16px;min-height:46px}
.result-code{font-family:ui-monospace,monospace;font-size:26px;word-break:break-all;background:var(--yellow-soft);
  padding:20px;user-select:text;border-radius:14px;border:2px dashed var(--yellow-dark);font-weight:700;text-align:center}
.tenant-details{min-width:0}
.tenant-code{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:14px}
.tenant-code span{color:var(--muted);min-width:48px}
.tenant-code code{font-size:15px;font-weight:700;overflow-wrap:anywhere}
.tenant-code .button{min-height:32px;padding:3px 8px;font-size:13px}
.tenant-code .copy-address{min-height:32px;padding:3px 8px;font-size:13px;color:var(--blue-dark)}
.share-dialog{width:min(660px,94vw)}
.admin-qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:20px 0}
.admin-qr-grid h3{font-size:19px;margin-bottom:12px}
.admin-qr-grid img{display:block;width:180px;height:180px;max-width:100%;object-fit:contain;background:#fff}
.admin-qr-grid a{display:block;margin-top:12px;font-size:13px;overflow-wrap:anywhere}
@media(max-width:560px){.admin-qr-grid{grid-template-columns:1fr;gap:18px}.admin-qr-grid>div{display:grid;grid-template-columns:110px minmax(0,1fr);column-gap:16px;align-items:start}.admin-qr-grid h3{grid-column:1/-1}.admin-qr-grid img{width:110px;height:110px}.admin-qr-grid a{margin-top:0}}
.shape-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.shape-options label{display:flex;align-items:center;gap:10px;margin:0;padding:8px 4px;font-size:15px;cursor:pointer}
.shape-options input{width:20px;height:20px;min-height:20px;padding:0;flex:none;accent-color:var(--blue)}
.join-dialog{width:min(600px,94vw)}
.join-qr{display:block;width:220px;height:220px;object-fit:contain;margin:8px auto 20px;background:#fff}

/* --- 连接状态 --- */
.connection{font-size:14px;white-space:nowrap;color:var(--green-dark);font-weight:700}
.connection.offline{color:var(--orange-dark)}
.instruction{font-size:15px;color:var(--muted);margin:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body:fullscreen{background:var(--paper)}

/* ===== 大屏（≥1700px，教室一体机）整体加大 ===== */
@media(min-width:1700px){
  body{font-size:22px}
  button,.button{min-height:62px;font-size:21px;padding:14px 30px}
  input,select{min-height:60px;font-size:21px}
  h1{font-size:48px}h2{font-size:32px}h3{font-size:24px}
  small,.small{font-size:17px}
  .eyebrow{font-size:17px}
  .brand{font-size:26px}.brand svg{width:50px;height:50px}
  .shell{max-width:1900px;padding:44px 52px}
  .topbar{min-height:96px}
  .studio{height:calc(100dvh - var(--topbar-height,96px))}
  .board{grid-template-columns:repeat(5,minmax(0,1fr))}
  .work-card .preview{height:220px}
  .stat b{font-size:46px}.stat span{font-size:17px}
  .seat-grid button{font-size:28px}
  .floating-submit{min-height:76px;font-size:25px;padding:18px 44px;right:34px;bottom:34px}
  .login-story h1{font-size:76px}
  .role-card h2{font-size:40px}
}

@media(max-width:1100px){
  .login-main{padding:40px;gap:40px}
  .login-story h1{font-size:50px}
  .board{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-grid{grid-template-columns:320px 1fr}
  .stats{gap:20px}
  .stat{flex-direction:column;align-items:flex-start;gap:0}
  .shell{padding:28px}
  .topbar{padding:14px 24px}
}

@media(max-width:720px){
  h1{font-size:30px}
  .topbar{padding:12px 16px;min-height:80px;flex-wrap:wrap}
  .brand{font-size:19px}
  .topbar .subtitle{display:none}
  .topbar button,.topbar .button{font-size:15px;padding:10px 14px;min-height:48px}
  .login-main{display:block;padding:28px 20px}
  .login-story{display:none}
  .login-card{padding:30px}
  .login-foot{padding:18px 20px}
  .role-main{padding:32px 20px}
  .role-grid{grid-template-columns:1fr}
  .role-card{min-height:230px;padding:26px}
  .role-card h2{margin:16px 0 8px;font-size:28px}
  .role-card p{min-height:0;font-size:16px}
  .role-icon{display:none}
  .role-heading{margin-bottom:26px}
  .shell{padding:24px 16px}
  .lesson-heading{flex-direction:column}
  .stats{gap:28px}
  .stat b{font-size:32px}
  .board{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .work-card .preview{height:150px}
  .work-card footer{padding:12px;font-size:15px}
  .work-meta{font-size:12px}
  .toolbar{margin:20px 0}
  .studio-bar{padding:12px 14px;font-size:15px;gap:8px}
  .studio-bar button{font-size:15px;padding:10px 14px}
  .studio{height:calc(100dvh - 80px)}
  .seat-grid{grid-template-columns:repeat(5,1fr)}
  .student-wait{margin:16px auto;padding:18px}
  .admin-grid{grid-template-columns:1fr}
  .tenant-row{align-items:flex-start;flex-direction:column}
  .compare-grid{gap:10px}
  .compare-work footer{font-size:14px;padding:10px;flex-wrap:wrap}
  .compare-work button{font-size:13px;padding:6px 10px;min-height:44px}
  .compare-dialog{padding:18px}
  .compare-dialog .compare-grid{display:flex;flex-direction:column;overflow:auto}
  .compare-work{flex:none;height:320px}
  .ink-toolbar{gap:5px}
  .ink-toolbar button{font-size:12px;padding:4px 7px;min-height:34px}
  .ink-colors button{width:28px;height:28px;min-height:28px;padding:0}
  .ink-width input{width:70px}
  .connection{font-size:13px}
}

/* Teacher wall: keep classroom controls visible without a separate site header. */
.teacher-page .shell{max-width:1900px;padding:14px 32px 32px}
.teacher-page .lesson-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:2px 22px;align-items:center}
.teacher-page .lesson-overview{grid-row:1 / 3;min-width:0}
.teacher-page .lesson-overview h2{font-size:27px;line-height:1.2;margin:0 0 6px;overflow-wrap:anywhere}
.teacher-page .teacher-brand{grid-column:2;grid-row:1 / 3;margin:0;font-size:38px;white-space:nowrap;color:var(--ink);text-align:center}
.teacher-page .lesson-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.teacher-page .lesson-meta .pill{font-size:13px;padding:3px 10px}
.teacher-page .lesson-meta .small{font-size:13px}
.teacher-page .teacher-utilities{justify-content:flex-end;gap:6px;font-size:13px;white-space:nowrap}
.teacher-page .teacher-utilities .subtitle{color:var(--muted)}
.teacher-page .teacher-utilities .connection{font-size:13px}
.teacher-page .teacher-utilities button,.teacher-page .teacher-utilities .button{min-height:32px;padding:3px 9px;font-size:13px}
.teacher-page .stats{justify-content:flex-end;gap:20px}
.teacher-page .stat{flex-direction:row;align-items:baseline;gap:5px}
.teacher-page .stat b{font-size:27px}
.teacher-page .stat span{font-size:13px;white-space:nowrap}
.teacher-page .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:8px 0;gap:12px;align-items:center}
.teacher-page .toolbar .row{gap:8px}
.teacher-page .wall-controls{min-width:0;flex-wrap:nowrap}
.teacher-page .wall-controls h2{font-size:18px;margin:0 4px 0 0;white-space:nowrap}
.teacher-page #wallTools{min-width:0;flex-wrap:nowrap}
.teacher-page .toolbar button,.teacher-page .toolbar select{min-height:42px;padding:6px 12px;font-size:15px}
.teacher-page #filter{width:126px;min-width:126px}
.teacher-page #demoTab{color:var(--blue-dark);white-space:nowrap}
.teacher-page .toolbar-actions{justify-content:flex-end;flex-wrap:nowrap}
.teacher-page .toolbar-actions button{white-space:nowrap}
.teacher-page #board{margin-top:8px}
.teacher-page .studio{height:100dvh}

@media(max-width:1100px){
  .teacher-page .lesson-heading{grid-template-columns:minmax(0,1fr) auto}
  .teacher-page .lesson-overview{grid-row:auto}
  .teacher-page .teacher-brand{grid-column:2;grid-row:1}
  .teacher-page .teacher-utilities{grid-column:1 / -1;justify-content:flex-start}
  .teacher-page .stats{grid-column:1 / -1;justify-content:flex-start}
  .teacher-page .toolbar{grid-template-columns:1fr}
  .teacher-page .toolbar-actions{justify-content:flex-start;flex-wrap:wrap}
}
@media(max-width:720px){
  .teacher-page .shell{padding:14px 16px 24px}
  .teacher-page .lesson-heading{display:flex;flex-direction:column;align-items:stretch;gap:8px}
  .teacher-page .lesson-overview h2{font-size:23px}
  .teacher-page .teacher-brand{order:-1;font-size:27px;text-align:left}
  .teacher-page .stats{order:1;gap:16px;justify-content:space-between}
  .teacher-page .stat{flex-direction:column;align-items:flex-start;gap:0}
  .teacher-page .stat b{font-size:24px}
  .teacher-page .stat span{font-size:12px}
  .teacher-page .teacher-utilities{order:2;justify-content:flex-start;flex-wrap:wrap;white-space:normal}
  .teacher-page .teacher-utilities .subtitle{max-width:100%;overflow-wrap:anywhere}
  .teacher-page .toolbar{display:flex;flex-direction:column;align-items:stretch;margin:8px 0;gap:8px}
  .teacher-page .wall-controls{flex-wrap:wrap}
  .teacher-page #wallTools{flex-wrap:wrap}
  .teacher-page .toolbar-actions{flex-wrap:nowrap;gap:5px}
  .teacher-page .toolbar-actions button{padding:6px 8px;font-size:13px}
  .teacher-page .toolbar-actions .export-label{display:none}
  .teacher-page #export{width:40px;flex:none}
  .teacher-page .work-card footer{padding:8px;gap:4px}
  .teacher-page .work-card footer b{font-size:15px;overflow-wrap:anywhere}
  .teacher-page .work-meta{font-size:11px;white-space:nowrap}
  .teacher-page .work-card footer .pill{padding:4px 8px;font-size:13px;white-space:nowrap}
}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
