:root{--blue:#2367d6;--blue-strong:#1754bd;--blue-pale:#edf4ff;--navy:#10243f;--sidebar-width:268px;--ink:#17243a;--paper:#f5f8fd;--muted:#718098;--line:#e1e8f2;--sans:'Inter',Arial,sans-serif;--display:'Outfit','Inter',Arial,sans-serif}
html{scroll-padding-top:100px}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);min-height:100vh}
.app-sidebar{position:fixed;z-index:40;inset:0 auto 0 0;width:var(--sidebar-width);display:flex;flex-direction:column;padding:24px 16px 16px;background:#fff;border-right:1px solid #e4eaf3;box-shadow:8px 0 28px #17375b08}
.sidebar-brand{gap:11px;padding:5px 12px 26px;border-bottom:1px solid #edf1f7;font-size:17px;color:#12233b;letter-spacing:-.5px}
.sidebar-brand .brand-mark{width:38px;height:38px;border-radius:13px;background:linear-gradient(145deg,#3785f4,#1759c9);box-shadow:0 7px 16px #2168d833}
.brand-mark svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.brand-word-2{color:var(--blue)}
.sidebar-label{padding:24px 13px 10px;color:#98a5b8;font-size:9px;letter-spacing:1.5px;font-weight:800}
.main-nav{display:flex;flex-direction:column;gap:5px;padding:0 0 10px}
.main-nav a[data-app-tab]{height:46px;display:flex;align-items:center;gap:13px;padding:0 13px;border-radius:13px;color:#66758b;font-size:13px;font-weight:600;white-space:normal;transition:background .18s,color .18s,transform .18s}
.main-nav a[data-app-tab]:hover{background:#f4f7fc;color:#244d84;transform:translateX(2px)}
.main-nav a[data-app-tab].active{background:linear-gradient(100deg,#eaf2ff,#f3f7ff);color:#1c5fc5;font-weight:750;box-shadow:inset 3px 0 #2c74e8}
.main-nav .active:after{display:none}
.nav-icon{width:23px;height:23px;display:grid;place-items:center;border-radius:8px;color:#8291a7;font-size:20px;font-weight:500;line-height:1;flex:none}
.main-nav a.active .nav-icon{color:var(--blue)}
.nav-check{border:1.7px solid currentColor;width:17px;height:17px;border-radius:5px;font-size:13px;margin:0 3px}
.sidebar-divider{height:1px;background:#edf1f7;margin:13px 10px 2px}
.sidebar-admin-label{padding-top:14px}
.main-nav a[data-app-tab="administration"]{color:#4d6382}
.main-nav a[data-app-tab="administration"].active{color:#1c5fc5}
.sidebar-bottom{margin-top:auto;display:grid;gap:11px;padding:13px 8px 4px;border-top:1px solid #edf1f7}
.sidebar-campus{display:flex;align-items:center;gap:10px;padding:2px 4px 8px}
.campus-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#e9f2ff,#dbeaff);color:#1e60c3;font-size:11px;font-weight:800}
.sidebar-campus strong,.sidebar-campus small{display:block}
.sidebar-campus strong{font-size:11px;color:#30445f}
.sidebar-campus small{font-size:9px;color:#95a2b5;margin-top:2px}
.theme-toggle{width:100%;height:42px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid #e8edf5;border-radius:12px;background:#fbfcfe;color:#52647e;cursor:pointer;font-size:11px;font-weight:650}
.theme-glyph{display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:#edf4ff;color:#276bd1;font-size:15px}
.theme-toggle-hint{margin-left:auto;color:#9aa7ba;font-size:9px;font-weight:500}
.sidebar-auth{width:100%;height:43px!important;justify-content:center;border-radius:12px!important;background:linear-gradient(110deg,#2876e7,#1756bd)!important;box-shadow:0 7px 16px #2367d629;color:#fff!important;font-size:12px!important}
.sidebar-backdrop{display:none}
.topbar{height:76px;margin-left:var(--sidebar-width);padding:0 38px;display:flex;justify-content:flex-start;gap:18px;border-bottom:1px solid #e6ecf4;background:#ffffffeb;backdrop-filter:blur(16px);position:sticky;top:0;z-index:20}
.topbar-title{display:flex;flex-direction:column;gap:2px;color:#223752}
.topbar-kicker{font-size:8px;font-weight:800;letter-spacing:1.4px;color:#8b9bb1}
.topbar-title strong{font:600 14px var(--display);letter-spacing:-.2px}
.topbar-title strong span{color:#9aabc0;padding-inline:3px}
.topbar-status{margin-left:auto;display:flex;align-items:center;gap:8px;color:#75859a;font-size:10px;font-weight:600}
.status-dot{width:7px;height:7px;background:#3dbb8b;border-radius:50%;box-shadow:0 0 0 4px #e9f8f1}
.menu-toggle{display:none}
main{margin-left:var(--sidebar-width);width:calc(100% - var(--sidebar-width));min-height:calc(100vh - 76px)}
main>.wrap,.admin-shell.wrap,.footer .wrap{width:min(1160px,calc(100% - 76px));margin-inline:auto}
.admin-shell.wrap{width:calc(100% - var(--sidebar-width));margin-left:var(--sidebar-width);padding:38px 38px 60px}
.footer{margin-left:var(--sidebar-width)}
.footer .wrap{width:calc(100% - 76px)}
.footer-inner{gap:18px}
.button,.filter-chip,.resource-link,.admin-tab,.admin-cancel,.admin-refresh,.admin-exit{border-radius:14px}
.button{min-height:46px;padding-inline:20px}
.button-teal{background:linear-gradient(110deg,#2876e7,#1756bd);box-shadow:0 9px 20px #2367d62b;color:white}
.button-dark{background:#17345a}
.text-link,.resource-link,.filter-chip.selected,.section-head>.text-link{color:#2367d6}
.hero h1 em{color:#2367d6}
.hero-pill{border-color:#d7e6fb;background:#fff;color:#45658f}
.subject-card,.resource-card,.quiz-card,.quick-continue,.fiche-dialog{border-radius:20px}
.resource-card{box-shadow:0 8px 24px #183d6b0a;border-color:#e4ebf5}
.resource-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px #183d6b12}
.visual-lungs,.visual-breath,.visual-histo{background:linear-gradient(145deg,#eaf3ff,#dceafe)}
.visual-kidney,.visual-heme{background:linear-gradient(145deg,#eef4ff,#e0eaf8)}
.visual-label{border-color:#c6daf6;color:#3571c3}
.lung-art{background:#d3e5ff;color:#2f72ca}.visual-caption{color:#4676b0}.kidney-art{color:#6594cf;text-shadow:13px 5px 0 #b3cef1}.breath-art{color:#477fbd}
.resource-link{border:0;background:none;padding:0;color:#2367d6;font-weight:750}
.filter-chip{background:#fff;border-color:#e2eaf5;color:#718098}
.filter-chip.selected{background:#eaf2ff;border-color:#d5e5fc;color:#2367d6}
.search-box{border-radius:13px;border-color:#e2eaf5;background:#fff}
.feature-mark{color:#dceafe}
.community{border-radius:22px;background:linear-gradient(120deg,#173b68,#225eaa);box-shadow:0 16px 36px #163b6818}
.community-icon{border-radius:14px;background:#ffffff16;color:#c7dcff}
.community .button-outline{border-radius:14px;color:white;border-color:#ffffff50}
.footer{border-color:#e3eaf3}
.fiche-dialog{border-radius:24px}
.admin-heading{margin-bottom:28px}
.admin-overview article,.admin-form,.admin-content,.admin-list>.admin-item{border-radius:18px}
.admin-tabs{gap:8px}
.admin-tab{border-radius:12px}
body.mono-mode{--paper:#071a31;--ink:#e7f0ff;--muted:#a7bbd6;--line:#203a5b;background:#071a31;color:#e7f0ff}
body.mono-mode .app-sidebar{background:#0b203a;border-color:#1d385a;box-shadow:8px 0 28px #0002}
body.mono-mode .sidebar-brand,body.mono-mode .sidebar-campus strong{color:#e8f1ff;border-color:#1d385a}
body.mono-mode .sidebar-label,body.mono-mode .sidebar-campus small{color:#8da7c8}
body.mono-mode .sidebar-divider,body.mono-mode .sidebar-bottom{border-color:#1d385a;background-color:transparent}
body.mono-mode .main-nav a[data-app-tab]{color:#a6bad5}
body.mono-mode .main-nav a[data-app-tab]:hover{background:#112d4e;color:#d8e8ff}
body.mono-mode .main-nav a[data-app-tab].active{background:linear-gradient(100deg,#12345a,#173c67);color:#dcebff;box-shadow:inset 3px 0 #58a0ff}
body.mono-mode .main-nav a.active .nav-icon{color:#72adff}
body.mono-mode .theme-toggle{background:#102a48;border-color:#264466;color:#c7d9f1}
body.mono-mode .theme-glyph{background:#173b63;color:#8abaff}
body.mono-mode .topbar{background:#0b203aec;border-color:#1d385a}
body.mono-mode .topbar-title{color:#e3edfc}
body.mono-mode .topbar-kicker,body.mono-mode .topbar-status{color:#91a9c7}
body.mono-mode .status-dot{box-shadow:0 0 0 4px #163b34}
body.mono-mode .hero h1,body.mono-mode .section-head h2,body.mono-mode .feature-copy h2,body.mono-mode .resource-body h3,body.mono-mode .subject-card h3{color:#e8f1ff}
body.mono-mode .hero-copy>p,body.mono-mode .section-sub,body.mono-mode .resource-body p,body.mono-mode .subject-card p{color:#a7bbd6}
body.mono-mode .resource-card,body.mono-mode .subject-card,body.mono-mode .quiz-card,body.mono-mode .fiche-dialog,body.mono-mode .search-box{background:#102743;border-color:#244364;color:#e5efff}
body.mono-mode .hero-pill,body.mono-mode .filter-chip{background:#102743;border-color:#244364;color:#b3c8e4}
body.mono-mode .filter-chip.selected{background:#173d68;border-color:#285887;color:#badaff}
body.mono-mode .resource-visual{filter:saturate(.8) brightness(.8)}
body.mono-mode .footer{border-color:#203a5b;color:#9bb0cc}
body.mono-mode .footer-inner .brand{color:#e5efff}
body.mono-mode .community{background:linear-gradient(120deg,#12345a,#174a83)}
body.mono-mode .admin-shell{color:#e5efff}
body.mono-mode .admin-overview article,body.mono-mode .admin-form,body.mono-mode .admin-content,body.mono-mode .admin-list>.admin-item{background:#102743;border-color:#244364;color:#e5efff}
@media(max-width:900px) and (min-width:681px){:root{--sidebar-width:232px}.app-sidebar{padding-inline:12px}.topbar{padding-inline:26px}.admin-shell.wrap{padding-inline:26px}}
@media(max-width:680px){
  :root{--sidebar-width:0px}
  body{padding-bottom:0;overflow-x:hidden}
  .app-sidebar{width:min(84vw,310px);padding:18px 14px max(14px,env(safe-area-inset-bottom));transform:translateX(-105%);transition:transform .28s cubic-bezier(.22,.75,.24,1);box-shadow:16px 0 50px #091c3540}
  .app-sidebar.is-open{transform:translateX(0)}
  .sidebar-backdrop{display:block;position:fixed;z-index:35;inset:0;background:#07162988;border:0;opacity:0;pointer-events:none;transition:opacity .22s;backdrop-filter:blur(2px)}
  .sidebar-backdrop.is-visible{opacity:1;pointer-events:auto}
  .sidebar-brand{padding:8px 10px 20px}
  .sidebar-label{padding-top:20px}
  .main-nav{position:static;inset:auto;height:auto;display:flex;justify-content:flex-start;align-items:stretch;gap:5px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;z-index:auto;font-size:13px}
  .main-nav a[data-app-tab]{height:48px;flex:none;justify-content:flex-start;padding:0 13px;border-radius:13px;font-size:13px}
  .main-nav a[data-app-tab].active{background:linear-gradient(100deg,#eaf2ff,#f3f7ff);color:#1c5fc5}
  .main-nav a[data-app-tab="administration"]{font-size:13px}
  body.mono-mode .main-nav,body.mono-mode .main-nav a[data-app-tab].active{background:#12345a}
  .menu-toggle{display:grid;place-content:center;gap:4px;width:40px;height:40px;padding:0;border:1px solid #e1e9f4;border-radius:13px;background:#fff;cursor:pointer}
  .menu-toggle span{display:block;width:16px;height:2px;border-radius:3px;background:#365578}
  .topbar{height:65px;margin:0;padding:0 16px;gap:12px}
  .topbar-title{gap:1px}.topbar-title strong{font-size:12px}.topbar-kicker{font-size:7px}
  .topbar-status{display:none}
  main{margin:0;width:100%;min-height:calc(100vh - 65px)}
  main>.wrap{width:calc(100% - 36px)}
  .admin-shell.wrap{width:100%;margin:0;padding:28px 18px 42px}
  .footer{margin:0;padding-bottom:20px}
  .footer .wrap{width:calc(100% - 36px)}
  .sidebar-auth{font-size:12px!important}
  body.mono-mode .menu-toggle{background:#102a48;border-color:#264466}
  body.mono-mode .menu-toggle span{background:#d7e7fd}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.admin-list-heading{gap:14px;flex-wrap:wrap}
.admin-list-tools{display:flex;align-items:center;gap:10px}
.admin-list-tools>small{color:#96a5b8;font-size:10px;white-space:nowrap}
.admin-search{display:flex;align-items:center;gap:8px;min-width:190px;height:37px;padding:0 11px;border:1px solid #e3eaf4;border-radius:12px;background:#fff;color:#8b9bb0}
.admin-search span{font-size:17px;line-height:1}
.admin-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#344c6c;font:500 11px var(--sans)}
.admin-search input::placeholder{color:#9ba8b9}
.admin-open-file{display:inline-flex;align-items:center;gap:4px;padding:8px 10px;border:1px solid #d9e7fa;border-radius:11px;background:#f4f8ff;color:#2367d6;font-size:10px;font-weight:750;white-space:nowrap}
.admin-row-actions button[data-toggle-publish]{background:#eff6ff;border-color:#d7e7fb;color:#2164c2}
.admin-row[hidden]{display:none!important}
body.mono-mode .admin-search{background:#0a1e37;border-color:#315274;color:#a9c4e6}
body.mono-mode .admin-search input{color:#e5efff}
body.mono-mode .admin-open-file,body.mono-mode .admin-row-actions button[data-toggle-publish]{background:#143253;border-color:#315274;color:#9bc8ff}
@media(max-width:680px){.admin-list-tools{width:100%;justify-content:space-between}.admin-list-tools .admin-search{min-width:0;flex:1}.admin-list-tools>small{display:none}.admin-list-heading{align-items:flex-start}.admin-list-heading h3{padding-top:8px}.admin-row-actions{flex-wrap:wrap;justify-content:flex-start}.admin-row-actions .admin-order-controls{margin-right:auto}}
/* PDF-to-QCM import and review */
.qcm-importer{padding:30px;background:linear-gradient(135deg,#fff 0%,#f5f9ff 100%);border-color:#d5e4f7}
.qcm-import-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.qcm-import-heading h3{margin:7px 0 8px!important;font-size:23px!important;color:#172b48}
.qcm-import-heading p{max-width:650px;margin:0;color:#72829a;font-size:13px;line-height:1.65}
.qcm-import-kicker{color:#2877cf;font-size:10px;font-weight:800;letter-spacing:1.3px}
.qcm-import-icon{display:grid;place-items:center;flex:none;width:50px;height:50px;border-radius:17px;background:#e6f1ff;color:#2877cf;font-size:27px;font-weight:700}
.qcm-import-status{margin-top:16px;padding:12px 15px;line-height:1.5}
.qcm-review{margin-top:24px;border-top:1px solid #dfe8f4;padding-top:22px}
.qcm-review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.qcm-review-heading h4{margin:0 0 5px;color:#1b3557;font:750 16px var(--display)}
.qcm-review-heading p{margin:0;color:#7889a1;font-size:11px;line-height:1.5}
.qcm-review-heading>span{white-space:nowrap;border-radius:999px;background:#e8f2ff;color:#286fbd;padding:8px 11px;font-size:11px;font-weight:800}
.qcm-review-card{padding:18px;margin:12px 0;border:1px solid #dce7f4;border-radius:20px;background:#fff;display:grid;gap:13px}
.qcm-review-card-top{display:flex;align-items:center;justify-content:space-between;color:#2877cf;font-size:10px;font-weight:800;letter-spacing:1px}
.qcm-review-card-top button{border:0;background:#f2f6fc;color:#71839b;padding:7px 12px;border-radius:999px;font-size:10px;font-weight:700;cursor:pointer}
.qcm-review-card>label,.qcm-review-bottom label{display:grid;gap:7px;color:#455a76;font-size:11px;font-weight:700}
.qcm-review-card textarea,.qcm-review-card input{width:100%;border:1px solid #dce5f1;border-radius:13px;background:#fbfdff;padding:11px 12px;color:#182b45;font:500 12px/1.5 var(--sans);resize:vertical}
.qcm-review-card textarea:focus,.qcm-review-card input:focus{outline:0;border-color:#6ba2e9;box-shadow:0 0 0 3px #1769d214}
.qcm-review-bottom{display:grid;grid-template-columns:minmax(140px,.4fr) minmax(0,1fr);gap:12px}
.qcm-answer-hint{color:#71839b;font-size:10px}
.qcm-import-actions{padding-top:15px;border-top:1px solid #dfe8f4}
.qcm-import-actions[hidden],.qcm-review[hidden]{display:none}
body.mono-mode .qcm-importer{background:linear-gradient(135deg,#102744,#0d2340);border-color:#294b70}
body.mono-mode .qcm-import-heading h3,body.mono-mode .qcm-review-heading h4{color:#edf5ff}
body.mono-mode .qcm-import-heading p,body.mono-mode .qcm-review-heading p,body.mono-mode .qcm-answer-hint{color:#afc2dc}
body.mono-mode .qcm-import-kicker{color:#8dbfff}
body.mono-mode .qcm-import-icon,body.mono-mode .qcm-review-heading>span{background:#17385e;color:#9bc8ff}
body.mono-mode .qcm-review{border-color:#29486a}
body.mono-mode .qcm-review-card{background:#0e2340;border-color:#294b70}
body.mono-mode .qcm-review-card textarea,body.mono-mode .qcm-review-card input{background:#0a1e37;border-color:#315274;color:#edf5ff}
body.mono-mode .qcm-review-card>label,body.mono-mode .qcm-review-bottom label{color:#bdcde2}
body.mono-mode .qcm-review-card-top button{background:#17375c;color:#c7ddf8}
@media(max-width:680px){.qcm-importer{padding:19px}.qcm-import-heading h3{font-size:19px!important}.qcm-import-heading p{font-size:12px}.qcm-import-icon{width:42px;height:42px;border-radius:14px}.qcm-review-card{padding:14px;border-radius:17px}.qcm-review-bottom{grid-template-columns:1fr}.qcm-review-heading{align-items:flex-start}}
/* Organize the curriculum by semester and number QCMs within each subject */
.subject-grid{display:block}
.subject-semester-group{margin:0 0 28px;padding:22px;border:1px solid #dce7f5;border-radius:24px;background:linear-gradient(145deg,#fff,#f6f9ff)}
.subject-semester-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 16px;padding:0 2px}
.subject-semester-heading span{color:#337ed2;font-size:9px;font-weight:800;letter-spacing:1.3px}
.subject-semester-heading h3{margin:5px 0 0;color:#193453;font:750 22px var(--display);letter-spacing:-.5px}
.subject-semester-heading small{color:#7e8da3;font-size:11px}
.subject-semester-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.subject-semester-cards .subject-card{min-width:0}
.admin-qcm-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 19px;background:#f1f6fd;border-bottom:1px solid #e3ebf5}
.admin-qcm-group-heading strong{color:#244b78;font-size:12px}
.admin-qcm-group-heading small{color:#7e8da3;font-size:10px}
body.mono-mode .subject-semester-group{background:linear-gradient(145deg,#102744,#0d2340);border-color:#294b70}
body.mono-mode .subject-semester-heading h3{color:#edf5ff}
body.mono-mode .subject-semester-heading span{color:#8dbfff}
body.mono-mode .subject-semester-heading small{color:#afc2dc}
body.mono-mode .admin-qcm-group-heading{background:#0b203a;border-color:#29486a}
body.mono-mode .admin-qcm-group-heading strong{color:#d9eaff}
body.mono-mode .admin-qcm-group-heading small{color:#afc2dc}
@media(max-width:760px){.subject-semester-group{padding:16px;border-radius:20px}.subject-semester-cards{grid-template-columns:1fr;gap:10px}.subject-semester-heading h3{font-size:19px}}
/* Semester and subject selector for the student QCM sequence */
.qcm-subject-picker{display:grid;gap:8px;max-width:330px;margin:20px 0;color:#d4e3f7;font-size:11px;font-weight:700}
.qcm-subject-picker select{width:100%;min-height:44px;border:1px solid #45678d;border-radius:16px;background:#143253;color:#f0f6ff;padding:0 14px;font:600 12px var(--sans);outline:0}
.qcm-subject-picker select:focus{border-color:#83b8f4;box-shadow:0 0 0 3px #8dbfff25}
.qcm-subject-picker small{font-size:10px;line-height:1.55;font-weight:500;color:#adc5e2}
/* Semester → subject → resource navigation */
.curriculum-section{min-height:64vh}
.curriculum-browser{margin:28px 0 54px;padding:clamp(18px,3vw,34px);border:1px solid #dbe6f3;border-radius:28px;background:linear-gradient(145deg,#fff 5%,#f4f8ff 100%);box-shadow:0 22px 60px #153c6810}
.curriculum-step-count{display:inline-flex;align-items:center;gap:8px;color:#337ed2;font-size:10px;font-weight:850;letter-spacing:1.5px}
.curriculum-step h3,.curriculum-detail-heading h3{margin:8px 0 20px;color:#172d49;font:750 clamp(22px,3vw,30px)/1.15 var(--display);letter-spacing:-.7px}
.curriculum-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.curriculum-choice{display:flex;align-items:center;gap:14px;min-height:82px;padding:16px 18px;border:1px solid #dce7f5;border-radius:21px;background:#fff;color:#1b3454;text-align:left;cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s}
.curriculum-choice:hover{transform:translateY(-2px);border-color:#75a9e9;box-shadow:0 12px 26px #1e559412}
.curriculum-choice>span:first-child{font-size:18px;font-weight:800}
.curriculum-choice small{display:block;margin-top:5px;color:#8191a8;font-size:11px;font-weight:550}
.curriculum-choice>b{margin-left:auto;color:#397fce;font-size:19px;font-weight:500}
.semester-choice{min-height:100px;border-color:#d6e5f8;background:linear-gradient(140deg,#fff,#f1f7ff)}
.semester-choice>span:first-child{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#e9f2ff;color:#2777d3;font:800 20px var(--display)}
.curriculum-crumbs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:22px}
.curriculum-crumbs>span{padding:8px 13px;border-radius:999px;background:#e9f2ff;color:#286fbe;font-size:11px;font-weight:800}
.curriculum-back{padding:8px 13px;border:1px solid #dbe6f3;border-radius:999px;background:#fff;color:#536c89;font:700 11px var(--sans);cursor:pointer}
.curriculum-back:hover{border-color:#7eb0ea;color:#236fc0}
.curriculum-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}
.curriculum-subject-mark{display:grid;place-items:center;flex:0 0 45px;width:45px;height:45px;border-radius:15px;background:#eaf3ff;color:#2b78ce}
.curriculum-subject-copy{min-width:0}
.curriculum-subject-copy strong{display:block;overflow:hidden;color:#1b3454;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.curriculum-detail-heading h3{margin-bottom:5px}
.curriculum-detail-heading p{max-width:640px;margin:0 0 20px;color:#74859c;font-size:13px;line-height:1.7}
.curriculum-tabs{display:flex;gap:8px;margin:10px 0 20px;padding:5px;border:1px solid #dce7f5;border-radius:999px;background:#f2f6fc;width:max-content;max-width:100%}
.curriculum-tabs button{min-height:39px;padding:0 17px;border:0;border-radius:999px;background:transparent;color:#71839b;font:750 11px var(--sans);cursor:pointer}
.curriculum-tabs button.active{background:#287bd0;color:#fff;box-shadow:0 5px 14px #2779cf38}
.curriculum-tabs button span{margin-left:5px;opacity:.8}
.curriculum-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.curriculum-resource{padding:19px;border:1px solid #dce7f5;border-radius:20px;background:#fff}
.curriculum-resource-number{color:#347dce;font-size:9px;font-weight:850;letter-spacing:1.2px}
.curriculum-resource h4{margin:9px 0 6px;color:#203956;font:720 15px/1.4 var(--display)}
.curriculum-resource p{margin:0;color:#7788a0;font-size:11px;line-height:1.6}
.curriculum-action{display:inline-flex;align-items:center;gap:8px;margin-top:15px;padding:9px 13px;border:0;border-radius:999px;background:#edf5ff;color:#2473c8;font:750 10px var(--sans);text-decoration:none;cursor:pointer}
.curriculum-action:hover{background:#dcecff}
.curriculum-question h4{font-size:13px}
.curriculum-start-quiz{margin-top:18px;border-radius:999px!important}
.curriculum-empty,.curriculum-empty-card{padding:20px;border:1px dashed #cddced;border-radius:18px;color:#7587a0;font-size:12px}
.curriculum-empty-card{display:grid;grid-column:1/-1;gap:6px;justify-items:start;background:#fff}
.curriculum-empty-card>span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#eaf3ff;color:#317bc9}
.curriculum-empty-card strong{color:#27415f;font-size:13px}
.curriculum-empty-card small{color:#8191a7;font-size:11px}
.qcm-browse-heading{margin-top:0;padding-top:34px}
body.mono-mode .curriculum-browser{border-color:#294b70;background:linear-gradient(145deg,#102744,#0d2340);box-shadow:0 22px 60px #0003}
body.mono-mode .curriculum-step h3,body.mono-mode .curriculum-detail-heading h3{color:#edf5ff}
body.mono-mode .curriculum-choice,body.mono-mode .curriculum-resource,body.mono-mode .curriculum-empty-card,body.mono-mode .curriculum-back{border-color:#294b70;background:#102744;color:#e3efff}
body.mono-mode .semester-choice{background:linear-gradient(140deg,#102744,#132f50)}
body.mono-mode .curriculum-choice small,body.mono-mode .curriculum-detail-heading p,body.mono-mode .curriculum-resource p,body.mono-mode .curriculum-empty-card small{color:#afc2dc}
body.mono-mode .curriculum-subject-copy strong,body.mono-mode .curriculum-resource h4,body.mono-mode .curriculum-empty-card strong{color:#e3efff}
body.mono-mode .curriculum-subject-mark,body.mono-mode .semester-choice>span:first-child,body.mono-mode .curriculum-empty-card>span{background:#17385e;color:#9bc8ff}
body.mono-mode .curriculum-crumbs>span,body.mono-mode .curriculum-tabs{background:#0a1e37;border-color:#29486a;color:#afc2dc}
body.mono-mode .curriculum-back{color:#c7ddf8}
body.mono-mode .curriculum-action{background:#17385e;color:#a8ceff}
@media(max-width:760px){.curriculum-browser{margin:20px 0 36px;padding:17px;border-radius:23px}.curriculum-buttons,.curriculum-subjects,.curriculum-records{grid-template-columns:1fr;gap:10px}.curriculum-choice{min-height:72px;padding:13px 15px;border-radius:18px}.semester-choice{min-height:82px}.curriculum-step h3{margin-bottom:15px}.qcm-browse-heading{padding-top:26px}}

/* The unassigned-semester label must fit in its tile at every viewport size. */
.semester-choice[data-browser-semester="none"]{min-width:0;min-height:82px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 10px;overflow:hidden}
.semester-choice[data-browser-semester="none"]>span:first-child{display:block;width:auto;height:auto;min-width:0;max-width:100%;padding:8px 11px;border-radius:13px;font-size:clamp(13px,2.5vw,16px);line-height:1.2;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.semester-choice[data-browser-semester="none"] small{min-width:0;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.semester-choice[data-browser-semester="none"]>b{grid-column:2;grid-row:1/3;align-self:center}
@media(max-width:760px){.semester-choice[data-browser-semester="none"]{min-height:76px;padding:12px 14px}}

/* Give each named QCM its own readable course card and a full-width practice area. */
.curriculum-records:has(.curriculum-question-group){grid-template-columns:minmax(0,1fr);gap:16px}
.curriculum-question-group{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:132px;padding:clamp(22px,3vw,34px);border-radius:26px;box-shadow:0 12px 30px #153c6809}
.curriculum-question-group>div{min-width:0}
.curriculum-question-group h4{margin:12px 0 8px;font-size:clamp(20px,2.6vw,27px);overflow-wrap:anywhere}
.curriculum-question-group p{font-size:14px}
.curriculum-question-group .curriculum-start-group{flex:none;margin:0;padding:13px 20px;font-size:13px}
#qcm .feature-grid.quiz-active{grid-template-columns:minmax(0,1fr);max-width:1100px;margin-inline:auto;padding-inline:clamp(18px,4vw,56px)}
#qcm .feature-grid.quiz-active .feature-copy{display:none}
#qcm .feature-grid.quiz-active .quiz-card{width:100%;min-height:620px;border-radius:32px}
#qcm .feature-grid.quiz-active .quiz-content{padding:clamp(28px,5vw,60px)}
#qcm .feature-grid.quiz-active .quiz-content h3{font-size:clamp(24px,4vw,38px);line-height:1.35}
#qcm .feature-grid.quiz-active .answer-option{min-height:74px;padding:18px 22px;font-size:16px;line-height:1.55}
#qcm .feature-grid.quiz-active .quiz-footer{gap:14px;margin-top:28px}
@media(max-width:680px){.curriculum-question-group{align-items:flex-start;flex-direction:column;gap:18px;min-height:0;padding:22px}.curriculum-question-group .curriculum-start-group{width:100%;justify-content:center}#qcm .feature-grid.quiz-active{padding-inline:18px}#qcm .feature-grid.quiz-active .quiz-card{min-height:0;border-radius:24px}#qcm .feature-grid.quiz-active .quiz-content{padding:22px}#qcm .feature-grid.quiz-active .answer-option{min-height:66px;padding:14px;font-size:14px}}
body.mono-mode .curriculum-question-group{background:linear-gradient(135deg,#102744,#0d2340);border-color:#294b70}
body.mono-mode .curriculum-question-group h4{color:#edf5ff}
