.teacher-card{width:100%;max-width:none;margin:22px 0;padding:26px;border-radius:24px;background:linear-gradient(145deg,var(--strong),#edf5ff)}
.teacher-head{display:flex;align-items:center;gap:16px}.teacher-avatar{width:55px;height:55px;display:grid;place-items:center;flex:none;border-radius:18px;background:linear-gradient(145deg,#73a7ff,#357af1);color:#fff;font-size:1.7rem;box-shadow:0 10px 24px rgba(48,113,225,.25)}
.teacher-head div{flex:1}.teacher-head h2,.teacher-head p{margin:0}.teacher-head p{margin-top:3px;color:var(--muted)}
.teacher-chat{display:grid;gap:10px;max-height:430px;margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.62);overflow-y:auto;overscroll-behavior:contain}.teacher-welcome{color:var(--muted);text-align:center;padding:18px}.teacher-message{max-width:86%;padding:12px 15px;border-radius:16px;white-space:pre-wrap;line-height:1.5}.teacher-message.user{justify-self:end;border-bottom-right-radius:5px;background:var(--blue);color:#fff}.teacher-message.assistant{justify-self:start;border-bottom-left-radius:5px;background:var(--strong);border:1px solid var(--line)}
.teacher-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.teacher-form textarea{width:100%;min-height:52px;max-height:150px;padding:13px 15px;border:1px solid var(--line);border-radius:15px;background:var(--strong);color:var(--ink);font:inherit;resize:vertical}.teacher-form textarea:focus{outline:3px solid rgba(60,125,245,.18);border-color:var(--blue)}.teacher-form .button{align-self:end}.teacher-typing{color:var(--blue);font-weight:800}
html[data-theme="dark"] .teacher-card{background:linear-gradient(145deg,#1b2d49,#15243a)}html[data-theme="dark"] .teacher-chat{background:rgba(7,17,30,.42)}
@media(max-width:620px){.teacher-card{width:100%;max-width:none;margin:12px 0;padding:14px;border-radius:18px}.teacher-avatar{width:46px;height:46px;border-radius:14px}.teacher-head h2{font-size:1.35rem}.teacher-chat{max-height:55vh;margin:14px 0;padding:10px}.teacher-message{max-width:94%;padding:10px 12px}.teacher-form{grid-template-columns:1fr}.teacher-form .button{width:100%}}
.teacher-image-picker{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:9px}.teacher-image-picker>span{color:var(--muted);font-size:.9rem;font-weight:700}.teacher-image-button{display:inline-flex;align-items:center;min-height:42px;padding:0 14px;border:1px solid rgba(60,125,245,.36);border-radius:13px;background:rgba(60,125,245,.1);color:var(--blue);font-weight:800;cursor:pointer}.teacher-image-button:hover{background:rgba(60,125,245,.18)}.teacher-image-preview{display:flex;flex-wrap:wrap;gap:7px;width:100%}.teacher-image-preview:empty{display:none}.teacher-image-preview>span{position:relative;display:flex;align-items:center;gap:7px;max-width:220px;padding:5px 34px 5px 5px;border:1px solid var(--line);border-radius:12px;background:var(--strong)}.teacher-image-preview img{width:42px;height:42px;border-radius:8px;object-fit:cover}.teacher-image-preview b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.teacher-image-preview button{position:absolute;right:6px;width:25px;height:25px;border:0;border-radius:8px;background:rgba(220,55,75,.13);color:#d53750;font-size:1.1rem;cursor:pointer}
