.teacher-material-lab{margin-top:18px;border:1px solid #dbe4ee;border-radius:16px;background:#fbfdff;overflow:hidden}
.teacher-material-lab>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;list-style:none;background:#f3f8fc}
.teacher-material-lab>summary::-webkit-details-marker{display:none}.teacher-material-lab>summary span:first-child{display:flex;flex-direction:column;gap:2px}.teacher-material-lab>summary small{color:#64748b;font-weight:600}
.tml-body{padding:16px}.tml-top-actions,.tml-chip-grid,.tml-library-head>div,.tml-library-actions{display:flex;gap:8px;flex-wrap:wrap}.tml-top-actions{margin-bottom:12px}
.tml-top-actions button,.tml-chip-grid button,.tml-pane button,.tml-library-actions button,.tml-import{border:1px solid #cbd5e1;background:#fff;border-radius:9px;padding:8px 10px;font:inherit;font-weight:700;cursor:pointer;color:#243b53}
.tml-top-actions button:disabled,.teacher-material-lab.is-busy button[data-ai-action]{opacity:.55;cursor:wait}.tml-tabs{display:flex;gap:6px;overflow-x:auto;margin:14px 0;border-bottom:1px solid #e2e8f0;padding-bottom:8px}
.tml-tabs button{white-space:nowrap;border:0;background:transparent;border-radius:8px;padding:8px 10px;font:inherit;font-weight:800;color:#52606d;cursor:pointer}.tml-tabs button.active{background:#e8f2fb;color:#173f63}.tml-pane{display:none}.tml-pane.active{display:block}
.tml-help,.tml-muted{color:#64748b;font-size:.88rem;line-height:1.5}.tml-chip-grid{margin:10px 0 14px}.tml-chip-grid button:hover,.tml-pane button:hover,.tml-top-actions button:hover{border-color:#8eb6d8;background:#f7fbff}
.tml-manual{margin-top:14px;border-top:1px solid #e2e8f0;padding-top:12px}.tml-manual summary{cursor:pointer;font-weight:800}.tml-manual textarea{width:100%;box-sizing:border-box;margin:10px 0;padding:12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;line-height:1.5;resize:vertical;background:#fff}
.tml-check-row{display:flex;gap:10px;margin:8px 0;padding:10px 12px;border-radius:11px;border:1px solid #e2e8f0;background:#fff}.tml-check-row p{margin:4px 0 0;color:#52606d;font-size:.85rem;line-height:1.45}.tml-check-icon{font-weight:900;min-width:20px}
.tml-good{border-color:#D6E6F5;background:#F5F9FE}.tml-partial{border-color:#f0d7a8;background:#fffaf0}.tml-unknown{border-color:#d9dee7;background:#f8fafc}.tml-data-label{display:inline-block;margin-top:6px;font-size:.72rem;font-weight:800;color:#5b6b7a}.tml-ai-estimate{margin:12px 0 8px;padding:8px 10px;border-radius:9px;background:#f5f0ff;color:#5b3d8a;font-size:.82rem}
.tml-primary{margin:6px 0 10px;background:#173f63!important;color:#fff!important;border-color:#173f63!important}.tml-misconception-wrap{margin-top:18px;padding-top:14px;border-top:1px solid #e2e8f0}.tml-misconception-wrap h3{font-size:1rem;margin:0 0 9px}.tml-misconception{display:flex;align-items:flex-start;gap:9px;margin:8px 0;padding:9px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.tml-misconception input{margin-top:4px}.tml-misconception span{display:flex;flex-direction:column;gap:3px}.tml-misconception small{color:#64748b;line-height:1.4}
.tml-library-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.tml-import{display:inline-flex;align-items:center}.tml-import input{display:none}.tml-library-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #e8edf3}.tml-library-item>div:first-child{display:flex;flex-direction:column;gap:4px}.tml-library-item small{color:#64748b}.tml-library-actions button{font-size:.78rem;padding:6px 8px}.tml-status{min-height:20px;margin-top:12px;color:#425466;font-size:.85rem;font-weight:700}
@media(max-width:680px){.tml-library-head,.tml-library-item{display:block}.tml-library-head>div,.tml-library-actions{margin-top:9px}.tml-tabs{margin-left:-4px;margin-right:-4px}.tml-body{padding:13px}.teacher-material-lab>summary{padding:13px}}
@media print{.teacher-material-lab{display:none!important}}

.teacher-material-lab{margin:16px 0 12px;border:2px solid #b9d3e7;background:#f7fbff}
.teacher-material-lab>summary{padding:16px 18px;background:linear-gradient(180deg,#eef7ff,#f8fbff)}
.tml-summary-kicker{font-size:.72rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#1D5D8C}
.tml-summary-cta{flex:0 0 auto;border:1px solid #9bbfdc;background:#fff;color:#173f63;border-radius:9px;padding:8px 10px;font-size:.8rem;font-weight:850}
.teacher-material-lab[open] .tml-summary-cta{display:none}
@media(max-width:680px){.teacher-material-lab>summary{align-items:flex-start}.tml-summary-cta{display:none}}

@media print{.result-actions,#classQrPanel{display:none!important}}
