/* Slightly smaller adventure cards, preserving the illustrated design. */
.dashboard .quest-panel .quest-node{min-height:224px;padding:16px}.dashboard .quest-panel .quest-card-top{min-height:67px}.dashboard .quest-panel .quest-card-art{width:66px;height:66px}.dashboard .quest-panel .quest-node h4{font-size:20px;margin:4px 0 8px}.dashboard .quest-panel .quest-node p{margin-bottom:12px}.dashboard .quest-panel .quest-node .quest-stars{margin-bottom:9px;font-size:18px}.dashboard .quest-panel .quest-enter{padding-top:9px}.dashboard .quest-panel #questMap{gap:16px}
@media(min-width:1700px){.dashboard .quest-panel #questMap{grid-template-columns:repeat(5,minmax(0,1fr))}}
#teacherToolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:#f2ecff;border:1px solid #bfaed8;border-left:6px solid #69479d;padding:18px 22px;margin-bottom:18px;border-radius:18px;color:#362a51}#teacherToolbar>div{flex:1}#teacherToolbar b{display:block;font-size:24px}#teacherToolbar span{display:block;font-size:14px;margin-top:4px}#teacherToolbar label{font-size:14px}#teacherToolbar select{margin-left:8px}
#teacherToolbar button,#teacherToolbar select,#teacherDialog button,#teacherDialog select,#teacherDialog input,#teacherStudentDialog button{border:1px solid #bdb0d3;background:#fff;color:#463360;border-radius:11px;padding:11px 14px;font-size:15px;min-height:44px}#teacherToolbar button,#teacherDialog button[type=submit]{background:#624191;color:#fff}
#teacherDialog,#teacherStudentDialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0;background:#f6f5fb;color:#29344b;overflow:auto}#teacherStudentDialog{z-index:5}
#teacherDialog::backdrop,#teacherStudentDialog::backdrop{background:#18223a99}
#teacherDialog>header,#teacherStudentDialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 30px;background:linear-gradient(110deg,#342958,#583e86);color:#fff}#teacherDialog header h2,#teacherStudentDialog header h2{font-size:32px;margin:6px 0}#teacherDialog header small,#teacherStudentDialog header small{color:#f4dba5;letter-spacing:.12em}#teacherDialog header p,#teacherStudentDialog header p{margin:0;color:#e6e1f2}
#teacherDialog main,#teacherStudentDialog main{padding:26px 30px}#teacherFilters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}#teacherFilters label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700}#teacherFilters input{min-width:240px}#teacherFilters button{font-weight:700}.teacher-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:20px 0}.teacher-summary b{font-size:22px;color:#433460}.teacher-note{background:#ece9f6;border-left:4px solid #8767b1;padding:14px 18px;font-size:14px;line-height:1.6;color:#4b5064}.teacher-table-scroll{overflow:auto;background:#fff;border:1px solid #d5cde3;border-radius:16px;margin:20px 0}.teacher-table-scroll table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.teacher-table-scroll th{background:#e9e4f4;color:#433255;padding:14px;white-space:nowrap}.teacher-table-scroll td{padding:14px;border-top:1px solid #e4dfed;line-height:1.5}.teacher-table-scroll tr:nth-child(even){background:#faf9fd}.teacher-table-scroll td small{display:block;font-size:12px;color:#59647b}.teacher-table-scroll td:first-child{min-width:190px}.teacher-pager{display:flex;justify-content:center;align-items:center;gap:18px}#teacherDialog button:disabled{opacity:.55;cursor:default}.teacher-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.teacher-metrics>div{background:#fff;border:1px solid #d6cce4;border-radius:14px;padding:18px}.teacher-metrics b{display:block;font-size:28px;color:#584183;margin-top:8px}.teacher-metrics small{color:#535c72}.teacher-history{max-height:360px;overflow:auto;background:#fff;border:1px solid #d3c8e3;border-radius:14px;padding:8px 18px}.teacher-history article{display:grid;grid-template-columns:185px 1fr;gap:7px 16px;padding:14px 0;border-bottom:1px solid #e4deed}.teacher-history article>span{grid-column:2;font-size:13px;color:#57627a}.teacher-history time{font-size:13px;color:#57627a}#teacherStudentDialog h3{font-size:24px;margin-top:30px}#teacherStudentDialog main>p{font-size:14px;color:#535f74;line-height:1.6}
@media(max-width:800px){#teacherDialog main,#teacherStudentDialog main{padding:18px 14px}#teacherDialog>header,#teacherStudentDialog>header{padding:18px;align-items:flex-start;flex-wrap:wrap}.teacher-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.teacher-history article{grid-template-columns:1fr}.teacher-history article>span{grid-column:auto}#teacherFilters label{flex:1}#teacherFilters input{min-width:0;width:100%}}
@media(max-width:500px){.teacher-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard .quest-panel .quest-node{min-height:216px;padding:14px}.dashboard .quest-panel .quest-node h4{font-size:18px}}

/* Participation reports share the existing teacher dashboard. */
.teacher-tabs{display:flex;gap:10px;padding:16px 30px 0;flex-wrap:wrap}#teacherDialog .teacher-tabs button[aria-pressed=true]{background:#624191;color:#fff;border-color:#624191}.teacher-report-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.teacher-report-heading>div{flex:1;min-width:200px}.teacher-report-heading h2{margin:0;font-size:26px}.teacher-report-heading p{font-size:14px}.teacher-report-heading label{display:flex;gap:8px;align-items:center}.participation-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.participation-leaders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.participation-leaders article{padding:20px;border:1px solid #c8b3e2;border-radius:16px;background:linear-gradient(120deg,#eee6ff,#fff8e5)}.participation-leaders small{font-weight:700;letter-spacing:.05em;color:#574176}.participation-leaders h3{font-size:22px;line-height:1.5;margin:10px 0 0}.teacher-table-scroll meter{display:block;width:120px;max-width:100%;height:14px;margin-top:6px;accent-color:#7450b4}
@media(max-width:800px){.participation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-tabs{padding:16px 14px 0}.participation-leaders{grid-template-columns:1fr}.teacher-report-heading{align-items:stretch}.teacher-report-heading>div{flex-basis:100%}}
