.teacher-dashboard { --td-accent: var(--color1, #7022b8); --td-ink: #302740; --td-muted: #746b80; display: grid; gap: 24px; color: var(--td-ink); }
.teacher-dashboard .td-heading, .teacher-dashboard .td-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.teacher-dashboard h1 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 750; color: var(--td-ink); }
.teacher-dashboard .td-heading p { margin: 0; color: var(--td-muted); }
.teacher-dashboard .td-profile-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid #e7dcf3; border-radius: 12px; background: #faf7ff; color: var(--td-accent); font-size: .85rem; font-weight: 600; text-decoration: none; }
.teacher-dashboard .td-profile-link:hover { background: #f0e8fa; }
.teacher-dashboard .td-profile-link:focus-visible { outline: 3px solid var(--td-accent); outline-offset: 3px; }
.teacher-dashboard .td-overview { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1.1fr; gap: 18px; }
.teacher-dashboard .td-panel { min-width: 0; padding: 24px; border: 1px solid #eee8f3; border-radius: 20px; background: #fff; box-shadow: 0 6px 24px rgba(46, 27, 68, .035); }
.teacher-dashboard h2 { margin: 0 0 16px; color: var(--td-ink); font-size: .95rem; font-weight: 700; line-height: 1.8; }
.teacher-dashboard .td-identity { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; background: linear-gradient(140deg, #faf5ff, #fff); }
.teacher-dashboard .td-identity h2 { margin: 4px 0 0; font-size: 1.12rem; }
.teacher-dashboard .td-avatar { display: block; flex-shrink: 0; width: 80px; height: 80px; border: 3px solid #fff; border-radius: 24px; object-fit: cover; box-shadow: 0 4px 16px #48246b12; }
.teacher-dashboard .td-avatar-placeholder { display: grid; place-items: center; background: #f1eafa; color: #956db8; font-size: 1.8rem; }
.teacher-dashboard .td-eyebrow { color: var(--td-accent); font-size: .8rem; }
.teacher-dashboard .td-symbol { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: #f5effc; color: var(--td-accent); font-size: 1.15rem; }
.teacher-dashboard .td-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.teacher-dashboard .td-tag { padding: 5px 10px; border-radius: 8px; background: #f7f3fc; color: #6b4d88; font-size: .8rem; overflow-wrap: anywhere; }
.teacher-dashboard .td-muted { margin: 0; color: var(--td-muted); font-size: .82rem; line-height: 1.9; }
.teacher-dashboard .td-supervisor { display: flex; flex-direction: column; gap: 16px; }
.teacher-dashboard .td-supervisor h2 { margin-bottom: 8px; }
.teacher-dashboard .td-supervisor .td-avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 1.4rem; }
.teacher-dashboard .td-section-heading { margin-bottom: 20px; }
.teacher-dashboard .td-section-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.teacher-dashboard .td-courses .td-section-heading h2 { flex:1 1 auto;min-width:0;max-width:none;white-space:nowrap; }
.teacher-dashboard .td-courses .td-section-heading h2 > i,.teacher-dashboard .td-courses .td-count { flex-shrink:0; }
@media(max-width:575px){.teacher-dashboard .td-courses .td-section-heading { flex-wrap:wrap; }.teacher-dashboard .td-courses .td-section-heading h2 { flex-basis:100%;font-size:.78rem; }}
.teacher-dashboard .td-section-heading i { color: var(--td-accent); }
.teacher-dashboard .td-count { display: grid; place-items: center; min-width: 30px; min-height: 30px; padding: 2px 8px; border-radius: 10px; background: #f4edf9; color: var(--td-accent); font-size: .8rem; }
.teacher-dashboard .td-book-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.teacher-dashboard .td-book { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #eee8f3; border-radius: 14px; }
.teacher-dashboard .td-book img, .teacher-dashboard .td-book-placeholder { flex-shrink: 0; width: 56px; height: 72px; border-radius: 6px; object-fit: contain; background: #f7f3fb; }
.teacher-dashboard .td-book-placeholder { display: grid; place-items: center; color: #ab91c5; font-size: 1.4rem; }
.teacher-dashboard .td-book h3 { margin: 0; color: var(--td-ink); font-size: .9rem; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.teacher-dashboard .td-empty { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 24px 12px; border: 1px dashed #e7dcef; border-radius: 14px; color: var(--td-muted); font-size: .85rem; }
.teacher-dashboard .td-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.teacher-dashboard .td-metric { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.teacher-dashboard .td-metric h2 { margin: 0 0 6px; }
.teacher-dashboard .td-dial { display: grid; place-items: center; width: 180px; max-width: 100%; aspect-ratio: 1; padding: 10px; border-radius: 50%; background: linear-gradient(135deg, #a94ce6, var(--td-accent)); }
.teacher-dashboard .td-dial > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 12px; border-radius: 50%; background: #fff; }
.teacher-dashboard .td-dial strong { color: var(--td-ink); font-size: 2.25rem; font-weight: 750; line-height: 1.3; }
.teacher-dashboard .td-dial span { color: var(--td-muted); font-size: .75rem; }
.teacher-dashboard .td-dial-empty { background: #f1edf5; }
.teacher-dashboard .td-dial-empty strong { color: #a59bb0; font-size: 1.65rem; }
.teacher-dashboard .td-dial-empty i { color: #ac97c0; font-size: 1.3rem; }
.teacher-dashboard .td-student-count { margin: 0; color: var(--td-accent); font-size: .85rem; }
.teacher-dashboard .td-metric .td-profile-link { margin-top: auto; }
.teacher-dashboard .td-status { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 12px; background: #f6f0fc; color: var(--td-accent); }
.teacher-dashboard .td-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
@media (max-width: 1199px) { .teacher-dashboard .td-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .teacher-dashboard .td-metrics { grid-template-columns: minmax(0, 1fr); } .teacher-dashboard .td-heading { align-items: flex-start; flex-direction: column; } .teacher-dashboard .td-panel { padding: 20px; } }
@media (max-width: 479px) { .teacher-dashboard .td-overview { grid-template-columns: minmax(0, 1fr); } .teacher-dashboard .td-identity, .teacher-dashboard .td-supervisor { flex-direction: row; align-items: center; justify-content: flex-start; } .teacher-dashboard .td-book-list { grid-template-columns: minmax(0, 1fr); } .teacher-dashboard h1 { font-size: 1.35rem; } .teacher-dashboard .td-empty, .teacher-dashboard .td-error { flex-direction: column; text-align: center; } }

.teacher-dashboard .td-heading-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; flex-shrink:0; }

.teacher-dashboard.student-dashboard .td-overview { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.student-dashboard .sd-person { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.student-dashboard .sd-person h2 { margin: 4px 0 0; overflow-wrap: anywhere; }
.student-dashboard .sd-teachers { display: grid; align-content: start; gap: 20px; }
.student-dashboard .td-tags { max-height: 160px; overflow-y: auto; }
.student-dashboard .td-dial i { color: var(--td-accent); }
@media (max-width: 1399px) { .teacher-dashboard.student-dashboard .td-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .teacher-dashboard.student-dashboard .td-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .teacher-dashboard.student-dashboard .td-overview { grid-template-columns: minmax(0, 1fr); } .student-dashboard .sd-person { flex-direction: row; align-items: center; } }
