:root {
  --ink: #17354f;
  --muted: #667c8c;
  --teal: #0d447e;
  --teal-2: #1688ad;
  --mint: #dff8ed;
  --cream: #f2f8fb;
  --amber: #3ab9dc;
  --coral: #55c9b4;
  --danger: #cf5454;
  --white: #fff;
  --line: #d8e6ec;
  --shadow: 0 18px 48px rgba(13, 68, 126, .12);
  --radius: 20px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f8fbfc; font-family: "DM Sans", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; transform: none !important; }
a { color: inherit; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand { position: relative; overflow: hidden; padding: 56px 7vw; color: white; background: var(--teal); display: flex; flex-direction: column; justify-content: space-between; }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.055); }
.login-brand::before { width: 520px; height: 520px; right: -180px; bottom: -180px; border: 1px solid rgba(255,255,255,.12); }
.login-brand::after { width: 260px; height: 260px; right: 90px; bottom: -70px; }
.brand { width: 215px; padding: 10px 13px; border-radius: 14px; background: white; box-shadow: 0 8px 25px rgba(4,35,68,.12); }
.brand-logo { display: block; width: 100%; height: auto; }
.login-brand > .brand { position: relative; z-index: 1; width: 245px; }
.login-copy { position: relative; z-index: 1; max-width: 600px; }
.eyebrow { margin: 0 0 15px; color: var(--teal-2); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.8px; }
.login-copy .eyebrow { color: #74d8c4; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: Manrope, sans-serif; }
.login-copy h1 { margin-bottom: 20px; font-size: clamp(42px, 5vw, 72px); line-height: .99; letter-spacing: -3.5px; }
.login-copy p { max-width: 470px; color: #d4e8f5; font-size: 17px; line-height: 1.65; }
.login-points { display: flex; gap: 24px; position: relative; z-index: 1; color: #d4e8f5; font-size: 13px; }
.login-points span::before { content: "✓"; color: var(--amber); margin-right: 7px; font-weight: 800; }
.login-panel { padding: 50px 8vw; display: grid; place-items: center; background: var(--cream); }
.login-card { width: min(430px, 100%); }
.login-card h2 { font-size: 32px; letter-spacing: -1.3px; margin-bottom: 8px; }
.subtle { color: var(--muted); line-height: 1.55; }
.field { margin: 22px 0; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid #ced9d6; border-radius: 12px; outline: 0; color: var(--ink); background: rgba(255,255,255,.8); }
.input:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(35,100,106,.12); }
.btn { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; color: white; background: var(--teal); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #0b3766; }
.btn.full { width: 100%; height: 50px; }
.btn.secondary { color: var(--teal); background: var(--mint); }
.btn.ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn.warning { background: var(--danger); }
.demo-box { margin-top: 22px; padding: 15px; border-radius: 14px; background: white; border: 1px solid var(--line); font-size: 13px; }
.demo-box strong { display: block; margin-bottom: 9px; }
.demo-actions { display: flex; gap: 8px; }
.demo-pill { flex: 1; padding: 8px; border: 0; border-radius: 9px; color: var(--teal); background: #edf5f2; font-weight: 700; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 27px 20px; color: white; background: var(--teal); display: flex; flex-direction: column; }
.sidebar .brand { width: 194px; margin: 0 8px 42px; }
.nav { display: grid; gap: 6px; }
.nav button { width: 100%; padding: 12px 14px; border: 0; border-radius: 11px; text-align: left; color: #bbd1cf; background: transparent; font-weight: 600; }
.nav button.active, .nav button:hover { color: white; background: rgba(255,255,255,.1); }
.nav .icon { display: inline-block; width: 25px; }
.sidebar-user { margin-top: auto; padding: 15px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.user-row { display: flex; align-items: center; gap: 10px; }
.avatar { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #083b69; background: #86e2bc; font-weight: 800; }
.user-row strong, .user-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row small { color: #9fbab7; }
.logout { margin-top: 14px; border: 0; color: #b9cecc; background: transparent; font-size: 13px; }
.main { min-width: 0; padding: 38px 4.5vw 70px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.topbar h1 { margin-bottom: 6px; font-size: 35px; letter-spacing: -1.6px; }
.date-chip { padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; font-size: 13px; }
.hero { padding: 30px 34px; border-radius: 24px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; overflow: hidden; color: white; background: var(--teal); box-shadow: var(--shadow); }
.hero h2 { margin-bottom: 10px; font-size: 31px; letter-spacing: -1.4px; }
.hero p { margin-bottom: 20px; color: #d4e8f5; line-height: 1.6; }
.hero-art { min-height: 150px; position: relative; }
.orb { position: absolute; border-radius: 50%; }
.orb.a { width: 145px; height: 145px; right: 0; top: 0; background: var(--amber); }
.orb.b { width: 92px; height: 92px; right: 104px; bottom: -12px; border: 18px solid #7ddcc3; }
.orb.c { width: 30px; height: 30px; right: 64px; bottom: 4px; background: var(--coral); }
.stats { margin: 22px 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.stat .value { display: block; font-family: Manrope; font-size: 29px; font-weight: 800; letter-spacing: -1px; }
.stat .label { color: var(--muted); font-size: 12px; }
.section-head { margin: 30px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.6px; }
.filters { display: flex; gap: 9px; }
.search { height: 40px; min-width: 240px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.course-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.course-code { color: var(--teal-2); font-size: 12px; font-weight: 800; letter-spacing: 1.3px; }
.badge { padding: 5px 9px; border-radius: 999px; background: #f0f4f3; color: var(--muted); font-size: 11px; font-weight: 700; }
.badge.complete, .badge.passed { color: #176451; background: #dff4ec; }
.badge.progress { color: #0d5d80; background: #dff4fb; }
.badge.failed { color: #9a3e2b; background: #fae3dc; }
.badge.retired { color: #6d7270; background: #e7e9e8; }
.course-card h3 { min-height: 54px; margin: 15px 0 10px; font-size: 17px; line-height: 1.45; letter-spacing: -.35px; }
.course-card p { min-height: 60px; margin-bottom: 17px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.progress-track { height: 6px; border-radius: 99px; overflow: hidden; background: #e8eeec; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--amber); }
.card-foot { margin-top: 15px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.card-actions { display: flex; align-items: center; gap: 10px; }
.link-button { padding: 0; border: 0; color: var(--teal-2); background: transparent; font-weight: 800; }
.btn.certificate { color: #083b69; background: #86e2bc; }
.btn.certificate:hover { background: #69d3ab; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.view-switch button { padding: 6px 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.view-switch button.active { color: white; background: var(--teal); }
.course-list { display: grid; gap: 10px; }
.course-list-row { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; display: grid; grid-template-columns: 105px minmax(210px,1fr) minmax(150px,220px) auto; align-items: center; gap: 18px; background: white; }
.list-code strong, .list-code span { display: block; }
.list-code strong { color: var(--teal-2); font-size: 13px; }
.list-code span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.list-title h3 { margin: 0 0 4px; font-size: 15px; }
.list-title p { margin: 0; color: var(--muted); font-size: 12px; }
.list-progress > div:first-child { margin-bottom: 7px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.list-progress strong { color: var(--ink); }
.list-actions { display: flex; justify-content: flex-end; gap: 7px; }

.panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(23,63,67,.04); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.viewer { min-height: 620px; padding: 0; overflow: hidden; }
.viewer iframe { width: 100%; height: 620px; border: 0; background: #edf1ef; }
.course-side { display: grid; gap: 16px; align-content: start; }
.objective-list { margin: 0; padding-left: 19px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.objective-list li { margin-bottom: 8px; }
.source-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 12px; color: var(--teal-2); background: #eef5f3; text-decoration: none; font-size: 13px; font-weight: 700; }
.notice { padding: 13px 15px; border-radius: 12px; color: #155b78; background: #e5f6fb; font-size: 13px; line-height: 1.5; }
.notice.compact { margin-top: 12px; padding: 10px 12px; font-size: 12px; }

.quiz-wrap { max-width: 760px; margin: 0 auto; }
.quiz-meta { margin-bottom: 20px; padding: 20px; border-radius: 17px; color: white; background: var(--teal); display: flex; justify-content: space-between; align-items: center; }
.question { margin-bottom: 15px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.question h3 { font-size: 16px; line-height: 1.5; }
.option { display: block; margin-top: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.option:hover { background: #f5f9f7; }
.option input { margin-right: 9px; accent-color: var(--teal-2); }
.result-card { max-width: 600px; margin: 80px auto; padding: 42px; text-align: center; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.result-score { width: 125px; height: 125px; margin: 10px auto 20px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--teal); font: 800 32px Manrope; box-shadow: 0 0 0 12px var(--mint); }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 24px; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #f7f9f8; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
tr:last-child td { border-bottom: 0; }
.employee { display: flex; align-items: center; gap: 10px; }
.employee .avatar { width: 34px; height: 34px; font-size: 12px; }
.employee small { display: block; color: var(--muted); }
.admin-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.admin-toolbar .actions { display: flex; gap: 8px; }
.row-actions { display: flex; align-items: center; gap: 7px; }
.access-group { margin-top: 28px; }
.access-group + .access-group { margin-top: 40px; }
.section-head.compact { margin: 0 0 14px; }
.section-head.compact p { margin: 4px 0 0; }
.archived-group { padding-top: 28px; border-top: 1px solid var(--line); }
.archived-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal-2); }
.archive-empty { border: 1px dashed var(--line); border-radius: 14px; background: white; }
.transcript-filter { margin: 4px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; background: #f7faf8; }
.transcript-filter label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.transcript-filter .input { min-width: 320px; }
.filter-summary { text-align: right; }
.filter-summary strong, .filter-summary span { display: block; }
.filter-summary span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.audit-event { display: flex; gap: 13px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.audit-event:last-child { border: 0; }
.audit-dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; flex: none; background: var(--amber); box-shadow: 0 0 0 5px #fff3ce; }
.audit-event p { margin: 0 0 3px; font-size: 14px; }
.audit-event small { color: var(--muted); }
.compliance-bar { height: 10px; width: 120px; overflow: hidden; border-radius: 99px; background: #edf1ef; display: inline-block; vertical-align: middle; margin-right: 8px; }
.compliance-bar span { display: block; height: 100%; background: var(--teal-2); }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(10,37,40,.55); backdrop-filter: blur(5px); }
.modal { width: min(520px,100%); max-height: calc(100vh - 40px); padding: 28px; overflow: auto; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.modal.wide { width: min(850px,100%); max-height: calc(100vh - 40px); overflow: auto; }
.modal-head { display: flex; justify-content: space-between; gap: 10px; }
.close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #edf2f0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.textarea { min-height: 105px; padding: 13px 15px; resize: vertical; }
.setting-check { margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; background: #f8fbfc; }
.setting-check:has(input:checked) { border-color: #55c9b4; background: #eefaf6; }
.setting-check input { margin-top: 4px; accent-color: var(--teal-2); }
.setting-check strong, .setting-check small { display: block; }
.setting-check strong { font-size: 13px; }
.setting-check small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.setting-check.attestation { margin-top: 18px; }
.record-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; white-space: normal; }
.self-training-row { background: #fbfefd; }
.role-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.assignment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; max-height: 390px; padding: 2px; overflow: auto; }
.check-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fbfcfa; }
.check-card:has(input:checked) { border-color: #6ba49c; background: #eef7f4; }
.check-card input { margin-top: 4px; accent-color: var(--teal-2); }
.check-card span { font-size: 13px; line-height: 1.4; }
.check-card strong { display: inline-block; min-width: 61px; color: var(--teal-2); }
.check-card small { display: block; margin-top: 3px; color: var(--muted); }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.upload-panel { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #f8fbfc; }
.upload-label { margin-bottom: 11px; color: var(--teal); font-size: 13px; font-weight: 800; }
.current-file { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.current-file.selected { margin-top: 10px; border-color: #63c9df; background: #eefaff; }
.current-file > span:nth-child(2) { min-width: 0; flex: 1; }
.current-file strong, .current-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.current-file strong { font-size: 12px; }
.current-file small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.file-icon { width: 37px; height: 37px; border-radius: 9px; display: grid; place-items: center; flex: none; color: white; background: var(--teal); font-size: 9px; font-weight: 800; }
.no-file { padding: 13px; border: 1px dashed #bfd3dc; border-radius: 10px; color: var(--muted); text-align: center; font-size: 12px; background: white; }
.upload-drop { margin-top: 11px; padding: 13px; border: 1px dashed #5abbd1; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; color: var(--teal); background: #edfbff; }
.upload-drop span { font-size: 12px; font-weight: 800; }
.upload-drop small { color: var(--muted); font-size: 10px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.quiz-setup { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fbfefd; }
.quiz-setup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.quiz-setup-head h3 { margin-bottom: 5px; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.quiz-upload { display: inline-flex; align-items: center; }
.quiz-editor { display: grid; gap: 12px; margin-top: 14px; }
.quiz-question { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.quiz-question-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.quiz-question-head strong { color: var(--teal); font-size: 13px; }
.quiz-preview { margin-top: 14px; padding: 14px; border: 1px solid #bde4de; border-radius: 13px; background: #f1fbf8; font-size: 13px; }
.quiz-preview.empty { border-style: dashed; color: var(--muted); text-align: center; background: white; }
.quiz-preview-question { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.quiz-preview-question p { margin-bottom: 7px; font-weight: 800; }
.quiz-preview-question ol { margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.6; }
.quiz-preview-question .correct { color: #176451; font-weight: 800; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; padding: 13px 17px; border-radius: 12px; color: white; background: var(--teal); box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.setup-screen { min-height: 100vh; padding: 40px 20px; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; background: var(--cream); }
.setup-screen .brand { width: 260px; }
.setup-screen h1 { margin: 6px 0 0; }
.setup-screen p { max-width: 560px; color: var(--muted); }
.loading-ring { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--teal-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.block { display: block; margin-top: 5px; color: var(--muted); }
.course-start { margin-top: 18px; }
.compact-course { grid-template-columns: 1fr 1.2fr; }
.compact-question { padding: 14px; }
.option { margin-top: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 9px; align-items: flex-start; }
.result-inline { margin-top: 14px; padding: 16px; border-radius: 12px; display: flex; justify-content: space-between; background: #fae3dc; }
.result-inline.passed { background: #dff4ec; }
.result-inline strong { font-size: 24px; }
.assignment-grid { max-height: 300px; margin: 14px 0 20px; padding: 4px; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.assignment-item { padding: 10px; border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 8px; align-items: flex-start; }
.assignment-item span, .assignment-item strong { display: block; }
.assignment-item span { color: var(--muted); font-size: 12px; }
.assignment-item strong { color: var(--teal-2); }
.check-row { margin: 12px 0 22px; display: flex; gap: 9px; align-items: center; }
.modal-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; }
.close { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--muted); background: var(--cream); font-size: 24px; }
.file-control { padding: 10px; height: auto; }
.upload-panel { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.upload-panel .btn { margin-top: 10px; }
.quiz-editor { display: grid; gap: 14px; }
.quiz-question { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfd; }
.quiz-question-head { display: flex; justify-content: space-between; align-items: center; }
.transcript-filter { max-width: 430px; }
.login-card .btn.full { margin-top: 25px; }
.empty { padding: 50px; color: var(--muted); text-align: center; }

@media (max-width: 1100px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .course-list-row { grid-template-columns: 90px minmax(180px,1fr) auto; }
  .list-progress { display: none; }
  .course-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 390px; padding: 35px 25px; }
  .login-copy h1 { font-size: 44px; }
  .login-points { flex-wrap: wrap; }
  .login-panel { padding: 45px 25px; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 15px; flex-direction: row; align-items: center; overflow: auto; }
  .sidebar .brand { margin: 0 20px 0 0; }
  .nav { display: flex; }
  .nav button { white-space: nowrap; }
  .sidebar-user { margin: 0 0 0 auto; padding: 0; border: 0; }
  .sidebar-user .user-row div, .logout { display: none; }
  .main { padding: 26px 18px 50px; }
  .topbar { align-items: center; }
  .topbar h1 { font-size: 29px; }
  .hero { grid-template-columns: 1fr; padding: 25px; }
  .hero-art { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .search { width: 100%; min-width: 0; }
  .filters { width: 100%; }
  .filters { flex-wrap: wrap; }
  .filters .search { flex: 1 1 220px; }
  .course-list-row { grid-template-columns: 1fr; gap: 10px; }
  .list-actions { justify-content: flex-start; }
  .viewer, .viewer iframe { min-height: 450px; height: 450px; }
  .grid-2 { grid-template-columns: 1fr; }
  .assignment-grid, .compact-course { grid-template-columns: 1fr; }
  .assignment-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .transcript-filter { align-items: stretch; flex-direction: column; }
  .transcript-filter .input { width: 100%; min-width: 0; }
  .filter-summary { text-align: left; }
}

@media print {
  .sidebar, .topbar .date-chip, .admin-toolbar, .btn { display: none !important; }
  .app-shell { display: block; }
  .main { padding: 0; }
  .panel, .table-wrap { border: 0; box-shadow: none; }
}
