:root {
  color-scheme: dark;
  --bg: #101816;
  --surface: #18231f;
  --line: #33463e;
  --ink: #f4f1e8;
  --muted: #aab8af;
  --mint: #a2e0b5;
  --amber: #f5c77d;
  font-family: "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 28% 0%, #233b30, transparent 55%), var(--bg); color: var(--ink); }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .56; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.shell { width: min(100% - 48px, 1310px); margin-inline: auto; }
.site-header { border-bottom: 1px solid #ffffff16; background: #111a16cb; }
.site-nav, .site-nav nav, .brand { display: flex; align-items: center; gap: 12px; }
.site-nav { min-height: 62px; justify-content: space-between; }
.brand { font-weight: 750; font-size: 15px; }
.brand svg { width: 24px; height: 24px; fill: var(--mint); }
.brand svg rect:nth-child(2) { fill: #dcab6e; }
.brand svg rect:nth-child(4) { fill: #55896b; }
.home-link { color: var(--muted); font-size: 13px; white-space: nowrap; }
.home-link:hover { color: var(--ink); }
.main-shell { padding-bottom: 36px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 22px 0 19px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--mint); }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px #a2e0b566; }
.eyebrow b { width: 14px; height: 1px; background: #91baa581; }
.hero h1 { font-size: clamp(33px, 4.3vw, 56px); line-height: 1.14; letter-spacing: -.045em; margin: 8px 0; }
.hero p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; }
.hero-join { flex: none; }
.button, .board-conflict-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 8px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: #202f28; color: var(--ink);
  font-size: 13px; font-weight: 650; white-space: nowrap;
}
.button:hover, .board-conflict-actions button:hover { background: #2b4134; }
.button--quiet { background: transparent; }
.button--primary { min-height: 43px; justify-content: space-between; background: var(--mint); color: #132219; border-color: var(--mint); }
.button--primary:hover { background: #b7edc5; }
.classroom-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); align-items: start; gap: 17px; }
.room, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 36px #060d0929; min-width: 0; }
.room { overflow: hidden; }
.room-header, .room-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 15px; gap: 9px; }
.room-header h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.room-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--mint); background: #a2e0b517; }
.connection-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.connection-status::before, .room-footer i { content: ""; display: inline-block; border-radius: 50%; height: 6px; width: 6px; background: #91d3a8; }
.connection-status[data-online="false"]::before { background: var(--amber); }
.room-footer { justify-content: flex-start; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.room-footer span { display: flex; align-items: center; gap: 5px; }
.room-footer span:nth-child(2) i { background: transparent; border: 1px solid var(--muted); }
.room-footer span:last-child { margin-inline-start: auto; }

.room-wall {
  position: relative; isolation: isolate; display: grid; align-items: end;
  grid-template-columns: minmax(0, 1fr) clamp(90px, 17%, 136px);
  gap: 15px; padding: 17px 18px 13px clamp(56px, 14%, 120px);
  background: radial-gradient(ellipse at 28% 6%, #596e55, transparent 65%), linear-gradient(160deg, #3e5141, #27392e 76%);
  border-bottom: 7px solid #29231c;
}
.window {
  position: absolute; z-index: -1; top: 28px; left: 17px; width: clamp(32px, 9%, 75px); height: 100px;
  border: 5px solid #705238; border-radius: 25px 25px 4px 4px; overflow: hidden;
  background: radial-gradient(ellipse at 45% 28%, #f1e3a8, #9ab593 36%, #597959 68%);
  box-shadow: 0 8px 18px #13231571, inset 0 0 16px #32563a;
}
.window::before, .window::after { content: ""; position: absolute; background: #63462e; z-index: 1; }
.window::before { inset: 0 auto 0 48%; width: 3px; }
.window::after { inset: 55% 0 auto; height: 3px; }
.window span { position: absolute; width: 110%; height: 33%; left: -30%; bottom: -5%; border-radius: 100%; background: #426247; box-shadow: 33px 6px #527652; }
.blackboard {
  position: relative; display: flex; flex-direction: column; min-width: 0; height: 161px;
  border: 7px solid #7b5439; border-radius: 9px; padding: 9px 13px 12px; color: #eff4e7;
  background: radial-gradient(ellipse at 48% 0%, #2b5041, #1a382e 75%);
  box-shadow: 0 12px 18px #101d16a1, inset 0 0 0 1px #b2ccb32b, inset 0 0 26px #081a13bd;
}
.board-header { display: flex; justify-content: space-between; align-items: center; gap: 7px; border-bottom: 1px solid #d3ebd436; padding-bottom: 5px; color: #b9dac1; }
.board-header strong { font-size: 13px; white-space: nowrap; }
.board-header span { font-size: 9px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.board-text { white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; font-size: clamp(14px, 2vw, 20px); line-height: 1.48; padding: 8px 2px 1px; font-weight: 650; flex: 1; scrollbar-color: #b0cca879 transparent; }
.board-text:empty::before { content: "等待老师上课，板书会在这里同步显示。"; color: #b1ccb6; font-size: 14px; font-weight: 450; }
.chalk { position: absolute; bottom: -7px; right: 16px; display: flex; gap: 5px; align-items: flex-end; }
.chalk i { height: 4px; width: 15px; background: #f4ead2; border-radius: 2px; }
.chalk i + i { height: 5px; width: 11px; background: #c6dcb2; }
.teacher-stage { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.teacher-space { position: relative; width: 100%; height: 115px; }
.podium {
  position: absolute; bottom: 4px; left: 10%; width: 80%; height: 50px; display: grid; place-items: center;
  background: repeating-linear-gradient(92deg, #9c6c43, #a4754b 16%, #835a3a 18%, #9d6e47 30%);
  border: 1px solid #b8835d; border-top: 4px solid #c4926b; border-radius: 6px 6px 2px 2px; box-shadow: 0 8px 10px #132619a1;
}
.podium::before { content: ""; height: 7px; position: absolute; inset: -5px -5px auto; background: #c89264; border-radius: 5px; box-shadow: 0 3px #603f2c; }
.podium span { font-size: 12px; font-weight: 800; color: #f5d2a9; border: 1px solid #e5ba8566; border-radius: 6px; padding: 3px 8px; }
.teacher-avatar { position: absolute; inset: auto 0 43px; margin: auto; width: 72px; height: 74px; animation: host-breathe 3.8s ease-in-out infinite; }
@keyframes host-breathe { 50% { translate: 0 -2px; } }
@media (prefers-reduced-motion: reduce) { .teacher-avatar { animation: none; } }
.teacher-avatar span { position: absolute; display: block; }
.teacher-shoulders { width: 64px; height: 35px; background: linear-gradient(135deg, #5c876c, #234938); border-radius: 24px 24px 7px 7px; left: 4px; bottom: 0; }
.teacher-neck { width: 13px; height: 16px; background: #ba835f; left: 30px; top: 38px; }
.teacher-head { width: 34px; height: 40px; top: 7px; left: 19px; border-radius: 42% 42% 45% 45%; background: linear-gradient(105deg, #d99e72, #f4bb8d); box-shadow: 3px 2px #9b6c51; }
.teacher-hair { width: 37px; height: 17px; top: 5px; left: 18px; background: #283028; border-radius: 80% 52% 31% 16%; transform: rotate(-6deg); box-shadow: 1px 4px #283028; }
.teacher-glasses { width: 30px; height: 8px; top: 25px; left: 21px; border: 2px solid #25322c; border-radius: 4px; }
.teacher-glasses::after { content: ""; width: 2px; height: 5px; background: #25322c; position: absolute; left: 46%; top: 0; }
.teacher-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 6px; line-height: 1.2; font-size: 10px; color: #c6d6c9; text-align: center; }
.teacher-caption strong { font-size: 11px; color: #f3e7cf; white-space: nowrap; }

.room-floor { padding: 8px 15px 12px; background: radial-gradient(ellipse at 50% 5%, #9d7853a8, transparent 73%), repeating-linear-gradient(0deg, #7d5c3d 0 24px, #6e5036 25px, #886748 26px); }
.floor-heading { display: flex; justify-content: space-between; color: #f4e6c9; font-size: 10px; font-weight: 750; letter-spacing: .12em; margin: 0 2px 6px; }
.seat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px 9px; padding: 0; margin: 0; list-style: none; }
.seat { position: relative; min-width: 0; height: 56px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border: 1px solid #e5c58a30; border-radius: 8px; background: #31241732; color: #f3e2c6; }
.seat[data-occupied="true"] { background: #303d2d59; border-color: #cfe0a579; }
.seat.seat--mine { border: 2px solid var(--amber); background: #564a2d; }
.seat-number { position: absolute; top: 4px; left: 6px; font-size: 9px; font-weight: 800; }
.seat-label { font-size: 10px; line-height: 1.05; margin-bottom: 3px; max-width: 100%; padding-inline: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat--mine .seat-label { color: var(--amber); font-weight: 750; }
.seat-art { height: 41px; width: clamp(28px, 62%, 66px); position: relative; display: block; }
.chair, .desk, .avatar { position: absolute; display: block; }
.chair { height: 22px; width: 36%; left: 32%; top: 7px; border-radius: 4px 4px 1px 1px; background: linear-gradient(110deg, #8e6346, #c39663); box-shadow: inset 0 0 0 1px #49341c4d, 1px 2px #4e3926; }
.chair::after, .desk::after { content: ""; position: absolute; left: 11%; right: 11%; height: 12px; bottom: -8px; border-left: 3px solid #5c422c; border-right: 3px solid #5c422c; }
.desk { width: 100%; height: 12px; left: 0; bottom: 8px; z-index: 2; background: linear-gradient(#d7ab73 0 62%, #976c46 65%); border-radius: 4px 4px 2px 2px; box-shadow: 0 2px 3px #38261987; }
.desk::after { bottom: -7px; height: 9px; }
.avatar { display: none; --shirt: #6ba896; --skin: #dfa578; --hair: #382e25; left: 50%; transform: translateX(-50%); width: 18px; height: 22px; top: 0; z-index: 1; border-radius: 42% 42% 45% 45%; background: var(--skin); }
.seat[data-occupied="true"] .avatar { display: block; }
.avatar::before { content: ""; position: absolute; inset: -2px -1px auto; height: 8px; background: var(--hair); border-radius: 70% 55% 26% 29%; transform: rotate(-8deg); }
.avatar::after { content: ""; position: absolute; left: 50%; top: 17px; transform: translateX(-50%); width: 29px; height: 15px; border-radius: 11px 11px 2px 2px; background: var(--shirt); }
.avatar[data-variant="1"] { --shirt: #aa7d99; --skin: #edb590; --hair: #5b3928; }
.avatar[data-variant="2"] { --shirt: #537aab; --skin: #bd875f; --hair: #30282b; }
.avatar[data-variant="3"] { --shirt: #cb9a50; --skin: #e6aa84; --hair: #47322c; }
.avatar[data-variant="4"] { --shirt: #7f94be; --skin: #d7a16c; --hair: #4c362c; }
.avatar[data-variant="5"] { --shirt: #a26e6d; --skin: #f1b893; --hair: #6a4331; }
.avatar[data-variant="6"] { --shirt: #a4a26d; --skin: #c68662; --hair: #49362c; }
.avatar[data-variant="7"] { --shirt: #6e9fba; --skin: #e4ac84; --hair: #2c302b; }
.avatar[data-variant="8"] { --shirt: #ad7859; --skin: #efbf94; --hair: #664231; }
.avatar[data-variant="9"] { --shirt: #8796a8; --skin: #ce936a; --hair: #382a2b; }
.avatar[data-variant="10"] { --shirt: #9b849c; --skin: #e2a577; --hair: #554137; }
.avatar[data-variant="11"] { --shirt: #7a9e71; --skin: #be845a; --hair: #292b2a; }
.avatar[data-variant="1"]::before, .avatar[data-variant="7"]::before, .avatar[data-variant="10"]::before { height: 12px; border-radius: 68% 49% 12% 12%; }

.classroom-aside { display: grid; gap: 12px; }
.card { padding: 16px; }
.card h2 { margin: 7px 0 10px; font-size: 19px; letter-spacing: -.02em; }
.admission, .teacher-controls { scroll-margin-top: 12px; }
.capacity { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; padding: 8px 12px; margin: 10px 0; background: #101b16; border: 1px solid #374a3e; border-radius: 11px; color: var(--muted); font-size: 12px; }
.capacity strong { color: var(--amber); font-size: 24px; font-variant-numeric: tabular-nums; }
.capacity small { font-size: 13px; color: var(--muted); }
.join-form { display: grid; gap: 7px; }
.join-form label, .teacher-controls label { font-weight: 700; font-size: 12px; color: #dde5dc; }
.join-form input, .join-form select, .teacher-controls textarea { display: block; width: 100%; min-width: 0; border: 1px solid #43594d; border-radius: 9px; background: #121e17; color: var(--ink); padding: 9px 10px; line-height: 1.45; font: inherit; font-size: 14px; }
.join-form input::placeholder, .teacher-controls textarea::placeholder { color: #94aa9c; }
.teacher-controls textarea { resize: vertical; margin-top: 6px; min-height: 108px; }
.form-note, .feedback, .editor-footer { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.feedback:not(:empty) { margin-top: 10px; color: var(--amber); }
.joined-panel { display: grid; gap: 9px; padding-top: 4px; font-size: 14px; }
.joined-panel strong { color: var(--mint); }
.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }
.editor-footer > span:last-child { white-space: nowrap; }
.board-conflict-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.roster-panel { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.roster-panel h3 { margin: 0 0 6px; font-size: 14px; }
.roster-panel ol { padding-left: 1.6em; margin: 0; max-height: 9em; overflow: auto; font-size: 12px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.agenda ul { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0; }
.agenda li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #c6d4c9; line-height: 1.45; }
.agenda li span, .no-script { color: var(--amber); }
@media (max-width: 900px) {
  .shell { width: min(100% - 32px, 1310px); }
  .classroom-layout { grid-template-columns: minmax(0, 1fr) minmax(225px, 260px); gap: 12px; }
  .room-wall { padding-left: 50px; gap: 9px; }
  .window { left: 8px; width: 32px; height: 84px; top: 42px; border-width: 4px; }
  .room-floor { padding-inline: 9px; }
}
@media (max-width: 720px) {
  .classroom-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-join { display: inline-flex !important; flex: none; }
  .hero { padding: 17px 0 14px; }
  .hero p { font-size: 13px; }
  .site-nav { min-height: 55px; }
  .classroom-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-controls { grid-column: 1 / -1; }
  .room-footer span:last-child { margin-inline-start: 0; }
}
@media (max-width: 450px) {
  .shell { width: calc(100% - 20px); }
  .site-nav nav { gap: 7px; }
  .brand { font-size: 12px; gap: 6px; }
  .brand svg { width: 20px; height: 20px; }
  .site-nav .button, .home-link, .hero-join { font-size: 11px; }
  .site-nav .button, .hero-join { min-height: 33px; padding: 6px 7px; }
  .hero { gap: 7px; }
  .hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .hero p { font-size: 12px; }
  .eyebrow { font-size: 10px; }
  .room-header, .room-footer { padding-inline: 8px; }
  .room-wall { padding: 10px 7px 8px; grid-template-columns: minmax(0, 1fr) 68px; gap: 7px; }
  .window { display: none; }
  .blackboard { height: 136px; padding: 7px; border-width: 5px; }
  .chalk { bottom: -5px; }
  .board-header span { font-size: 8px; }
  .board-text, .board-text:empty::before { font-size: 13px; }
  .teacher-space { height: 96px; }
  .teacher-avatar { transform: scale(.81); transform-origin: center bottom; bottom: 34px; }
  .podium { height: 40px; }
  .podium span { padding: 2px 4px; }
  .teacher-caption { display: grid; font-size: 9px; }
  .room-floor { padding-inline: 5px; }
  .seat-grid { gap: 4px; }
  .seat { height: 52px; }
  .seat-art { width: clamp(24px, 72%, 47px); height: 37px; }
  .seat-number { top: 3px; left: 4px; }
  .seat-label { font-size: 9px; }
  .avatar { transform: translateX(-50%) scale(.82); transform-origin: top center; }
  .classroom-aside { grid-template-columns: minmax(0, 1fr); }
}
.site-nav nav { position: relative; }
.share-feedback:not(:empty) { position: absolute; z-index: 2; inset: calc(100% + 7px) 0 auto auto; width: max-content; max-width: min(220px, 76vw); padding: 8px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.classroom-layout[data-access="locked"] { grid-template-columns: minmax(0, 1fr) minmax(275px, 365px); }
.locked-panel { padding: clamp(18px, 4vw, 43px); background: radial-gradient(ellipse at 100% 0%, #34584a, transparent 78%), var(--surface); }
.locked-panel h2 { margin-top: 12px; font-size: clamp(23px, 3.5vw, 38px); line-height: 1.16; }
.locked-intro { max-width: 36em; margin: 0; line-height: 1.65; color: #c6d7ca; }
.admission-steps { display: grid; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.admission-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; background: #10221a8c; border: 1px solid #a6d7ad2b; border-radius: 11px; }
.admission-steps li > span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; color: var(--mint); background: #a2e0b51a; font-size: 12px; font-weight: 750; }
.admission-steps strong { font-size: 14px; }
.admission-steps p { margin: 3px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.application-status { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.application-status:not(:empty) { margin-bottom: 11px; }
.application-status[data-status="pending"], .application-status[data-status="rejected"], .application-status[data-status="revoked"] { color: var(--amber); }
.application-status[data-status="approved"] { color: var(--mint); }
.join-form > label:not(:first-child) { margin-top: 3px; }
.join-form .button--primary { margin-top: 4px; }
#enter-button { width: 100%; }
.chat-panel { padding: 16px; border-top: 1px solid var(--line); }
.chat-panel h2 { font-size: 19px; margin: 6px 0 10px; }
.chat-messages, .review-list { display: grid; gap: 8px; padding: 0; list-style: none; overflow: auto; }
.chat-messages { max-height: 245px; margin: 0 0 11px; }
.chat-messages:empty { margin: 0; }
.chat-messages > li, .review-list > li { background: #122019; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; overflow-wrap: anywhere; }
.chat-meta, .review-identity, .review-details { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.chat-meta { color: var(--mint); font-size: 12px; }
.chat-copy { color: var(--ink); font-size: 14px; line-height: 1.55; margin: 3px 0 0; white-space: pre-wrap; }
.chat-form, .filter-form { display: grid; gap: 7px; }
.chat-form label, .filter-form label { color: #dde5dc; font-weight: 700; font-size: 12px; }
.chat-form input, .filter-form textarea { width: 100%; min-width: 0; border: 1px solid #43594d; border-radius: 9px; background: #121e17; color: var(--ink); padding: 9px 10px; line-height: 1.45; font-size: 14px; }
.chat-form input::placeholder, .filter-form textarea::placeholder { color: #94aa9c; }
.filter-form textarea { resize: vertical; min-height: 86px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.form-actions--start { justify-content: flex-start; }
.review-panel { margin-top: 17px; }
.review-list { margin: 12px 0 0; max-height: min(60vh, 440px); }
.review-list > li { display: grid; gap: 6px; }
.review-details { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.review-status { width: fit-content; color: var(--muted); padding: 2px 7px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.review-status[data-status="pending"] { color: var(--amber); }
.review-status[data-status="approved"] { color: var(--mint); }
.review-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.review-actions .button { min-height: 34px; }
.filter-panel { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 12px; }
.filter-panel summary { color: var(--mint); font-size: 14px; font-weight: 700; cursor: pointer; }
.filter-form { margin-top: 12px; max-width: 52em; }
@media (max-width: 720px) {
  .classroom-layout[data-access="locked"] { grid-template-columns: minmax(0, 1fr); }
  .classroom-layout[data-access="locked"] .classroom-aside { grid-row: 1; grid-template-columns: minmax(0, 1fr); }
  .classroom-layout[data-access="locked"] .agenda { display: none; }
}
@media (max-width: 450px) {
  .chat-panel { padding: 12px; }
}
.lesson-lobby { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,250px); gap:20px; margin-bottom:17px; padding:clamp(16px,3vw,28px); background:radial-gradient(ellipse at 100% 0%,#345548,transparent 72%),var(--surface); }
.lesson-lobby h2,.lesson-admin h2 { font-size:clamp(23px,3vw,32px); }
.lesson-lobby h3,.lesson-admin h3 { font-size:16px; margin:0; }
.lesson-muted { color:var(--muted); font-size:13px; line-height:1.6; margin:6px 0; }
.lesson-contact { align-self:start; padding:16px; border:1px solid var(--line); border-radius:13px; background:#14221be0; }
.lesson-contact h3 { margin:8px 0; }
.lesson-contact img,.lesson-confirmation img { display:block; max-width:100%; height:auto; padding:3px; border-radius:9px; background:#fff; }
.lesson-wechat-id { color:var(--mint); font-size:14px; overflow-wrap:anywhere; }
.lesson-announcement { margin:14px 0; padding:10px 14px; border-left:3px solid var(--amber); border-radius:7px; background:#262b1e; }
.lesson-announcement strong { color:var(--amber); }
.lesson-announcement p { margin:4px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.lesson-schedule { list-style:none; display:grid; gap:8px; padding:0; margin:12px 0; }
.lesson-schedule:empty { margin:0; }
.lesson-schedule li { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#101c17aa; overflow-wrap:anywhere; }
.lesson-schedule li p,.lesson-confirmation p { margin:4px 0; }
.lesson-schedule li .button { flex:none; }
.lesson-form { display:grid; gap:9px; padding:13px; border:1px solid var(--line); border-radius:11px; background:#101c17aa; }
.lesson-form label,.lesson-admin-list-header label { display:grid; gap:5px; min-width:0; color:var(--muted); font-size:13px; }
.lesson-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); gap:9px; }
.lesson-form input,.lesson-form textarea,.lesson-admin select { width:100%; min-width:0; color:var(--ink); background:#121e17; border:1px solid #43594d; border-radius:9px; padding:9px 10px; }
.lesson-form textarea { resize:vertical; }
.lesson-form .button { justify-self:start; }
.lesson-confirmation { display:grid; justify-items:start; gap:8px; margin-top:12px; padding:14px; border:1px solid #6d9a7d; border-radius:11px; background:#172d21; }
.lesson-confirmation h3 { color:var(--mint); }
.lesson-clock { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 15px; border-top:1px solid var(--line); color:var(--amber); font-size:13px; }
.lesson-clock .button { min-height:31px; }
.lesson-admin { margin-top:17px; }
.lesson-admin-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr)); gap:12px; margin:12px 0 18px; }
.lesson-admin-list-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
#lesson-admin-reservations,#lesson-admin-schedule { max-height:360px; overflow:auto; }
@media (max-width:640px) { .lesson-lobby { grid-template-columns:minmax(0,1fr); gap:12px; } .lesson-contact { display:grid; justify-items:start; gap:5px; } .lesson-schedule li { flex-wrap:wrap; } }
