:root {
    --ink: #18302b;
    --muted: #65746f;
    --line: #dbe5e1;
    --paper: #fff;
    --canvas: #f3f7f5;
    --green: #2f7564;
    --green-dark: #235b4e;
    --green-soft: #dcece6;
    --blue-soft: #dfeaf3;
    --amber-soft: #f7ead0;
    --red: #9d4747;
    --red-soft: #f6dfdf;
    --shadow: 0 12px 34px rgba(26, 56, 48, .09);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.management-login-page { min-height: 100vh; background: radial-gradient(circle at 10% 10%, #e0eee9 0, transparent 34%), linear-gradient(145deg, #f8faf9, #eaf2ef); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid rgba(47,117,100,.16); border-radius: 24px 8px 24px 8px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.brand-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 18px 5px 18px 5px; color: #fff; background: var(--green); font-weight: 900; font-size: 21px; }
h1, h2, h3, p { margin-top: 0; }
.login-card h1 { margin-bottom: 10px; font-size: clamp(25px, 5vw, 34px); }
.eyebrow { margin-bottom: 6px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.lead, .header-subtitle, .help, .footnote { color: var(--muted); line-height: 1.55; }
.login-card label, .form-card label { display: grid; gap: 7px; margin-top: 15px; font-weight: 700; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid #cbd8d3; border-radius: 13px 4px 13px 4px; background: #fff; color: var(--ink); padding: 12px 13px; outline: none; }
input, select { min-height: 45px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,117,100,.12); }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-field .text-button { position: absolute; right: 6px; top: 5px; }
.primary-button, .secondary-button, .danger-button, .nav-button, .quick-action { border: 0; border-radius: 15px 5px 15px 5px; padding: 12px 18px; font-weight: 800; transition: transform .12s ease, filter .12s ease; }
.primary-button { margin-top: 20px; color: #fff; background: var(--green); }
.primary-button:hover, .quick-action:hover { filter: brightness(.96); transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.secondary-button { color: var(--green-dark); background: var(--green-soft); border: 1px solid #c4dbd2; }
.danger-button { color: #7d3232; background: var(--red-soft); }
.text-button { border: 0; background: transparent; color: var(--green); font-weight: 800; padding: 9px; }
.compact { width: auto; min-height: 39px; margin-top: 0; padding: 9px 14px; }
.footnote { margin: 20px 0 0; text-align: center; font-size: 12px; }
.notice { margin-top: 14px; padding: 13px 15px; border-radius: 13px 4px 13px 4px; white-space: pre-line; line-height: 1.45; }
.notice.error { color: #792e2e; background: var(--red-soft); border: 1px solid #e8baba; }
.notice.success { color: #205d4e; background: var(--green-soft); border: 1px solid #b8d6cb; }
.notice.warning { color: #765715; background: var(--amber-soft); border: 1px solid #dfca91; }

.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px max(20px, calc((100vw - 1320px)/2)); color: #fff; background: #294f46; }
.app-header h1 { margin-bottom: 5px; font-size: clamp(22px, 4vw, 31px); }
.app-header .eyebrow { color: #bcdacf; }
.header-subtitle { margin: 0; color: #dfece8; }
.app-header .secondary-button { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.app-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px max(16px, calc((100vw - 1320px)/2)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav-button { flex: 0 0 auto; color: #49605a; background: transparent; }
.nav-button.active { color: #fff; background: var(--green); }
.app-main { width: min(1320px, calc(100% - 32px)); margin: 26px auto 70px; }
.page-panel { display: none; animation: reveal .18s ease; }
.page-panel.active { display: block; }
@keyframes reveal { from { opacity: .45; transform: translateY(5px); } }
.page-heading, .section-heading, .filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.page-heading { margin-bottom: 20px; }
.page-heading h2 { margin-bottom: 0; font-size: clamp(25px, 4vw, 38px); }
.section-heading h3, .section-heading p { margin-bottom: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 14px; }
.metric-card { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px 6px 18px 6px; box-shadow: 0 6px 18px rgba(26,56,48,.05); }
.metric-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.metric-card strong { font-size: 30px; }
.metric-card.credit-card { background: var(--green-soft); }
.context-summary { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-height: 48px; margin: -6px 0 18px; padding: 9px 13px; color: var(--green-dark); background: #eaf3ef; border: 1px solid #c8ddd5; border-left: 5px solid var(--green); border-radius: 13px 4px 13px 4px; }
.context-summary > strong { margin-right: auto; }
.context-summary > span { padding: 5px 9px; color: #365950; background: rgba(255,255,255,.82); border-radius: 999px; font-size: 12px; font-weight: 800; }
.context-summary.no-live { color: #6b5526; background: #fbf3df; border-color: #ead4a4; border-left-color: #c58a2a; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.quick-action { display: grid; grid-template-columns: 34px 1fr; text-align: left; column-gap: 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.quick-action span { grid-row: 1/3; color: var(--green); font-weight: 900; }
.quick-action small { color: var(--muted); margin-top: 4px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel-card { margin-bottom: 18px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px 6px 20px 6px; box-shadow: 0 6px 22px rgba(26,56,48,.05); }
.form-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; align-content: start; }
.form-card h3, .form-card > .section-heading, .full-field, .form-card > button, .topics-box { grid-column: 1/-1; }
.embedded-form { margin-top: 0; padding: 5px 16px 18px; background: transparent; box-shadow: none; }
.company-choice-card { border-left-color: #6c9e8e; }
.login-link { display: block; margin: 8px auto 0; }
.check-label { display: flex !important; align-items: center; gap: 9px !important; }
.check-label input { width: 20px; min-height: 20px; }
.file-field input { padding: 8px; }
.help { font-size: 13px; margin: 10px 0 0; }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 12px; font-weight: 800; }
.record-list { display: grid; gap: 9px; margin-top: 15px; }
.record-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(110px, 1fr)) auto; align-items: center; gap: 12px; padding: 13px 15px; background: #f8faf9; border-left: 4px solid #b9d2c9; border-radius: 9px; }
.record-row.employee-row { grid-template-columns: 28px minmax(180px, 1.4fr) repeat(3, minmax(110px, 1fr)) auto; }
.record-row strong, .record-row small { display: block; }
.record-row small { color: var(--muted); margin-top: 3px; }
.employee-select { display: grid; place-items: center; width: 28px; min-height: 32px; cursor: pointer; }
.employee-select input { width: 20px; min-height: 20px; margin: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.record-row.workplace-row { grid-template-columns: minmax(180px,1.35fr) minmax(190px,1.15fr) minmax(140px,.85fr) minmax(190px,1.1fr); align-items: start; }
.workplace-detail span { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.workplace-actions { grid-column: 1/-1; justify-content: flex-end; padding-top: 11px; border-top: 1px solid var(--line); }
.workplace-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.workplace-form-actions button { width: 100%; margin-top: 0; }
.secondary-button:disabled, .primary-button:disabled { opacity: .48; cursor: not-allowed; filter: grayscale(.2); transform: none; }
.record-list.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.training-card { padding: 19px; background: #fff; border: 1px solid var(--line); border-left: 6px solid #84afa0; border-radius: 15px 5px 15px 5px; }
.training-card h3 { margin-bottom: 7px; }
.training-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 13px 0; }
.training-meta span { padding: 6px 9px; background: #eef4f1; border-radius: 999px; font-size: 12px; }
.training-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.signing-bridge-panel { margin: 16px 0; padding: 18px; border: 2px solid #7ca99b; border-radius: 18px 6px 18px 6px; background: linear-gradient(135deg,#f7fbf9,#eef6f2); }
.signing-bridge-panel h4 { margin: 0; font-size: 1.08rem; }
.signing-bridge-panel p { line-height: 1.55; }
.signing-code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.signing-code { display: inline-block; padding: 12px 18px; border: 1px dashed #437d6d; border-radius: 12px; background: #fff; color: #174f41; font-size: 1.55rem; letter-spacing: .18em; font-variant-numeric: tabular-nums; user-select: all; }
.report-bulk-actions { margin: 14px 0; padding: 12px; background: var(--green-soft); border-radius: 13px 4px 13px 4px; }
.report-bulk-actions .report-download-button { margin-top: 0; color: #fff; background: var(--green-dark); border: 1px solid var(--green-dark); box-shadow: 0 4px 12px rgba(34,91,75,.18); }
.report-bulk-actions .report-download-button:hover { filter: brightness(1.08); }
#trainingReportsMessage { margin: 0 0 14px; }
.trainer-row { grid-template-columns: minmax(190px, 1.5fr) minmax(150px, 1fr) auto; }
.topics-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.topic-row { display: grid; grid-template-columns: 2fr 1fr 130px 1.4fr auto; align-items: end; gap: 10px; margin-top: 12px; padding: 13px; background: #f6f9f8; border-radius: 14px 4px 14px 4px; }
.topic-row label { margin-top: 0; }
.filter-row { justify-content: flex-start; }
.filter-row > input, .filter-row > select, .filter-row > label { width: auto; min-width: min(260px, 100%); flex: 1; }
.selection-list { max-height: 420px; overflow: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.selection-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.selection-row:last-child { border-bottom: 0; }
.selection-row input { width: 20px; min-height: 20px; }
.selection-row span { flex: 1; }
.question-list { max-height: 430px; overflow: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.question-row { align-items: flex-start; }
.question-row strong, .question-row small { display: block; }
.question-row small { margin-top: 5px; color: var(--muted); }
.question-row em { min-width: 78px; color: var(--green); font-style: normal; font-weight: 800; text-align: right; }
.question-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.question-row-actions .text-button { margin: 0; white-space: nowrap; }
.question-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.question-form-actions button { margin: 0; }
.question-import-form { grid-template-columns: minmax(260px, 1fr) auto; }
.exam-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.exam-settings label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.exam-missing { border-color: #c88b2a; color: #8a5700; }
.table-shell { overflow: auto; border: 1px solid var(--line); border-radius: 18px 5px 18px 5px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 830px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #e8f1ed; color: #385a51; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:nth-child(even) { background: #f8faf9; }
.floating-notice { position: fixed; z-index: 80; left: 50%; top: 88px; width: min(520px, calc(100% - 32px)); transform: translateX(-50%); box-shadow: var(--shadow); }
.busy-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink); background: rgba(239,245,242,.9); backdrop-filter: blur(4px); }
.spinner { width: 48px; height: 48px; border: 5px solid #c4dbd2; border-top-color: var(--green); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy-overlay span { color: var(--muted); }
.empty { padding: 24px; text-align: center; color: var(--muted); }
.video-preview-open { overflow: hidden; }
.video-preview-overlay[hidden] { display: none; }
.video-preview-overlay { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(15,31,27,.86); backdrop-filter: blur(5px); }
.video-preview-card { width: min(980px, 100%); max-height: calc(100vh - 48px); padding: 18px; overflow: auto; background: #fff; border-radius: 18px 5px 18px 5px; box-shadow: 0 22px 70px rgba(0,0,0,.38); }
.video-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.video-preview-heading h3, .video-preview-heading p { margin: 0; }
.video-preview-card video { display: block; width: 100%; max-height: calc(100vh - 160px); background: #101513; border-radius: 12px 3px 12px 3px; }

.step-rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.step-rail li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 9px 11px; color: var(--muted); background: #e9efec; border-radius: 13px 4px 13px 4px; font-size: 13px; font-weight: 800; }
.step-rail li span { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #fff; }
.step-rail li.active { color: #fff; background: var(--green); }
.step-rail li.active span { color: var(--green); }
.step-rail li.done { color: var(--green-dark); background: var(--green-soft); }
.step-rail li.step-available { cursor: pointer; }
.step-rail li.step-available:not(.active):hover, .step-rail li.step-available:not(.active):focus { outline: 2px solid #6f9f90; outline-offset: 2px; transform: translateY(-1px); }
.step-rail li.step-locked { cursor: not-allowed; opacity: .58; }
.planner-step { scroll-margin-top: 80px; }
.planner-step > h3 { margin-bottom: 18px; font-size: clamp(21px, 3vw, 29px); }
.wide-label { display: grid; gap: 7px; max-width: 720px; font-size: 14px; font-weight: 800; }
.info-band { margin-top: 14px; padding: 15px; color: #31554c; background: var(--blue-soft); border-left: 5px solid #7098b3; border-radius: 12px 4px 12px 4px; font-weight: 700; }
.ibys-workplace-note { display: grid; gap: 7px; }
.ibys-workplace-note span { font-size: 13px; font-weight: 600; }
.ibys-workplace-note a { color: var(--green-dark); font-weight: 900; }
.ibys-status-text { font-weight: 800; }
.step-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.step-actions .primary-button, .step-actions .secondary-button { margin-top: 0; }
.expand-card { margin: 12px 0; border: 1px solid var(--line); border-radius: 14px 4px 14px 4px; background: #f8faf9; }
.expand-card summary { cursor: pointer; padding: 15px 17px; color: var(--green-dark); font-weight: 900; }
.expand-card[open] summary { border-bottom: 1px solid var(--line); }
.inline-form { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)) auto; align-items: end; gap: 12px; padding: 16px; }
.inline-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.inline-form button { margin: 0; }
.template-download { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.template-button { align-self: end; justify-self: start; text-decoration: none; }
.excel-mapping { margin-top: 10px; padding: 14px; background: #eef5f2; border: 1px solid #c9dcd5; border-radius: 12px 4px 12px 4px; }
.excel-mapping > strong { color: var(--green-dark); }
.excel-mapping > .help { margin: 6px 0 12px; }
.excel-mapping > .mapping-warning { margin: 0 0 12px; font-weight: 800; }
.excel-mapping select.manual-mapping-required { border: 2px solid #b74747; background: #fff7f4; box-shadow: 0 0 0 3px rgba(183, 71, 71, .12); }
.excel-mapping select.manual-mapping-advisory { border: 2px solid #c58a2a; background: #fffaf0; box-shadow: 0 0 0 3px rgba(197, 138, 42, .12); }
.excel-mapping-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; }
.excel-mapping-grid label { display: grid; gap: 6px; margin: 0; font-size: 13px; font-weight: 800; }
.employee-import-form .excel-mapping { grid-column: 1/-1; }
.compact-form { padding: 5px 16px 17px; }
.employee-row.invalid-record, .invalid-record { background: #fff0e7 !important; border-left-color: #d67b46 !important; }
.employee-row.invalid-record strong, .invalid-record em { color: #994b21; }
.phone-warning-record { background: #fffaf0; border-left: 4px solid #c58a2a; }
.participant-list .selection-row .participant-issue { color: #934b1b; font-weight: 800; }
.participant-list .selection-row .participant-edit { flex: 0 0 auto; }
.participant-list .selection-row em { min-width: 120px; color: var(--muted); font-style: normal; font-weight: 700; text-align: right; }
.selection-summary { display: flex; justify-content: flex-end; color: var(--green-dark); }
.file-trigger { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; min-width: 0 !important; cursor: pointer; }
.total-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.total-badges span { padding: 8px 11px; color: #37584f; background: var(--green-soft); border-radius: 999px; font-size: 13px; }
.topic-catalog { display: grid; gap: 8px; margin: 18px 0; }
.topic-group-title { position: sticky; top: 63px; z-index: 5; margin: 12px 0 0; padding: 10px 14px; color: #fff; background: #557d72; border-radius: 12px 4px 12px 4px; }
.catalog-row { display: grid; grid-template-columns: minmax(260px, 2.4fr) 105px minmax(210px, 1.4fr) auto; align-items: end; gap: 10px; padding: 12px; background: #f7f9f8; border: 1px solid var(--line); border-left: 5px solid #cad8d3; border-radius: 11px; }
.catalog-row.selected { background: #edf6f2; border-left-color: var(--green); }
.catalog-row > label:not(.topic-check) { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.topic-check { display: flex; align-items: center; gap: 11px; }
.topic-check input { flex: 0 0 20px; width: 20px; min-height: 20px; }
.topic-check span { flex: 1; }
.topic-check strong, .topic-check small { display: block; }
.topic-check small { margin-top: 3px; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.summary-card { min-width: 0; padding: 17px; background: #f7faf8; border: 1px solid var(--line); border-top: 5px solid #8eb8aa; border-radius: 13px 4px 13px 4px; }
.summary-card h4 { margin: 0 0 10px; }
.summary-card p { margin: 5px 0; }
.summary-card ul { max-height: 260px; overflow: auto; margin: 8px 0 0; padding-left: 20px; }
.summary-card li { margin: 6px 0; line-height: 1.35; }
.warning-text { color: #9a451f; font-weight: 800; }
.summary-sms { margin: 18px 0 12px; padding: 13px; background: var(--amber-soft); border-radius: 12px 4px 12px 4px; }
.status-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--amber-soft); color: #765715; font-size: 12px; font-weight: 900; }
.status-badge.live { color: #205d4e; background: var(--green-soft); }
.ibys-response { flex-basis: 100%; display: block; padding: 8px 10px; border-left: 3px solid #7ca99b; background: #f3f8f6; color: #294b42; line-height: 1.4; }

@media (max-width: 980px) {
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-grid { grid-template-columns: 1fr 1fr; }
    .topic-row { grid-template-columns: 1fr 1fr; }
    .topic-row .danger-button { grid-column: 1/-1; }
    .step-rail { grid-template-columns: repeat(3, 1fr); }
    .catalog-row { grid-template-columns: 1fr 110px; }
    .catalog-row .topic-check { grid-column: 1/-1; }
    .summary-grid { grid-template-columns: 1fr; }
    .inline-form { grid-template-columns: 1fr 1fr; }
    .excel-mapping-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .app-header { padding: 18px 16px; }
    .app-main { width: min(100% - 20px, 1320px); margin-top: 18px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .two-column, .record-list.cards { grid-template-columns: 1fr; }
    .form-card { grid-template-columns: 1fr; }
    .form-card > * { grid-column: 1; }
    .record-row { grid-template-columns: 1fr 1fr; }
    .record-row.workplace-row { grid-template-columns: 1fr; }
    .record-row.workplace-row > div { grid-column: 1; }
    .workplace-actions { justify-content: stretch; }
    .workplace-actions > button, .workplace-actions > a { flex: 1 1 100%; text-align: center; }
    .workplace-form-actions { grid-template-columns: 1fr; }
    .record-row > div:first-child { grid-column: 1/-1; }
    .record-row.employee-row { grid-template-columns: 28px 1fr; }
    .record-row.employee-row > .employee-select { grid-column: 1; grid-row: 1; }
    .record-row.employee-row > .employee-primary { grid-column: 2; grid-row: 1; }
    .record-row.employee-row > .employee-detail, .record-row.employee-row > .record-actions { grid-column: 1/-1; }
    .record-actions { grid-column: 1/-1; justify-content: stretch; }
    .record-actions > button { flex: 1; }
    .quick-grid { grid-template-columns: 1fr; }
    .topic-row { grid-template-columns: 1fr; }
    .topic-row .danger-button { grid-column: 1; }
    .login-card { padding: 26px 22px; }
    .step-rail { display: flex; overflow-x: auto; }
    .step-rail li { flex: 0 0 auto; }
    .catalog-row, .inline-form { grid-template-columns: 1fr; }
    .excel-mapping-grid { grid-template-columns: 1fr; }
    .catalog-row .topic-check { grid-column: 1; }
    .participant-list .selection-row { align-items: flex-start; }
    .participant-list .selection-row em { min-width: 0; text-align: left; }
    .participant-list .selection-row .participant-edit { width: 100%; }
    .exam-settings { grid-template-columns: 1fr; }
    .question-row { flex-wrap: wrap; }
    .question-row-actions { width: 100%; justify-content: space-between; padding-left: 32px; }
    .question-row em { width: auto; text-align: left; padding-left: 0; }
    .step-actions > button { width: 100%; }
    .video-preview-overlay { padding: 10px; }
    .video-preview-card { max-height: calc(100vh - 20px); padding: 12px; }
    .video-preview-card video { max-height: calc(100vh - 125px); }
}
