@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e293b;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202b40;
  --muted: #8994a7;
  --line: #e9edf3;
  --blue: #5878e8;
  --blue-dark: #4567d5;
  --green: #18a879;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; width: 246px; padding: 29px 17px 18px; background: #fff; border-right: 1px solid #edf0f5; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 49px; color: var(--ink); text-decoration: none; }
.brand-mark, .student-brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: #5878e8; color: #fff; font-family: Manrope, sans-serif; font-size: 21px; font-weight: 800; }
.brand-copy { font-family: Manrope, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -.7px; }
.brand-copy strong { font-weight: 800; }
.brand-copy small { display: block; margin-top: 2px; color: #9ca6b5; font: 10px "DM Sans", sans-serif; letter-spacing: .1px; }
.workspace-label { padding: 0 11px; color: #a2aaba; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.side-nav { display: grid; gap: 6px; margin-top: 14px; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 43px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #748097; text-align: left; font-size: 13px; font-weight: 500; transition: .16s ease; }
.nav-item:hover { background: #f7f8fc; color: var(--ink); }
.nav-item.active { background: #eef2ff; color: #4b69d4; font-weight: 600; }
.nav-icon { display: grid; place-items: center; width: 17px; color: currentColor; font-size: 17px; }
.sidebar-spacer { flex: 1; }
.teacher-card { display: flex; align-items: center; gap: 10px; padding: 13px 5px 2px; border-top: 1px solid #edf0f5; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9edff; color: #5874da; font-size: 11px; font-weight: 700; }
.teacher-meta { display: grid; flex: 1; gap: 3px; }
.teacher-meta strong { font-size: 11px; }
.teacher-meta span { color: #99a2b1; font-size: 9px; }
.more-icon { color: #a0a8b6; font-size: 20px; letter-spacing: 1px; }
.main-area { min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 67px; padding: 0 42px; border-bottom: 1px solid #ebeff4; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #9aa4b4; font-size: 11px; }
.breadcrumb strong { color: #465268; font-weight: 600; }
.crumb-divider { color: #c6ccd6; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.saved-indicator { color: #8792a3; font-size: 10px; }
.live-dot, .status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #26bb8b; vertical-align: 1px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 600; transition: background .16s, transform .16s, border-color .16s; }
.button:active { transform: translateY(1px); }
.button-outline { border-color: #e3e8f0; background: #fff; color: #58647a; }
.button-outline:hover { border-color: #bfcaf5; background: #f8f9ff; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 3px 7px #5878e824; }
.button-primary:hover { background: var(--blue-dark); }
.button-wide { width: 100%; }
.page-content { max-width: 1440px; margin: 0 auto; padding: 39px 42px 55px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: #8090ab; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.eyebrow-line { width: 16px; height: 2px; border-radius: 3px; background: #738aeb; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, "DM Sans", sans-serif; }
.page-heading h1 { margin: 0; color: #202b40; font-size: 25px; font-weight: 700; letter-spacing: -.8px; }
.wave { display: inline-block; margin-left: 3px; color: #f2aa4d; font-size: 19px; }
.page-heading p { margin: 7px 0 0; color: #8d97a8; font-size: 11px; }
.heading-date { display: flex; align-items: center; gap: 8px; padding-bottom: 2px; color: #7b879a; font-size: 10px; }
.calendar-icon { color: #8292ad; font-size: 15px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card, .panel { border: 1px solid #e9edf3; border-radius: 10px; background: #fff; }
.stat-card { min-height: 125px; padding: 16px 17px 13px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #7d8899; font-size: 10px; }
.stat-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; font-size: 15px; }
.icon-blue { background: #eef2ff; color: #6681e8; }
.icon-green { background: #e8f8f1; color: #20a97e; }
.icon-purple { background: #f3edff; color: #9a71dd; }
.icon-orange { background: #fff3e6; color: #eea046; }
.stat-value { margin-top: 8px; color: #202b40; font-family: Manrope, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.7px; }
.stat-value small { color: #818da1; font: 11px "DM Sans", sans-serif; }
.stat-caption { margin-top: 1px; color: #9aa3b1; font-size: 9px; }
.stat-caption .status-dot { width: 6px; height: 6px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); gap: 15px; margin-top: 17px; }
.panel { padding: 18px 19px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin: 0; color: #2b3548; font-size: 13px; font-weight: 700; letter-spacing: -.2px; }
.panel-heading p { margin: 5px 0 0; color: #9aa3b1; font-size: 9px; }
.text-button { border: 0; background: transparent; color: #5a76dd; font-size: 10px; font-weight: 600; }
.text-button span { margin-left: 4px; }
.activity-panel { min-height: 290px; }
.empty-state { display: grid; justify-items: center; padding: 39px 12px 18px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 12px; border-radius: 13px; background: #f2f5ff; color: #7790e9; font-size: 19px; }
.empty-state strong { color: #576277; font-size: 11px; }
.empty-state p { max-width: 265px; margin: 6px 0 0; color: #9aa3b1; font-size: 9px; line-height: 1.6; }
.attempt-list { margin-top: 15px; }
.attempt-row { display: grid; grid-template-columns: 34px minmax(100px, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f0f2f6; }
.attempt-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #f0f3ff; color: #6d83d7; font-size: 10px; font-weight: 700; }
.attempt-person { display: grid; gap: 3px; }
.attempt-person strong { overflow: hidden; color: #3d485b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attempt-person span, .attempt-time { color: #9aa3b1; font-size: 9px; }
.badge { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 20px; font-size: 8px; font-weight: 600; white-space: nowrap; }
.badge-live { background: #e9f8f1; color: #19986e; }
.badge-done { background: #eef2ff; color: #5c72d1; }
.badge .status-dot { width: 5px; height: 5px; margin-right: 4px; }
.assignment-panel { padding-bottom: 15px; }
.assignment-panel .panel-heading { align-items: flex-start; }
.assignment-card { display: flex; align-items: center; gap: 13px; margin-top: 21px; padding: 13px 12px; border: 1px solid #edf0f5; border-radius: 8px; background: #fcfdff; }
.assignment-illustration { position: relative; display: grid; flex: 0 0 50px; place-items: center; width: 50px; height: 50px; border-radius: 10px; background: #edf2ff; color: #6680e1; }
.assignment-illustration span { font-family: Georgia, serif; font-size: 24px; }
.assignment-illustration i { position: absolute; top: 4px; right: 5px; color: #edb354; font-size: 10px; font-style: normal; }
.assignment-detail { min-width: 0; }
.assignment-subtitle { color: #8593ad; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.assignment-detail h3 { overflow: hidden; margin: 5px 0 3px; color: #313d51; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.assignment-detail p { margin: 0; color: #98a2b1; font-size: 9px; }
.assignment-detail p span { margin: 0 3px; color: #c2c8d1; }
.assignment-footer { display: flex; align-items: center; justify-content: space-between; margin: 15px 0; color: #8d98a8; font-size: 9px; }
.group-pills { display: flex; gap: 5px; }
.group-pills span { padding: 5px 8px; border-radius: 5px; background: #f2f4f9; color: #657188; font-size: 8px; font-weight: 600; }
.assignment-panel .button-wide { min-height: 35px; font-size: 10px; }
.insight-panel { display: flex; align-items: center; gap: 13px; margin-top: 16px; padding: 14px 17px; }
.insight-symbol { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff5e8; color: #eaa64b; }
.insight-panel div:nth-child(2) { flex: 1; }
.insight-panel strong { color: #445066; font-size: 10px; }
.insight-panel p { margin: 3px 0 0; color: #929dae; font-size: 9px; line-height: 1.5; }
.insight-panel .button { min-height: 32px; padding: 0 10px; font-size: 9px; white-space: nowrap; }
.standalone-panel { min-height: 280px; }
.assignment-card-large { margin-top: 24px; }
.assignment-card-large .assignment-illustration { width: 62px; height: 62px; flex-basis: 62px; }
.assignment-card-large .assignment-detail h3 { font-size: 15px; }
.standalone-panel > .button { margin-top: 8px; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 11px; border-bottom: 1px solid #edf0f5; color: #909aab; font-size: 9px; font-weight: 600; white-space: nowrap; }
td { padding: 12px 11px; border-bottom: 1px solid #f0f2f6; color: #556176; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
.table-person { color: #39465b; font-weight: 600; }
.score-pill { color: #3f6cc8; font-weight: 700; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.report-summary > div { padding: 13px; border-radius: 8px; background: #f7f8fc; }
.report-summary span { display: block; color: #8994a6; font-size: 9px; }
.report-summary strong { display: block; margin-top: 6px; color: #344057; font-size: 16px; }
.hidden { display: none !important; }

.student-page { min-height: calc(100vh - 67px); padding: 20px clamp(20px, 5vw, 68px) 42px; background: radial-gradient(ellipse at 49% 18%, #eef2ff 0, #f7f8fc 47%, #f7f8fc 100%); }
.student-topline { display: flex; align-items: center; justify-content: space-between; }
.back-button { display: flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; background: transparent; color: #70809a; font-size: 12px; }
.student-demo-tag { padding: 6px 9px; border-radius: 20px; background: #fff; color: #75849b; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.student-demo-tag .live-dot { width: 6px; height: 6px; }
.student-entry { display: grid; justify-items: center; padding: 32px 16px 20px; }
.student-intro { max-width: 480px; margin-bottom: 24px; text-align: center; }
.student-brand-mark { width: 42px; height: 42px; margin: 0 auto 19px; border-radius: 14px; font-size: 22px; }
.student-intro .eyebrow { justify-content: center; margin-bottom: 8px; font-size: 8px; }
.student-intro h1 { margin: 0; color: #202b40; font-size: 27px; letter-spacing: -.8px; }
.student-intro p { margin: 8px 0 0; color: #8590a2; font-size: 11px; line-height: 1.65; }
.entry-card { width: min(100%, 420px); padding: 21px 23px 17px; border: 1px solid #e8ecf3; border-radius: 12px; background: #fff; box-shadow: 0 12px 34px #3448720d; }
.entry-card-header { display: flex; align-items: center; gap: 12px; }
.entry-icon { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: #edf2ff; color: #6780e2; font-family: Georgia, serif; font-size: 23px; }
.entry-card-header h2 { margin: 4px 0 0; color: #2c384d; font-size: 14px; }
.entry-meta { display: flex; justify-content: space-between; margin: 18px 0 20px; padding: 11px 0; border-top: 1px solid #f0f2f6; border-bottom: 1px solid #f0f2f6; color: #8490a3; font-size: 9px; }
.entry-card form { display: grid; gap: 8px; }
.entry-card label { margin-top: 3px; color: #4b586e; font-size: 10px; font-weight: 600; }
.entry-card input, .entry-card select { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #e4e9f0; border-radius: 6px; outline: 0; background: #fff; color: #465269; font-size: 10px; }
.entry-card input:focus, .entry-card select:focus { border-color: #8298eb; box-shadow: 0 0 0 3px #edf1ff; }
.entry-card input::placeholder { color: #b3bbc7; }
.entry-card select:disabled { background: #f5f6fa; color: #69758b; cursor: not-allowed; }
.group-lock-notice { margin: 0; padding: 9px; border-radius: 6px; background: #fff7e9; color: #9a6c20; font-size: 9px; line-height: 1.5; }
.entry-submit { min-height: 40px; margin-top: 7px; }
.privacy-note { margin: 13px 0 0; color: #9aa3b1; font-size: 8px; text-align: center; }
.privacy-note span { margin-right: 3px; color: #8292b3; }
.student-entry-footer { margin-top: 16px; color: #9aa3b1; font-size: 9px; }
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 25px; max-width: 1050px; margin: 42px auto 0; }
.quiz-main { min-width: 0; }
.quiz-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.quiz-heading h1 { margin: 6px 0 3px; color: #26334a; font-size: 24px; letter-spacing: -.7px; }
.quiz-heading p { margin: 0; color: #8994a7; font-size: 10px; }
.fullscreen-button { min-height: 33px; font-size: 9px; white-space: nowrap; }
.progress-card, .question-card, .attempt-info-card, .timer-card { border: 1px solid #e7ebf2; border-radius: 10px; background: #fff; }
.progress-card { margin-top: 22px; padding: 15px 17px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 10px; color: #748096; font-size: 9px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 6px; background: #eef1f6; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: #6480e4; transition: width .2s ease; }
.question-card { min-height: 292px; margin-top: 13px; padding: 24px 22px; }
.question-number { color: #8291ab; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.question-card h2 { margin: 12px 0 18px; color: #2a374d; font-size: 16px; line-height: 1.5; }
.answer-options { display: grid; gap: 8px; }
.answer-option { display: flex; align-items: center; gap: 10px; min-height: 41px; padding: 8px 11px; border: 1px solid #e8ecf2; border-radius: 7px; color: #556177; cursor: pointer; font-size: 10px; transition: .15s; }
.answer-option:hover { border-color: #c4cff4; background: #fafbff; }
.answer-option.selected { border-color: #8da1ee; background: #f3f5ff; color: #405ab3; }
.answer-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-letter { display: grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border: 1px solid #e2e7ef; border-radius: 6px; background: #fff; color: #8290a5; font-size: 9px; font-weight: 600; }
.answer-option.selected .option-letter { border-color: #91a3eb; background: #687fe1; color: #fff; }
.answer-option.correct-answer { border-color: #61c59d; background: #eaf8f1; color: #237452; cursor: default; }
.answer-option.correct-answer .option-letter { border-color: #27a879; background: #27a879; color: #fff; }
.answer-option.wrong-answer { border-color: #e58b91; background: #fff0f0; color: #a83f49; cursor: default; }
.answer-option.wrong-answer .option-letter { border-color: #dc6872; background: #dc6872; color: #fff; }
.answer-feedback { margin-left: auto; font-size: 15px; font-weight: 700; }
.answer-option.correct-answer .answer-feedback { color: #19895e; }
.answer-option.wrong-answer .answer-feedback { color: #cf4f5a; }
.quiz-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.quiz-controls .button { min-height: 35px; font-size: 9px; }
.quiz-controls .button:disabled { opacity: .45; cursor: not-allowed; }
.save-state { color: #8793a5; font-size: 8px; text-align: center; }
.save-check { margin-right: 4px; color: #24a87d; font-weight: 700; }
.question-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.question-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #dce1e9; }
.question-dot.current { width: 19px; border-radius: 6px; background: #6881e5; }
.question-dot.answered:not(.current) { background: #30b58a; }
.quiz-sidebar { display: flex; flex-direction: column; gap: 12px; }
.timer-card { padding: 16px; text-align: center; }
.timer-heading { display: flex; align-items: center; justify-content: center; gap: 7px; color: #8994a5; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.timer-icon { color: #758be2; font-size: 15px; }
.timer-display { margin-top: 10px; color: #29364d; font-family: Manrope, sans-serif; font-size: 32px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.timer-display.timer-warning { color: #d88b37; }
.timer-display.timer-danger { color: #d65a64; }
.timer-caption { margin-top: 2px; color: #a0a8b5; font-size: 8px; }
.attempt-info-card { padding: 15px; }
.attempt-info-card h3 { margin: 0 0 13px; color: #38445a; font-size: 11px; }
.attempt-info-card > div:not(.locked-note) { display: flex; justify-content: space-between; gap: 8px; margin: 9px 0; }
.attempt-info-card > div span { color: #919bab; font-size: 8px; }
.attempt-info-card > div strong { color: #566278; font-size: 8px; text-align: right; }
.locked-note { margin-top: 13px; padding: 9px; border-radius: 6px; background: #f6f7fa; color: #818da0; font-size: 8px; line-height: 1.5; }
.locked-note span { margin-right: 4px; color: #7e8cab; }
.button-submit { min-height: 39px; background: #fff; border-color: #dfe5ee; color: #536078; }
.button-submit:hover { border-color: #9fafe9; background: #f8f9ff; }
.submit-hint { margin: -7px 0 0; color: #a2aab6; font-size: 8px; text-align: center; }
.result-view { display: grid; place-items: center; min-height: calc(100vh - 155px); padding: 28px 0; }
.result-card { width: min(100%, 420px); padding: 28px; border: 1px solid #e6ebf2; border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 12px 35px #3448720d; }
.result-icon { display: grid; place-items: center; width: 49px; height: 49px; margin: 0 auto 17px; border-radius: 50%; background: #e8f8f0; color: #20a67a; font-size: 23px; }
.result-card .eyebrow { justify-content: center; }
.result-card h1 { margin: 0; color: #26334a; font-size: 23px; }
.result-card > p { margin: 7px 0; color: #8994a7; font-size: 10px; }
.result-score { display: grid; gap: 3px; margin: 20px 0; padding: 16px; border-radius: 9px; background: #f5f7ff; }
.result-score strong { color: #5875de; font-family: Manrope, sans-serif; font-size: 32px; }
.result-score span { color: #8994a7; font-size: 9px; }
.result-detail { display: flex; justify-content: space-between; padding: 10px 2px; border-top: 1px solid #f0f2f6; color: #8994a7; font-size: 9px; }
.result-detail strong { color: #515d72; font-size: 9px; }
.result-card .button { margin-top: 13px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: min(390px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #e6eaf0; border-radius: 8px; background: #fff; color: #455168; box-shadow: 0 8px 30px #2536551c; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #f0d1d3; color: #b94e57; }
.portal-page { display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 25%, #edf1ff 0, #f5f7fb 63%); }
.portal-card { display: grid; justify-items: center; width: min(100%, 390px); padding: 34px 30px 26px; border: 1px solid #e8ecf3; border-radius: 14px; background: #fff; box-shadow: 0 14px 40px #34487212; text-align: center; }
.portal-card .student-brand-mark { margin-bottom: 18px; }
.portal-card .eyebrow { margin-bottom: 8px; }
.portal-card h1 { margin: 0; color: #26334a; font-size: 24px; }
.portal-card > p { margin: 8px 0 19px; color: #8994a7; font-size: 11px; }
.portal-card .button { margin-top: 9px; text-decoration: none; }
.portal-card > small { margin-top: 18px; color: #9aa3b1; font-size: 9px; }
.group-form { display: flex; align-items: flex-end; gap: 10px; max-width: 620px; margin: 23px 0; }
.group-form label { align-self: center; color: #4b586e; font-size: 10px; font-weight: 600; }
.group-form input { flex: 1; min-width: 150px; height: 38px; padding: 0 11px; border: 1px solid #e4e9f0; border-radius: 6px; outline: 0; color: #465269; font-size: 10px; }
.group-form input:focus { border-color: #8298eb; box-shadow: 0 0 0 3px #edf1ff; }
.managed-group-list { display: grid; max-width: 620px; border-top: 1px solid #edf0f5; }
.managed-group { display: flex; align-items: center; gap: 12px; padding: 12px 3px; border-bottom: 1px solid #f0f2f6; }
.managed-group > span { min-width: 90px; color: #39465b; font-size: 11px; font-weight: 600; }
.managed-group small { flex: 1; color: #929dae; font-size: 9px; }
.group-remove { padding: 6px 9px; border: 1px solid #e5e9ef; border-radius: 6px; background: #fff; color: #758198; font-size: 9px; }
.group-remove:disabled { opacity: .45; cursor: not-allowed; }
.student-only .student-page { min-height: 100vh; }

@media (max-width: 1050px) {
  .sidebar { width: 214px; }
  .main-area { margin-left: 214px; }
  .page-content { padding-right: 26px; padding-left: 26px; }
  .topbar { padding-right: 26px; padding-left: 26px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .assignment-panel { min-height: 0; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; height: auto; padding: 13px 16px 0; border-right: 0; }
  .brand { margin: 0 0 12px; }
  .workspace-label { display: none; }
  .sidebar-spacer { display: none; }
  .teacher-card { display: flex; margin-top: 3px; padding: 10px 0 12px; }
  .teacher-card .more-icon { min-height: 38px; padding: 0 10px; border: 1px solid #e3e8f0; border-radius: 7px; color: #58647a; font-size: 11px; letter-spacing: 0; white-space: nowrap; }
  .side-nav { display: flex; gap: 3px; overflow-x: auto; margin: 0 -2px; padding-bottom: 10px; }
  .nav-item { flex: 0 0 auto; height: 35px; padding: 0 9px; font-size: 10px; }
  .nav-icon { font-size: 13px; }
  .main-area { margin-left: 0; }
  .topbar { position: static; height: 49px; padding: 0 17px; }
  .saved-indicator { display: none; }
  .topbar-actions { gap: 0; }
  .topbar-actions .button { min-height: 32px; font-size: 9px; }
  .page-content { padding: 27px 17px 38px; }
  .page-heading { align-items: flex-start; gap: 12px; }
  .page-heading h1 { font-size: 21px; }
  .page-heading p { max-width: 300px; line-height: 1.5; }
  .heading-date { padding-top: 4px; white-space: nowrap; font-size: 8px; }
  .stats-grid { gap: 9px; }
  .stat-card { min-height: 112px; padding: 13px; }
  .stat-top { font-size: 9px; }
  .stat-value { font-size: 23px; }
  .panel { padding: 15px; }
  .insight-panel { align-items: flex-start; flex-wrap: wrap; }
  .insight-panel .button { margin-left: 45px; }
  .student-page { min-height: calc(100vh - 166px); padding: 13px 16px 30px; }
  .student-entry { padding-top: 25px; }
  .group-form { align-items: stretch; flex-direction: column; }
  .group-form label { align-self: flex-start; }
  .quiz-layout { grid-template-columns: 1fr; gap: 12px; margin-top: 25px; }
  .quiz-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .timer-card { grid-row: span 2; }
  .attempt-info-card { grid-column: 2; }
  .button-submit { grid-column: 2; }
  .submit-hint { grid-column: 2; }
}
@media (max-width: 480px) {
  .nav-item { gap: 6px; padding: 0 8px; }
  .page-heading { display: block; }
  .heading-date { margin-top: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 105px; }
  .attempt-row { grid-template-columns: 32px minmax(80px, 1fr) auto; }
  .attempt-time { display: none; }
  .entry-card { padding: 18px 16px 15px; }
  .entry-meta { gap: 6px; font-size: 8px; }
  .student-intro h1 { font-size: 24px; }
  .quiz-heading h1 { font-size: 20px; }
  .fullscreen-button { gap: 4px; padding: 0 8px; }
  .fullscreen-button span { display: none; }
  .question-card { padding: 19px 16px; }
  .quiz-controls { gap: 5px; }
  .quiz-controls .button { padding: 0 9px; }
  .save-state { max-width: 115px; line-height: 1.4; }
  .quiz-sidebar { grid-template-columns: 1fr; }
  .timer-card, .attempt-info-card, .button-submit, .submit-hint { grid-column: 1; }
  .timer-card { grid-row: auto; }
}
