:root { color-scheme: light; --primary:#64c9cf; --primary-hover:#48b5bc; --primary-light:#d2fdff; --primary-wash:#effafb; --nav:rgba(0,0,0,.68); --dark:#2d4c61; --ink:#243746; --muted:#6c757d; --line:#d8e1e5; --paper:#fff; --bg:#f5f7f8; }
* { box-sizing:border-box; }
html,body { min-height:100%; }
body { margin:0; color:var(--ink); background:var(--bg); font:16px/1.5 "Noto Sans Thai Looped",Tahoma,Arial,sans-serif; }
.app-page { display:flex; min-height:100vh; flex-direction:column; padding-bottom:46px; }
.app-page main { flex:1 0 auto; }
.navPC { position:sticky; top:0; z-index:1000; min-height:82px; display:flex; align-items:stretch; padding:0 18px; color:var(--primary-light); background:var(--nav); box-shadow:0 2px 7px rgba(0,0,0,.2); backdrop-filter:blur(8px); }
.navbar-brand { width:min(340px,25vw); min-width:230px; height:60px; align-self:center; display:flex; align-items:center; margin-right:18px; padding:7px 12px; background:#fff; border-radius:6px; }
.navbar-brand img { display:block; width:100%; height:100%; object-fit:contain; }
.nav-links { display:flex; align-items:stretch; }
.nav-link { min-width:150px; display:flex; align-items:center; justify-content:center; padding:0 24px; color:var(--primary-light); border-bottom:3px solid transparent; font-size:20px; font-weight:500; text-decoration:none; }
.nav-link:hover { color:#fff; border-bottom-color:var(--primary); }
.nav-link.active { color:#fff; background:var(--primary); border-radius:6px 6px 0 0; }
.nav-user { margin-left:auto; display:flex; align-items:center; gap:10px; padding-left:18px; }
.user-avatar { width:38px; height:38px; display:grid; place-items:center; color:var(--dark); background:var(--primary-light); border:2px solid #fff; border-radius:50%; font-weight:800; }
.user-details { display:grid; min-width:86px; line-height:1.2; }
.user-details strong { color:#fff; font-size:14px; }
.user-details small { color:var(--primary-light); font-size:12px; text-transform:capitalize; }
.nav-user form { margin:0; }
.logout-button { min-height:38px; padding:7px 12px; color:#fff; background:transparent; border:1px solid rgba(255,255,255,.6); }
.logout-button:hover { color:var(--dark); background:#fff; }
main { width:min(1600px,calc(100% - 40px)); margin:34px auto 72px; }
h1,h2 { color:var(--dark); line-height:1.25; }
h1 { margin:.12em 0; font-size:clamp(28px,4vw,38px); font-weight:650; }
h2 { margin:0 0 18px; font-size:20px; font-weight:650; }
.eyebrow { margin:0; color:#399ca3; font-size:12px; font-weight:800; letter-spacing:.1em; }
.muted,.empty { color:var(--muted); }
.card { padding:26px; background:var(--paper); border:1px solid var(--line); border-radius:12px; box-shadow:0 3px 12px rgba(45,76,97,.08); }
.page-header { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:24px; padding:0 2px; }
.page-subtitle { max-width:720px; margin:7px 0 0; color:var(--muted); }
.breadcrumb { display:flex; align-items:center; gap:9px; margin-bottom:18px; color:#7a8991; font-size:13px; }
.breadcrumb a { color:#478e94; text-decoration:none; }
.breadcrumb b { color:#b5c0c5; font-weight:400; }
.breadcrumb strong { color:var(--dark); font-weight:650; }
.section-title { display:flex; justify-content:space-between; padding-bottom:12px; color:var(--muted); border-bottom:2px solid var(--primary); }
.section-title h2 { margin-bottom:2px; }
.section-title p { margin:0; font-size:13px; }
.summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:22px; }
.summary-grid article { min-height:94px; display:flex; align-items:center; gap:15px; padding:17px 19px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 2px 8px rgba(45,76,97,.06); }
.summary-grid article>div { display:grid; }
.summary-grid small { color:var(--muted); font-size:13px; }
.summary-grid strong { color:var(--dark); font-size:28px; line-height:1.1; }
.summary-icon { width:48px; height:48px; display:grid; place-items:center; flex:0 0 48px; color:#fff; background:var(--primary); border-radius:8px; font-size:23px; font-weight:800; }
.summary-icon.pending { color:#8a6414; background:#fff1c7; }
.summary-icon.answered { color:#277248; background:#dcf3e5; }
.summary-icon.closed { color:#5f6c73; background:#e8edef; }
.case-list-card { padding-bottom:12px; }
.case-list-head { display:grid; grid-template-columns:1fr auto; gap:20px; padding:12px 10px 7px; color:#7d8a91; background:#f8fafb; border-bottom:1px solid var(--line); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.login-page { display:grid; place-items:center; background:linear-gradient(135deg,rgba(210,253,255,.78),rgba(245,247,248,.95) 48%,rgba(100,201,207,.22)); }
.login-page main { width:min(940px,calc(100% - 32px)); margin:42px auto; }
.login-shell { display:grid; grid-template-columns:1fr 460px; gap:48px; align-items:center; }
.login-brand { display:grid; gap:28px; }
.login-brand img { width:100%; padding:16px 20px; background:#fff; border-radius:12px; box-shadow:0 8px 26px rgba(45,76,97,.12); }
.login-brand div { display:grid; color:var(--dark); }
.login-brand span { color:#3e9ea5; font-weight:800; letter-spacing:.18em; }
.login-brand strong { font-size:clamp(32px,5vw,54px); line-height:1.12; }
.login-heading { display:flex; align-items:center; gap:14px; }
.login-heading h1 { font-size:30px; }
.login-icon { width:48px; height:48px; display:grid; place-items:center; color:#fff; background:var(--primary); border-radius:8px; font-size:34px; font-weight:300; }
.login form,.comment-form { display:grid; gap:18px; margin-top:25px; }
.role-login-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:24px; }
.role-login-grid .role-login-form { display:block; margin:0; }
.role-login-button { width:100%; min-height:116px; display:flex; flex-direction:column; gap:10px; padding:15px 8px 13px; color:#344f60; background:#fff; border:1px solid #cbd8de; border-radius:10px; box-shadow:0 2px 7px rgba(45,76,97,.06); }
.role-login-button:hover { color:#173e49; background:#f2fbfc; border-color:#64c9cf; box-shadow:0 5px 14px rgba(45,76,97,.12); transform:translateY(-1px); }
.role-login-icon { width:52px; height:52px; display:grid; place-items:center; color:#fff; background:#496579; border-radius:14px; }
.role-login-icon svg { width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.role-login-button.requester .role-login-icon { background:#2997a0; }
.role-login-button.expert .role-login-icon { background:#397fc4; }
.login-divider { display:flex; align-items:center; gap:12px; margin:24px 0 0; color:#829098; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.login-divider::before,.login-divider::after { height:1px; flex:1; content:""; background:#d8e1e5; }
.login .password-login-form { margin-top:18px; }
.account-entry { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); color:var(--muted); font-size:14px; }
.account-entry .button { min-height:38px; padding:7px 13px; }
.otp-card { overflow:hidden; }
.otp-delivery-summary { display:flex; align-items:center; gap:13px; margin-top:24px; padding:14px 16px; color:#31565c; background:linear-gradient(135deg,#effafb,#f8fdfd); border:1px solid #c4e8ea; border-radius:9px; }
.otp-mail-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 38px; color:#fff; background:#3199a0; border-radius:10px; font-size:20px; font-weight:800; }
.otp-delivery-summary p { display:grid; margin:0; line-height:1.35; }
.otp-delivery-summary span,.otp-delivery-summary small { color:#667a82; font-size:12px; }
.otp-delivery-summary strong { color:var(--dark); font-size:17px; letter-spacing:.02em; }
.otp-code-form input { padding:13px; text-align:center; font-size:28px; font-weight:750; letter-spacing:.32em; font-variant-numeric:tabular-nums; }
.otp-auto-hint { text-align:center; color:#6a7e86; font-size:12px; font-weight:500; letter-spacing:0; }
.otp-code-form.is-verifying input { color:#6f8087; background:#f2f6f7; }
.otp-code-form.is-verifying button,.otp-code-form button:disabled { color:#426169; background:#b9e6e8; border-color:#9cd4d8; cursor:wait; }
.otp-resend-panel { margin-top:22px; padding:16px; background:#f7fafb; border:1px solid var(--line); border-radius:9px; }
.otp-progress-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; color:#60737c; font-size:13px; }
.otp-progress-header strong { color:#2d6670; font-size:18px; font-variant-numeric:tabular-nums; }
.otp-progress-track { height:9px; overflow:hidden; background:#dce6e9; border-radius:999px; box-shadow:inset 0 1px 2px rgba(45,76,97,.12); }
.otp-progress-track>span { display:block; width:0; height:100%; background:linear-gradient(90deg,#3199a0,#64c9cf,#7edbe0); border-radius:inherit; transition:width .25s linear; }
.otp-resend-panel.is-ready .otp-progress-track { box-shadow:inset 0 0 0 1px #badfc9; }
.login .otp-resend-form { margin-top:14px; }
.otp-resend-form button { width:100%; min-height:40px; }
.otp-resend-form button:disabled { color:#7b8a91; background:#e5ebed; border-color:#d1dadd; cursor:not-allowed; }
.registration-page { min-height:100vh; padding:38px 20px 64px; background:linear-gradient(135deg,rgba(210,253,255,.72),rgba(245,247,248,.96) 52%,rgba(100,201,207,.2)); }
.registration-page main { width:min(980px,100%); margin:0 auto; }
.registration-shell { display:grid; gap:22px; }
.registration-header { display:flex; align-items:center; gap:26px; padding:0 8px; }
.registration-header img { width:260px; padding:10px 15px; background:#fff; border-radius:9px; box-shadow:0 6px 22px rgba(45,76,97,.1); }
.registration-header h1 { margin:2px 0; }
.registration-header p:last-child { margin:4px 0 0; color:var(--muted); }
.registration-card { padding:32px; }
.registration-trust { display:flex; align-items:center; gap:14px; margin-bottom:26px; padding:14px 17px; color:#31565c; background:var(--primary-wash); border-left:4px solid var(--primary); border-radius:7px; }
.registration-trust>span { width:30px; height:30px; display:grid; place-items:center; flex:0 0 30px; color:#fff; background:#35a563; border-radius:50%; font-weight:800; }
.registration-trust p { display:grid; margin:0; }
.registration-trust small { color:#60767c; }
.registration-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:19px 16px; }
.registration-form label { position:relative; }
.registration-form label>b { position:absolute; top:0; right:0; color:#2d7e84; font-size:11px; font-weight:700; }
.registration-form .optional-label { float:right; color:#7c8a91; font-size:11px; font-weight:500; }
.registration-consent { grid-template-columns:22px 1fr; align-items:start; gap:10px; margin-top:5px; padding:15px; color:#425761; background:#f7fafb; border:1px solid var(--line); border-radius:7px; font-size:14px; font-weight:500; }
.registration-consent input { width:18px; height:18px; margin:2px 0 0; accent-color:var(--primary-hover); }
.registration-consent a,.registration-actions a,.account-entry a,.public-policy a { color:#286f75; }
.registration-actions { display:flex; align-items:center; justify-content:flex-end; gap:20px; padding-top:5px; }
.registration-honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.public-policy { width:min(760px,100%); margin:8vh auto; }
.public-policy .actions { margin-top:26px; }
.support-page { width:min(820px,100%); margin:5vh auto; padding:34px; }
.support-heading { display:flex; align-items:flex-start; gap:18px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.support-heading>span { width:50px; height:50px; display:grid; place-items:center; flex:0 0 50px; color:#fff; background:var(--primary-hover); border-radius:14px; font-size:28px; font-weight:800; }
.support-heading h1 { margin:2px 0; }
.support-heading p:last-child { margin:5px 0 0; color:var(--muted); }
.support-checklist { margin-top:25px; padding:22px 24px; background:#f7fafb; border:1px solid var(--line); border-radius:10px; }
.support-checklist h2 { margin-bottom:12px; }
.support-checklist ol { display:grid; gap:8px; margin:0; padding-left:22px; }
.support-contact { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:16px; margin-top:20px; padding:19px; color:#31565c; background:var(--primary-wash); border:1px solid #bce8eb; border-radius:10px; }
.support-contact>span { width:48px; height:48px; display:grid; place-items:center; color:#fff; background:#3199a0; border-radius:12px; font-size:22px; font-weight:800; }
.support-contact>div { display:grid; }
.support-contact small { color:#558087; font-weight:800; letter-spacing:.08em; }
.support-contact strong { color:var(--dark); font-size:18px; }
.support-contact p { margin:2px 0 0; color:#61757c; font-size:13px; }
.support-security { display:flex; gap:12px; margin-top:18px; padding:13px 16px; color:#664f18; background:#fff8df; border:1px solid #ead898; border-radius:8px; }
.support-page>.actions { justify-content:space-between; margin-top:24px; }
.privacy-note { margin:22px 0 0; padding-top:16px; color:var(--muted); border-top:1px solid var(--line); font-size:12px; }
label { display:grid; gap:7px; color:#344f60; font-weight:600; }
input,textarea,select { width:100%; padding:11px 13px; color:var(--ink); background:#fff; border:1px solid #b9c7cf; border-radius:6px; font:inherit; }
textarea { resize:vertical; }
input:focus,textarea:focus,select:focus { outline:3px solid rgba(100,201,207,.25); border-color:var(--primary-hover); }
button,.button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:9px 18px; color:#183a46; background:var(--primary); border:1px solid var(--primary-hover); border-radius:6px; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; }
button:hover,.button:hover { color:#fff; background:var(--primary-hover); }
.secondary { color:#fff; background:var(--dark); border-color:var(--dark); }
.case-row { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px 10px; color:inherit; border-bottom:1px solid var(--line); text-decoration:none; }
.case-row:hover { background:var(--primary-wash); }
.case-row:last-child { border-bottom:0; }
.case-row>div { display:grid; gap:3px; }
.case-row>div:last-child { justify-items:end; }
.case-row span,.case-row small { color:var(--muted); }
.badge { width:max-content; display:inline-block; padding:4px 10px; color:#42535d; background:#e9eef0; border-radius:999px; font-size:12px; font-weight:800; text-transform:uppercase; }
.badge.submitted { color:#2c6970; background:var(--primary-light); }
.badge.answered { color:#17643c; background:#dff4e7; }
.badge.closed { color:#59646a; background:#e7e9ea; }
.notice { margin-bottom:24px; padding:15px 18px; color:#31565c; background:var(--primary-wash); border:1px solid #bce8eb; border-left:5px solid var(--primary); border-radius:6px; }
.notice { display:flex; align-items:flex-start; gap:13px; }
.notice p { margin:2px 0 0; }
.notice-symbol { width:28px; height:28px; display:grid; place-items:center; flex:0 0 28px; color:#fff; background:var(--primary); border-radius:50%; font-weight:900; }
.step-strip { display:grid; grid-template-columns:repeat(3,1fr); margin:0 0 22px; padding:0; background:#fff; border:1px solid var(--line); border-radius:10px; list-style:none; overflow:hidden; }
.step-strip li { position:relative; display:flex; align-items:center; gap:11px; padding:13px 18px; color:#89959b; border-right:1px solid var(--line); }
.step-strip li:last-child { border-right:0; }
.step-strip li.active { color:var(--dark); background:var(--primary-wash); }
.step-strip li b { width:30px; height:30px; display:grid; place-items:center; flex:0 0 30px; color:#66767d; background:#e7edef; border-radius:50%; }
.step-strip li.active b { color:#173e49; background:var(--primary); }
.step-strip li span { display:grid; font-weight:700; }
.step-strip li small { color:var(--muted); font-weight:400; }
.form-card { padding:28px 30px; }
.grid-form { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.wide { grid-column:1/-1; }
.grid-form fieldset { margin:0; padding:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.grid-form legend { width:100%; display:flex; align-items:center; gap:10px; padding:12px 16px; color:var(--dark); background:#f5f9fa; border-bottom:1px solid var(--line); font-size:16px; font-weight:700; }
.grid-form legend span { color:#3199a0; font-size:12px; letter-spacing:.08em; }
.fieldset-body { display:grid; gap:19px; padding:20px; }
.field-grid { grid-template-columns:repeat(2,1fr); }
label small { color:var(--muted); font-weight:400; }
.assignment-note { align-self:end; min-height:48px; display:grid; align-content:center; padding:7px 13px; color:#31565c; background:var(--primary-wash); border:1px solid #c7e9eb; border-radius:6px; }
.assignment-note span { color:var(--muted); font-size:13px; }
.deid-banner { display:flex; align-items:center; gap:13px; margin-bottom:24px; padding:14px 17px; color:#235f40; background:#e8f7ed; border:1px solid #b9e3c8; border-radius:7px; }
.deid-banner>span { width:32px; height:32px; display:grid; place-items:center; flex:0 0 32px; color:#fff; background:#35a563; border-radius:50%; font-weight:900; }
.deid-banner p { margin:2px 0 0; color:#5d7567; font-size:13px; }
.profile-review { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; padding:1px; background:var(--line); }
.profile-review>div { min-height:78px; display:grid; align-content:center; gap:4px; padding:13px 16px; background:#fff; }
.profile-review small { color:var(--muted); }
.profile-review strong { color:var(--dark); }
.draft-summary { border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.draft-summary summary { display:flex; justify-content:space-between; padding:12px 15px; color:var(--dark); background:#f5f9fa; cursor:pointer; font-weight:700; }
.draft-summary summary span { color:var(--muted); font-size:13px; font-weight:500; }
.table-scroll { overflow-x:auto; }
.draft-summary table { width:100%; border-collapse:collapse; font-size:13px; }
.draft-summary th,.draft-summary td { padding:10px 12px; border-top:1px solid var(--line); text-align:left; white-space:nowrap; }
.draft-summary th { color:#4c626e; background:#fbfcfc; font-weight:700; }
.metric-summary { border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.metric-summary .draft-summary { border:0; border-radius:0; }
.metric-preview table { width:100%; border-collapse:collapse; font-size:13px; }
.metric-preview th,.metric-preview td { padding:10px 12px; border-top:1px solid var(--line); text-align:left; white-space:nowrap; }
.metric-preview th { color:#4c626e; background:#fbfcfc; font-weight:700; }
.metric-summary .metric-show-less,.metric-summary details[open] .metric-show-all { display:none; }
.metric-summary details[open] .metric-show-less { display:inline; }
.metric-summary details[open] + .metric-preview { display:none; }
.clinical-records { display:grid; gap:14px; margin-bottom:22px; }
.clinical-records h2 { margin-bottom:2px; }
.report-setting-review { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.report-setting-review>div { display:flex; align-items:center; gap:10px; padding:12px 14px; color:var(--dark); background:var(--primary-wash); border:1px solid #c7e9eb; border-radius:7px; }
.report-setting-review>div span { width:24px; height:24px; display:grid; place-items:center; flex:0 0 24px; color:#fff; background:#35a563; border-radius:50%; font-size:12px; font-weight:900; }
.media-review { margin-top:6px; padding-top:18px; border-top:1px solid var(--line); }
.media-review h3 { margin:0 0 12px; color:var(--dark); font-size:17px; }
.media-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.media-grid article { overflow:hidden; background:#101820; border:1px solid #263d4c; border-radius:8px; }
.media-grid video { width:100%; max-height:360px; display:block; background:#000; }
.media-label { display:grid; padding:11px 13px; color:#fff; }
.media-label span { color:#b9dce0; font-size:12px; }
.media-approval { grid-template-columns:auto 1fr; align-items:start; padding:14px; color:#28523c; background:#edf8f1; border:1px solid #bfe2cc; border-radius:7px; }
.media-approval input { width:20px; height:20px; margin-top:2px; accent-color:#35a563; }
.media-approval span { display:grid; }
.actions { display:flex; justify-content:flex-end; align-items:center; gap:18px; }
.actions a:not(.button) { color:var(--dark); }
.case-grid { display:grid; grid-template-columns:2fr 1fr; gap:22px; margin-bottom:22px; }
.preserve { white-space:pre-wrap; }
.facts { border-top:5px solid var(--primary); }
.facts dl { display:grid; grid-template-columns:1fr 1.2fr; gap:12px; margin:0; }
.facts dt { color:var(--muted); }
.facts dd { margin:0; font-weight:650; }
.comment { margin:18px 0; padding:18px; background:#fbfdfd; border:1px solid var(--line); border-left:4px solid var(--primary); border-radius:6px; }
.comment header { display:flex; justify-content:space-between; gap:12px; }
.comment header span { color:var(--muted); font-size:13px; }
.comment p { margin-bottom:0; }
.step-footer { position:fixed; z-index:950; right:0; bottom:0; left:0; min-height:46px; display:flex; align-items:center; gap:20px; padding:6px max(20px,calc((100% - 1600px)/2)); color:#dce9ee; background:rgba(32,54,69,.97); border-top:1px solid #456577; box-shadow:0 -3px 12px rgba(20,38,48,.2); font-size:12px; backdrop-filter:blur(8px); }
.step-footer>span:nth-child(2) { color:#a9c0ca; }
.app-taskbar-actions { min-width:0; display:flex; align-items:center; gap:9px; margin-left:auto; }
.fullscreen-status { color:#a9c0ca; font-variant-numeric:tabular-nums; }
.taskbar-button { min-height:32px; gap:7px; padding:4px 12px; color:#eaf8f9; background:#36586a; border-color:#648797; font-size:12px; }
.taskbar-button:hover { color:#173e49; background:#8bdee2; border-color:#8bdee2; }
.taskbar-button[aria-pressed="true"] { color:#fff; background:#9a4b34; border-color:#c67c65; }
.taskbar-button[aria-pressed="true"]:hover { background:#b25a40; border-color:#d88a72; }
.taskbar-exit-button { color:#ffe9e4; background:#7b3c31; border-color:#a86658; }
.taskbar-exit-button:hover { color:#fff; background:#a94e3d; border-color:#cf7865; }
.taskbar-exit-button:disabled { color:#d3c5c1; background:#68514c; border-color:#7e6863; cursor:wait; }
.fullscreen-icon { min-width:14px; font-size:16px; line-height:1; text-align:center; }
@media (max-width:900px) { .navbar-brand{width:230px}.nav-link{min-width:auto;padding:0 14px;font-size:16px}.user-details{display:none}.login-shell{grid-template-columns:1fr;max-width:520px;margin:auto}.login-brand div{display:none}.summary-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:680px) { .registration-page{padding:20px 12px 44px}.registration-header{align-items:flex-start;flex-direction:column;gap:14px}.registration-header img{width:min(260px,100%)}.registration-card{padding:20px 16px}.registration-form{grid-template-columns:1fr}.registration-form .wide{grid-column:auto}.registration-spacer{display:none}.registration-actions{align-items:stretch;flex-direction:column-reverse}.registration-actions button{width:100%}.account-entry{align-items:stretch;flex-direction:column}.account-entry .button{width:100%} }
@media (max-width:680px) { .support-page{margin:12px auto;padding:22px 17px}.support-heading{align-items:center}.support-contact{grid-template-columns:42px 1fr}.support-contact>span{width:42px;height:42px}.support-contact .button{grid-column:1/-1;width:100%}.support-security{flex-direction:column}.support-page>.actions{align-items:stretch;flex-direction:column}.otp-code-form input{font-size:24px;letter-spacing:.24em} }
@media (max-width:680px) { .navPC{min-height:68px;padding:0 10px}.navbar-brand{min-width:0;width:160px;height:48px;margin-right:8px}.nav-link{padding:0 10px;font-size:14px}.nav-links .nav-link:not(.active),.user-avatar{display:none}.logout-button{padding:6px 9px}main{width:min(100% - 24px,1180px);margin-top:24px}.page-header{align-items:start;flex-direction:column}.grid-form,.case-grid,.field-grid{grid-template-columns:1fr}.wide{grid-column:auto}.card,.form-card{padding:20px}.facts dl{grid-template-columns:1fr 1fr}.comment header{flex-direction:column}.summary-grid{grid-template-columns:1fr 1fr;gap:10px}.summary-grid article{min-height:78px;padding:12px}.summary-icon{width:38px;height:38px;flex-basis:38px;font-size:18px}.step-strip li{padding:10px;justify-content:center}.step-strip li span{display:none}.step-footer{gap:8px;padding:6px 12px}.step-footer>span{display:none}.app-taskbar-actions{width:100%;justify-content:flex-end}.fullscreen-status{margin-right:auto}.taskbar-button{padding-inline:10px}.profile-review,.report-setting-review,.media-grid{grid-template-columns:1fr} }

.admin-table { width:100%; border-collapse:collapse; }
.admin-table th,.admin-table td { padding:12px 14px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.admin-table th { color:#4c626e; background:#f5f9fa; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.badge.information_requested { color:#8a5c10; background:#fff0c2; }
.badge.in_review { color:#285981; background:#dcecf9; }

.test-mode-banner { display:flex; align-items:center; justify-content:center; gap:16px; padding:9px 18px; color:#5b3b00; background:#ffd76a; border-bottom:1px solid #e0ac24; }
.test-mode-banner strong { padding:2px 8px; color:#fff; background:#a76400; border-radius:4px; letter-spacing:.08em; }

.inline-form { margin:0; }
.inline-form button { min-height:34px; padding:6px 10px; font-size:13px; }

.role-test-banner { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:10px max(20px,calc((100% - 1180px)/2)); color:#5b3b00; background:#ffd76a; border-bottom:1px solid #e0ac24; }
.role-test-banner>div:first-child { display:flex; align-items:center; gap:14px; }
.role-test-banner strong { padding:3px 8px; color:#fff; background:#a76400; border-radius:4px; letter-spacing:.06em; }
.role-test-actions { display:flex; gap:7px; }
.role-test-actions form { margin:0; }
.role-test-actions button { min-height:32px; padding:4px 12px; background:#fff5d5; border-color:#9b6a13; }
.role-test-actions button:disabled { color:#fff; background:#a76400; cursor:default; }
@media (max-width:680px) { .role-test-banner,.role-test-banner>div:first-child{align-items:flex-start;flex-direction:column}.role-test-actions{width:100%}.role-test-actions form{flex:1}.role-test-actions button{width:100%} }

/* Section and video annotations */
.draft-annotation { display:grid; gap:12px; margin-top:14px; padding:16px; background:#f7fbfc; border:1px solid #cfe4e7; border-radius:8px; }
.draft-annotation textarea { background:#fff; }
.mark-check { grid-template-columns:auto 1fr; align-items:center; gap:9px; font-weight:500; }
.mark-check input { width:19px; height:19px; margin:0; accent-color:#35a563; }
.media-review .media-grid { grid-template-columns:1fr; }
.annotation-panel { margin-top:16px; padding:16px; color:var(--ink); background:#f8fbfc; border:1px solid #cbdde1; border-radius:8px; }
.media-grid .annotation-panel { margin:0; border:0; border-top:1px solid #334b58; border-radius:0; }
.annotation-heading { display:flex; justify-content:space-between; gap:16px; padding-bottom:9px; border-bottom:1px solid var(--line); }
.annotation-heading strong { color:var(--dark); }
.annotation-heading span,.annotation-empty { color:var(--muted); font-size:13px; }
.annotation-thread { display:grid; gap:9px; margin-top:12px; }
.annotation-entry { padding:12px 14px; background:#fff; border:1px solid var(--line); border-left:4px solid var(--primary); border-radius:6px; }
.annotation-entry header { display:flex; justify-content:space-between; gap:12px; }
.annotation-entry header>div { display:flex; align-items:center; gap:8px; }
.annotation-entry header small { color:var(--muted); }
.annotation-entry p { margin:8px 0 0; white-space:normal; }
.annotation-meta { display:flex; align-items:center; gap:8px; margin-top:8px; }
.annotation-mark { padding:3px 8px; color:#805714; background:#fff0bd; border-radius:999px; font-size:12px; font-weight:700; }
.annotation-time-link { min-height:28px; padding:3px 9px; color:#fff; background:#446879; border-color:#446879; font-size:12px; }
.annotation-form { display:grid; gap:10px; margin-top:12px; padding-top:12px; border-top:1px dashed #b9cdd2; }
.annotation-form textarea { background:#fff; }
.annotation-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.annotation-tools button { min-height:34px; padding:5px 11px; font-size:13px; }
.annotation-tools .capture-video-time.marked { color:#fff; background:#a76400; border-color:#a76400; }
.captured-time { color:var(--muted); font-size:13px; }
.annotation-submit { display:grid; grid-template-columns:minmax(180px,1fr) auto; gap:10px; }
.case-question,.case-metadata { margin-bottom:22px; }
.case-question h3 { margin:15px 0 5px; color:var(--dark); font-size:16px; }
@media (max-width:680px) { .annotation-entry header,.annotation-tools{align-items:flex-start;flex-direction:column}.annotation-submit{grid-template-columns:1fr}.annotation-submit button{width:100%} }

.customer-test-banner { display:flex; align-items:center; justify-content:center; gap:14px; padding:9px 18px; color:#573500; background:#ffd66b; border-bottom:1px solid #dfa81f; }
.customer-test-banner strong { padding:3px 8px; color:#fff; background:#9b5b00; border-radius:4px; letter-spacing:.08em; }
.password-reset-form { display:grid; grid-template-columns:minmax(170px,1fr) auto; gap:7px; }
.password-reset-form input { min-width:170px; padding:7px 9px; }
.requester-contact-fields legend small { margin-left:auto; color:var(--muted); font-size:12px; font-weight:500; }
.requester-contact-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.requester-contact-form { display:grid; grid-template-columns:repeat(3,minmax(150px,1fr)) auto; gap:7px; min-width:650px; }
.requester-contact-form input { min-width:0; padding:7px 9px; }
.requester-contact-form button { min-height:38px; padding:6px 12px; }
@media (max-width:680px) { .customer-test-banner{align-items:flex-start;flex-direction:column}.password-reset-form,.requester-contact-grid,.requester-contact-form{grid-template-columns:1fr}.requester-contact-form{min-width:260px} }

/* Draft review: clinical content on the left, selectable videos on the right. */
.draft-review-form { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; }
.draft-review-form.has-video { grid-template-columns:minmax(0,1fr) clamp(320px,24vw,400px); gap:24px; }
.draft-review-content { display:grid; gap:22px; min-width:0; }
.draft-form-card { box-shadow:0 3px 12px rgba(45,76,97,.08); }
.draft-video-sidebar { position:sticky; top:102px; display:grid; gap:16px; min-width:0; }
.draft-video-sidebar > .card { margin:0; }
.draft-video-sidebar .media-review { margin:0; padding:0; border:0; }
.case-review-layout { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; }
.case-review-layout.has-video { grid-template-columns:minmax(0,1fr) clamp(320px,24vw,400px); gap:24px; }
.case-review-content { min-width:0; }
.case-video-sidebar { position:sticky; top:102px; min-width:0; }
.case-video-sidebar > .card { margin:0; }
.case-video-sidebar .media-review { margin:0; padding:0; border:0; }
.video-file-picker { display:grid; gap:7px; margin-bottom:14px; color:var(--dark); font-weight:700; }
.video-file-dropdown { position:relative; }
.video-file-trigger { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:8px; padding:10px 12px; color:var(--dark); background:#fff; border:1px solid #b9cbd4; text-align:left; }
.video-file-current-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.video-dropdown-arrow { font-size:18px; line-height:1; }
.video-file-menu { position:absolute; z-index:30; top:calc(100% + 5px); left:0; right:0; max-height:280px; overflow-y:auto; padding:6px; background:#fff; border:1px solid #b9cbd4; border-radius:7px; box-shadow:0 12px 28px rgba(29,52,66,.2); }
.video-file-menu[hidden] { display:none; }
.video-file-option { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:48px; padding:8px 10px; color:var(--dark); background:#fff; border:0; border-radius:5px; text-align:left; }
.video-file-option:hover,.video-file-option.selected { background:var(--primary-wash); }
.video-option-copy { display:grid; min-width:0; }
.video-option-copy small { color:var(--muted); font-weight:400; }
.video-comment-badge { display:inline-flex; align-items:center; flex:0 0 auto; padding:3px 7px; color:#fff; background:#d06b16; border-radius:999px; font-size:11px; font-weight:800; white-space:nowrap; }
.video-comment-badge[hidden] { display:none; }
.selectable-media .media-grid > article[hidden] { display:none; }
.video-frame-controls { display:grid; gap:8px; padding:12px; background:#0b1115; border-top:1px solid #304751; }
.video-timeline-readout { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; color:#b9dce0; font-size:12px; font-variant-numeric:tabular-nums; }
.video-timeline-readout [data-video-frame] { color:#fff; font-weight:800; }
.video-timeline-readout [data-video-duration] { text-align:right; }
.video-timeline { height:22px; padding:0; background:transparent; border:0; accent-color:var(--primary); cursor:pointer; }
.video-timeline:focus { outline:2px solid var(--primary); outline-offset:3px; }
.video-playback-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:0; }
.video-playback-tools button { min-height:34px; padding:5px 11px; font-size:13px; }
.video-keyboard-hint { margin-left:auto; color:#9fbbc0; font-size:11px; white-space:nowrap; }
.video-keyboard-hint kbd { min-width:20px; display:inline-block; margin:0 1px; padding:1px 4px; color:#eaf5f6; background:#20343d; border:1px solid #405963; border-radius:3px; text-align:center; font:inherit; }
.selectable-media.is-keyboard-active .video-file-trigger { outline:2px solid var(--primary); outline-offset:2px; }
.draft-video-sidebar .draft-annotation { margin:0; border:0; border-radius:0; }
.draft-video-sidebar video,
.case-video-sidebar video {
  width:100%;
  max-width:480px;
  max-height:none;
  aspect-ratio:11 / 16;
  object-fit:contain;
  margin:0 auto;
  background:#000;
}

.draft-review-content > .actions {
  gap:18px;
  margin-top:4px;
  padding:20px 0 0;
  border-top:1px solid var(--line);
}
.contact-preference-group { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.contact-choice { grid-template-columns:auto minmax(0,1fr); align-items:start; gap:10px; padding:13px 14px; color:var(--dark); background:#f5fbfc; border:1px solid #c9e2e5; border-radius:8px; cursor:pointer; }
.contact-choice input { width:19px; height:19px; margin:2px 0 0; accent-color:var(--primary-hover); }
.contact-choice span { display:grid; min-width:0; }
.contact-choice small { overflow-wrap:anywhere; }
.contact-choice.unavailable { opacity:.55; cursor:not-allowed; }
.contact-help { margin:0; color:var(--muted); font-size:13px; }
.case-type-fieldset { border-top:5px solid #536fc1; }
.case-type-fieldset legend span { color:#536fc1; }
.case-type-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.case-type-choice { grid-template-columns:auto minmax(0,1fr); align-items:start; gap:12px; padding:16px; color:#344f60; background:#f7f9ff; border:1px solid #c8d1ef; border-radius:9px; cursor:pointer; }
.case-type-choice:hover { background:#eef2ff; border-color:#8395d5; }
.case-type-choice input { width:20px; height:20px; margin:2px 0 0; accent-color:#536fc1; }
.case-type-choice span { display:grid; gap:3px; }
.case-type-choice strong { color:#344f86; font-size:17px; }
.consult-question { gap:7px; margin-top:16px; padding:16px; color:#344f86; background:#f7f9ff; border:1px solid #c8d1ef; border-radius:9px; }
.consult-question[hidden] { display:none; }
.consult-question small { color:#65728f; font-weight:500; }
.consult-question textarea { min-height:130px; background:#fff; }
.consult-question-card { border-left:5px solid #536fc1; background:linear-gradient(135deg,#f4f6ff,#fff 68%); }
.consult-question-card h2 { margin:2px 0 10px; color:#344f86; }
.consult-question-card>p:last-child { margin:0; color:#344f60; }
.requester-contact-card { display:grid; gap:16px; margin:0; border-left:5px solid #287d88; background:linear-gradient(135deg,#f0fbfc,#fff 68%); }
.requester-contact-heading { display:flex; align-items:center; gap:13px; }
.requester-contact-heading>span { width:42px; height:42px; display:grid; place-items:center; flex:0 0 42px; color:#fff; background:#287d88; border-radius:50%; font-size:22px; }
.requester-contact-heading h2 { margin:1px 0 0; color:#215d65; font-size:20px; }
.requester-contact-heading .eyebrow { color:#438088; }
.requester-contact-details { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.requester-contact-details>div { display:grid; gap:3px; padding:12px 14px; background:var(--primary-wash); border:1px solid #c7e9eb; border-radius:7px; }
.requester-contact-details small { color:var(--muted); }
.requester-contact-details strong { overflow-wrap:anywhere; }
.requester-contact-card.missing { border-left-color:#d08b2e; background:linear-gradient(135deg,#fff8e9,#fff 68%); }
.requester-contact-card.missing .requester-contact-heading>span { background:#d08b2e; }
.requester-contact-card.missing .requester-contact-heading h2 { color:#875818; }
.requester-contact-missing { margin:0; padding:12px 14px; color:#704d1b; background:#fff4d7; border:1px solid #eed59b; border-radius:7px; }
@media (max-width:1440px) {
  .draft-review-form.has-video,.case-review-layout.has-video { grid-template-columns:minmax(0,1fr); }
  .draft-video-sidebar,.case-video-sidebar { position:static; }
}
@media (max-width:680px) {
  .contact-preference-group,.requester-contact-details,.case-type-options { grid-template-columns:1fr; }
}

/* Certification, learning and MCQ */
.badge.awaiting_admin_approval { color:#76520d; background:#fff0bd; }
.requester-record-card { border-left:5px solid var(--primary); }
.requester-record-card h2 { margin:3px 0 0; }
.requester-record-card>small,.admin-table td small { display:block; margin-top:4px; color:var(--muted); }
.record-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:18px; }
.record-metrics>div { display:grid; gap:3px; padding:14px; background:var(--primary-wash); border:1px solid #c7e9eb; border-radius:8px; }
.record-metrics strong { color:var(--dark); font-size:21px; }
.record-metrics span { color:var(--muted); font-size:12px; text-transform:uppercase; }
.settings-form { display:grid; grid-template-columns:repeat(2,minmax(180px,1fr)) auto; align-items:end; gap:16px; }
.admin-decision-form { display:grid; grid-template-columns:minmax(130px,.7fr) minmax(180px,1fr) auto; gap:7px; min-width:560px; }
.admin-decision-form input,.admin-decision-form select { min-width:0; padding:7px 9px; }
.admin-decision-form button { min-height:38px; padding:6px 12px; }
.certification-admin-page { padding-bottom:20px; }
.certification-admin-header { margin-bottom:28px; }
.certification-admin-header .actions { flex-wrap:wrap; }
.certification-admin-header .button { min-height:46px; gap:8px; padding:10px 18px; border-radius:10px; transition:transform .16s ease,box-shadow .16s ease,background .16s ease; }
.certification-admin-header .button:hover { transform:translateY(-1px); }
.certification-admin-header .cert-designer-button { color:#fff; background:linear-gradient(135deg,#326f99,#2b526e); border-color:#2b526e; box-shadow:0 7px 16px rgba(43,82,110,.22); }
.certification-admin-header .cert-designer-button:hover { color:#fff; background:linear-gradient(135deg,#3b84b4,#32627f); box-shadow:0 10px 22px rgba(43,82,110,.28); }
.admin-users-button { color:#344f60; background:#fff; border-color:#9fb2bd; box-shadow:0 4px 12px rgba(45,76,97,.1); }
.admin-users-button:hover { color:#fff; background:#526c7d; border-color:#526c7d; }
.certification-admin-sections { display:grid; gap:28px; }
.cert-admin-section { --cert-section-color:#4f6fb1; --cert-section-soft:#f2f5ff; position:relative; margin:0; padding:28px 30px 30px; overflow:hidden; border-color:color-mix(in srgb,var(--cert-section-color) 28%,var(--line)); border-top:6px solid var(--cert-section-color); background:linear-gradient(145deg,var(--cert-section-soft),#fff 42%); box-shadow:0 8px 24px rgba(38,65,82,.09); }
.cert-admin-section::after { position:absolute; top:-90px; right:-75px; width:220px; height:220px; content:""; background:var(--cert-section-color); border-radius:50%; opacity:.055; pointer-events:none; }
.cert-settings-section { --cert-section-color:#536fc1; --cert-section-soft:#f0f3ff; }
.cert-approval-section { --cert-section-color:#d5892f; --cert-section-soft:#fff7e9; }
.cert-overview-section { --cert-section-color:#2d9a6a; --cert-section-soft:#edf9f3; }
.cert-learning-section { --cert-section-color:#327f9e; --cert-section-soft:#edf8fc; }
.cert-section-title { position:relative; z-index:1; align-items:center; padding-bottom:16px; border-bottom-color:color-mix(in srgb,var(--cert-section-color) 70%,#fff); }
.cert-title-copy { display:flex; align-items:center; gap:14px; }
.cert-section-number { width:42px; height:42px; display:grid; place-items:center; flex:0 0 42px; color:#fff; background:var(--cert-section-color); border-radius:12px; box-shadow:0 7px 15px color-mix(in srgb,var(--cert-section-color) 24%,transparent); font-size:12px; font-weight:900; letter-spacing:.05em; }
.cert-title-copy h2 { color:color-mix(in srgb,var(--cert-section-color) 74%,#203745); font-size:22px; }
.cert-title-copy p { color:#6b7c85; }
.cert-section-count { position:relative; z-index:1; padding:6px 11px; color:color-mix(in srgb,var(--cert-section-color) 78%,#253d4b); background:#fff; border:1px solid color-mix(in srgb,var(--cert-section-color) 28%,#fff); border-radius:999px; box-shadow:0 3px 9px rgba(45,76,97,.07); font-size:12px; font-weight:850; }
.cert-admin-section .settings-form { position:relative; z-index:1; margin-top:22px; }
.cert-admin-section .admin-table { position:relative; z-index:1; margin-top:8px; overflow:hidden; background:rgba(255,255,255,.78); border:1px solid color-mix(in srgb,var(--cert-section-color) 15%,var(--line)); border-radius:9px; }
.cert-admin-section .admin-table th { color:color-mix(in srgb,var(--cert-section-color) 76%,#203745); background:color-mix(in srgb,var(--cert-section-color) 8%,#fff); border-bottom:2px solid color-mix(in srgb,var(--cert-section-color) 28%,#fff); }
.cert-admin-section .admin-table tbody tr:hover td { background:color-mix(in srgb,var(--cert-section-color) 5%,#fff); }
.cert-settings-save,.cert-approve-button { gap:8px; color:#fff; border:0; border-radius:9px; transition:transform .16s ease,box-shadow .16s ease; }
.cert-settings-save { min-height:48px; padding-inline:22px; background:linear-gradient(135deg,#647fd0,#465da8); box-shadow:0 7px 16px rgba(70,93,168,.24); }
.cert-settings-save:hover { color:#fff; background:linear-gradient(135deg,#718bda,#526bb8); box-shadow:0 10px 20px rgba(70,93,168,.3); transform:translateY(-1px); }
.cert-approve-button { background:linear-gradient(135deg,#35a873,#278259); box-shadow:0 5px 12px rgba(39,130,89,.22); white-space:nowrap; }
.cert-approve-button:hover { color:#fff; background:linear-gradient(135deg,#40b980,#2d9163); box-shadow:0 8px 16px rgba(39,130,89,.28); transform:translateY(-1px); }
.cert-table-link { min-height:28px; display:inline-flex; align-items:center; padding:4px 9px; border:1px solid transparent; border-radius:7px; font-weight:800; text-decoration:none; }
.cert-table-link.verify { color:#17643c; background:#e2f6e9; border-color:#bce5ca; }
.cert-table-link.print { color:#285981; background:#e6f1fb; border-color:#c4dcef; }
.cert-table-link.pdf { color:#81414a; background:#fbeaec; border-color:#ebc8ce; }
.cert-table-link:hover { filter:brightness(.96); transform:translateY(-1px); }
.renewal-alert { display:inline-block; padding:5px 9px; color:#7c4e00; background:#ffe1a1; border-radius:999px; font-weight:800; }
.learning-status { width:max-content; display:inline-flex; align-items:center; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:850; white-space:nowrap; }
.learning-status.passed { color:#17643c; background:#dff4e7; }
.learning-status.failed { color:#8b3440; background:#fae4e5; }
.learning-status.available { color:#285981; background:#e6f1fb; }
.learning-status.locked { color:#66747b; background:#e8edef; }
.learning-status.in_progress { color:#285981; background:#e6f1fb; }
.learning-order-mini { width:24px; height:24px; display:inline-grid; place-items:center; float:left; margin-right:8px; color:#fff; background:#327f9e; border-radius:7px; font-size:11px; font-weight:900; }
.learning-attempt-history { min-width:220px; }
.learning-attempt-history summary { color:#28677d; cursor:pointer; font-weight:800; white-space:nowrap; }
.learning-attempt-history ol { display:grid; gap:7px; margin:9px 0 0; padding:0; list-style:none; }
.learning-attempt-history li { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:2px 8px; padding:8px; background:#f5fafc; border:1px solid #d7e7ed; border-radius:7px; }
.learning-attempt-history li small { grid-column:2; margin:0; }
.learning-progress-table td { vertical-align:top; }
.learning-dashboard-page { padding-bottom:18px; }
.learning-dashboard-header .actions { flex-wrap:wrap; }
.learning-dashboard-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.learning-dashboard-summary article { min-width:0; display:flex; align-items:center; gap:13px; padding:18px; background:#fff; border:1px solid var(--line); border-radius:11px; box-shadow:0 4px 14px rgba(45,76,97,.08); }
.learning-dashboard-summary article>div { min-width:0; display:grid; }
.learning-dashboard-summary small { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.learning-dashboard-summary strong { color:var(--dark); font-size:27px; line-height:1.15; }
.dashboard-metric-icon { width:43px; height:43px; display:grid; place-items:center; flex:0 0 43px; color:#fff; background:#526d7d; border-radius:11px; font-size:19px; font-weight:900; }
.dashboard-metric-icon.passed { background:#2f9a66; }
.dashboard-metric-icon.failed { background:#c35b65; }
.dashboard-metric-icon.progress { background:#397fc4; }
.dashboard-metric-icon.attempts { background:#8b6bb2; }
.learning-dashboard-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:22px; margin-bottom:20px; padding:20px 22px; }
.learning-dashboard-filter { display:grid; grid-template-columns:minmax(220px,1fr) minmax(160px,220px) auto auto; align-items:end; gap:10px; }
.learning-dashboard-filter button,.learning-dashboard-filter .button { min-height:46px; white-space:nowrap; }
.learning-dashboard-export { display:flex; align-items:center; justify-content:flex-end; gap:9px; padding-left:20px; border-left:1px solid var(--line); }
.learning-dashboard-export>div { display:grid; margin-right:4px; text-align:right; }
.learning-dashboard-export>div strong { color:var(--dark); font-size:13px; }
.learning-dashboard-export>div small { color:var(--muted); font-size:11px; white-space:nowrap; }
.learning-dashboard-export .button { min-height:42px; gap:7px; padding:7px 13px; }
.learning-dashboard-export .export-csv { color:#17643c; background:#e2f6e9; border-color:#abd8bc; }
.learning-dashboard-export .export-csv:hover { color:#fff; background:#278259; border-color:#278259; }
.learning-dashboard-export .export-excel { color:#fff; background:#217346; border-color:#185b36; }
.learning-dashboard-export .export-excel:hover { background:#185b36; }
.learning-dashboard-table-card { padding:0; overflow:hidden; }
.learning-dashboard-table-card>.section-title { align-items:center; padding:20px 24px 16px; }
.learning-dashboard-table-card>.section-title>span { color:var(--muted); font-size:12px; font-weight:800; }
.learning-dashboard-table { min-width:1320px; }
.learning-dashboard-table td { vertical-align:middle; }
.dashboard-learning-time { min-width:150px; }
.dashboard-learning-time strong { display:block; color:#247354; font-size:17px; }
.dashboard-learning-time small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.dashboard-learning-time.idle strong { color:#8a651d; }
.learner-online { display:block; margin-top:6px; color:#23875a; font-size:10px; font-weight:850; }
.dashboard-learner-cell,.dashboard-latest-cell { display:grid; gap:2px; }
.dashboard-learner-cell strong { color:var(--dark); }
.dashboard-learner-cell small,.dashboard-latest-cell small { color:var(--muted); }
.dashboard-progress-cell { min-width:180px; }
.dashboard-progress-cell>div { display:flex; justify-content:space-between; gap:12px; margin-bottom:6px; color:#42616f; font-size:12px; }
.dashboard-progress-cell progress { width:100%; height:10px; display:block; overflow:hidden; appearance:none; border:0; border-radius:999px; background:#e4ebee; }
.dashboard-progress-cell progress::-webkit-progress-bar { background:#e4ebee; border-radius:999px; }
.dashboard-progress-cell progress::-webkit-progress-value { background:linear-gradient(90deg,#399ca3,#2f9a66); border-radius:999px; }
.dashboard-progress-cell progress::-moz-progress-bar { background:linear-gradient(90deg,#399ca3,#2f9a66); border-radius:999px; }
.dashboard-attempt-count { text-align:center!important; }
.dashboard-attempt-count strong { display:block; color:#315a70; font-size:24px; line-height:1; }
.dashboard-attempt-count small { color:var(--muted); }
.dashboard-latest-cell { min-width:220px; grid-template-columns:auto 1fr; align-items:center; gap:3px 8px; }
.dashboard-latest-cell small { grid-column:2; }
.dashboard-lesson-details { min-width:160px; }
.dashboard-lesson-details summary { color:#28677d; cursor:pointer; font-size:12px; font-weight:850; }
.dashboard-lesson-details ol { width:360px; max-height:320px; display:grid; gap:6px; margin:9px 0 0; padding:8px; overflow-y:auto; background:#f5fafc; border:1px solid #d7e7ed; border-radius:8px; list-style:none; }
.dashboard-lesson-details li { display:grid; grid-template-columns:25px minmax(0,1fr) auto; align-items:center; gap:8px; padding:7px; background:#fff; border:1px solid #e0ebef; border-radius:7px; }
.dashboard-lesson-details li>span { width:25px; height:25px; display:grid; place-items:center; color:#fff; background:#327f9e; border-radius:7px; font-size:10px; font-weight:900; }
.dashboard-lesson-details li>div { min-width:0; display:grid; }
.dashboard-lesson-details li strong { overflow:hidden; color:#344f60; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-lesson-details li small { color:var(--muted); font-size:10px; }
.dashboard-lesson-details .learning-status { font-size:9px; }
.dashboard-empty { padding:30px!important; color:var(--muted); text-align:center!important; }
@media (max-width:1200px) {
  .learning-dashboard-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .learning-dashboard-toolbar { grid-template-columns:1fr; }
  .learning-dashboard-export { justify-content:flex-start; padding:16px 0 0; border-top:1px solid var(--line); border-left:0; }
  .learning-dashboard-export>div { margin-right:auto; text-align:left; }
}
@media (max-width:760px) {
  .learning-dashboard-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .learning-dashboard-filter { grid-template-columns:1fr; }
  .learning-dashboard-filter button,.learning-dashboard-filter .button { width:100%; }
  .learning-dashboard-export { align-items:stretch; flex-wrap:wrap; }
  .learning-dashboard-export>div { width:100%; }
  .learning-dashboard-export .button { flex:1; }
  .learning-dashboard-table-card>.section-title { align-items:flex-start; flex-direction:column; }
}
.certificate-public { max-width:680px; margin:7vh auto; text-align:center; }
.certificate-public dl { display:grid; grid-template-columns:1fr 1fr; gap:10px; max-width:480px; margin:24px auto; text-align:left; }
.certificate-public dt { color:var(--muted); }
.certificate-public dd { margin:0; font-weight:800; }
.certificate-verify-status { display:inline-flex; align-items:center; gap:9px; padding:8px 14px; border-radius:999px; }
.certificate-verify-status.valid { color:#17643c; background:#dff4e7; }
.certificate-verify-status.invalid { color:#8b3440; background:#fae4e5; }
.certificate-verify-status>span { width:25px; height:25px; display:grid; place-items:center; color:#fff; background:currentColor; border-radius:50%; }
.certificate-qr { width:220px; height:220px; margin:12px auto; }
.certificate-table-actions,.certificate-user-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.certificate-table-actions { margin-top:6px; font-size:12px; }
.certificate-user-actions .button { min-height:38px; padding:7px 12px; font-size:13px; }
.certificate-designer-layout { display:grid; grid-template-columns:minmax(360px,460px) minmax(0,1fr); align-items:start; gap:20px; }
.certificate-designer-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.certificate-designer-form .wide { grid-column:1/-1; }
.certificate-designer-form input[type="color"] { height:48px; padding:5px; }
.designer-check { grid-template-columns:auto 1fr; align-items:center; gap:9px; }
.designer-check input { width:18px; height:18px; margin:0; }
.certificate-designer-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:15px; border-top:1px solid var(--line); }
.certificate-designer-actions span { color:var(--muted); font-size:12px; }
.certificate-designer-preview { position:sticky; top:100px; min-width:0; padding:18px; background:#e8edef; border:1px solid #cad5da; border-radius:12px; box-shadow:0 8px 24px rgba(45,76,97,.12); }
.certificate-preview-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:12px; }
.certificate-preview-heading h2 { margin:2px 0 0; }
.certificate-preview-heading>span { color:var(--muted); font-size:12px; }
.certificate-page { min-height:100vh; margin:0; padding:24px; color:var(--ink); background:#e8edef; font:16px/1.5 "Noto Sans Thai Looped",Tahoma,Arial,sans-serif; }
.certificate-page main { width:min(1180px,100%); margin:0 auto; }
.certificate-public-status { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; padding:14px 18px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 3px 12px rgba(45,76,97,.08); }
.certificate-public-status h1 { margin:2px 0 0; font-size:24px; }
.certificate-public-privacy { margin:14px 0 0; color:var(--muted); font-size:12px; text-align:center; }
.certificate-sheet { --cert-primary:#2d4c61; --cert-accent:#64c9cf; position:relative; width:100%; aspect-ratio:297/210; overflow:hidden; color:#405766; background:#fff; border:10px solid var(--cert-primary); box-shadow:0 12px 32px rgba(25,48,62,.18); isolation:isolate; }
.certificate-sheet::before { position:absolute; z-index:-1; inset:11px; content:""; border:2px solid var(--cert-accent); pointer-events:none; }
.certificate-sheet-decoration::before,.certificate-sheet-decoration::after { position:absolute; z-index:-2; width:28%; aspect-ratio:1; content:""; background:var(--cert-accent); border-radius:50%; opacity:.08; }
.certificate-sheet-decoration::before { top:-21%; right:-10%; }
.certificate-sheet-decoration::after { bottom:-22%; left:-9%; }
.certificate-logo-row { position:absolute; top:5%; left:5%; right:5%; height:9%; display:flex; align-items:center; }
.certificate-sheet.logo-center .certificate-logo-row { justify-content:center; }
.certificate-sheet.logo-right .certificate-logo-row { justify-content:flex-end; }
.certificate-sheet-logo { width:min(25%,230px); max-height:100%; object-fit:contain; }
.certificate-copy { position:absolute; top:20%; left:9%; right:9%; text-align:center; }
.certificate-sheet-title { margin:0; color:var(--cert-primary); font-size:clamp(18px,2.2vw,34px); font-weight:850; letter-spacing:.08em; line-height:1.2; }
.certificate-sheet-divider { width:22%; height:4px; display:block; margin:2.2% auto; background:var(--cert-accent); border-radius:999px; }
.certificate-sheet-subtitle { margin:0; color:#667783; font-size:clamp(9px,1vw,15px); }
.certificate-recipient { margin:1.6% 0 .8%; color:var(--cert-primary); font-size:clamp(22px,3vw,43px); font-weight:750; }
.certificate-completion { max-width:72%; margin:0 auto; color:#405766; font-size:clamp(9px,1.08vw,16px); line-height:1.45; }
.certificate-signatory { position:absolute; bottom:17%; width:24%; display:flex; align-items:center; flex-direction:column; text-align:center; transform:translateX(-50%); }
.certificate-sheet.signature-left .certificate-signatory { left:30%; }
.certificate-sheet.signature-center .certificate-signatory { left:50%; }
.certificate-sheet.signature-right .certificate-signatory { left:70%; }
.certificate-sheet-signature { width:58%; height:52px; object-fit:contain; }
.certificate-signature-placeholder { height:52px; display:grid; place-items:end center; color:#9aa7ad; font-size:10px; font-style:italic; }
.certificate-signatory>span { width:80%; margin-top:3px; border-top:1px solid #8a9aa3; }
.certificate-signatory strong { margin-top:4px; color:var(--cert-primary); font-size:clamp(8px,.9vw,13px); }
.certificate-signatory small { color:#667783; font-size:clamp(7px,.72vw,10px); }
.certificate-qr-area { position:absolute; bottom:14%; display:grid; justify-items:center; gap:3px; width:12%; }
.certificate-sheet.qr-left .certificate-qr-area { left:4.5%; }
.certificate-sheet.qr-right .certificate-qr-area { right:4.5%; }
.certificate-sheet-qr { width:100%; aspect-ratio:1; object-fit:contain; }
.certificate-qr-placeholder { display:grid; place-items:center; color:var(--cert-primary); background:repeating-linear-gradient(45deg,#fff 0 5px,var(--cert-primary) 5px 9px); border:5px solid #fff; outline:1px solid var(--cert-primary); font-weight:900; }
.certificate-qr-area small { color:#667783; font-size:clamp(5px,.58vw,8px); white-space:nowrap; }
.certificate-document-meta { position:absolute; right:5%; bottom:5.2%; left:5%; display:grid; grid-template-columns:1fr 1fr; gap:1px 14px; font-size:clamp(5px,.58vw,8px); }
.certificate-document-meta strong { color:var(--cert-primary); }
.certificate-document-meta span { text-align:right; }
.certificate-document-meta code,.certificate-document-meta b { grid-column:1/-1; overflow:hidden; color:#7b8a92; font:inherit; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.certificate-document-meta b { color:var(--cert-accent); font-weight:850; letter-spacing:.05em; }
.certificate-sheet>footer { position:absolute; right:5%; bottom:1.5%; left:5%; color:#667783; font-size:clamp(5px,.58vw,8px); text-align:center; }
.certificate-print-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; margin-bottom:14px; }
@media (max-width:1050px) { .certificate-designer-layout{grid-template-columns:1fr}.certificate-designer-preview{position:static}.certificate-sheet-signature,.certificate-signature-placeholder{height:40px} }
@media (max-width:680px) { .certificate-designer-form{grid-template-columns:1fr}.certificate-designer-form .wide{grid-column:auto}.certificate-designer-actions,.certificate-public-status{align-items:flex-start;flex-direction:column}.certificate-page{padding:10px}.certificate-user-actions{width:100%}.certificate-user-actions .button{flex:1}.certificate-sheet{border-width:5px}.certificate-sheet::before{inset:5px}.certificate-document-meta code{display:none} }
@media print {
  @page { size:A4 landscape; margin:0; }
  .certificate-page { padding:0; background:#fff; }
  .certificate-page main { width:297mm; max-width:none; margin:0; }
  .certificate-print-actions,.certificate-public-status,.certificate-public-privacy { display:none!important; }
  .certificate-sheet { width:297mm; height:210mm; aspect-ratio:auto; border-width:3mm; box-shadow:none; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
.learning-certificate { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:18px; padding:15px 18px; color:#244c3b; background:#e8f7ed; border:1px solid #b9e3c8; border-radius:9px; }
.learning-certificate>div { display:grid; }
.learning-certificate small,.learning-certificate span { color:#5d7567; }
.learning-app-page { height:100dvh; min-height:0; overflow:hidden; }
.learning-app-page main { width:calc(100% - 24px); min-height:0; flex:1 1 0; display:flex; margin:12px auto 10px; overflow:hidden; }
.learning-page { min-width:0; min-height:0; flex:1; display:flex; flex-direction:column; gap:10px; overflow:hidden; }
.learning-page>.learning-certificate,.learning-page>.notice { margin-bottom:0; }
.learning-layout { min-width:0; min-height:0; flex:1 1 0; display:grid; grid-template-columns:220px minmax(0,1fr); align-items:stretch; gap:12px; overflow:hidden; }
.lesson-list { min-height:0; display:flex; flex-direction:column; gap:8px; padding:14px; overflow-y:auto; }
.lesson-list h2 { margin-bottom:4px; }
.lesson-list-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.lesson-list-heading>span { padding:3px 8px; color:#28704a; background:#e3f5e9; border-radius:999px; font-size:11px; font-weight:850; }
.learning-app-page.learning-lessons-hidden .learning-layout { grid-template-columns:minmax(0,1fr); }
.learning-app-page.learning-lessons-hidden .lesson-list { display:none; }
.learning-app-page.learning-topbar-hidden .customer-test-banner,.learning-app-page.learning-topbar-hidden .navPC,.learning-app-page.learning-topbar-hidden .role-test-banner { display:none; }
.learning-workspace-button { transition:background-color .15s ease,border-color .15s ease,color .15s ease; }
.lesson-link { display:grid; gap:5px; padding:10px 12px; color:var(--dark); border:1px solid var(--line); border-radius:7px; text-decoration:none; }
.lesson-link small { color:var(--muted); }
.lesson-link:hover,.lesson-link.active { background:var(--primary-wash); border-color:var(--primary); }
.lesson-link.completed { border-color:#b8dec5; }
.lesson-link.locked { color:#7a878e; background:#f2f4f5; border-style:dashed; cursor:not-allowed; opacity:.82; }
.lesson-link.locked:hover { background:#f2f4f5; border-color:var(--line); }
.lesson-link-heading { min-width:0; display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:7px; }
.lesson-link-heading>span:first-child { width:24px; height:24px; display:grid; place-items:center; color:#fff; background:#315a70; border-radius:7px; font-size:11px; font-weight:900; }
.lesson-link.locked .lesson-link-heading>span:first-child { color:#687880; background:#dfe5e8; }
.lesson-progress-status { width:max-content; display:inline-flex; align-items:center; gap:4px; padding:2px 7px; border-radius:999px; font-size:10px; font-weight:850; }
.lesson-progress-status.passed { color:#17643c; background:#dff4e7; }
.lesson-progress-status.available { color:#285981; background:#e6f1fb; }
.lesson-progress-status.failed { color:#8b4f17; background:#fff0cf; }
.lesson-progress-status.locked { color:#66747b; background:#e0e6e9; }
.learning-split { min-width:0; min-height:0; display:grid; grid-template-columns:minmax(0,1.7fr) minmax(380px,.8fr); align-items:stretch; gap:0; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 4px 14px rgba(45,76,97,.08); }
.learning-split.assessment-only { grid-template-columns:minmax(0,1fr); }
.lesson-panel,.quiz-panel { min-width:0; min-height:0; height:100%; margin:0; padding:18px; overflow:hidden; }
.learning-split:not(.assessment-only)>.lesson-panel,.learning-split:not(.assessment-only)>.quiz-panel { border:0; border-radius:0; box-shadow:none; }
.learning-split:not(.assessment-only)>.quiz-panel { border-left:1px solid var(--line); }
.lesson-panel { display:flex; flex-direction:column; }
.learning-app-page .lesson-panel { padding:10px; }
.lesson-panel h2 { margin:2px 0 6px; }
.lesson-description { margin:0 0 8px; color:var(--muted); }
.lesson-description p { margin:0; color:inherit; }
.lesson-video,.lesson-pdf { width:100%; min-height:0; flex:1 1 auto; margin-top:0; background:#111; border:1px solid var(--line); border-radius:8px; object-fit:contain; }
.lesson-document { min-height:260px; display:flex; align-items:center; justify-content:center; gap:22px; flex:1 1 auto; margin-top:12px; padding:28px; background:linear-gradient(145deg,#fff4ed,#fff); border:1px solid #edc9b4; border-radius:10px; }
.lesson-document-icon { width:86px; height:86px; display:grid; place-items:center; flex:0 0 86px; color:#fff; background:#c94f24; border-radius:18px; box-shadow:0 10px 22px rgba(156,64,31,.2); font-size:18px; font-weight:900; letter-spacing:.04em; }
.lesson-document>div { max-width:480px; display:grid; justify-items:start; gap:8px; }
.lesson-document strong { color:var(--dark); font-size:20px; overflow-wrap:anywhere; }
.lesson-document p { margin:0; color:var(--muted); line-height:1.55; }
.lesson-document .button { margin-top:5px; color:#fff; background:#315a70; border-color:#294c60; }
.lesson-powerpoint-viewer { min-width:0; min-height:300px; display:flex; flex:1 1 auto; flex-direction:column; gap:10px; margin-top:0; padding:10px; background:#f5f8f9; border:1px solid #d3dfe3; border-radius:10px; }
.lesson-powerpoint-toolbar { min-width:0; min-height:64px; display:flex; align-items:center; gap:14px; padding:9px 11px; background:#fff; border:1px solid #d8e2e6; border-radius:8px; }
.lesson-powerpoint-toolbar .lesson-document-icon { width:46px; height:46px; flex-basis:46px; border-radius:9px; box-shadow:none; font-size:11px; }
.lesson-powerpoint-toolbar>div { min-width:0; display:grid; flex:1 1 auto; gap:2px; }
.lesson-powerpoint-toolbar strong { overflow:hidden; color:var(--dark); text-overflow:ellipsis; white-space:nowrap; }
.lesson-powerpoint-toolbar small { color:var(--muted); line-height:1.35; }
.lesson-powerpoint-title h2 { margin:2px 0 4px; font-size:20px; line-height:1.2; }
.lesson-powerpoint-toolbar>.lesson-powerpoint-downloads { display:flex; flex:0 0 auto; gap:6px; }
.lesson-powerpoint-downloads .button { min-height:34px; gap:5px; padding:5px 9px; font-size:11px; }
.lesson-powerpoint-downloads b { font-size:9px; letter-spacing:.08em; }
.lesson-language-fallback { display:flex; align-items:center; gap:8px; margin-bottom:8px; padding:9px 11px; color:#765414; background:#fff5d7; border:1px solid #ead38e; border-radius:8px; font-size:12px; }
.lesson-language-fallback>span:first-child { width:20px; height:20px; display:grid; place-items:center; flex:0 0 20px; color:#fff; background:#b9892c; border-radius:50%; font-weight:900; }
.lesson-powerpoint-toolbar .button { flex:0 0 auto; color:#fff; background:#315a70; border-color:#294c60; }
.lesson-powerpoint-frame { width:100%; min-height:0; flex:1 1 auto; background:#fff; border:1px solid #cbd8dd; border-radius:8px; }
.lesson-slide-player { min-width:0; min-height:260px; display:flex; flex:1 1 auto; flex-direction:column; overflow:hidden; background:#11191d; border:1px solid #22343c; border-radius:9px; box-shadow:0 8px 22px rgba(24,43,51,.14); }
.lesson-slide-stage { position:relative; min-width:0; min-height:210px; display:grid; flex:1 1 auto; place-items:center; overflow:hidden; outline:none; background:#182126; }
.lesson-slide-stage:focus-visible { box-shadow:inset 0 0 0 3px #64c9cf; }
.lesson-slide-canvas { width:100%; height:100%; min-height:0; display:block; user-select:none; }
.lesson-slide-canvas image { transition:opacity .12s ease; }
.lesson-slide-canvas image.is-loading { opacity:.42; }
.lesson-slide-arrow { position:absolute; top:50%; z-index:2; width:46px; height:58px; display:grid; place-items:center; padding:0; translate:0 -50%; color:#fff; background:rgba(16,30,36,.72); border:1px solid rgba(255,255,255,.34); border-radius:9px; font-size:38px; line-height:1; opacity:.22; transition:opacity .15s ease,background-color .15s ease; }
.lesson-slide-arrow.previous { left:12px; }
.lesson-slide-arrow.next { right:12px; }
.lesson-slide-stage:hover .lesson-slide-arrow,.lesson-slide-stage:focus-within .lesson-slide-arrow { opacity:1; }
.lesson-slide-arrow:hover { background:#315a70; }
.lesson-slide-arrow:disabled { display:none; }
.lesson-slide-loading { position:absolute; inset:0; z-index:1; display:grid; place-items:center; pointer-events:none; }
.lesson-slide-loading[hidden] { display:none; }
.lesson-slide-loading span { width:34px; height:34px; border:3px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:slide-loading-spin .8s linear infinite; }
@keyframes slide-loading-spin { to { transform:rotate(360deg); } }
.lesson-slide-player>footer { min-height:48px; display:grid; grid-template-columns:auto auto minmax(120px,1fr) auto; align-items:center; gap:10px; padding:7px 10px; color:#e8f0f2; background:#24353d; border-top:1px solid #39505a; }
.lesson-slide-player>footer button { min-height:34px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:6px 11px; color:#fff; background:#315a70; border-color:#54788a; font-size:12px; }
.lesson-slide-player>footer button:disabled { color:#8ca0a9; background:#2b3d45; border-color:#40535c; cursor:not-allowed; }
.lesson-slide-page { display:flex; align-items:baseline; justify-content:center; gap:6px; font-variant-numeric:tabular-nums; }
.lesson-slide-page strong { min-width:22px; color:#fff; font-size:16px; text-align:right; }
.lesson-slide-page span { color:#adc0c8; font-size:12px; }
.lesson-slide-keyboard-hint { justify-self:center; display:flex; align-items:center; justify-content:center; gap:5px; color:#b8c8ce; font-size:10px; }
.lesson-slide-keyboard-hint kbd { min-width:24px; height:24px; display:grid; place-items:center; color:#eaf3f5; background:#17242a; border:1px solid #526770; border-radius:5px; box-shadow:0 1px 0 #0c1519; font-family:inherit; }
.slide-media-object[hidden] { display:none; }
.slide-media-foreign-content { width:100%; height:100%; display:block; overflow:hidden; font-family:Arial,"Noto Sans Thai",sans-serif; }
.slide-media-overlay { position:relative; width:100%; height:100%; overflow:hidden; box-sizing:border-box; }
.slide-media-overlay.video { display:grid; place-items:center; background:#050708; }
.slide-media-overlay.video video { width:100%; height:100%; display:block; background:#050708; object-fit:contain; }
.slide-media-overlay.audio { display:flex; align-items:center; justify-content:center; padding:12px; color:#173b48; background:rgba(255,255,255,.94); border:2px solid #42c5cb; border-radius:16px; box-shadow:0 8px 24px rgba(14,44,55,.22); }
.slide-media-overlay.audio audio { display:none; }
.slide-audio-toggle { width:100%; min-width:0; display:flex; align-items:center; justify-content:center; gap:10px; padding:8px; color:#173b48; background:transparent; border:0; box-shadow:none; }
.slide-audio-toggle:hover { color:#0c4f61; background:rgba(66,197,203,.12); }
.slide-audio-icon { width:42px; height:42px; display:grid; place-items:center; flex:0 0 42px; color:#fff; background:#28788c; border-radius:50%; font-size:16px; }
.slide-audio-copy { min-width:0; display:grid; gap:2px; text-align:left; }
.slide-audio-copy strong { font-size:14px; line-height:1.2; }
.slide-audio-copy small { color:#55727d; font-size:11px; font-variant-numeric:tabular-nums; }
.slide-audio-progress { position:absolute; right:12px; bottom:5px; left:12px; width:calc(100% - 24px); height:18px; margin:0; padding:0; background:transparent; border:0; appearance:none; cursor:pointer; }
.slide-audio-progress::-webkit-slider-runnable-track { height:5px; background:#c8dade; border-radius:999px; }
.slide-audio-progress::-webkit-slider-thumb { width:15px; height:15px; margin-top:-5px; background:#28788c; border:2px solid #fff; border-radius:50%; box-shadow:0 1px 4px rgba(0,0,0,.24); appearance:none; }
.slide-audio-progress::-moz-range-track { height:5px; background:#c8dade; border:0; border-radius:999px; }
.slide-audio-progress::-moz-range-progress { height:5px; background:#42c5cb; border-radius:999px; }
.slide-audio-progress::-moz-range-thumb { width:13px; height:13px; background:#28788c; border:2px solid #fff; border-radius:50%; box-shadow:0 1px 4px rgba(0,0,0,.24); }
.slide-audio-progress:focus-visible { outline:3px solid rgba(66,197,203,.5); outline-offset:1px; }
.slide-video-toggle { position:absolute; top:50%; left:50%; z-index:2; min-width:132px; display:flex; align-items:center; justify-content:center; gap:9px; padding:10px 14px; translate:-50% -50%; color:#fff; background:rgba(17,42,52,.9); border:1px solid rgba(255,255,255,.72); border-radius:999px; box-shadow:0 8px 22px rgba(0,0,0,.4); }
.slide-video-toggle:hover { background:#28788c; }
.slide-video-toggle[hidden] { display:none; }
.slide-video-toggle>span { width:30px; height:30px; display:grid; place-items:center; flex:0 0 30px; color:#18333d; background:#fff; border-radius:50%; font-size:13px; }
.slide-video-toggle strong { font-size:13px; white-space:nowrap; }
.slide-video-toggle.has-error { min-width:210px; color:#fff; background:#8c2f2f; border-color:#ffb8b8; }
.slide-media-expand { position:absolute; top:8px; right:8px; z-index:2; width:30px; height:30px; display:grid; place-items:center; padding:0; color:#fff; background:rgba(18,49,60,.86); border:1px solid rgba(255,255,255,.62); border-radius:7px; box-shadow:0 3px 10px rgba(0,0,0,.22); font-size:16px; }
.slide-media-expand:hover { background:#28788c; }
.slide-media-overlay.audio .slide-media-expand { width:26px; height:26px; top:7px; right:7px; color:#173b48; background:rgba(255,255,255,.92); border-color:#7fbfc7; font-size:13px; }
.slide-media-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; gap:9px; padding:8px 12px; color:#fff; background:rgba(32,83,102,.96); border:2px solid #74d6da; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,.24); font-weight:800; }
.slide-media-fallback>span:first-child { width:30px; height:30px; display:grid; place-items:center; flex:0 0 30px; background:rgba(255,255,255,.18); border-radius:50%; }
.slide-media-fallback.video { background:rgba(20,30,35,.96); }
.slide-media-dialog { width:min(920px,calc(100vw - 32px)); max-width:none; max-height:calc(100vh - 32px); padding:0; overflow:hidden; background:#111b20; border:1px solid #6f8a94; border-radius:14px; box-shadow:0 28px 80px rgba(0,0,0,.48); }
.slide-media-dialog::backdrop { background:rgba(7,17,22,.78); backdrop-filter:blur(4px); }
.slide-media-dialog>section { display:flex; max-height:calc(100vh - 32px); flex-direction:column; }
.slide-media-dialog header { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 14px 10px 18px; color:#fff; background:#243b45; border-bottom:1px solid #45616c; }
.slide-media-dialog header>div { min-width:0; display:grid; gap:1px; }
.slide-media-dialog header small { color:#70d0d5; font-size:10px; font-weight:900; letter-spacing:.09em; }
.slide-media-dialog header strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.slide-media-dialog header button { width:36px; height:36px; display:grid; place-items:center; flex:0 0 36px; padding:0; color:#fff; background:#173039; border-color:#67808a; border-radius:8px; font-size:24px; }
.slide-media-dialog-body { min-height:100px; display:grid; place-items:center; overflow:auto; background:#071014; }
.slide-media-dialog-body video { width:100%; max-height:calc(100vh - 110px); display:block; background:#000; }
.slide-media-dialog-body audio { width:min(720px,calc(100% - 40px)); margin:46px 20px; }
.quiz-panel { display:flex; flex-direction:column; }
.quiz-panel.assessment-only { padding:22px 28px; }
.quiz-panel-heading { flex:0 0 auto; }
.quiz-panel-heading h2 { margin:2px 0 8px; }
.assessment-description p { max-width:720px; margin:-3px 0 10px; color:var(--muted); }
.quiz-heading-row { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.learning-language-switch { display:flex; align-items:center; gap:6px; padding:6px; background:#eef4f5; border:1px solid #cfdbdf; border-radius:10px; }
.learning-language-switch>span { display:grid; gap:1px; margin:0 7px; color:#344f60; font-size:12px; line-height:1.2; }
.learning-language-switch small { color:var(--muted); font-size:10px; white-space:nowrap; }
.learning-language-switch button { min-height:36px; padding:6px 12px; color:#46616d; background:#fff; border-color:#c4d1d6; font-size:13px; }
.learning-language-switch button[aria-pressed="true"] { color:#183a46; background:var(--primary); border-color:var(--primary-hover); box-shadow:0 3px 8px rgba(45,76,97,.12); }
.learning-split:has(>.learning-unified-header) { grid-template-rows:auto minmax(0,1fr); }
.learning-split:has(.learning-unified-header) .lesson-powerpoint-toolbar,.learning-split:has(.learning-unified-header) .quiz-heading-row { display:none; }
.learning-unified-header { grid-column:1/-1; min-width:0; display:grid; grid-template-columns:subgrid; align-items:stretch; margin:8px 8px 0; background:linear-gradient(135deg,#fff,#f7fbfc); border:1px solid #cedde2; border-radius:10px; }
.learning-unified-title { min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; padding:12px 14px; }
.learning-unified-title-copy { min-width:0; display:grid; flex:1 1 220px; gap:3px; }
.learning-unified-title h2 { margin:0; color:var(--dark); font-size:19px; line-height:1.35; overflow-wrap:anywhere; }
.learning-unified-title small { color:var(--muted); font-size:10px; }
.learning-unified-title>.lesson-powerpoint-downloads { min-width:0; display:flex; flex-wrap:wrap; gap:6px; }
.learning-unified-title .lesson-powerpoint-downloads .button { min-height:36px; padding:6px 10px; border-radius:7px; }
.learning-unified-assessment { min-width:0; display:grid; align-content:center; padding:12px 18px; border-left:1px solid #d9e5e8; container:quiz-toolbar / inline-size; }
.learning-unified-controls { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"mcq language" "materials materials"; align-items:center; gap:8px 10px; }
.learning-unified-mcq { grid-area:mcq; display:grid; align-content:center; gap:3px; }
.learning-unified-mcq .eyebrow,.learning-unified-mcq .quiz-pass-threshold { margin:0; white-space:nowrap; }
.lesson-material-downloads { grid-area:materials; min-width:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px; }
.lesson-material-downloads>span { display:flex; align-items:center; gap:5px; color:var(--dark); font-size:11px; white-space:nowrap; }
.lesson-material-downloads>span small { min-width:18px; height:18px; display:grid; place-items:center; color:#315a70; background:#e5f2f4; border-radius:999px; font-size:9px; font-weight:900; }
.lesson-material-button { min-height:36px; flex:0 0 auto; gap:5px; padding:6px 10px; border-radius:7px; font-size:11px; }
.lesson-material-button b { font-size:9px; letter-spacing:.06em; }
.learning-unified-header .learning-language-switch { grid-area:language; min-width:0; max-width:100%; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; min-height:44px; margin-left:auto; padding:4px; }
.learning-unified-header .learning-language-switch>span { margin:0 5px; }
.learning-unified-header .learning-language-switch button { min-height:34px; flex:0 0 auto; padding:5px 10px; }
@container quiz-toolbar (min-width:560px) {
  .learning-unified-controls { grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"mcq materials language"; }
}
@container quiz-toolbar (max-width:360px) {
  .learning-unified-header .learning-language-switch>span { display:none; }
}
@media (max-width:850px) {
  .learning-split:has(>.learning-unified-header) { grid-template-rows:auto auto auto; }
  .learning-unified-assessment { padding-inline:9px; border-left:0; border-top:1px solid #d9e5e8; }
}
.learning-confirm-dialog { width:min(540px,calc(100vw - 28px)); max-width:none; padding:0; overflow:hidden; color:var(--dark); background:#fff; border:1px solid #91afb8; border-radius:16px; box-shadow:0 28px 90px rgba(9,32,41,.42); }
.learning-confirm-dialog::backdrop { background:rgba(9,28,35,.7); backdrop-filter:blur(3px); }
.learning-confirm-dialog>section { display:grid; }
.learning-confirm-dialog header { display:grid; grid-template-columns:48px minmax(0,1fr) 38px; align-items:center; gap:12px; padding:18px 20px; color:#fff; background:linear-gradient(135deg,#244858,#315f70); border-bottom:1px solid #183d4c; }
.learning-confirm-icon { width:48px; height:48px; display:grid; place-items:center; color:#173b48; background:#6ed8da; border-radius:13px; box-shadow:0 5px 14px rgba(9,31,39,.2); font-size:21px; font-weight:900; }
.learning-confirm-dialog header>div { min-width:0; }
.learning-confirm-dialog header .eyebrow { margin:0 0 2px; color:#8ce5e7; }
.learning-confirm-dialog h2 { margin:0; color:#fff; font-size:21px; }
.learning-confirm-dialog header>button { width:38px; height:38px; display:grid; place-items:center; padding:0; color:#fff; background:rgba(10,38,48,.56); border-color:#6b8b96; border-radius:9px; font-size:24px; line-height:1; }
.learning-confirm-body { display:grid; gap:14px; padding:22px 22px 18px; }
.learning-confirm-body>p { margin:0; color:#385763; font-size:15px; line-height:1.55; }
.learning-confirm-body>p strong { color:#176a70; }
.learning-confirm-impact { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:start; gap:10px; padding:13px 14px; color:#745318; background:#fff6db; border:1px solid #ead393; border-radius:10px; }
.learning-confirm-impact>span { width:28px; height:28px; display:grid; place-items:center; color:#fff; background:#b98628; border-radius:50%; font-weight:900; }
.learning-confirm-impact p { margin:2px 0 0; line-height:1.5; }
.learning-confirm-dialog footer { display:flex; justify-content:flex-end; gap:9px; padding:14px 20px 18px; background:#f5f9fa; border-top:1px solid #d9e4e7; }
.learning-confirm-dialog footer button { min-height:42px; padding:8px 14px; }
[data-learning-language-root][data-language="th"] [data-language-copy="en"],[data-learning-language-root][data-language="en"] [data-language-copy="th"] { display:none!important; }
.quiz-form { min-height:0; display:grid; gap:16px; margin-top:8px; padding:2px 8px 14px 0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.quiz-panel.assessment-only .quiz-form { grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; column-gap:22px; }
.quiz-panel.assessment-only .quiz-form>button { grid-column:1/-1; justify-self:end; min-width:220px; }
.quiz-form fieldset { display:grid; gap:8px; margin:0; padding:14px; border:1px solid var(--line); border-radius:8px; }
.quiz-form legend { padding:0 5px; color:var(--dark); font-weight:800; }
.quiz-question-number { margin-right:5px; }
.quiz-form label { grid-template-columns:auto 30px minmax(0,1fr); align-items:center; gap:9px; padding:8px; background:#f7fafb; border-radius:6px; cursor:pointer; }
.quiz-form input { width:18px; height:18px; margin:0; }
.quiz-choice-letter { width:28px; height:28px; display:grid; place-items:center; color:#fff; background:#315a70; border-radius:50%; font-size:12px; font-weight:900; }
.quiz-latest { padding:10px 12px; color:#31565c; background:var(--primary-wash); border-radius:7px; }
.quiz-latest.passed { color:#17643c; background:#e4f6ea; }
.quiz-latest.failed { color:#8b4f17; background:#fff2d7; }
.quiz-pass-threshold { width:max-content; display:inline-flex; margin-top:2px; padding:3px 8px; color:#6d5015; background:#fff0c2; border-radius:999px; font-size:11px; font-weight:850; }
.learning-result-notice { align-items:center; margin:0; }
.learning-result-notice p { flex:1 1 auto; }
.learning-next-action { min-height:36px; flex:0 0 auto; padding:6px 12px; }
.learning-locked-page { max-width:720px; margin:8vh auto; text-align:center; }
.learning-locked-page>span { width:74px; height:74px; display:grid; place-items:center; margin:0 auto 15px; background:#eef2f4; border-radius:50%; font-size:34px; }
.learning-locked-page .button { margin-top:12px; }
.lesson-order-badge { width:34px; height:34px; display:grid; place-items:center; color:#fff; background:#315a70; border-radius:10px; font-weight:900; }
.onsite-assessment-banner { display:flex; align-items:center; gap:12px; margin:4px 0 14px; padding:12px 15px; color:#31565c; background:linear-gradient(135deg,#e7f8ef,#f4fbff); border:1px solid #b9dfcd; border-radius:9px; }
.onsite-assessment-banner>span { width:32px; height:32px; display:grid; place-items:center; flex:0 0 32px; color:#fff; background:#35a563; border-radius:50%; font-weight:900; }
.onsite-assessment-banner div { display:grid; }
.onsite-assessment-banner p { margin:1px 0 0; color:#5d7567; font-size:13px; }
.lesson-downloads { min-width:0; display:flex; align-items:center; gap:8px; margin:6px 0 10px; padding:6px 8px; background:#f4f9fb; border:1px solid #c9dce3; border-radius:8px; }
.lesson-download-label { display:flex; align-items:center; gap:6px; flex:0 0 auto; white-space:nowrap; }
.lesson-download-label>span:first-child { width:28px; height:28px; display:grid; place-items:center; color:#fff; background:#315a70; border-radius:6px; font-weight:900; }
.lesson-download-label strong { color:var(--dark); font-size:12px; }
.lesson-download-label small { color:var(--muted); font-size:10px; }
.lesson-download-list { min-width:0; display:flex; flex:1 1 auto; gap:6px; margin:0; padding:0; overflow-x:auto; border:0; list-style:none; }
.lesson-download-list li { min-width:210px; flex:1 0 210px; }
.quiz-panel.assessment-only .lesson-download-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
.lesson-download-link { min-width:0; display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:7px; padding:4px 7px; color:var(--dark); background:#fff; border:1px solid #d4e1e6; border-radius:7px; text-decoration:none; }
.lesson-download-link:hover { background:#e8f7f8; border-color:#64c9cf; }
.lesson-download-type { width:28px; height:28px; display:grid; place-items:center; color:#fff; background:#315a70; border-radius:6px; font-size:8px; font-weight:900; letter-spacing:.02em; }
.lesson-download-name { min-width:0; display:grid; }
.lesson-download-name strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.lesson-download-name small { color:var(--muted); font-size:10px; }
.lesson-download-action { padding:5px 8px; color:#173e49; background:#64c9cf; border:1px solid #49b2b9; border-radius:6px; font-size:10px; font-weight:850; }
.lesson-attachments-field { padding:14px; background:#f4f9fb; border:1px solid #c9dce3; border-radius:9px; }
.delivery-mode-badge { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.delivery-mode-badge.online { color:#17643c; background:#dff4e7; }
.delivery-mode-badge.onsite { color:#674d17; background:#fff0bd; }
.lesson-mode-form { margin:8px 0 0; }
.lesson-mode-form button { width:100%; min-height:34px; padding:5px 9px; font-size:11px; white-space:nowrap; }
.lesson-actions { min-width:238px; display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.lesson-action { min-height:34px; padding:5px 9px; font-size:12px; }
.lesson-view-action { color:#164f58; background:#e7f8f9; border-color:#83cdd2; }
.lesson-view-action:hover { color:#103e45; background:#cceff1; border-color:#54b6bd; }
.lesson-edit-action { color:#fff; background:#315a70; border-color:#294c60; }
.lesson-edit-action:hover { color:#fff; background:#24475a; border-color:#1d3c4d; }
.lesson-delete-action { color:#fff; background:#b23945; border-color:#922b35; }
.lesson-delete-action:hover { color:#fff; background:#8e2731; border-color:#762029; }
.lesson-add-action { align-self:center; min-height:38px; color:#173e49; white-space:nowrap; }
.lesson-delete-status { margin:14px 0; padding:11px 14px; color:#1e6842; background:#e7f7ed; border:1px solid #b8dfc7; border-left:4px solid #35a563; border-radius:7px; font-weight:750; }
.mcq-import-card { margin-bottom:20px; padding:24px 26px; border-top:5px solid #315a70; background:linear-gradient(145deg,#f2f8fa,#fff 45%); }
.mcq-import-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:20px; }
.mcq-import-heading h2 { margin:2px 0 4px; color:var(--dark); }
.mcq-import-heading p:last-child { margin:0; color:var(--muted); }
.mcq-import-format { width:62px; height:62px; display:grid; place-items:center; flex:0 0 62px; color:#fff; background:#315a70; border-radius:16px; box-shadow:0 8px 18px rgba(45,76,97,.18); font-size:17px; font-weight:900; }
.mcq-import-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.mcq-import-form fieldset { margin:0; padding:0; overflow:hidden; background:#fff; border:1px solid #cbd9df; border-radius:10px; }
.mcq-import-form legend { width:100%; display:flex; align-items:center; gap:9px; padding:11px 14px; color:#315a70; background:#eaf3f6; border-bottom:1px solid #cbd9df; font-weight:850; }
.mcq-import-form legend span { padding:4px 8px; color:#fff; background:#315a70; border-radius:999px; font-size:11px; letter-spacing:.06em; }
.mcq-import-form fieldset>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:14px; }
.mcq-import-form label { position:relative; min-width:0; }
.mcq-import-form input[type="file"] { min-width:0; padding:9px; background:#f8fbfc; }
.import-language-badge { position:absolute; top:0; right:0; padding:2px 6px; border-radius:999px; font-size:10px; font-weight:900; }
.import-language-badge.thai { color:#236342; background:#e4f5ea; }
.import-language-badge.english { color:#285981; background:#e3eff9; }
.mcq-import-rules { grid-column:1/-1; display:grid; gap:2px; padding:12px 15px; color:#49616c; background:#f4f8fa; border:1px solid #d5e1e6; border-radius:8px; font-size:13px; }
.mcq-import-rules strong { color:#315a70; }
.mcq-import-actions { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.mcq-import-actions>span { color:var(--muted); font-size:13px; }
.mcq-import-actions button { min-width:260px; }
.import-error-card { max-width:760px; margin-inline:auto; }
.import-error-card h1 { margin:4px 0 12px; }
.content-management-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:20px; }
.lesson-editor-card { grid-column:1/-1; }
.bilingual-question-form-card { grid-column:1/-1; }
.form-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.form-card-heading h2 { margin:2px 0 0; }
.language-pair-badge { display:inline-flex; align-items:center; padding:7px 12px; color:#fff; background:linear-gradient(90deg,#35a563 0 48%,#4c78a1 52% 100%); border-radius:999px; font-size:12px; font-weight:850; letter-spacing:.07em; white-space:nowrap; }
.lesson-language-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.grid-form .lesson-language-card { overflow:hidden; background:#fbfdfd; border:1px solid var(--line); border-radius:10px; }
.grid-form .lesson-language-card legend { border-bottom:1px solid var(--line); }
.grid-form .lesson-language-card.thai legend { color:#235f40; background:#eaf8f0; }
.grid-form .lesson-language-card.english legend { color:#285981; background:#eaf3fb; }
.lesson-language-card legend>span { min-width:32px; display:inline-flex; justify-content:center; padding:3px 6px; color:#fff; background:#35a563; border-radius:4px; font-size:11px; letter-spacing:.08em; }
.lesson-language-card.english legend>span { background:#4c78a1; }
.lesson-language-fields { display:grid; gap:14px; padding:18px; }
.lesson-resource-language-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.grid-form .lesson-resource-language-card { min-width:0; display:grid; align-content:start; gap:12px; margin:0; padding:0 14px 14px; overflow:hidden; background:#fbfdfd; border:1px solid var(--line); border-radius:10px; }
.grid-form .lesson-resource-language-card legend { width:calc(100% + 28px); display:flex; align-items:center; gap:8px; margin:0 -14px; padding:11px 14px; border-bottom:1px solid var(--line); }
.lesson-resource-language-card.th legend { color:#235f40; background:#eaf8f0; }
.lesson-resource-language-card.en legend { color:#285981; background:#eaf3fb; }
.lesson-resource-language-card legend>span { min-width:32px; display:inline-flex; justify-content:center; padding:3px 6px; color:#fff; background:#35a563; border-radius:4px; font-size:11px; letter-spacing:.08em; }
.lesson-resource-language-card.en legend>span { background:#4c78a1; }
.lesson-resource-language-card .current-lesson-resource { min-width:0; padding:11px; }
.lesson-resource-language-card>label { min-width:0; }
.lesson-resource-empty { padding:18px; color:var(--muted); background:#f7fafb; border:1px dashed #b9c7cf; border-radius:8px; text-align:center; }
.current-lesson-resource { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 16px; background:#f6fafb; border:1px solid #ccdbe0; border-radius:9px; }
.current-lesson-resource>div { min-width:0; display:flex; align-items:center; gap:12px; }
.current-lesson-resource>div>span:last-child { min-width:0; display:grid; }
.current-lesson-resource strong { overflow:hidden; color:var(--dark); text-overflow:ellipsis; white-space:nowrap; }
.current-lesson-resource small { color:var(--muted); }
.lesson-upload-dialog { width:min(520px,calc(100vw - 28px)); max-width:none; padding:0; overflow:hidden; color:var(--dark); background:#fff; border:1px solid #8caeb8; border-radius:16px; box-shadow:0 28px 90px rgba(9,32,41,.42); }
.lesson-upload-dialog::backdrop { background:rgba(10,28,35,.72); backdrop-filter:blur(3px); }
.lesson-upload-dialog>section { display:grid; justify-items:center; gap:8px; padding:30px 32px 26px; text-align:center; }
.lesson-upload-spinner { width:54px; height:54px; display:grid; place-items:center; margin-bottom:5px; border:5px solid #d8e6e9; border-top-color:#35b9c0; border-radius:50%; animation:lesson-upload-spin .8s linear infinite; }
.lesson-upload-dialog[data-state="processing"] .lesson-upload-spinner { border-color:#d8e6e9; border-right-color:#315a70; border-top-color:#35b9c0; animation-duration:1.1s; }
.lesson-upload-dialog[data-state="complete"] .lesson-upload-spinner,.lesson-upload-dialog[data-state="error"] .lesson-upload-spinner { border:0; animation:none; }
.lesson-upload-dialog[data-state="complete"] .lesson-upload-spinner { color:#fff; background:#35a563; }
.lesson-upload-dialog[data-state="error"] .lesson-upload-spinner { color:#fff; background:#b83e3e; }
.lesson-upload-dialog[data-state="complete"] .lesson-upload-spinner::after { content:"✓"; font-size:29px; font-weight:900; }
.lesson-upload-dialog[data-state="error"] .lesson-upload-spinner::after { content:"!"; font-size:29px; font-weight:900; }
@keyframes lesson-upload-spin { to { transform:rotate(360deg); } }
.lesson-upload-dialog .eyebrow { margin:0; color:#28788c; }
.lesson-upload-dialog h2 { margin:0; font-size:22px; }
.lesson-upload-dialog [data-lesson-upload-status] { min-height:42px; margin:0; color:#57717b; line-height:1.5; }
.lesson-upload-dialog progress { width:100%; height:16px; margin-top:8px; overflow:hidden; background:#dce7ea; border:0; border-radius:999px; appearance:none; }
.lesson-upload-dialog progress::-webkit-progress-bar { background:#dce7ea; border-radius:999px; }
.lesson-upload-dialog progress::-webkit-progress-value { background:linear-gradient(90deg,#2d7d91,#43c7cb); border-radius:999px; transition:width .15s ease; }
.lesson-upload-dialog progress::-moz-progress-bar { background:linear-gradient(90deg,#2d7d91,#43c7cb); border-radius:999px; }
.lesson-upload-dialog progress:not([value]) { background:linear-gradient(90deg,#dce7ea 0 25%,#43c7cb 40% 60%,#dce7ea 75% 100%); background-size:220% 100%; animation:lesson-upload-indeterminate 1.15s linear infinite; }
@keyframes lesson-upload-indeterminate { to { background-position:-220% 0; } }
.lesson-upload-meta { width:100%; display:flex; align-items:center; justify-content:space-between; gap:14px; color:#6b8088; font-size:12px; }
.lesson-upload-meta strong { color:#214d5d; font-size:13px; }
.lesson-upload-dialog[data-state="error"] [data-lesson-upload-percent] { color:#a72f2f; }
.lesson-upload-dialog [data-lesson-upload-close] { min-width:150px; margin-top:10px; }
.lesson-editor-form[aria-busy="true"] [data-lesson-upload-submit] { cursor:wait; }
.lesson-resource-icon { width:48px; height:48px; display:grid; place-items:center; flex:0 0 48px; color:#fff; background:#315a70; border-radius:9px; font-size:11px; font-weight:900; }
.remove-resource-check { grid-template-columns:auto 1fr; align-items:center; gap:8px; padding:8px 10px; color:#7b3139; background:#fff; border:1px solid #dfb7bb; border-radius:7px; white-space:nowrap; }
.remove-resource-check input,.current-attachments input { width:18px; height:18px; margin:0; accent-color:#315a70; }
.grid-form fieldset.current-attachments { padding:0; overflow:hidden; background:#f8fbfc; border:1px solid #cbd9df; border-radius:9px; }
.grid-form fieldset.current-attachments legend { display:flex; justify-content:space-between; padding:11px 14px; }
.current-attachments legend span { color:var(--muted); font-size:12px; font-weight:500; }
.current-attachments>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px; }
.current-attachments label { grid-template-columns:auto minmax(0,1fr); align-items:center; gap:9px; padding:10px; background:#fff; border:1px solid #d5e1e6; border-radius:7px; }
.current-attachments label>span { min-width:0; display:grid; }
.current-attachments strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.current-attachments small { color:var(--muted); }
.scroll-snap-hint { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; color:#48616c; background:#fff; border:1px solid #cbd9df; border-radius:999px; box-shadow:0 3px 10px rgba(45,76,97,.06); font-size:12px; white-space:nowrap; }
.scroll-snap-hint b { color:#256b72; letter-spacing:.06em; }
.lesson-title-cell { min-width:300px; white-space:normal!important; }
.lesson-title-cell strong,.lesson-title-cell>span { display:flex; align-items:flex-start; gap:7px; }
.lesson-title-cell>span { margin-top:4px; color:#4c6471; }
.lesson-title-cell small { display:block; margin-top:5px; color:var(--muted); }
.lesson-title-cell strong b,.lesson-title-cell>span b { min-width:26px; padding:2px 5px; color:#fff; background:#35a563; border-radius:4px; font-size:10px; text-align:center; }
.lesson-title-cell>span b { background:#4c78a1; }
.exam-set-badge { min-width:64px; display:inline-flex; align-items:center; justify-content:center; padding:7px 12px; color:#fff; background:#2d4c61; border-radius:999px; font-size:12px; font-weight:850; letter-spacing:.08em; white-space:nowrap; }
.question-bank { margin-bottom:20px; padding:26px 28px 18px; }
.question-bank-title { align-items:flex-end; gap:24px; }
.question-bank-title h2 { margin:2px 0 3px; color:var(--dark); }
.question-bank-filter { min-width:min(100%,520px); display:grid; grid-template-columns:minmax(220px,1fr) auto; align-items:end; gap:10px; }
.question-bank-filter button { min-height:46px; }
.exam-set-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.exam-set-card { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; padding:14px 18px; color:#49606d; background:#f7fafb; border:1px solid var(--line); border-radius:9px; text-decoration:none; }
.exam-set-card strong { width:42px; height:42px; display:grid; place-items:center; color:#fff; background:#78909c; border-radius:50%; font-size:20px; }
.exam-set-card small { color:var(--muted); font-weight:700; }
.exam-set-card:hover,.exam-set-card.active { color:#214f58; background:var(--primary-wash); border-color:var(--primary); box-shadow:0 5px 14px rgba(45,76,97,.08); }
.exam-set-card.active strong { color:#183a46; background:var(--primary); }
.question-bank-table td { vertical-align:middle; }
.question-bank-table .question-prompt-cell { min-width:300px; max-width:520px; white-space:normal; }
.question-prompt-cell strong { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.question-prompt-cell>span { display:-webkit-box; margin-top:3px; overflow:hidden; color:#5c7180; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.correct-answer { display:block; max-width:320px; overflow:hidden; color:#17643c; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.correct-answer.english { margin-top:4px; color:#315e86; }
.correct-answer b { display:inline-flex; min-width:26px; margin-right:4px; padding:2px 5px; color:#fff; background:#35a563; border-radius:4px; font-size:10px; }
.correct-answer.english b { background:#4c78a1; }
.choice-count-status { display:inline-flex; padding:5px 9px; color:#236342; background:#e4f5ea; border:1px solid #b7dfc6; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.choice-count-status.incomplete { color:#7a4b0f; background:#fff3cf; border-color:#ecd28b; }
.question-actions { display:flex; align-items:center; gap:6px; }
.question-action { min-height:34px; padding:5px 10px; font-size:12px; }
.button.question-view-action { color:#164f58; background:#e7f8f9; border-color:#83cdd2; }
.button.question-view-action:hover { color:#103e45; background:#cceff1; border-color:#54b6bd; }
.button.question-edit-action { color:#fff; background:#315a70; border-color:#294c60; }
.button.question-edit-action:hover { color:#fff; background:#24475a; border-color:#1d3c4d; }
.danger,.button.danger { color:#fff; background:#b23945; border-color:#922b35; }
.danger:hover,.button.danger:hover { color:#fff; background:#8e2731; border-color:#762029; }
.question-delete-action { color:#fff!important; }
.question-detail-delete-action { min-height:44px; padding:9px 18px; font-size:16px; }
.question-delete-action:disabled,.question-modal-confirm:disabled { color:#f4dfe1; background:#8d6266; border-color:#7d5b5e; cursor:wait; }
.set-counts { display:flex; gap:6px; }
.set-counts span { padding:4px 8px; color:#526873; background:#edf3f5; border-radius:999px; font-size:12px; }
.set-counts b { color:var(--dark); }
.delivery-mode-section { margin-bottom:20px; }

/* Expert content sections settle at the top of the viewport while leaving tall forms freely scrollable. */
html:has(body.expert-learning-page),body.expert-learning-page { scroll-snap-type:y mandatory; }
.expert-learning-page .mcq-import-card,.expert-learning-page .expert-snap-section,.expert-learning-page .question-bank,.expert-learning-page .delivery-mode-section { scroll-snap-align:start; scroll-snap-stop:always; scroll-margin-top:116px; }
.question-bank-status { margin:14px 0 0; padding:11px 14px; color:#1e6842; background:#e7f7ed; border:1px solid #b8dfc7; border-left:4px solid #35a563; border-radius:7px; font-weight:750; }
.question-delete-dialog { width:min(620px,calc(100% - 28px)); max-height:calc(100dvh - 36px); padding:0; overflow:auto; color:var(--ink); background:transparent; border:0; border-radius:14px; box-shadow:0 24px 70px rgba(20,39,50,.32); }
.question-delete-dialog::backdrop { background:rgba(22,39,50,.62); backdrop-filter:blur(3px); }
.question-delete-modal { overflow:hidden; background:#fff; border:1px solid #cbd8de; border-radius:14px; }
.question-delete-modal>header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:22px 24px 17px; background:linear-gradient(135deg,#f7fafb,#fff); border-bottom:1px solid var(--line); }
.question-delete-modal h2 { margin:3px 0 0; font-size:25px; }
.question-dialog-close { width:38px; height:38px; min-height:38px; display:grid; place-items:center; flex:0 0 38px; padding:0; color:#344f60; background:#fff; border:1px solid #bdcbd1; border-radius:50%; font-size:25px; font-weight:400; line-height:1; }
.question-dialog-close:hover { color:#fff; background:#315a70; border-color:#315a70; }
.question-delete-summary { display:flex; align-items:flex-start; gap:15px; margin:22px 24px 0; padding:16px; background:#f7fafb; border:1px solid var(--line); border-radius:9px; }
.question-delete-summary>div { min-width:0; display:grid; gap:4px; }
.question-delete-summary strong,.question-delete-summary span { overflow-wrap:anywhere; }
.question-delete-summary strong { color:var(--dark); font-size:18px; }
.question-delete-summary span { color:var(--muted); }
.lesson-delete-icon { width:58px; height:58px; display:grid; place-items:center; flex:0 0 58px; color:#fff!important; background:#315a70; border-radius:14px; font-size:22px; font-weight:900; }
.lesson-delete-summary small { color:var(--muted); }
.lesson-delete-summary small b { color:var(--dark); }
.question-delete-modal .delete-warning { margin:16px 24px; }
.question-delete-error { margin:0 24px 16px; padding:10px 13px; color:#81252e; background:#fbe9eb; border:1px solid #e7b8bd; border-radius:7px; }
.question-delete-actions { display:flex; justify-content:flex-end; gap:10px; padding:17px 24px 22px; border-top:1px solid var(--line); }
.question-delete-actions button { min-width:138px; }
.button.question-modal-cancel { color:#294c60; background:#fff; border:2px solid #315a70; }
.button.question-modal-cancel:hover { color:#1d3c4d; background:#eaf1f4; border-color:#24475a; }
.question-modal-confirm { gap:7px; color:#fff; background:#b23945; border-color:#922b35; }
.question-modal-confirm:hover { color:#fff; background:#8e2731; border-color:#762029; }
.question-deleted-state { min-height:260px; display:flex; align-items:center; justify-content:center; gap:18px; text-align:left; }
.question-deleted-state>span { width:58px; height:58px; display:grid; place-items:center; flex:0 0 58px; color:#fff; background:#35a563; border-radius:50%; font-size:30px; font-weight:900; }
.question-deleted-state h2 { margin:0 0 4px; font-size:26px; }
.question-deleted-state p { margin:0 0 16px; color:var(--muted); }
.lesson-detail-card { max-width:1120px; margin-inline:auto; padding:28px; }
.lesson-detail-summary { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; color:var(--muted); font-size:13px; }
.lesson-detail-languages { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:22px; }
.lesson-detail-languages>section { min-height:170px; padding:20px; background:#fbfdfd; border:1px solid var(--line); border-radius:10px; }
.lesson-detail-languages h2 { margin:14px 0 7px; font-size:22px; }
.lesson-detail-languages p { margin:0; color:var(--muted); white-space:pre-wrap; }
.lesson-detail-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:18px 0; }
.lesson-detail-stats>div { display:grid; justify-items:center; padding:13px; background:#f2f8fa; border:1px solid #d2e0e5; border-radius:8px; }
.lesson-detail-stats small { color:var(--muted); }
.lesson-detail-stats strong { color:var(--dark); font-size:24px; }
.lesson-detail-resource,.lesson-detail-attachments { margin-top:22px; }
.lesson-detail-resource .section-title,.lesson-detail-attachments .section-title { margin-bottom:14px; }
.lesson-admin-resource-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.lesson-admin-language-resource { min-width:0; display:grid; align-content:start; gap:10px; padding:12px; background:#f8fbfc; border:1px solid #d3e0e5; border-radius:10px; }
.lesson-admin-resource-heading { min-width:0; display:flex; align-items:center; gap:9px; }
.lesson-admin-resource-heading>div { min-width:0; display:grid; }
.lesson-admin-resource-heading strong,.lesson-admin-resource-heading small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lesson-admin-resource-heading small { color:var(--muted); }
.lesson-admin-download { justify-self:end; }
.lesson-admin-media { width:100%; height:min(56vh,540px); display:block; background:#111; border:1px solid var(--line); border-radius:9px; object-fit:contain; }
.lesson-admin-pdf { background:#fff; }
.lesson-admin-powerpoint { display:grid; gap:10px; }
.lesson-admin-powerpoint .lesson-powerpoint-frame { height:min(56vh,540px); min-height:420px; }
.lesson-admin-document { display:flex; align-items:center; gap:14px; padding:18px; color:var(--dark); background:#fff7f0; border:1px solid #edc9b4; border-radius:9px; text-decoration:none; }
.lesson-admin-document>span { width:58px; height:58px; display:grid; place-items:center; color:#fff; background:#c94f24; border-radius:10px; font-weight:900; }
.lesson-admin-document>div { display:grid; }
.lesson-admin-document small { color:var(--muted); }
.lesson-admin-empty { padding:28px; color:var(--muted); background:#f8fafb; border:1px dashed #b9c7cf; border-radius:9px; text-align:center; }
.lesson-admin-attachments { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:0; padding:0; list-style:none; }
.lesson-admin-attachments a { min-width:0; display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px; color:var(--dark); background:#f8fbfc; border:1px solid #d4e1e6; border-radius:8px; text-decoration:none; }
.lesson-admin-attachments a>span { width:44px; height:44px; display:grid; place-items:center; color:#fff; background:#315a70; border-radius:7px; font-size:10px; font-weight:900; }
.lesson-admin-attachments a>div { min-width:0; display:grid; }
.lesson-admin-attachments strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lesson-admin-attachments small { color:var(--muted); }
.lesson-admin-attachments a>b { color:#24727a; font-size:12px; }
.lesson-edit-card { max-width:1120px; margin-inline:auto; }
.question-language-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.grid-form .question-language-card { overflow:hidden; background:#fbfdfd; border:1px solid var(--line); border-radius:10px; }
.grid-form .question-language-card legend { border-bottom:1px solid var(--line); }
.grid-form .question-language-card.thai legend { color:#235f40; background:#eaf8f0; }
.grid-form .question-language-card.english legend { color:#285981; background:#eaf3fb; }
.question-language-card legend>span { min-width:32px; display:inline-flex; justify-content:center; padding:3px 6px; color:#fff; background:#35a563; border-radius:4px; font-size:11px; letter-spacing:.08em; }
.question-language-card.english legend>span { background:#4c78a1; }
.question-language-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:18px; }
.question-language-fields>label:first-child { grid-column:1/-1; }
.bilingual-form-note { display:flex; align-items:center; gap:10px; padding:12px 14px; color:#5c526f; background:#f5f0fb; border:1px solid #ddd0ef; border-radius:8px; }
.bilingual-form-note span { color:#70647e; font-size:13px; }
.question-page-header .actions { flex-wrap:wrap; }
.question-detail-card,.question-editor-card,.delete-question-card { max-width:880px; margin-inline:auto; }
.question-detail-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; color:var(--muted); font-size:13px; }
.question-detail-card>h2,.question-detail-languages h2 { margin:18px 0; color:var(--dark); font-size:22px; line-height:1.45; }
.question-detail-languages { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:24px; }
.question-detail-languages>section { padding:18px; background:#fbfdfd; border:1px solid var(--line); border-radius:10px; }
.language-label { display:inline-flex; padding:5px 9px; color:#235f40; background:#e1f3e8; border-radius:999px; font-size:11px; font-weight:850; letter-spacing:.06em; }
.language-label.english { color:#285981; background:#e3eff9; }
.question-choice-list { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.question-choice-list li { display:grid; grid-template-columns:42px 1fr; align-items:center; gap:13px; padding:13px 15px; background:#f7fafb; border:1px solid var(--line); border-radius:8px; }
.question-choice-list li>span { width:34px; height:34px; display:grid; place-items:center; color:#4f6671; background:#e6edef; border-radius:50%; font-weight:850; }
.question-choice-list li>div { display:grid; gap:2px; }
.question-choice-list li small { color:#28764d; }
.question-choice-list li.correct { background:#eaf8f0; border-color:#a9dabd; }
.question-choice-list li.correct>span { color:#fff; background:#35a563; }
.question-detail-footer { display:flex; justify-content:space-between; gap:16px; margin-top:22px; padding-top:16px; color:var(--muted); border-top:1px solid var(--line); }
.question-detail-footer a { color:var(--dark); font-weight:700; }
.delete-question-card>h2 { margin:18px 0 8px; color:var(--dark); }
.delete-question-card>p { color:var(--muted); }
.delete-question-english { margin-top:-2px; font-size:17px; }
.delete-warning { margin:20px 0; padding:14px 16px; color:#7a4b0f; background:#fff3cf; border:1px solid #ecd28b; border-radius:8px; }
@media (max-width:1250px) { .quiz-panel.assessment-only .quiz-form{grid-template-columns:1fr}.quiz-panel.assessment-only .quiz-form>button{grid-column:auto;width:100%} }
@media (max-width:1050px) { .learning-layout{grid-template-columns:185px minmax(0,1fr)}.learning-split{grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr)}.mcq-import-form{grid-template-columns:1fr}.content-management-grid{grid-template-columns:1fr}.lesson-language-grid,.question-language-grid,.question-detail-languages{grid-template-columns:1fr}.question-bank-title{align-items:stretch;flex-direction:column}.question-bank-filter{width:100%;min-width:0} }
@media (max-width:850px) { .learning-app-page{height:auto;min-height:100vh;overflow:auto}.learning-app-page main{display:block;width:min(100% - 24px,1180px);margin-top:18px;overflow:visible}.learning-page{display:block;overflow:visible}.learning-layout{display:block;overflow:visible}.lesson-list{max-height:220px;margin-bottom:12px}.learning-split{display:grid;grid-template-columns:1fr;overflow:visible}.learning-split:not(.assessment-only)>.quiz-panel{border-top:1px solid var(--line);border-left:0}.lesson-panel,.quiz-panel{height:auto;overflow:visible}.lesson-video,.lesson-pdf,.lesson-powerpoint-frame{height:56vh;min-height:360px;flex:none}.quiz-form{max-height:none;overflow:visible} }
@media (max-width:680px) { html:has(body.expert-learning-page),body.expert-learning-page{scroll-snap-type:y proximity}.expert-learning-page .mcq-import-card,.expert-learning-page .expert-snap-section,.expert-learning-page .question-bank,.expert-learning-page .delivery-mode-section{scroll-margin-top:92px}.scroll-snap-hint{white-space:normal}.record-metrics,.settings-form{grid-template-columns:1fr}.learning-certificate{align-items:flex-start;flex-direction:column}.learning-certificate .button{width:100%}.certificate-public dl{grid-template-columns:1fr}.certificate-public dd{margin-bottom:8px}.lesson-document{align-items:stretch;flex-direction:column;padding:22px}.lesson-document-icon{width:64px;height:64px;flex-basis:64px;border-radius:13px;font-size:14px}.lesson-document .button{width:100%}.lesson-powerpoint-viewer{padding:7px}.lesson-powerpoint-toolbar{align-items:stretch;flex-wrap:wrap}.lesson-powerpoint-toolbar .lesson-document-icon{width:42px;height:42px;flex-basis:42px;font-size:10px}.lesson-powerpoint-toolbar>.lesson-powerpoint-downloads{width:100%}.lesson-powerpoint-toolbar .button{width:100%;flex:1;text-align:center}.mcq-import-card{padding:20px 16px}.mcq-import-heading{align-items:center}.mcq-import-form fieldset>div{grid-template-columns:1fr}.mcq-import-actions{align-items:stretch;flex-direction:column}.mcq-import-actions button{width:100%;min-width:0}.exam-set-grid{grid-template-columns:1fr}.question-bank-filter{grid-template-columns:1fr}.question-bank{padding:20px}.question-detail-footer{align-items:flex-start;flex-direction:column}.question-page-header .actions,.question-page-header .button,.delete-question-card .actions,.delete-question-card .button,.delete-question-card button{width:100%}.delete-question-card .actions{flex-direction:column}.form-card-heading{align-items:center}.quiz-heading-row{align-items:stretch;flex-direction:column}.learning-language-switch{justify-content:space-between}.learning-language-switch>span{margin-right:auto}.quiz-panel.assessment-only .lesson-download-list{grid-template-columns:1fr}.lesson-download-link{grid-template-columns:38px minmax(0,1fr)}.lesson-download-action{grid-column:1/-1;text-align:center}.question-language-fields{grid-template-columns:1fr}.question-language-fields>label:first-child{grid-column:auto}.bilingual-form-note{align-items:flex-start;flex-direction:column}.question-delete-actions{flex-direction:column-reverse}.question-delete-actions button{width:100%}.question-delete-summary{align-items:flex-start;flex-direction:column}.question-deleted-state{align-items:center;flex-direction:column;text-align:center} }
@media (max-width:680px) { .presentation-media-body{grid-template-columns:1fr}.presentation-media-list{display:flex;max-height:none;overflow-x:auto;border-right:0;border-bottom:1px solid #dde6e9}.presentation-media-item{min-width:190px}.presentation-media-panel video{max-height:230px} }
@media (max-width:680px) { .lesson-slide-player{min-height:0;flex:none}.lesson-slide-stage{min-height:0;aspect-ratio:16/9}.lesson-slide-arrow{width:38px;height:48px;font-size:30px;opacity:.72}.lesson-slide-arrow.previous{left:7px}.lesson-slide-arrow.next{right:7px}.lesson-slide-player>footer{grid-template-columns:1fr auto 1fr}.lesson-slide-keyboard-hint{display:none}.lesson-slide-player>footer button:last-child{justify-self:end}.lesson-slide-player>footer button:first-child{justify-self:start} }
@media (max-width:850px) { .lesson-detail-languages,.lesson-admin-attachments,.lesson-admin-resource-grid,.lesson-resource-language-grid{grid-template-columns:1fr}.lesson-detail-stats{grid-template-columns:repeat(2,1fr)}.current-attachments>div{grid-template-columns:1fr} }
@media (max-width:680px) { .current-lesson-resource{align-items:stretch;flex-direction:column}.remove-resource-check{white-space:normal}.lesson-detail-card{padding:20px}.lesson-detail-header .actions,.lesson-detail-header .button{width:100%}.lesson-detail-header .actions{flex-direction:column}.lesson-admin-media{height:52vh;min-height:340px}.lesson-admin-attachments a{grid-template-columns:44px minmax(0,1fr)}.lesson-admin-attachments a>b{grid-column:1/-1;text-align:center}.lesson-actions{min-width:220px}.lesson-delete-dialog .question-delete-summary{flex-direction:row}.lesson-delete-dialog .question-delete-actions{flex-direction:column-reverse} }
@media (max-width:680px) { .learning-workspace-button [data-learning-workspace-label]{display:none} }
@media (max-width:520px) { .learning-confirm-dialog header{grid-template-columns:42px minmax(0,1fr) 36px;padding:15px}.learning-confirm-icon{width:42px;height:42px;border-radius:11px}.learning-confirm-dialog h2{font-size:18px}.learning-confirm-body{padding:18px 16px 15px}.learning-confirm-dialog footer{align-items:stretch;flex-direction:column-reverse;padding:12px 16px 16px}.learning-confirm-dialog footer button{width:100%} }
@media (prefers-reduced-motion:reduce) { html:has(body.expert-learning-page),body.expert-learning-page{scroll-snap-type:none} }
@media (max-width:680px) { .certification-admin-header .actions,.certification-admin-header .button{width:100%}.cert-admin-section{padding:22px 18px}.cert-section-title,.cert-title-copy{align-items:flex-start}.cert-section-title{gap:12px}.cert-section-count{white-space:nowrap}.cert-admin-section .settings-form{margin-top:18px}.cert-settings-save{width:100%} }

/* Medical case workspace */
.medical-section { --section-accent:var(--primary); --section-soft:#effafb; --section-surface:#f8fdfd; --section-ink:var(--dark); position:relative; overflow:hidden; border-color:color-mix(in srgb,var(--section-accent) 34%,#d8e1e5); border-top:5px solid var(--section-accent); background:linear-gradient(145deg,var(--section-soft),#fff 42%); }
.medical-section::before { position:absolute; top:-72px; right:-54px; width:190px; height:190px; content:""; background:var(--section-accent); border-radius:50%; opacity:.055; pointer-events:none; }
.demographic-section { --section-accent:#c94c5d; --section-soft:#fff0f1; --section-surface:#fff8f8; --section-ink:#7e2835; }
.assessment-section { --section-accent:#e88a2b; --section-soft:#fff4e7; --section-surface:#fffaf3; --section-ink:#8c4b0b; }
.therapy-section { --section-accent:#39a36b; --section-soft:#eaf8f0; --section-surface:#f5fcf8; --section-ink:#1e6d45; }
.clinical-observation-section { --section-accent:#48b9c1; --section-soft:#e8f9fb; --section-surface:#f5fdfe; --section-ink:#226f76; }
.expert-note-section { --section-accent:#397fc4; --section-soft:#eaf4ff; --section-surface:#f5faff; --section-ink:#225b94; }
.assessment-result-section { --section-accent:#536fc1; --section-soft:#edf0ff; --section-surface:#f7f8ff; --section-ink:#344f86; }
.medical-section-heading { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding-bottom:14px; border-bottom:1px solid color-mix(in srgb,var(--section-accent) 28%,transparent); }
.medical-section-heading h2 { margin:2px 0 0; color:var(--section-ink); font-size:24px; }
.section-kicker { color:var(--section-accent); font-size:11px; font-weight:850; letter-spacing:.13em; }
.section-number { min-width:42px; height:42px; display:grid; place-items:center; color:#fff; background:var(--section-accent); border-radius:12px; box-shadow:0 7px 16px color-mix(in srgb,var(--section-accent) 24%,transparent); font-size:13px; font-weight:850; }
.privacy-chip { padding:5px 10px; color:#225b94; background:#d8eaff; border:1px solid #afd2f4; border-radius:999px; font-size:12px; font-weight:800; }
.consultation-brief { border-top:5px solid #8596a1; background:linear-gradient(145deg,#f1f5f7,#fff 44%); }
.consultation-brief .medical-section-heading { border-bottom-color:#d7e0e5; }
.consultation-responses { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }

.profile-review.demographic-grid { position:relative; z-index:1; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-top:16px; padding:0; background:transparent; }
.profile-review.demographic-grid>div { min-height:90px; padding:14px; background:rgba(255,255,255,.82); border:1px solid color-mix(in srgb,var(--section-accent) 22%,#d8e1e5); border-radius:9px; box-shadow:0 3px 10px rgba(63,45,48,.04); }
.profile-review.demographic-grid small { color:color-mix(in srgb,var(--section-ink) 72%,#6c757d); }
.profile-review.demographic-grid strong { color:var(--section-ink); overflow-wrap:anywhere; }

.grid-form fieldset.medical-section { border-top-width:5px; }
.grid-form fieldset.medical-section legend { color:var(--section-ink); background:color-mix(in srgb,var(--section-soft) 84%,#fff); border-bottom-color:color-mix(in srgb,var(--section-accent) 25%,#d8e1e5); }
.grid-form fieldset.medical-section legend span { color:var(--section-accent); }
.grid-form fieldset.medical-section>.profile-review { margin:20px; }

.structured-annotation-panel,.draft-observation { position:relative; z-index:1; margin-top:18px; padding:18px; color:var(--ink); background:linear-gradient(145deg,#e9fafc,#f8feff); border:1px solid #9cdde2; border-left:5px solid var(--primary); border-radius:10px; box-shadow:0 4px 13px rgba(40,132,139,.08); }
.structured-annotation-panel .annotation-heading,.draft-observation .annotation-heading { border-bottom-color:#bde7ea; }
.structured-annotation-panel .annotation-heading strong,.draft-observation .annotation-heading strong { color:#237a82; }
.clinical-observation-content { position:relative; z-index:1; margin-top:18px; color:var(--ink); }
.clinical-observation-content>.annotation-heading { padding-bottom:10px; border-bottom:2px solid #9cdde2; }
.clinical-observation-content>.annotation-heading strong { color:#237a82; }
.clinical-observation-content>.annotation-empty { margin:0; padding:18px 2px 6px; }
.clinical-observation-content>.draft-observation { margin-top:14px; }
.observation-request-context { position:relative; z-index:1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px; }
.observation-request-context>div { padding:14px 16px; background:rgba(255,255,255,.76); border:1px solid #bee5e8; border-radius:9px; }
.observation-request-context small { color:#3f878d; font-weight:800; }
.observation-request-context p { margin:5px 0 0; color:#31565c; }
.clinical-observation-section .consultation-responses { position:relative; z-index:1; padding:16px; background:rgba(255,255,255,.7); border:1px solid #bee5e8; border-radius:9px; }
.observation-editor { display:grid; gap:14px; margin-top:14px; }
.observation-topic-field { max-width:520px; color:#245d63; }
.observation-topic { border-color:#8dcbd0; }
.observation-fields { display:none; gap:14px; }
.observation-editor.is-active .observation-fields { display:grid; }
.observation-other-topic { max-width:520px; color:#245d63; }
.observation-other-topic[hidden] { display:none; }
.observation-description,.observation-plan { color:#245d63; }
.observation-phase-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.observation-outcome-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.observation-phase-grid label,.observation-outcome-grid label { padding:11px; color:#315d62; background:rgba(255,255,255,.74); border:1px solid #c4e7e9; border-radius:8px; font-size:13px; }
.observation-phase-grid select,.observation-outcome-grid select { background:#fff; }
.structured-annotation-form { gap:12px; }
.observation-add-button { justify-self:end; }
.draft-observation-list,.draft-observation-items { display:grid; gap:14px; }
.draft-observation { margin-top:0; }
.draft-observation-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:10px; border-bottom:1px solid #bde7ea; }
.draft-observation-heading strong { color:#237a82; }
.draft-observation-heading>span { color:#628087; font-size:12px; font-weight:700; }
.draft-observation-remove { min-height:32px; padding:4px 10px; color:#7d3941; background:#fff; border-color:#d8aeb3; font-size:12px; }
.draft-observation-remove:hover { color:#fff; background:#b94b58; border-color:#b94b58; }
.draft-observation-toolbar { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:2px; }
.draft-observation-toolbar .observation-add-button { justify-self:auto; }
.draft-observation-toolbar small { color:#628087; }
.draft-observation-toolbar button:disabled { color:#718187; background:#e5edef; border-color:#ccd8dc; cursor:not-allowed; }
.observation-entry { border-left-color:var(--primary-hover); }
.observation-entry>p { color:#35515a; }
.observation-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; margin:13px 0 0; }
.observation-metrics>div { min-width:0; padding:8px 9px; background:#eff9fa; border:1px solid #d0eaec; border-radius:7px; }
.observation-metrics dt { color:#628087; font-size:11px; }
.observation-metrics dd { margin:2px 0 0; color:#274e55; font-size:13px; font-weight:800; overflow-wrap:anywhere; }
.improvement-badge { display:inline-block; padding:2px 7px; border-radius:999px; font-size:11px; text-transform:uppercase; }
.improvement-badge.yes { color:#17643c; background:#dff4e7; }
.improvement-badge.no { color:#8b3f44; background:#fae4e5; }
.observation-plan-display { margin-top:13px; padding:12px 14px; color:#31565c; background:#f6fcfc; border:1px solid #c4e7e9; border-radius:8px; }
.observation-plan-display strong { color:#237a82; }
.observation-plan-display p { margin:5px 0 0; }
.observation-table-wrap { width:100%; max-width:100%; min-width:0; margin-top:14px; overflow-x:auto; border:1px solid #c3e4e7; border-radius:10px; box-shadow:0 3px 10px rgba(40,132,139,.07); scrollbar-gutter:stable; }
.observation-table { width:100%; min-width:1080px; border-collapse:collapse; background:#fff; font-size:13px; }
.observation-table th { padding:12px 13px; color:#246b72; background:#eaf8f9; border-right:1px solid #cfe9eb; border-bottom:2px solid #8fd4d9; text-align:left; white-space:nowrap; }
.observation-table th:last-child,.observation-table td:last-child { border-right:0; }
.observation-table td { padding:13px; color:#31565c; border-right:1px solid #e0eef0; border-bottom:1px solid #d8eaec; vertical-align:top; }
.observation-table tbody tr:last-child td { border-bottom:0; }
.observation-data-row:nth-child(4n+3) td { background:#f8fcfc; }
.observation-topic-cell { min-width:260px; }
.observation-topic-cell strong { display:block; color:#126f78; font-size:14px; }
.observation-topic-cell p { margin:5px 0; color:#425f65; white-space:normal; }
.observation-topic-cell small { color:#7a9297; }
.observation-choice-cell { min-width:92px; text-align:center; }
.observation-plan-cell { min-width:260px; white-space:normal; }
.observation-table .observation-empty-cell { padding:24px; color:#7a9297; background:#fbfdfd; text-align:center; }
.observation-response-row>td { padding:12px 14px 16px; background:#f1f8ff; border-right:0; }
.observation-response-row .observation-replies,.observation-response-row .observation-answer-form { margin-left:0; }
.observation-response-row .observation-replies+.observation-answer-form { margin-top:10px; }

.expert-decision-form { display:grid; gap:16px; margin-top:16px; }
.expert-decision-form fieldset { margin:0; padding:0; border:0; }
.expert-decision-form legend { margin-bottom:9px; color:#225b94; font-weight:800; }
.decision-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.decision-options label { grid-template-columns:auto 1fr; align-items:center; gap:11px; padding:15px; background:rgba(255,255,255,.82); border:1px solid #b6d5f1; border-radius:9px; cursor:pointer; }
.decision-options input { width:20px; height:20px; margin:0; accent-color:#397fc4; }
.decision-options span { display:grid; }
.decision-options b { color:#225b94; }
.decision-options small { color:#6684a0; }
.expert-decision-form>button,.expert-reply-form>button { justify-self:end; color:#fff; background:#397fc4; border-color:#286dab; }
.expert-decision-result { display:flex; align-items:center; gap:14px; margin-top:16px; padding:16px; background:rgba(255,255,255,.78); border:1px solid #b6d5f1; border-radius:10px; }
.expert-decision-result>span { width:44px; height:44px; display:grid; place-items:center; flex:0 0 44px; color:#fff; background:#397fc4; border-radius:50%; font-size:25px; font-weight:900; }
.expert-decision-result.failed>span { background:#bd4c59; }
.expert-decision-result div { display:grid; }
.expert-decision-result small,.expert-decision-result p { margin:0; color:#6684a0; }
.expert-decision-result strong { color:#225b94; font-size:20px; }
.expert-decision-result.failed strong { color:#8b3440; }
.expert-decision-reason { margin-top:12px; padding:14px 16px; background:rgba(255,255,255,.78); border:1px solid #b6d5f1; border-radius:10px; }
.expert-decision-reason small { color:#397fc4; font-weight:800; }
.expert-decision-reason p { margin:6px 0 0; color:#345a78; }
.expert-reply-form { display:grid; gap:12px; margin-top:16px; }

.medical-video-section { --section-accent:#2d3f4a; --section-soft:#111a20; --section-surface:#0b1115; --section-ink:#f2f7f8; color:#e8f1f3; background:linear-gradient(145deg,#18252c,#050708 72%); border-color:#263d49; border-top-color:#050708; box-shadow:0 8px 24px rgba(4,10,13,.22); }
.medical-video-section::before { background:#76d9de; opacity:.07; }
.medical-video-section .medical-section-heading { border-bottom-color:#314851; }
.medical-video-section .medical-section-heading h2,.medical-video-section .media-review h3 { color:#f3f9fa; }
.medical-video-section .section-kicker { color:#7ad6da; }
.video-view-filter { width:auto; min-width:0; display:flex; align-items:center; gap:7px; flex:0 0 auto; color:#9fbbc0; font-size:12px; font-weight:750; white-space:nowrap; }
.video-view-filter select { width:132px; min-height:38px; padding:6px 28px 6px 10px; color:#eaf5f6; background:#142129; border-color:#405963; font-size:13px; }
.video-file-option[hidden] { display:none; }
.medical-video-section .section-number { color:#10252b; background:#70ced3; }
.medical-video-section .media-review { border-top-color:#314851; }
.medical-video-section .video-file-picker { color:#dff7f8; }
.medical-video-section .video-file-trigger { color:#eaf5f6; background:#142129; border-color:#405963; }
.medical-video-section .video-file-menu { background:#142129; border-color:#405963; }
.medical-video-section .video-file-option { color:#eaf5f6; background:#142129; }
.medical-video-section .video-file-option:hover,.medical-video-section .video-file-option.selected { background:#20343d; }
.medical-video-section .video-option-copy small { color:#9fbbc0; }
.medical-video-section .media-grid article { border-color:#304751; background:#050708; }
.medical-video-section .annotation-panel { color:#e4eef0; background:#111d23; border-top-color:#304751; }
.medical-video-section .annotation-heading { border-bottom-color:#304751; }
.medical-video-section .annotation-heading strong { color:#f3f9fa; }
.medical-video-section .annotation-heading span,.medical-video-section .annotation-empty,.medical-video-section .captured-time { color:#9fb5ba; }
.medical-video-section .annotation-form { border-top-color:#405963; }
.medical-video-section .annotation-entry { color:#263f49; }
.medical-video-section .mark-check { color:#dcebed; }
.medical-video-section .draft-annotation { color:#e4eef0; background:#111d23; }
.medical-video-section .draft-annotation label { color:#dcebed; }
.medical-video-section .media-approval { margin-top:14px; color:#dff3e7; background:#163027; border-color:#315d49; }
@media (max-width:680px) { .video-view-filter span{display:none}.video-view-filter select{width:120px} }
.video-empty { margin:18px 0 0; padding:28px; color:#9fb5ba; border:1px dashed #405963; border-radius:9px; text-align:center; }
.case-review-content { display:grid; gap:22px; }
.case-review-content>.card { margin-bottom:0; }
.case-metadata { margin-top:0; padding:0; overflow:hidden; }
.case-metadata summary { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 24px; color:var(--dark); font-weight:800; cursor:pointer; list-style:none; }
.case-metadata summary::-webkit-details-marker { display:none; }
.case-metadata summary::after { content:'⌄'; margin-left:auto; color:var(--muted); font-size:20px; line-height:1; transition:transform .18s ease; }
.case-metadata[open] summary::after { transform:rotate(180deg); }
.case-metadata summary small { color:var(--muted); font-size:12px; font-weight:500; }
.case-metadata-body { padding:0 24px 22px; border-top:1px solid var(--line); }
.case-metadata-body dl { padding-top:18px; }
.observation-thread-item { display:grid; gap:10px; }
.observation-thread-item>.observation-entry { margin:0; }
.observation-replies { display:grid; gap:8px; margin-left:24px; }
.observation-reply { padding:12px 14px; background:#eef6ff; border:1px solid #c5ddf3; border-left:4px solid #397fc4; border-radius:8px; }
.observation-reply header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.observation-reply header strong { color:#225b94; }
.observation-reply header small { color:var(--muted); }
.observation-reply p { margin:8px 0 0; white-space:normal; }
.observation-answer-form { display:grid; gap:10px; margin-left:24px; padding:14px; background:#eef6ff; border:1px dashed #8fbce4; border-radius:8px; }
.observation-answer-form label { color:#225b94; font-weight:800; }
.observation-answer-form textarea { margin-top:7px; background:#fff; }
.observation-answer-form button { justify-self:end; color:#fff; background:#397fc4; border-color:#286dab; }

@media (max-width:1000px) {
  .profile-review.demographic-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .observation-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:680px) {
  .profile-review.demographic-grid,.observation-phase-grid,.observation-outcome-grid,.observation-request-context,.decision-options { grid-template-columns:1fr; }
  .observation-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .medical-section-heading { align-items:center; }
  .medical-section-heading h2 { font-size:21px; }
  .structured-annotation-panel,.draft-observation { padding:14px; }
  .observation-add-button,.expert-decision-form>button,.expert-reply-form>button,.observation-answer-form button { width:100%; }
  .observation-replies,.observation-answer-form { margin-left:0; }
  .observation-reply header,.case-metadata summary { align-items:flex-start; flex-direction:column; }
  .case-metadata summary::after { position:absolute; right:22px; }
  .learning-result-notice { align-items:stretch; flex-direction:column; }
  .learning-next-action { width:100%; }
}

@media (max-width:680px) {
  .lesson-downloads { overflow-x:auto; }
  .lesson-download-link { grid-template-columns:28px minmax(0,1fr) auto; }
  .lesson-download-action { grid-column:auto; }
}
