/* Compact student portal. Opt-in scope keeps staff tools and unrelated pages isolated.
   Load after each page's legacy styles. Reading surfaces, media, assessment
   controls, and document canvases retain their own geometry. */
@font-face {
  font-family: Abel;
  src: url('../website/assets/abel.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.student-ui {
  --portal-ink: #1a2430;
  --portal-muted: #626c77;
  --portal-line: #e1e3e7;
  --portal-red: #c91d32;
  --portal-red-dark: #a81427;
  --portal-surface: #fff;
  --portal-soft: #fafafb;
  --portal-radius: 10px;
  --ink: var(--portal-ink);
  --muted: var(--portal-muted);
  --line: var(--portal-line);
  --accent: var(--portal-red);
  --brand: var(--portal-red);
  --brand-dark: var(--portal-red-dark);
  --surface-muted: var(--portal-soft);
  --academy-ink: var(--portal-ink);
  --academy-muted: var(--portal-muted);
  --academy-line: var(--portal-line);
  --academy-red: var(--portal-red);
  --academy-bg: var(--portal-surface);
  --academy-radius: var(--portal-radius);
  --red: var(--portal-red);
  --bs-body-font-family: Abel, 'Arial Narrow', sans-serif;
  --bs-body-color: var(--portal-ink);
  --bs-body-bg: var(--portal-surface);
  margin: 0;
  background: var(--portal-surface);
  color: var(--portal-ink);
  font-family: Abel, 'Arial Narrow', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-synthesis: none;
}
.student-ui.bg-light { background: var(--portal-surface) !important; }
.student-ui :is(button, input, select, textarea) { font-family: inherit; }
.student-ui :is(h1, h2, h3, h4, .h1, .h2, .h3, .h4) { font-family: inherit; font-weight: 400; letter-spacing: -.015em; }
.student-ui :is(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--portal-red); outline-offset: 3px; }
.student-ui :is(.card, .panel, .card-panel, .section-card, .content-shell, .category-card, .material-card, .doc-card, .entry-card, .summary-tile, .stat-card, .activation-card) {
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  box-shadow: none;
  backdrop-filter: none;
}
.student-ui :is(.shadow-sm, .shadow-soft) { box-shadow: none !important; }
.student-ui :is(.card-header, .card-panel-header, .category-card .card-header) {
  padding: 14px 18px;
  background: var(--portal-soft);
  border-bottom: 1px solid var(--portal-line);
  color: var(--portal-ink);
  font-size: 19px;
  font-weight: 400;
}
.student-ui :is(.card-body, .card-panel-body, .category-card .card-body) { padding: 18px; }
.student-ui :is(.btn, .btn-ghost, .dashboard-button, .ci-button) {
  min-height: 40px;
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  box-shadow: none;
}
.student-ui :is(.btn-primary, .btn-brand, .btn-danger) { background: var(--portal-red); border-color: var(--portal-red); color: #fff; }
.student-ui :is(.btn-primary, .btn-brand, .btn-danger):hover { background: var(--portal-red-dark); border-color: var(--portal-red-dark); color: #fff; }
.student-ui :is(.btn-outline-primary, .btn-outline-brand) { color: var(--portal-red); border-color: #dcb4ba; }
.student-ui :is(.btn-outline-primary, .btn-outline-brand):hover { background: #fff5f6; color: var(--portal-red-dark); }
.student-ui :is(.btn-ghost, .btn-outline-secondary) { background: var(--portal-surface); border: 1px solid var(--portal-line); color: var(--portal-ink); }
.student-ui :is(.btn-ghost, .btn-outline-secondary):hover { background: var(--portal-soft); border-color: #aeb5bd; }
.student-ui :is(.form-control, .form-select) { font-size: 16px; border-radius: 7px; border-color: var(--portal-line); }
.student-ui :is(.modal-content, .contact-section) { border-radius: var(--portal-radius); box-shadow: none; }
.student-ui :is(.modal-header, .contact-section-header) { background: var(--portal-soft); color: var(--portal-ink); }
.student-ui .contact-section-body { background: var(--portal-surface); }
.student-ui .alert { border-radius: 8px; padding: 12px 16px; box-shadow: none; }
.student-ui .progress { border: 0; box-shadow: none; }
.student-ui .badge { font-weight: 400; }

/* Dashboard: four libraries at laptop/desktop sizes, no fixed text clipping. */
.student-ui.student-portal .container { width: calc(100% - 64px); max-width: 1288px; }
.student-ui .portal-masthead-inner { min-height: 72px; }
.student-ui .portal-brand-symbol { border-radius: 7px; }
.student-ui.student-portal .profile-hero { padding-top: 24px; }
.student-ui.student-portal .profile-hero .hero-shell { gap: 16px; }
.student-ui.student-portal .profile-hero h1 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 7px; }
.student-ui.student-portal .hero-subtitle { font-size: 17px; }
.student-ui.student-portal .hero-meta { padding: 12px 0; }
.student-ui .learning-dashboard { padding-top: 20px; }
.student-ui .dashboard-section-heading { margin-bottom: 14px; }
.student-ui.student-portal .dashboard-section-heading h2 { font-size: 24px; }
.student-ui .learning-access-heading h2 { display: flex; align-items: center; gap: 10px; }
.student-ui .learning-access-heading h2::before { content: ''; width: 3px; height: 19px; border-radius: 2px; background: var(--portal-red); }
.student-ui .service-grid { grid-template-columns: repeat(var(--service-columns, 4), minmax(0, 1fr)); gap: 12px; }
.student-ui .service-tile { border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: var(--portal-soft); color: var(--portal-ink); }
.student-ui .service-unlocked { background: var(--portal-surface); }
.student-ui .service-tile:hover { border-color: #bfc5cd; background: var(--portal-soft); }
.student-ui .service-tile:focus-within { border-color: var(--portal-red); }
.student-ui .service-tile.service-expanded { border-color: var(--portal-red); }
.student-ui .service-expansion { border-color: var(--portal-line); border-radius: 0 9px 9px 0; background: var(--portal-surface); color: var(--portal-ink); }
.student-ui .service-expansion-header .service-option-title { font-size: 20px; }
.student-ui .service-collapse:hover { background: var(--portal-soft); }
.student-ui .service-launch { min-height: 120px; padding: 14px 16px; gap: 7px; }
.student-ui .service-tile-top { justify-content: flex-start; gap: 8px; margin: 0; padding-right: 18px; }
.student-ui .service-icon { width: 18px; height: 20px; }
.student-ui.student-portal .service-icon svg { width: 18px; height: 18px; }
.student-ui .service-tile h3, .student-ui .service-title { margin: 0; font-size: 19px; line-height: 1.2; }
.student-ui .service-description { color: var(--portal-muted); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.student-ui :is(.service-status, .service-timing) { display: inline; margin: 0; color: inherit; font-size: inherit; }
.student-ui .service-timing::before { content: ' · '; white-space: pre; }
.student-ui .service-tile-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: auto; }
.student-ui .service-access { font-size: 13px; line-height: 1.3; text-align: left; }
.student-ui .service-entry { display: inline-flex; margin: 0; padding: 0; font-size: 14px; line-height: 1.3; color: var(--portal-red); gap: 5px; }
.student-ui .service-inactive .service-icon { color: var(--portal-muted); }
.student-ui .service-options > summary { top: 3px; bottom: auto; right: 2px; width: 32px; height: 34px; font-size: 22px; border-radius: 6px; }
.student-ui .service-options-panel { border-color: var(--portal-line); border-radius: 0 0 10px 10px; box-shadow: 0 8px 22px #1a243012; }
.student-ui .service-options-panel .dashboard-button { font-size: 15px; }
/* Active learning stays below the complete tile row, with one selected service. */
.student-ui .service-tile.service-selected { border-color: var(--portal-red); background: var(--portal-surface); box-shadow: inset 0 -2px var(--portal-red); }
.student-ui .service-selected .service-entry svg { transform: rotate(180deg); }
.student-ui .service-unlocked .service-tile-top { padding-right: 26px; }
.student-ui .service-direct-link { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--portal-muted); border-radius: 7px; }
.student-ui .service-direct-link:hover { color: var(--portal-accent, var(--portal-red)); background: var(--portal-soft); }
.student-ui .service-direct-link svg { width: 18px; height: 18px; transform: rotate(-35deg); }
.service-learning-panel { margin-top: 16px; border: 1px solid var(--portal-line); border-top: 2px solid var(--portal-red); border-radius: var(--portal-radius); background: var(--portal-surface); color: var(--portal-ink); overflow-wrap: anywhere; scroll-margin-top: 16px; }
.service-learning-panel[hidden] { display: none; }
.learning-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--portal-line); }
.learning-panel-header h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 21px; font-weight: 400; scroll-margin-top: 24px; }
.student-ui .learning-panel-header h3 > svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--portal-accent, var(--portal-red)); }
.learning-panel-header .service-collapse { flex-shrink: 0; border-color: var(--portal-line); }
.learning-panel-body { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.learning-feature, .learning-context { min-width: 0; padding: 26px; }
.learning-context { background: var(--portal-soft); border-left: 1px solid var(--portal-line); }
.learning-feature-with-cover { display: flex; align-items: flex-start; gap: 22px; }
.learning-feature-copy { min-width: 0; flex: 1; }
.learning-eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--portal-muted); }
.learning-feature h4, .learning-context h4 { margin: 0 0 10px; font-size: 27px; font-weight: 400; line-height: 1.15; }
.learning-context h4 { font-size: 23px; }
.learning-detail { color: var(--portal-muted); font-size: 16px; line-height: 1.5; margin: 0 0 18px; }
.learning-context .learning-detail:last-child { margin-bottom: 0; }
.learning-access-notice { padding: 10px 12px; border-left: 2px solid var(--portal-red); font-size: 15px; }
.learning-cover { display: grid; place-items: center; flex: 0 0 105px; width: 105px; height: 125px; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 8px; background: var(--portal-soft); color: var(--portal-accent, var(--portal-red)); }
.learning-cover img { width: 100%; height: 100%; object-fit: contain; }
.student-ui .learning-cover > svg { width: 38px; height: 38px; }
.learning-cover-books { border-left: 5px solid var(--portal-red); }
.learning-progress { margin: 0 0 20px; max-width: 360px; font-size: 14px; }
.learning-progress span { display: block; margin-bottom: 6px; }
.learning-progress progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 4px; overflow: hidden; appearance: none; background: var(--portal-soft); accent-color: var(--portal-red); }
.learning-progress progress::-webkit-progress-bar { background: var(--portal-soft); border-radius: 4px; }
.learning-progress progress::-webkit-progress-value { background: var(--portal-red); border-radius: 4px; }
.learning-progress progress::-moz-progress-bar { background: var(--portal-red); border-radius: 4px; }
.learning-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 26px 24px; }
.student-ui .learning-shelf-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--portal-line); border-radius: 8px; color: var(--portal-ink); }
.learning-shelf-card:hover { background: var(--portal-soft); border-color: var(--portal-red); }
.learning-shelf .learning-cover { flex-basis: 48px; width: 48px; height: 64px; border-radius: 4px; }
.student-ui .learning-shelf .learning-cover > svg { width: 24px; height: 24px; }
.learning-shelf-copy { min-width: 0; }
.learning-shelf-copy > strong, .learning-shelf-copy > span { display: block; font-weight: 400; }
.learning-shelf-copy > strong { font-size: 18px; line-height: 1.2; margin-bottom: 7px; }
.learning-shelf-copy > span { font-size: 14px; color: var(--portal-muted); line-height: 1.4; }
.student-ui .learning-shelf-action { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--portal-accent, var(--portal-red)); }
.student-ui .learning-shelf-action svg { width: 15px; height: 15px; }
.learning-panel-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px 22px; border-top: 1px solid var(--portal-line); }
.learning-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.learning-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 26px 20px; padding: 14px 16px; border: 1px solid var(--portal-line); border-left: 3px solid var(--portal-red); border-radius: 6px; }
.learning-notice strong { font-weight: 400; font-size: 18px; }
.learning-notice p { margin: 4px 0 0; color: var(--portal-muted); font-size: 15px; }
.learning-notice > .dashboard-button { flex-shrink: 0; }
.learning-class-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 26px 24px; }
.student-ui .learning-class-links a { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--portal-line); border-radius: 8px; color: var(--portal-ink); }
.learning-class-links a:hover { background: var(--portal-soft); border-color: var(--portal-red); }
.learning-class-links a > span { flex: 1; min-width: 0; }
.learning-class-links strong, .learning-class-links span > span { display: block; font-weight: 400; }
.learning-class-links strong { font-size: 18px; }
.learning-class-links span > span { font-size: 14px; color: var(--portal-muted); }
.student-ui .learning-class-links svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--portal-muted); }
@media (min-width: 1024px) {
  .service-selected::after { content: ''; position: absolute; height: 18px; width: 2px; left: calc(50% - 1px); bottom: -18px; background: var(--portal-red); }
}
@media (max-width: 767px) {
  .learning-panel-body { grid-template-columns: minmax(0, 1fr); }
  .learning-context { border-left: 0; border-top: 1px solid var(--portal-line); }
  .learning-shelf, .learning-class-links { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .learning-notice { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .learning-panel-header, .learning-panel-footer { padding: 12px 16px; }
  .learning-feature, .learning-context { padding: 20px 16px; }
  .learning-feature-with-cover { gap: 14px; }
  .learning-cover { flex-basis: 58px; width: 58px; height: 80px; }
  .student-ui .learning-cover > svg { width: 28px; height: 28px; }
  .learning-feature h4 { font-size: 24px; }
  .learning-shelf, .learning-class-links { padding: 16px; }
  .learning-notice { margin: 16px; }
  .learning-panel-header h3 { font-size: 19px; }
}
.student-ui .dashboard-button { gap: 8px; }
.student-ui.student-portal .dashboard-button-arrow { border-left: 0; width: 20px; min-height: 22px; }
.student-ui.student-portal .dashboard-button-subtle { min-height: 38px; }
.student-ui.student-portal .portal-updates-button { min-height: 40px; padding: 8px 12px; border-radius: 7px; }
.student-ui .portal-updates-count { border-radius: 4px; }

/* Repeat the same card rhythm in schedules, class tools and account settings. */
.student-ui .student-agenda { margin-top: 24px; }
.student-ui .agenda-overview { gap: 12px; border: 0; }
.student-ui .agenda-brief { padding: 16px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); }
.student-ui .agenda-brief + .agenda-brief { border: 1px solid var(--portal-line); }
.student-ui .agenda-brief-label { margin-bottom: 8px; }
.student-ui .agenda-brief-actions { padding-top: 10px; }
.student-ui .agenda-details > summary { min-height: 40px; margin-top: 10px; border: 0; border-radius: 7px; background: var(--portal-soft); }
.student-ui .agenda-grid { border: 1px solid var(--portal-line); border-radius: var(--portal-radius); margin-top: 10px; overflow: hidden; }
.student-ui :is(.agenda-today, .agenda-upcoming, .agenda-attention, .agenda-notices) { padding: 18px; }
.student-ui .agenda-section-title { margin-bottom: 16px; }
.student-ui .agenda-section-title h3 { font-size: 21px; }
.student-ui :is(.agenda-event, .agenda-attention-item) { padding-block: 16px; }
.student-ui :is(.agenda-badge, .agenda-count, .agenda-focus, .agenda-more > summary) { border-radius: 6px; }
.student-ui.student-portal .action-hub { margin-top: 28px; }
.student-ui.student-portal .hero-action-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.student-ui.student-portal .hero-tile { flex-direction: row; align-items: flex-start; min-height: 108px; padding: 16px 28px 16px 16px; gap: 10px; border-radius: var(--portal-radius); }
.student-ui.student-portal .hero-tile-icon { width: 20px; height: 24px; }
.student-ui.student-portal .hero-tile-icon svg { width: 20px; height: 20px; }
.student-ui.student-portal .hero-tile::after { inset: 14px 10px auto auto; font-size: 16px; }
.student-ui.student-portal .hero-tile-label { font-size: 19px; }
.student-ui.student-portal .hero-tile-subline { font-size: 14px; }
.student-ui.student-portal main.container { padding-top: 28px !important; padding-bottom: 32px !important; }
.student-ui.student-portal main.dashboard-home-content { padding-top: 0 !important; }
.student-ui.student-portal :is(.section-card, main .card) { border-radius: var(--portal-radius); }
.student-ui.student-portal :is(.card-header, .card.shadow-soft .card-header) { padding: 14px 18px; font-size: 20px; }
.student-ui.student-portal :is(.card-body, .card.shadow-soft .card-body) { padding: 18px; }
.student-ui :is(.class-program-link, .class-next-step, .class-state-label, .dashboard-records, .dashboard-suggestion, .dashboard-account a, .journey-card) { border-radius: var(--portal-radius); }
.student-ui :is(.class-program-link, .class-next-step) { border-left: 1px solid var(--portal-line); padding: 14px 16px; }
.student-ui .class-program-link strong { font-size: 20px; }
.student-ui.student-portal .journey-card { padding: 18px; }
.student-ui .dashboard-account-section { margin-top: 28px; padding-top: 22px; }
.student-ui .dashboard-account a { min-height: 56px; padding: 12px 14px; }
.student-ui .dashboard-records { padding: 16px 18px; margin-top: 24px; }
.student-ui .dashboard-records summary { font-size: 20px; }
.student-ui .dashboard-records summary::after { border: 0; }

/* Legacy student screens: quiet headers and consistent content surfaces. */
.student-ui:not(.student-portal) .bg { display: none; }
.student-ui:not(.student-portal) .hero-shell { padding: 20px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: var(--portal-surface); box-shadow: none; backdrop-filter: none; }
.student-ui:not(.student-portal) .hero-shell::after { display: none; }
.student-ui:not(.student-portal) .hero-title { font-size: clamp(27px, 2.7vw, 36px); font-weight: 400; }
.student-ui:not(.student-portal) .hero-subtitle { font-size: 16px; color: var(--portal-muted); }
.student-ui:not(.student-portal) .hero-eyebrow { font-size: 12px; font-weight: 400; color: var(--portal-red); }
.student-ui:not(.student-portal) .hero-chip { padding: 4px 8px; border-radius: 5px; background: var(--portal-soft); font-weight: 400; }
.student-ui .content-shell { padding: 0; border: 0; background: transparent; }
.student-ui .accordion { --bs-accordion-active-bg: #fff5f6; --bs-accordion-active-color: var(--portal-red-dark); --bs-accordion-border-color: var(--portal-line); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-border-radius: 8px; }
.student-ui .accordion-button { font-size: 16px; }
.student-ui :is(.category-card, .material-card) { transition: border-color .15s; }
.student-ui :is(.category-card, .material-card):hover { transform: none; border-color: #bfc5cd; box-shadow: none; }
.student-ui .category-card .card-header { background: var(--portal-soft); color: var(--portal-ink); }
.student-ui :is(.summary-tile, .stat-card) { padding: 14px 16px; }
.student-ui .page-hero { background: var(--portal-soft); color: var(--portal-ink); padding: 24px 0; border-bottom: 1px solid var(--portal-line); }
.student-ui .page-hero { box-shadow: none; }
.student-ui .page-hero::after { display: none; }
.student-ui .page-hero :is(.hero-title, .hero-subtitle) { color: var(--portal-ink); }
.student-ui .question-card { border-radius: var(--portal-radius); box-shadow: none; }

/* Owned courses, catalog, billing, subscriptions and receipts share this shell. */
.student-ui .commerce-page { font-family: inherit; color: var(--portal-ink); background: var(--portal-surface); }
.student-ui .commerce-page :is(h1, h2, h3, .commerce-title, .btn, strong) { font-weight: 400; }
.student-ui .commerce-page .commerce-title { font-size: 32px !important; }
.student-ui .commerce-page .commerce-mast { padding-block: 18px; }
.student-ui .commerce-page .commerce-brand { font-family: inherit; font-size: 20px; font-weight: 400; }
.student-ui .commerce-page .commerce-navigation { font-size: 15px; }
.student-ui .commerce-page :is(.commerce-card, .commerce-hero, .learning-card, .today-aside) { border-radius: var(--portal-radius); padding: 18px; box-shadow: none; }
.student-ui .commerce-page .commerce-content { margin-top: 12px; }
.student-ui .commerce-page .course-art { width: 72px; height: 64px; border-radius: 7px; }
.student-ui .commerce-page .learning-card-top { gap: 16px; }
.student-ui .commerce-page :is(.learning-label, .learning-card .badge) { font-size: 13px !important; }
.student-ui .commerce-page .learning-card .h4 { font-size: 22px; }
.student-ui .commerce-page .learning-card details { font-size: 14px; }
.student-ui .commerce-page .learning-progress .progress-bar { background: var(--portal-red) !important; }
.student-ui .commerce-page .learning-filters .btn-danger { background: var(--portal-red); border-color: var(--portal-red); }
.student-ui .commerce-page .commerce-card-icon { width: 32px; height: 32px; font-size: 18px; border-radius: 7px; }
.student-ui .commerce-page .today-header h1 { font-size: 32px; }
.student-ui .commerce-page .today-layout { align-items: start; gap: 16px; margin-bottom: 24px; }
.student-ui .commerce-page .today-session { border-radius: var(--portal-radius); }
.student-ui .commerce-page .today-session-top { padding: 18px; min-height: 100px; background: var(--portal-soft); }
.student-ui .commerce-page .today-session-top h2 { font-size: 24px; }
.student-ui .commerce-page .today-session-top p { max-width: none; font-size: 15px; }
.student-ui .commerce-page .today-plan { padding: 4px 18px; }
.student-ui .commerce-page .today-step { padding: 14px 0; }
.student-ui .commerce-page .today-aside :is(p, label) { font-size: 15px; }
.student-ui .commerce-page .today-aside form { gap: 8px; }
.student-ui .commerce-page .catalog-art { height: 112px; }
.student-ui .commerce-page .catalog-course .card-body { padding: 18px; }

/* Academy learner contexts only: authors and inspectors do not opt in. */
.student-ui.academy { font-family: Abel, 'Arial Narrow', sans-serif; background: var(--portal-surface); }
.student-ui.academy h1 { font-size: clamp(28px, 2.8vw, 36px); margin-block: 8px 16px; }
.student-ui.academy h2 { font-size: 24px; }
.student-ui.academy :is(.lead, .lede) { font-size: 17px; margin-bottom: 20px; }
.student-ui.academy :is(h1, h2, h3, h4, strong, b, button, .button, label) { font-weight: 400; }
.student-ui.academy .mast { padding-block: 18px; }
.student-ui.academy .academy-brand { font-size: 20px; font-weight: 400; }
.student-ui.academy .mast nav { font-size: 15px; }
.student-ui.academy :is(.panel, .subpanel, .study-panel, .lesson-stage, .book-card) { border-radius: var(--portal-radius); box-shadow: none; }
.student-ui.academy .panel { padding: 18px; }
.student-ui.books .book-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 12px; margin-top: 18px; }
.student-ui.books .book-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 16px; padding: 16px; max-width: none; }
.student-ui.books .book-card .cover { width: 88px; height: 120px; aspect-ratio: auto; border-radius: 6px; }
.student-ui.books .book-card .typographic-cover { padding: 10px; gap: 8px; border-bottom-width: 2px; }
.student-ui.books .book-card .typographic-cover > span { display: none; }
.student-ui.books .book-card .typographic-cover strong { font-size: 15px; }
.student-ui.books .book-card .typographic-cover small { font-size: 10px; letter-spacing: .02em; }
.student-ui.books .card-copy { padding: 0; min-width: 0; }
.student-ui.books .card-copy .manual-card-title { font-size: 22px; margin: 6px 0 10px; }
.student-ui.books .card-copy p { margin-bottom: 10px; font-size: 15px; }
.student-ui.books .card-copy .notice { padding: 8px 12px; }
.student-ui.books .card-copy > .button { margin-bottom: 8px; }
.student-ui.books .manual-library-section + .manual-library-section { padding-top: 22px; margin-top: 28px; }
.student-ui.academy .course-heading { margin-block: 20px; }
.student-ui.academy .course-heading h1 { font-size: 28px; }
.student-ui.academy :is(button, .button) { border-radius: 7px; font-size: 15px; }
.student-ui :is(.reading-paper, .lesson-copy) :is(strong, b) { font-weight: 700; }
.student-ui.books.night {
  --portal-ink: #e8ecf1;
  --portal-muted: #b5bfca;
  --portal-line: #3d4a5a;
  --portal-surface: #151c25;
  --portal-soft: #1e2835;
  --portal-red: #c91d32;
  --accent: #ff8797;
  --red: #c91d32;
}
.student-ui.books.night .panel { background: var(--paper); }
.student-ui .certification-shell { font-family: inherit; }
.student-ui :is(.cert-card, .cert-hero) { border-radius: var(--portal-radius); box-shadow: none; }
.student-ui .cert-card { border-color: var(--portal-line); }
.student-ui :is(.cert-hero, .cert-card.p-4) { padding: 18px !important; }
.student-ui .ci-page { --ci-red: var(--portal-red); --ci-ink: var(--portal-ink); --ci-muted: var(--portal-muted); --ci-line: var(--portal-line); font-family: inherit; font-size: 16px; background: var(--portal-surface); }
.student-ui :is(.ci-card, .ci-ticket, .ci-document, .ci-wallet) { border-radius: var(--portal-radius); padding: 18px; box-shadow: none; }
.student-ui .ci-ticket { padding: 0; }
.student-ui :is(.ci-ticket-main, .ci-ticket-stub) { padding: 18px; }
.student-ui .ci-intro { padding: 18px 0; }
.student-ui .ci-intro h1 { font-size: 34px; }
.student-ui .email-app { font-family: inherit; max-width: 1288px; }
.student-ui .email-app .panel { padding: 18px; }
.student-ui .email-app :is(h1, h2, h3) { font-weight: 400; }
.student-ui .dispatch-bg { display: none; }
.student-ui .dispatch-page .card-header { border-radius: 0 !important; }
.student-ui .dispatch-page .btn-primary { color: #fff; background: var(--portal-red); }
.student-ui .ai-header { padding-block: 16px; background: var(--portal-surface); border-bottom: 1px solid var(--portal-line); }
.student-ui .ai-header a { color: var(--portal-ink); font-weight: 400; }
.student-ui .ai-header span { color: var(--portal-muted); }
.student-ui .ai-shell :is(.panel, .message) { border-radius: var(--portal-radius); box-shadow: none; }
.student-ui .ai-shell .button { font-weight: 400; border-radius: 7px; }
.student-ui .page-hero :is(h1, p) { color: var(--portal-ink); }
.student-ui .page-hero .pill { color: var(--portal-muted); background: var(--portal-surface); border-color: var(--portal-line); }
.student-ui :is(.message-card, .compose-card) { border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: var(--portal-surface); box-shadow: none; }
.student-ui.lobby { margin: 0 auto; }
.student-ui.lobby .classroom-card { padding: 24px; border-radius: var(--portal-radius); box-shadow: none; border-color: var(--portal-line); }
.student-ui.lobby .classroom-card::before { display: none; }
.student-ui.lobby .flight-mark { font-size: 28px; margin: 20px 0 12px; color: var(--portal-red); }
.student-ui.lobby h1 { font-size: 34px; letter-spacing: -.02em; margin-bottom: 16px; }
.student-ui.lobby .session-card { padding: 16px; border-radius: var(--portal-radius); }
.student-ui.lobby button { font: 400 16px/1.35 Abel, 'Arial Narrow', sans-serif; min-height: 44px; border-radius: 7px; padding: 10px 16px; }

/* Media controls follow the same palette; video/PDF content keeps its own canvas. */
.student-ui.student-video-player :is(.glass, .playlist-item, .lock-toast) {
  background: var(--portal-soft); color: var(--portal-ink);
  border: 1px solid var(--portal-line); border-radius: var(--portal-radius); box-shadow: none;
}
.student-ui.student-video-player .playlist-item { background: var(--portal-surface); }
.student-ui.student-video-player .playlist-item.active { border-color: var(--portal-accent, var(--portal-red)); background: var(--portal-soft); }
.student-ui.student-video-player .playlist-item.locked { border-style: dashed; }
.student-ui.student-video-player :is(.playlist-resources summary, .progress-meta) { color: var(--portal-ink); }
.student-ui.student-video-player .text-light-emphasis { color: var(--portal-muted) !important; }
.student-ui.student-video-player .topic-progress-track { background: var(--portal-line); box-shadow: none; }
.student-ui.student-video-player .lock-toast { border-left: 4px solid #a66a00; }
.student-ui.student-video-player :is(.btn-outline-light, .btn-outline-info, .btn-outline-warning),
.student-ui.student-material-viewer .btn-outline-light {
  color: var(--portal-ink); background: var(--portal-surface); border-color: var(--portal-muted);
}
.student-ui.student-video-player :is(.btn-outline-light, .btn-outline-info, .btn-outline-warning):hover,
.student-ui.student-material-viewer .btn-outline-light:hover { color: var(--portal-ink); background: var(--portal-soft); border-color: var(--portal-ink); }
.student-ui.student-video-player .btn-info { color: #fff; background: var(--portal-red); border-color: var(--portal-red); }
.student-ui.student-video-player .btn-info:hover { background: var(--portal-red-dark); border-color: var(--portal-red-dark); }
.student-ui.student-video-player .border-light-subtle { border-color: var(--portal-line) !important; }
.student-ui.student-material-viewer .header-bar { background: var(--portal-surface); color: var(--portal-ink); border-color: var(--portal-line); }
.student-ui.student-material-viewer .description { color: var(--portal-muted); }

@media (max-width: 1023px) {
  .student-ui .service-grid, .student-ui.student-portal .hero-action-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .student-ui .agenda-overview { display: grid; grid-template-columns: minmax(0, 1fr); }
  .student-ui .agenda-brief + .agenda-brief { border: 1px solid var(--portal-line); }
  .student-ui .agenda-details > summary { padding: 10px; }
}
@media (max-width: 600px) {
  .student-ui .service-expansion { border-radius: 0 0 9px 9px; }
  .student-ui.student-portal .container { width: calc(100% - 32px); }
  .student-ui .portal-masthead-inner { min-height: 64px; }
  .student-ui.student-portal .profile-hero { padding-top: 20px; }
  .student-ui .learning-dashboard { padding-top: 18px; }
  .student-ui .service-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .student-ui .service-launch { min-height: 104px; padding: 12px 16px; gap: 6px; }
  .student-ui .service-options > summary { width: 44px; height: 44px; top: 0; right: 0; }
  .student-ui .service-tile-top { padding-right: 28px; }
  .student-ui .service-options-panel { width: calc(100% + 2px); max-width: none; }
  .student-ui.student-portal .hero-action-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .student-ui.student-portal .hero-tile { min-height: 86px; }
  .student-ui :is(.dashboard-button, .portal-updates-button, .btn, .ci-button) { min-height: 44px; }
  .student-ui .dashboard-account a { min-height: 60px; }
  .student-ui .commerce-page .course-art { width: 56px; height: 56px; }
  .student-ui .commerce-page .learning-card-top { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 380px) {
  .student-ui.books .book-card { grid-template-columns: minmax(0, 1fr); }
  .student-ui.books .book-card .cover { width: 64px; height: 86px; }
}
@media (pointer: coarse) {
  .student-ui .service-options > summary { width: 44px; height: 44px; top: 0; right: 0; }
  .student-ui .service-tile-top { padding-right: 28px; }
}
@media print {
  .student-ui.books, .student-ui.books.night {
    --portal-surface: #fff;
    --portal-ink: #000;
    --portal-muted: #333;
    --portal-line: #ddd;
    --portal-soft: #fff;
    --portal-red: #000;
  }
}
@media (prefers-reduced-motion: reduce) {
  .student-ui *, .student-ui *::before, .student-ui *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
