:root{
  --ink:#102337; --muted:#5b6b80; --line:#d9e2ec; --bg:#eef3f7; --card:#fff;
  --navy:#1f3a5f; --teal:#0b7f7b; --teal-soft:#eaf6f5; --gold:#b7791f;
  --bad:#b42318; --ok:#1d6b49; --shadow:0 8px 30px rgba(16,35,55,.08);
  --radius:16px; font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
.consent{display:flex;gap:.5rem;align-items:flex-start;font-size:.8rem;color:var(--muted);line-height:1.5;margin:.2rem 0}
.consent input{width:auto;margin-top:.2rem;flex:none}
.consent a{color:var(--teal)}
html,body{margin:0;min-height:100%}
body{min-height:100dvh;background:linear-gradient(180deg,#eef3f7,#e6edf4);color:var(--ink);line-height:1.5;font-size:16px}
h1,h2,h3,p,ul,dl{margin-top:0}
h1{font-size:clamp(2rem,1.2rem + 3vw,3.4rem);line-height:1.1;letter-spacing:-.02em}
h2{font-size:clamp(1.05rem,1rem + .4vw,1.35rem);margin-bottom:.5rem}
a{color:var(--teal)}
button,input,select{font:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid #7cc7c3;outline-offset:2px}
.eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.14em;color:var(--teal);text-transform:uppercase}
.muted{color:var(--muted)}
.fine{font-size:.8rem;color:var(--muted);margin-top:1.2rem}
.card{background:var(--card);border:1px solid rgba(217,226,236,.9);border-radius:var(--radius);padding:1.1rem 1.2rem;box-shadow:var(--shadow)}
.auth-shell{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(1.5rem,4vw,4rem);max-width:1180px;margin:0 auto;padding:clamp(1.2rem,4vw,3.5rem)}
.brand-panel{padding:clamp(.4rem,2vw,2rem) 0}
.lead{font-size:clamp(1rem,.95rem + .3vw,1.15rem);color:var(--muted);max-width:34rem}
.feature-list{padding-left:1.1rem;color:var(--muted);line-height:1.9}
.auth-panel{display:flex;flex-direction:column;gap:.9rem;align-self:start}
.form{display:flex;flex-direction:column;gap:.8rem}
.field{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.field label{font-size:.86rem;font-weight:800;color:var(--navy)}
.field input,.field select{border:1.5px solid var(--line);border-radius:10px;padding:.65rem .75rem;background:#fff;color:var(--ink);min-height:44px;width:100%;max-width:100%;min-width:0}
.field input:focus,.field select:focus{border-color:var(--teal)}
.help{font-size:.76rem;color:var(--muted);margin:0}
.pass-row{display:flex;gap:.4rem}
.pass-row input{flex:1;min-width:0}
.primary{background:var(--navy);color:#fff;border:0;border-radius:10px;padding:.7rem 1rem;font-weight:800;min-height:44px}
a.primary{display:inline-block;text-decoration:none;text-align:center}
.primary:hover{background:#152b47}
.ghost{background:#fff;color:var(--navy);border:1.5px solid var(--line);border-radius:10px;padding:.55rem .8rem;font-weight:700;min-height:44px}
.ghost:hover{border-color:#b9cde0;background:#fbfdff}
.small{min-height:36px;padding:.35rem .6rem;font-size:.82rem}
.notice{display:none;border-radius:10px;padding:.7rem .85rem;font-size:.9rem;font-weight:700}
.notice.show{display:block}
.notice.ok{background:#eefaf4;color:var(--ok)}
.notice.bad{background:#fdf1f0;color:var(--bad)}
details.card summary{cursor:pointer;font-weight:800;color:var(--navy);display:flex;justify-content:space-between;gap:1rem;list-style:none}
details.card summary::-webkit-details-marker{display:none}
details.card summary::after{content:"＋";color:var(--teal)}
details.card[open] summary::after{content:"－"}
details.card summary .hint{font-size:.78rem;color:var(--muted);font-weight:600;margin-left:auto}
details.card[open] summary{margin-bottom:.8rem}
.topbar{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.topbar-inner{max-width:1280px;margin:0 auto;padding:.6rem 1.2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{font-weight:900;color:var(--ink);text-decoration:none;font-size:1.05rem}
.brand span{font-size:.7rem;color:var(--teal);background:var(--teal-soft);border-radius:6px;padding:.15rem .4rem;vertical-align:middle}
.userbox{display:flex;align-items:center;gap:.7rem}
.who{font-size:.85rem;color:var(--muted)}
.app-shell{max-width:1280px;margin:0 auto;padding:1rem 1.2rem 3rem}
.app-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:1rem;align-items:start}
.side{display:flex;flex-direction:column;gap:1rem}
.main{display:flex;flex-direction:column;gap:1rem;min-width:0}
.profile{margin:0;display:grid;gap:.45rem}
.profile div{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px dashed var(--line);padding-bottom:.4rem}
.profile dt{color:var(--muted);font-size:.8rem}
.profile dd{margin:0;font-weight:800;text-align:right}
.plain{padding-left:1.1rem;margin:0;color:var(--muted);line-height:1.8}
.result{margin-top:.6rem;font-size:.86rem;color:var(--muted);overflow-wrap:anywhere}
.result strong{display:inline-block;background:var(--teal-soft);color:var(--teal);border-radius:8px;padding:.25rem .5rem;font-size:1rem;letter-spacing:.06em}
.section-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-end;flex-wrap:wrap;margin-bottom:.7rem}
.filters{display:flex;gap:.5rem;flex-wrap:wrap;align-items:flex-end}
.filters .field{flex:1 1 150px;min-width:0}
.field.compact label{font-size:.75rem;color:var(--muted)}
.field.compact input,.field.compact select{min-height:38px;padding:.45rem .55rem;font-size:.86rem}
.field.compact.grow{min-width:180px}
.qlist{display:grid;gap:.8rem;min-width:0}
.qcard{border:1px solid var(--line);border-radius:12px;padding:.9rem 1rem;background:#fff;min-width:0}
.qtop{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin-bottom:.45rem}
.qid{background:var(--navy);color:#fff;border-radius:6px;padding:.12rem .45rem;font-size:.72rem;font-weight:800}
.chip{border-radius:999px;padding:.12rem .5rem;font-size:.72rem;font-weight:700;background:#f2f6fa;color:#34506b}
.chip.ch{background:#eef3f8;color:#245a86}.chip.ep{background:var(--teal-soft);color:var(--teal)}.chip.gt{background:#f4f1fb;color:#5b4b8a}
.qstem{font-size:.95rem;font-weight:650;line-height:1.65;margin:.3rem 0 .5rem;white-space:pre-wrap;overflow-wrap:anywhere}
.qmeta{font-size:.78rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:.4rem 1rem;min-width:0;overflow-wrap:anywhere}
.qanswer{margin-top:.55rem;border-top:1px dashed var(--line);padding-top:.55rem;font-size:.84rem;color:var(--muted)}
.qanswer b{color:var(--ink)}
.phase p{margin-bottom:.4rem}

.topnav{display:flex;gap:.2rem;align-items:center;margin-left:auto;margin-right:auto}
.topnav a{color:var(--muted);text-decoration:none;font-size:.86rem;font-weight:700;padding:.4rem .7rem;border-radius:8px}
.topnav a[aria-current="page"],.topnav a:hover{background:var(--teal-soft);color:var(--teal)}
.page-title{font-size:clamp(1.5rem,1.1rem + 1.5vw,2.2rem);line-height:1.2;margin-bottom:.35rem}
.lobby-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}
.room-list{display:grid;gap:.5rem}
.room-row{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;border:1px solid var(--line);border-radius:10px;padding:.6rem .7rem}
.room-row .qid{background:var(--teal);letter-spacing:.08em}
.room-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.teams{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}
.team-card{margin:0}
.team-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.6rem}
.team-head h2{margin:0}
.bigscore{font-size:1.4rem;font-weight:900;color:var(--teal);background:var(--teal-soft);border-radius:8px;padding:.15rem .55rem}
.slot{display:flex;justify-content:space-between;gap:.6rem;border-bottom:1px dashed var(--line);padding:.45rem 0;font-size:.88rem}
.slot:last-child{border-bottom:0}
.slot-name{font-weight:700;min-width:0;overflow-wrap:anywhere}
.slot-meta{color:var(--muted);font-size:.78rem;white-space:nowrap}
.start-wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.start-wrap p{margin:0}
.battle-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding-bottom:.7rem;margin-bottom:.8rem}
.scoreline{display:flex;gap:.6rem;align-items:baseline;font-size:1rem;color:var(--muted)}
.scoreline b{font-size:1.5rem;color:var(--navy)}
.vs{color:var(--line)}
.timer{font-size:2rem;font-weight:900;color:var(--teal);font-variant-numeric:tabular-nums;min-width:3rem;text-align:right}
.qstem.big{font-size:clamp(1rem,.95rem + .4vw,1.25rem);line-height:1.7}
.qfig{display:flex;gap:.6rem;flex-wrap:wrap;align-items:flex-start;margin:.6rem 0}
.qfig img{max-width:100%;max-height:190px;border:1px solid var(--line);border-radius:10px;background:#fff}
.qfig:has(img:nth-child(2)){display:grid;grid-template-columns:1fr 1fr}
.qfig:has(img:nth-child(2)) img{max-height:150px;width:100%;object-fit:contain}
.options{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.8rem}
.option{text-align:left;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:.75rem .8rem;font-size:.95rem;font-weight:650;color:var(--ink);min-height:52px}
.option:hover{border-color:#b9cde0;background:#fbfdff}
.option.selected{border-color:var(--teal);background:var(--teal-soft)}
.option.correct{border-color:var(--ok);background:#eefaf4}
.option.wrong{border-color:var(--bad);background:#fdf1f0}
.option:disabled{cursor:default}
.feedback{display:none;margin-top:.8rem;border-radius:10px;padding:.7rem .85rem;font-size:.9rem;line-height:1.7}
.feedback.show{display:block}
.feedback.ok{background:#eefaf4;color:var(--ok)}
.feedback.bad{background:#fdf1f0;color:var(--bad)}
.feedback b{display:block;margin-bottom:.2rem}
@media (max-width:800px){.lobby-grid,.teams{grid-template-columns:1fr}.options{grid-template-columns:1fr}.topnav{display:none}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.grade-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.7rem}
.grade-tab{border:1.5px solid var(--line);background:#fff;color:var(--navy);border-radius:999px;padding:.45rem .9rem;font-weight:800;font-size:.85rem;min-height:40px}
.grade-tab[aria-selected="true"]{background:var(--navy);color:#fff;border-color:var(--navy)}
.board-meta{font-size:.82rem;margin:0 0 .6rem}
.board-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.board-table{width:100%;border-collapse:collapse;min-width:720px;font-size:.9rem}
.board-table th,.board-table td{padding:.65rem .7rem;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.board-table thead th{background:#f5f9fc;color:var(--muted);font-size:.78rem}
.board-table tbody tr:last-child td{border-bottom:0}
.board-table tbody tr:hover{background:#fbfdff}
.board-table .rank{font-weight:900;color:var(--muted);text-align:center;width:56px}
.board-table .rank.top1{color:#b7791f;background:#fff8e6}
.board-table .rank.top2{color:#5b6b80;background:#f4f7fa}
.board-table .rank.top3{color:#9c5a2e;background:#fdf4ee}
@media (max-width:700px){.board-table{min-width:640px}}

.train-form{gap:1rem}
.check-row{display:flex;gap:.5rem;align-items:center;font-size:.86rem;color:var(--muted);font-weight:700}
.check-row input{width:18px;height:18px}
.check-grid{display:flex;gap:.5rem 1rem;flex-wrap:wrap}
.check-grid .check-row{font-weight:600;color:var(--ink)}
.qmanage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}
.thumbs{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.4rem}
.thumb{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;border:1px solid var(--line);border-radius:8px;padding:.35rem}
.thumb img{max-width:160px;max-height:120px;object-fit:contain;border-radius:4px}
@media (max-width:700px){.qmanage-grid{grid-template-columns:1fr 1fr}}
.train-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.7rem}
.train-grid>*{min-width:0}
.practice-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.9rem}
.summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin-bottom:1rem}
.summary-card{background:#f7fafc;border:1px solid var(--line);border-radius:10px;padding:.7rem .8rem;display:flex;flex-direction:column;gap:.2rem}
.summary-card span{font-size:.76rem}.summary-card b{font-size:1.25rem;color:var(--navy)}
.rate-chip{display:inline-block;border-radius:999px;padding:.18rem .55rem;font-size:.76rem;font-weight:800}
.rate-chip.strong{background:#eefaf4;color:var(--ok)}.rate-chip.medium{background:#fff6d8;color:#8a5a00}.rate-chip.weak{background:#fdf1f0;color:var(--bad)}.rate-chip.none{background:#f2f6fa;color:var(--muted)}
.mastery-table{min-width:680px}
@media (max-width:900px){.train-grid{grid-template-columns:1fr 1fr}.summary-cards{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.train-grid,.summary-cards{grid-template-columns:1fr}}
@media (max-width:1000px){
  .auth-shell{grid-template-columns:1fr;max-width:680px}
  .app-grid{grid-template-columns:1fr}
  .side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .side .card{margin:0}
}
@media (max-width:620px){
  .topbar-inner{flex-wrap:nowrap;gap:.35rem;padding:.45rem .6rem}
  .brand{font-size:.95rem;white-space:nowrap}
  .brand span{display:none}
  .who{display:none}
  .userbox{gap:.3rem;margin-left:auto;flex-wrap:nowrap}
  .userbox .ghost,.userbox a.ghost{font-size:.72rem;padding:.28rem .42rem;white-space:nowrap}
  .side{grid-template-columns:1fr}
  .filters{width:100%}
  .filters .field{flex:1 1 45%}
  .field.compact.grow{min-width:0;flex:1 1 100%}
  .topbar-inner{padding:.5rem .8rem}
  .app-shell{padding:.8rem}
}
@media (prefers-reduced-motion: reduce){*{scroll-behavior:auto;transition:none!important;animation:none!important}}

.short-answer{width:100%;min-height:130px;border:1px solid var(--line);border-radius:10px;padding:.8rem;font:inherit;resize:vertical;margin-bottom:.6rem}

.short-text{max-width:360px;white-space:pre-wrap;line-height:1.55}
.score-input{width:70px;min-height:36px}
.comment-input{width:150px;min-height:34px;margin-top:.3rem}
.short-comment{display:flex;flex-direction:column}

.short-list{display:flex;flex-direction:column;gap:.8rem}
.short-grade{border:1px solid var(--line);border-radius:10px;padding:.85rem;background:#fff}
.short-grade-head{font-size:.9rem}
.short-stem{font-weight:800;margin:.45rem 0}
.short-answer-text{white-space:pre-wrap;background:#f7f9fc;border-radius:8px;padding:.65rem;line-height:1.6;margin-bottom:.45rem}
.grade-row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}

.short-options{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}
.short-options .short-answer{width:100%}
.short-options .primary{width:auto;min-width:150px}

.inline-formula{height:1.35em;max-width:100%;vertical-align:-.22em;object-fit:contain;margin:0 1px}

.pending-list{display:flex;flex-direction:column;gap:.45rem}
.pending-row{display:flex;align-items:center;gap:.5rem;border:1px solid var(--line);border-radius:8px;padding:.45rem .6rem;flex-wrap:wrap}
.slot{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.slot-offline{color:#b42318;font-size:.72rem;font-weight:800}
.kick-btn{min-height:28px;padding:.2rem .45rem;font-size:.72rem}

.option .inline-formula{height:auto;max-height:110px;max-width:100%;vertical-align:middle}
.qanswer .inline-formula,.feedback .inline-formula{height:auto;max-height:140px;max-width:100%;vertical-align:middle}

.qmeta .inline-formula,.qanswer .inline-formula,.qstem .inline-formula{height:auto;max-height:140px;max-width:100%;vertical-align:middle}

.modal-mask{position:fixed;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:80}
.modal-mask[hidden]{display:none}
.modal-card{background:#fff;border-radius:14px;padding:1.25rem 1.4rem;width:min(440px,100%);box-shadow:0 24px 60px rgba(15,23,42,.25)}
.modal-card h2{margin:0 0 .35rem;font-size:1.1rem}
.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.85rem}

.health-err{color:#b42318;font-weight:600}
.health-warn{color:#8a5a00}

.empty-filter{border:1px dashed var(--line);border-radius:10px;padding:1rem;display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}

.danger{color:#b42318;border-color:#f3c0bb}

.answer-photo-row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:.4rem 0}
.answer-photos{display:flex;gap:.6rem;flex-wrap:wrap;margin:.5rem 0}
.answer-photo{position:relative;display:inline-flex;flex-direction:column;gap:.25rem;align-items:flex-start}
.answer-photo img{max-width:220px;max-height:220px;border:1px solid var(--line);border-radius:8px;background:#fff}
a.answer-photo img{max-width:260px;max-height:260px}

/* 填空/问答：按空作答 */
.blank-list{display:flex;flex-direction:column;gap:.5rem;margin:.4rem 0 .6rem}
.blank-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;align-items:center;border:1px solid var(--line);border-radius:10px;padding:.5rem .7rem;background:#fbfdff}
.blank-label{font-size:.86rem;font-weight:700;color:var(--navy);min-width:0}
.blank-input{border:1.5px solid var(--line);border-radius:8px;padding:.5rem .6rem;min-height:40px;font:inherit;grid-column:1/2}
.blank-points{font-size:.78rem;color:var(--muted);white-space:nowrap}
.blank-grade-list{display:flex;flex-direction:column;gap:.5rem;margin:.6rem 0}
.blank-grade-row{display:flex;gap:.6rem;align-items:flex-start;justify-content:space-between;border:1px solid var(--line);border-radius:10px;padding:.55rem .7rem;background:#fbfdff}
.blank-grade-left{min-width:0;flex:1}
.blank-student{font-size:.9rem;margin:.2rem 0;overflow-wrap:anywhere}
.blank-score{width:70px;border:1.5px solid var(--line);border-radius:8px;padding:.4rem .5rem;font:inherit}
@media (max-width:620px){.blank-row{grid-template-columns:1fr}.blank-grade-row{flex-wrap:wrap}.blank-score{width:64px}}

.blank-edit-list{display:flex;flex-direction:column;gap:.45rem}
.blank-edit-row{display:grid;grid-template-columns:60px 100px minmax(0,1fr) 70px auto;gap:.4rem;align-items:center}
.blank-edit-row input{border:1.5px solid var(--line);border-radius:8px;padding:.45rem .5rem;font:inherit;min-width:0}
@media (max-width:700px){.blank-edit-row{grid-template-columns:50px 80px 1fr;}.blank-edit-row .blank-points-input{grid-column:1/2}.blank-edit-row button{grid-column:2/4}}

.paper-list{display:flex;flex-direction:column;gap:.5rem}
.paper-row{display:flex;gap:.5rem;align-items:center;border:1px solid var(--line);border-radius:10px;padding:.5rem .7rem;background:#fbfdff;flex-wrap:wrap}
.paper-row b{min-width:90px}
.paper-score-input{width:80px;border:1.5px solid var(--line);border-radius:8px;padding:.45rem .5rem;font:inherit}
.paper-comment-input{flex:1;min-width:160px;border:1.5px solid var(--line);border-radius:8px;padding:.45rem .5rem;font:inherit}

.blank-comment-input{width:100%;margin-top:.3rem;border:1px solid var(--line);border-radius:8px;padding:.35rem .5rem;font:inherit;font-size:.82rem;color:var(--muted);background:#fff}
.blank-grade-row{flex-wrap:wrap}
.blank-comment-input{flex-basis:100%;margin-top:.25rem}

.result-list{display:flex;flex-direction:column;gap:.8rem;margin-top:1rem}
.result-item{border:1px solid var(--line);border-radius:12px;padding:.9rem;background:#fbfdff}
.result-head{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-bottom:.4rem}
.result-score{margin-left:auto;font-weight:700;color:var(--brand)}
.result-blanks{display:flex;flex-direction:column;gap:.4rem;margin:.5rem 0}
.result-blank{display:flex;gap:.5rem;flex-wrap:wrap;align-items:baseline;border-left:3px solid var(--line);padding-left:.6rem}
.result-blank .blank-student{font-weight:600}

/* AI 讲题 */
.result-tools{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.6rem}
.tutor-card{width:min(620px,100%);max-height:min(82vh,720px);display:flex;flex-direction:column;gap:.55rem}
.tutor-card textarea{width:100%;border:1.5px solid var(--line);border-radius:10px;padding:.6rem .7rem;font:inherit;resize:vertical;min-height:74px;color:var(--ink)}
.tutor-card textarea:focus{border-color:var(--teal);outline:none}
.tutor-chips{display:flex;gap:.4rem;flex-wrap:wrap}
.chip-btn{background:var(--teal-soft);color:var(--teal);border:0;border-radius:999px;padding:.35rem .65rem;font-size:.8rem;font-weight:700}
.chip-btn:hover{background:#dcf0ee}
.tutor-actions{display:flex;justify-content:flex-end;align-items:center;gap:.5rem;flex-wrap:wrap}
.tutor-actions .muted{margin-right:auto}
.tutor-answer{border:1px solid var(--line);border-radius:12px;padding:.7rem .8rem;background:#fbfdff;max-height:40vh;overflow:auto;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.tutor-answer.loading{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* 教师：AI 讲题记录 */
.ai-log-list{display:flex;flex-direction:column;gap:.45rem}
.ai-log{border:1px solid var(--line);border-radius:10px;padding:.5rem .7rem;background:#fbfdff}
.ai-log summary{cursor:pointer;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;list-style:none}
.ai-log summary::-webkit-details-marker{display:none}
.ai-log .chip{margin-left:auto}
.ai-qa{border-top:1px dashed var(--line);margin-top:.45rem;padding-top:.45rem;color:var(--muted);font-size:.9rem}
.ai-qa p{margin:.25rem 0;white-space:pre-wrap;overflow-wrap:anywhere}
