/* Student surfaces use real Learn data and keep native route/state rules. */
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-page-heading { margin: 0 0 26px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-page-heading h1 { margin: 12px 0 0; font-size: 30px; letter-spacing: -.035em; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-back { display: inline-flex; align-items: center; gap: 9px; color: var(--ht-muted); font-size: 14px; text-decoration: none; min-height: 30px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-back:hover { color: var(--ht-blue); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-class { max-width: 1180px; margin: 0 auto; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-overview { border: 1px solid var(--ht-line); border-radius: 14px; background: var(--ht-paper); padding: 24px; margin-bottom: 32px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-eyebrow { font-size: var(--ht-text-xs); letter-spacing: .1em; font-weight: 650; color: var(--ht-muted); margin: 0 0 7px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-overview h2 { font-size: 22px; letter-spacing: -.025em; margin: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-score { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-score > span { font-size: 12px; color: var(--ht-muted); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-score .score-indicator { width: 56px; height: 56px; min-width: 56px; margin: 0; font-size: 15px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-badges { margin-top: 18px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-badges > .d-flex { flex-wrap: wrap; gap: 10px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-badges > .d-flex > .d-flex { flex-direction: row !important; gap: 7px; border: 1px solid var(--ht-line); border-radius: 7px; padding: 5px 9px; margin: 0 !important; width: auto !important; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-badges .bi { font-size: 16px !important; margin: 0 !important; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-badges .inactive-badge { color: var(--ht-muted); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-next-steps { margin-top: 20px; font-size: 14px; color: var(--ht-muted); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-next-steps .message-body { background: var(--ht-soft); border: 1px solid var(--ht-line); border-radius: 10px; padding: 14px 17px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-next-steps p + p { margin-top: 9px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-next-steps a { font-weight: 600; margin-left: 4px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-next-steps .recommend-body:empty { display: none; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-next-steps .recommend-body h6 { font-size: 14px; }
/* Like the solve page's expired-licence box. */
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-license { margin: 0; padding: 16px 20px; border: 1px solid var(--ht-line); border-radius: 12px; background: var(--ht-soft); color: var(--ht-ink); font-size: var(--ht-text-base); font-weight: 600; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-section-heading h2 { font-size: 21px; margin: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-section-heading > span { font-size: 13px; color: var(--ht-muted); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-list { border: 1px solid var(--ht-line); border-radius: 12px; overflow: hidden; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment { display: grid; grid-template-columns: 40px minmax(140px, 1fr) 82px 58px 230px; align-items: center; gap: 16px; min-height: 98px; padding: 20px; background: var(--ht-paper); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment:first-child { border-top: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment:last-child { border-bottom: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-mark { width: 40px; height: 44px; display: grid; place-items: center; background: var(--ht-soft); border: 1px solid var(--ht-line); border-radius: 9px; color: var(--ht-blue); font-size: 16px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment .topic-name { display: block; font-size: 15px; font-weight: 600; color: var(--ht-ink); text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment a.topic-name:hover { color: var(--ht-blue); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-name p { margin: 5px 0 0; font-size: var(--ht-text-sm); color: var(--ht-muted); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-state .state-column { width: auto; font-size: var(--ht-text-xs); display: inline-block; padding: 4px 8px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-score { display: flex; flex-direction: column; align-items: flex-end; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-score strong { width: auto; font-size: 17px; font-weight: 650; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-score > span { font-size: var(--ht-text-xs); color: var(--ht-muted); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-actions { display: flex; align-items: center; gap: 15px; justify-content: flex-end; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-actions .summary-column { width: auto; min-width: 0; font-size: var(--ht-text-sm); white-space: nowrap; text-transform: none; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-actions .btn { font-size: var(--ht-text-sm); min-height: 42px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-empty { border: 1px dashed var(--ht-line); border-radius: 12px; padding: 40px 24px; text-align: center; background: var(--ht-soft); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-empty > i { font-size: 25px; color: var(--ht-blue); margin-bottom: 17px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-empty h3 { font-size: 18px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-empty p { margin: 0; font-size: 14px; color: var(--ht-muted); }
@media(max-width:1200px) {
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment { grid-template-columns: 40px minmax(130px, 1fr) 74px 58px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-actions { grid-column: 2 / -1; padding-top: 2px; }
}
@media(max-width:600px) {
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-page-heading h1 { font-size: 26px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-overview { padding: 19px; margin-bottom: 25px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment { grid-template-columns: 36px minmax(0, 1fr) 58px; gap: 12px; padding: 17px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-mark { width: 36px; height: 40px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-name { grid-column: 2; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-state { grid-column: 2; grid-row: 2; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-score { grid-column: 3; grid-row: 1 / 3; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-actions { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--ht-line); }
}

/* Report presentation changes are screen-only; native printed maths stays intact. */
@media screen {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] { --report-text-color: var(--ht-ink); }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #contentAll { padding-bottom: 100px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #contentAll :is(#summary,#title,#user,#result,#briefing,#review,#recommendation) > .container { width: 100%; max-width: 1120px; padding-left: 0; padding-right: 0; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#header,#title) h1 { font-size: 30px; letter-spacing: -.035em; padding-top: 0 !important; text-transform: none !important; margin-bottom: 0; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #user { margin-top: 22px !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #user .row { border-bottom: 1px solid var(--ht-line); padding-bottom: 23px; margin: 0; align-items: flex-start; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #user .row > div { padding: 0; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #user h2 { font-size: 20px; letter-spacing: -.02em; margin: 0; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #user h4 { font-size: 15px; font-weight: 500; color: var(--ht-muted); margin: 0 0 5px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result,#postamble,#recommendation,#review) { margin-top: 26px !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result) > .container > .card { border-radius: 13px; overflow: hidden; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result,#recommendation) .card-header { padding: 17px 22px; background: var(--ht-soft); }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result,#recommendation) .card-header h4 { font-size: 17px; text-transform: none !important; margin: 0; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result) .card-body { padding: 24px 22px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result) .card-body > .row { align-items: center; row-gap: 20px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result) h6 { font-size: 14px; font-weight: 400; line-height: 1.5; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result) #counter-label { font-size: 23px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #briefing > .container > .card > a { display: inline-flex; align-items: center; min-height: 42px; font-size: 14px; font-weight: 550; border-color: var(--ht-line) !important; border-radius: 8px !important; padding: 0 15px !important; margin: 0 22px 20px auto !important; color: var(--ht-blue) !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #postamble .list-group { border: 1px solid var(--ht-line); border-radius: 12px; overflow: hidden; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #postamble .list-group-item { padding: 18px 22px; font-size: 14px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #postamble .list-group-item.active { background: var(--ht-soft); color: var(--ht-muted); border-color: var(--ht-line); font-weight: 600; font-size: 12px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #postamble .text-uppercase { text-transform: none !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #review > .container > h1 { font-size: 23px; text-transform: none !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #review > .container > .d-flex { gap: 16px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .card.review { border: 1px solid var(--ht-line) !important; border-radius: 11px !important; margin-bottom: 14px; padding: 0 !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .card-header { padding: 12px 20px !important; background: var(--ht-soft) !important; border: 0; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .card-header h3 { font-size: 16px; text-transform: none !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .card-header .h5 { font-size: 16px; font-variant-numeric: tabular-nums; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .card-body { padding: 20px !important; background: var(--ht-paper) !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #bottomButtons { left: var(--ht-sidebar); border-top: 1px solid var(--ht-line); background: var(--ht-paper); padding: 12px 24px !important; z-index: 1030; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #bottomButtons .container { max-width: 1120px; padding: 0; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #bottomButtons .btn { min-height: 42px; font-size: var(--ht-text-sm); display: inline-flex; align-items: center; justify-content: center; text-transform: none !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #bottomButtons .btn span { text-transform: none; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] .modal-dialog { min-width: 0; max-width: min(820px, calc(100vw - 32px)); }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #emailHTML { overflow-x: auto; }
}
@media screen and (max-width:900px) {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #bottomButtons { left: 0; }
}
@media screen and (max-width:600px) {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#header,#title) h1 { font-size: 26px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #user .row { gap: 13px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result) .card-body > .row > .col-3 { flex: 0 0 50%; max-width: 50%; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] :is(#briefing,#result) .card-body > .row > .col-6 { display: block !important; flex: 0 0 100%; max-width: 100%; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #postamble .list-group-item { padding: 15px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #postamble .row { row-gap: 12px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #postamble .col-6 { flex-basis: 100%; max-width: 100%; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #bottomButtons { padding: 10px 16px !important; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #bottomButtons .col > .d-flex { flex-wrap: wrap; gap: 8px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #bottomButtons .btn { margin: 0 !important; }
}
@media print {
  body[data-hypatia-design="modern"][data-role="student"] #bottomButtons { display: none !important; }
}

body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="profile"] #contentAll > .container { max-width: 1060px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-intro { font-size: 14px; color: var(--ht-muted); margin: 12px 0 25px; }
body[data-hypatia-design="modern"][data-role="student"] form#update.hypatia-student-profile-form { border: 0; border-radius: 0; background: transparent; padding: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-panel { padding: 23px; border: 1px solid var(--ht-line); border-radius: 12px; background: var(--ht-paper); margin-bottom: 22px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-panel h2 { font-size: 18px; margin: 0 0 22px; letter-spacing: -.02em; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px 24px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-fields > .fields { display: contents; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-fields .mt-3 { margin-top: 0 !important; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-fields :is(input,select) { font-size: 14px; min-height: 44px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-fields input[readonly] { background: var(--ht-soft); color: var(--ht-muted); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-panel label { font-size: var(--ht-text-sm); margin-bottom: 7px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-preferences { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-preferences > div { margin-top: 0 !important; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-preferences > div:has(select) { width: 100%; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-preferences select { max-width: 380px; min-height: 44px; font-size: 14px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-preferences .form-check-inline { min-height: 42px; padding: 0 12px; border: 1px solid var(--ht-line); border-radius: 8px; margin: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-preferences .form-check-label { margin: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-actions > .d-flex { margin-top: 0 !important; margin-bottom: 28px; gap: 14px; flex-wrap: wrap; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-actions .btn { font-size: 14px; min-height: 44px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences > .d-flex { margin-top: 0 !important; margin-bottom: 17px !important; align-items: center; flex-wrap: wrap; gap: 12px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences h3 { font-size: 18px; margin: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences .btn { min-height: 42px; font-size: var(--ht-text-sm); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences table { margin: 0; table-layout: fixed; font-size: var(--ht-text-sm); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences :is(td,th) { padding: 13px 10px; overflow-wrap: anywhere; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences th:first-child { width: 38px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences th:nth-child(2) { width: 48%; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences th:nth-child(3) { width: 20%; }
@media(max-width:600px) {
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-panel { padding: 18px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-profile-fields { grid-template-columns: minmax(0,1fr); gap: 18px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences table { font-size: 12px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-licences :is(td,th) { padding: 11px 5px; }
}

/* The native weekly content, locks and grade selector retain their behaviour. */
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase { background: var(--ht-paper) !important; border: 1px solid var(--ht-line); border-radius: 13px; padding: 24px; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase main.container { max-width: none; padding: 0; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase main > .row { margin: 0; gap: 20px; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase main > .row > .col-8 { padding: 0; margin-top: 0 !important; flex: 1 1 400px; max-width: none; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase main > .row > .col-lg-4 { display: none !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase main > .row > .col-auto { max-width: 340px; margin: 0 !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #showcaseTitle h1 { font-size: 29px; letter-spacing: -.035em; margin: 0; text-transform: none !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase h4 { font-size: 17px; line-height: 1.4; text-transform: none !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase h5 { font-size: 14px; line-height: 1.4; text-transform: none !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase :is(.btn,.lead) { font-size: 14px; min-height: 42px; display: inline-flex; align-items: center; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase .text-break { font-size: 14px; line-height: 1.6; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent { margin-top: 28px !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent > .container { max-width: none; padding: 0; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent > .container > .row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); gap: 25px; margin: 0; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent > .container > .row > div { max-width: none; margin: 0 !important; padding: 0; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent h4 { font-size: 18px; text-transform: none !important; letter-spacing: -.02em; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent .card { margin-top: 15px; background: var(--ht-paper) !important; border: 1px solid var(--ht-line); border-radius: 12px; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent .card-body { padding: 5px 20px 18px !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #currentGrade > li { margin-top: 0 !important; padding: 18px 0 !important; border-bottom: 1px solid var(--ht-line); list-style: none; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #currentGrade > li:last-of-type { border-bottom: 0; padding-bottom: 0 !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #currentGrade > li > .d-flex { gap: 14px; align-items: flex-start; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #currentGrade h4 { font-size: 16px; line-height: 1.45; margin: 0; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #currentGrade .mb-links { font-size: var(--ht-text-sm); line-height: 1.5; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #currentGrade .text-break { font-size: var(--ht-text-sm); line-height: 1.6; margin: 12px 0 0 !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #currentGrade > p { font-size: 14px; padding-top: 18px; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent .col-lg-5 > section > section { padding: 17px; border: 1px solid var(--ht-line); border-radius: 11px; background: var(--ht-soft); margin-bottom: 12px !important; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent .col-lg-5 .text-break { font-size: var(--ht-text-sm); line-height: 1.6; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #gradeButton a { min-height: 40px; font-size: var(--ht-text-sm); align-items: center; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #video-modal iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #hypatia-footer { height: auto; background-image: none !important; }
@media(max-width:1100px) {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #mainContent > .container > .row { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:600px) {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase { padding: 19px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #showcaseTitle h1 { font-size: 25px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #currentGrade > li > .d-flex.mt-1 { flex-wrap: wrap; gap: 7px 12px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #currentGrade .video-link.ml-3 { margin-left: 0 !important; }
}

/* Native student demo assignment catalogue. */
body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="demos"] { background-image: none; }
body[data-hypatia-design="modern"][data-role="student"] #showcase.hypatia-student-demo-heading { max-width: 1120px; margin: 0 auto 28px; padding: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-heading .hypatia-student-page-heading { margin: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-heading h1 { margin-top: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-intro { max-width: 660px; margin: 12px 0 0; color: var(--ht-muted); font-size: 15px; line-height: 1.6; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-heading + .secondary-navbar { display: none; }
body[data-hypatia-design="modern"][data-role="student"] main.container.hypatia-student-demo-catalogue { max-width: 1120px; padding: 0; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
body[data-hypatia-design="modern"][data-role="student"] article.hypatia-student-demo-card { margin: 0; min-width: 0; border: 1px solid var(--ht-line); background: var(--ht-paper); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-card > .card-body { padding: 23px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-card-heading { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding-bottom: 21px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-mark { display: grid; place-items: center; width: 40px; height: 42px; background: var(--ht-selected); border: 1px solid var(--ht-line); border-radius: 10px; color: var(--ht-blue); font-size: 18px; font-weight: 600; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-card-heading h2 { margin: 0; min-width: 0; font-size: 19px; letter-spacing: -.025em; line-height: 1.35; overflow-wrap: anywhere; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--ht-ink); font-variant-numeric: tabular-nums; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-score strong { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-score span { color: var(--ht-muted); font-size: var(--ht-text-xs); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-topics { margin: 0; padding: 0; list-style: none; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-topic { padding: 18px 0 0; margin: 0; border-top: 1px solid var(--ht-line); }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-topic + .hypatia-student-demo-topic { margin-top: 18px; }
body[data-hypatia-design="modern"][data-role="student"] h3.hypatia-student-demo-topic-name { margin: 0 0 15px; font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
body[data-hypatia-design="modern"][data-role="student"] a.hypatia-student-demo-open { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 40px; font-size: var(--ht-text-sm); white-space: normal; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-open i { font-size: 10px; }
body[data-hypatia-design="modern"][data-role="student"] a.hypatia-student-demo-report { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; font-size: var(--ht-text-sm); text-decoration: none; color: var(--ht-muted); }
body[data-hypatia-design="modern"][data-role="student"] a.hypatia-student-demo-report:hover { color: var(--ht-blue); text-decoration: underline; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-report i { font-size: 10px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-empty { border: 1px solid var(--ht-line); border-radius: 13px; background: var(--ht-soft); padding: 45px 28px; text-align: center; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-empty > i { color: var(--ht-blue); font-size: 27px; margin-bottom: 16px; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-empty h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.025em; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-empty p { margin: 0; font-size: 14px; color: var(--ht-muted); }
@media (max-width: 1100px) {
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body[data-hypatia-design="modern"][data-role="student"] #showcase.hypatia-student-demo-heading { margin-bottom: 22px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-intro { font-size: 14px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-card > .card-body { padding: 19px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-card-heading { grid-template-columns: 35px minmax(0, 1fr) auto; gap: 11px; padding-bottom: 18px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-mark { width: 35px; height: 38px; font-size: 16px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-card-heading h2 { font-size: 18px; }
  body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-demo-actions { gap: 8px 14px; }
}

body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="class"] #contentAll > .secondary-navbar { padding-bottom: 0; }
body[data-hypatia-design="modern"][data-role="student"] main.hypatia-student-class { padding-top: 0; }
@media screen {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #header > .container { padding-left: 0; padding-right: 0; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .card-header { border-radius: 10px 10px 0 0; }
}

@media screen {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .question > hr.d-print-none { display: none; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .answerSection > h3 { font-size: 14px; text-transform: capitalize !important; letter-spacing: 0; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .questionSection { font-size: 17px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #review > .container > .d-flex .text-uppercase { text-transform: none !important; font-size: 13px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] .hypatia-report-column-label { display: none; }
}
@media screen and (max-width:600px) {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #postamble .list-group-item.active { display: none; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] .hypatia-report-column-label { display: block; font-size: 12px; color: var(--ht-muted); margin-bottom: 7px; }
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #bottomButtons #buttons { flex-wrap: wrap; gap: 8px; }
}

body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="worksheets"] #math-blast-showcase .btn-primary-dark h5 { color: #fff !important; }

body[data-hypatia-design="modern"][data-role="student"] #showcase.hypatia-student-demo-heading { min-height: 0; }
@media screen {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #postamble > .container { padding-left: 0; padding-right: 0; }
}

body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="class"] #contentAll > .secondary-navbar { position: static !important; }
body[data-hypatia-design="modern"][data-role="student"] .hypatia-student-assignment-actions:empty { display: none; }

@media screen {
  body[data-hypatia-design="modern"][data-role="student"][data-hypatia-page="report"] #reviewAccordion .question-container { overflow-x: auto; }
}
