@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root { --ink: #18231f; --muted: #69746d; --line: #dbe2dc; --paper: #f5f7f2; --white: #fff; --green: #1e6b55; --green-dark: #154d3e; --lime: #d9f08d; --orange: #e98955; --red: #b54c4c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
button, input, select, textarea { font: inherit; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, #eef3e8 0%, #f8f6ef 52%, #e7eee9 100%); }
.login-shell { width: min(1050px, 100%); display: grid; grid-template-columns: 1fr 0.9fr; background: var(--white); box-shadow: 0 24px 70px rgba(24,35,31,.12); min-height: 650px; overflow: hidden; }
.login-intro { padding: 58px; display: flex; flex-direction: column; justify-content: space-between; color: white; background: var(--green-dark); position: relative; overflow: hidden; }
.login-intro:after { content: ''; width: 360px; height: 360px; border: 1px solid rgba(217,240,141,.35); border-radius: 50%; position: absolute; right: -150px; bottom: -120px; box-shadow: 0 0 0 42px rgba(217,240,141,.05), 0 0 0 84px rgba(217,240,141,.04); }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--lime); color: var(--green-dark); font: 700 25px 'Playfair Display', serif; }
.eyebrow { margin: 0 0 14px; color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.login-intro .eyebrow { color: var(--lime); margin-top: auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 480px; margin-bottom: 20px; font: 700 clamp(34px, 4vw, 58px)/1.06 'Playfair Display', serif; letter-spacing: -.02em; }
.intro-copy { max-width: 430px; margin-bottom: 34px; color: #bdd1c7; font-size: 16px; line-height: 1.7; }
.intro-line { display: flex; gap: 10px; align-items: center; color: #bdd1c7; font-size: 13px; z-index: 1; }.intro-line span { width: 28px; height: 1px; background: var(--lime); }
.login-card { padding: 58px clamp(32px, 6vw, 74px); display: flex; flex-direction: column; justify-content: center; }.card-heading h2 { margin-bottom: 10px; font: 700 36px 'Playfair Display', serif; }.card-heading > p:last-child { color: var(--muted); line-height: 1.6; margin-bottom: 30px; }
.form-stack { display: grid; gap: 20px; } label { display: grid; gap: 8px; color: #34423a; font-size: 13px; font-weight: 600; } input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fbfcfa; color: var(--ink); padding: 13px 14px; outline: none; border-radius: 2px; } input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,107,85,.1); }.password-field { position: relative; }.password-field input { padding-right: 92px; }.toggle-password { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; color: var(--green); font-size: 12px; cursor: pointer; padding: 7px; }.button { border: 0; cursor: pointer; padding: 13px 18px; border-radius: 2px; font-weight: 700; display: inline-flex; justify-content: center; align-items: center; gap: 12px; text-decoration: none; }.button.primary { color: white; background: var(--green); }.button.primary:hover { background: var(--green-dark); }.button.secondary { color: var(--green-dark); background: var(--lime); }.button.ghost { color: var(--green); background: transparent; border: 1px solid var(--line); }.full { width: 100%; margin-top: 4px; }.demo-accounts { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 17px; font-size: 11px; color: var(--muted); }.demo-accounts span { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }.demo-accounts p { margin: 8px 0 0; line-height: 1.8; }
.alert { padding: 12px 14px; margin-bottom: 18px; font-size: 13px; border-left: 3px solid; }.alert.error { color: var(--red); background: #fff3f0; border-color: var(--red); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }.sidebar { background: var(--green-dark); color: #dce9e1; padding: 28px 20px; display: flex; flex-direction: column; }.sidebar-brand { display: flex; align-items: center; gap: 12px; color: white; font: 700 22px 'Playfair Display', serif; margin-bottom: 60px; }.sidebar-brand .brand-mark { width: 36px; height: 36px; font-size: 20px; }.nav-label { margin: 0 0 10px 12px; color: #8cab9d; text-transform: uppercase; font-size: 10px; letter-spacing: .14em; }.nav-link { display: flex; gap: 12px; align-items: center; padding: 12px; margin: 3px 0; color: #c8d9d0; text-decoration: none; font-size: 13px; }.nav-link.active, .nav-link:hover { color: var(--green-dark); background: var(--lime); }.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.14); padding: 18px 12px 0; font-size: 12px; }.sidebar-footer strong { display: block; color: white; margin-bottom: 4px; }.sidebar-footer span { color: #9db9ab; }
.main-content { padding: 32px 5vw; max-width: 1440px; width: 100%; }.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }.topbar h1 { font: 700 34px 'Playfair Display', serif; margin: 0; }.topbar p { color: var(--muted); margin: 5px 0 0; font-size: 13px; }.logout { color: var(--muted); font-size: 13px; text-decoration: none; }.logout:hover { color: var(--red); }.welcome { background: var(--green); color: white; padding: 29px 32px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }.welcome h2 { font: 700 28px 'Playfair Display', serif; margin: 0 0 6px; }.welcome p { color: #cce0d4; margin: 0; font-size: 13px; }.welcome .eyebrow { color: var(--lime); margin-bottom: 8px; }.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }.stat { background: var(--white); border: 1px solid var(--line); padding: 22px; }.stat-label { color: var(--muted); font-size: 12px; margin-bottom: 12px; }.stat-value { font: 700 32px 'Playfair Display', serif; }.stat-note { color: var(--green); font-size: 11px; margin-top: 8px; }.panel { background: white; border: 1px solid var(--line); padding: 25px; }.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }.panel h3 { font: 700 20px 'Playfair Display', serif; margin: 0; }.panel-heading p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 13px; } th { color: var(--muted); text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 0 12px 13px; border-bottom: 1px solid var(--line); } td { padding: 15px 12px; border-bottom: 1px solid #edf0ec; } td:first-child, th:first-child { padding-left: 0; }.badge { display: inline-block; padding: 5px 9px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }.badge.green { background: #e7f3df; color: var(--green); }.badge.orange { background: #fff0e5; color: #a95b26; }.empty { color: var(--muted); font-size: 13px; padding: 18px 0; }.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }.quick-actions .button { justify-content: flex-start; text-align: left; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.form-grid .wide { grid-column: 1 / -1; }.form-actions { display: flex; gap: 10px; margin-top: 18px; }.success { color: var(--green); background: #edf8ed; border-left: 3px solid var(--green); padding: 12px; font-size: 13px; margin-bottom: 18px; }
@media (max-width: 800px) { .login-shell { grid-template-columns: 1fr; }.login-intro { min-height: 350px; padding: 35px; }.login-intro h1 { font-size: 38px; }.login-card { padding: 38px 28px; }.app-shell { grid-template-columns: 1fr; }.sidebar { padding: 18px; }.sidebar-brand { margin-bottom: 20px; }.sidebar nav { display: flex; overflow-x: auto; gap: 4px; }.nav-label { display: none; }.nav-link { white-space: nowrap; }.sidebar-footer { display: none; }.main-content { padding: 25px 18px; }.topbar { margin-bottom: 30px; }.dashboard-grid { grid-template-columns: 1fr; }.welcome { align-items: flex-start; flex-direction: column; gap: 18px; }.form-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; } }

.button.small { padding: 8px 10px; font-size: 11px; }.button.danger { color: var(--red); background: #fff3f0; border: 1px solid #f1d2ca; }.actions { display: flex; align-items: center; gap: 7px; }.actions form { margin: 0; }.muted, td small { color: var(--muted); } td small { display: block; margin-top: 4px; font-size: 11px; }.success { padding: 12px 14px; margin-bottom: 18px; color: var(--green-dark); background: #e9f5df; border-left: 3px solid var(--green); font-size: 13px; }.certificate-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--paper); }.certificate { width: min(900px, 100%); min-height: 620px; padding: 90px 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: white; border: 12px solid var(--green-dark); outline: 1px solid var(--lime); outline-offset: -25px; }.certificate h1 { max-width: none; margin: 15px 0 25px; font-size: 48px; color: var(--green-dark); }.certificate h2 { margin: 10px 0 22px; font: 700 42px 'Playfair Display', serif; color: var(--green); }.certificate h3 { margin: 10px 0 5px; font: 700 25px 'Playfair Display', serif; }.certificate-copy, .certificate-subject, .certificate-date { color: var(--muted); }.certificate-score { margin: 28px 0 18px; padding: 10px 20px; color: var(--green-dark); background: var(--lime); font-weight: 700; }.print-page .sidebar, .print-page .topbar, .print-page .dashboard-grid, .print-page .form-grid, .print-page #users, .print-page .logout, .print-page .panel-heading a { display: none; }.print-page .app-shell { display: block; }.print-page .main-content { max-width: none; padding: 35px; }.print-page .panel { border: 0; }.print-page #results { display: block; }.print-page #results table { font-size: 12px; }.print-page #results .button { display: none; }
@media print { .certificate-page { padding: 0; background: white; }.certificate { width: 100%; min-height: 100vh; border-width: 10px; }.print-page .main-content { padding: 0; }.print-page .panel { padding: 0; } }
@media print { .print-page * { visibility: hidden !important; }.print-page #results, .print-page #results *, .print-page #scores, .print-page #scores * { visibility: visible !important; }.print-page #results, .print-page #scores { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; border: 0; background: white; }.print-page #results .panel-heading, .print-page #scores .panel-heading, .print-page #results .button, .print-page #scores .button, .print-page #results .actions, .print-page #scores .actions { display: none !important; }.print-page #results table, .print-page #scores table { width: 100%; font-size: 11px; }.print-page #results th, .print-page #scores th, .print-page #results td, .print-page #scores td { padding: 7px 8px; }.print-page #results td:first-child, .print-page #results th:first-child, .print-page #scores td:first-child, .print-page #scores th:first-child { padding-left: 0; } }
.check-label { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; font-weight: 500; }.check-label input { width: auto; }.student-picker { border: 1px solid var(--line); padding: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.student-picker legend { padding: 0 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }.inline-form { display: inline; }.question-panel { margin-bottom: 18px; }.question-panel h2 { margin-bottom: 20px; font: 700 23px/1.35 'Playfair Display', serif; }.question-image { display: block; max-width: min(100%, 620px); max-height: 280px; object-fit: contain; margin: 0 0 20px; }.answer-list, .matching-list { display: grid; gap: 10px; }.matching-list label { font-weight: 600; }.matching-list select { margin-top: 7px; }.exam-content { max-width: 980px; margin: 0 auto; }.result-panel { max-width: 560px; }.result-panel h2 { font: 700 42px 'Playfair Display', serif; color: var(--green); }.form-grid small { color: var(--muted); font-size: 11px; font-weight: 400; }
@media (max-width: 800px) { .student-picker { grid-template-columns: 1fr; }.certificate { padding: 65px 35px; }.certificate h1 { font-size: 38px; }.certificate h2 { font-size: 32px; } }
@media (max-width: 800px) { .report-filter-inline { flex-wrap: wrap; }.report-filter-inline label { flex: 1 1 190px; }.report-filter-inline select { width: 100%; max-width: none; } }
.exam-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 22px; align-items: center; margin-bottom: 28px; }.exam-topbar h1 { font-size: 34px; margin: 0; }.exam-timer { min-width: 132px; padding: 10px 16px; color: var(--green-dark); background: var(--lime); text-align: center; border: 2px solid var(--lime); }.exam-timer span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.exam-timer strong { display: block; font: 700 28px 'DM Sans', sans-serif; letter-spacing: .04em; }.exam-timer.urgent { color: white; background: var(--red); border-color: var(--red); }.exam-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; }.question-nav { position: sticky; top: 18px; padding: 18px; background: white; border: 1px solid var(--line); }.question-nav strong { display: block; margin-bottom: 14px; font: 700 17px 'Playfair Display', serif; }.question-nav > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }.question-nav button { min-height: 36px; border: 1px solid var(--line); background: #fbfcfa; color: var(--ink); cursor: pointer; font-weight: 700; }.question-nav button.active { color: white; background: var(--green); border-color: var(--green); }.question-nav button.answered { border-color: var(--green); }.question-nav button.doubtful { box-shadow: inset 0 -4px 0 var(--orange); }.legend { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 2; }.legend-dot { display: inline-block; width: 8px; height: 8px; margin: 0 3px 0 7px; border-radius: 50%; background: var(--green); }.legend-dot.doubtful { background: var(--orange); }.question-panel[hidden] { display: none; }.question-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.doubt-label { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 7px; white-space: nowrap; color: var(--orange); font-weight: 700; }.doubt-label input { width: auto; }.question-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }.question-actions .finish-button { margin-left: auto; }.question-actions button:disabled { cursor: not-allowed; opacity: .45; }.matching-list select { margin-top: 7px; }.exam-content { padding-bottom: 60px; }
@media (max-width: 800px) { .exam-content { padding: 18px 14px 45px; }.exam-topbar { grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 20px; }.exam-topbar .logout { grid-column: 1 / -1; }.exam-topbar h1 { font-size: 27px; }.exam-timer { min-width: 116px; padding: 7px 10px; }.exam-timer strong { font-size: 23px; }.exam-layout { grid-template-columns: 1fr; gap: 12px; }.question-nav { position: static; order: 0; padding: 12px; }.question-nav > div { grid-template-columns: repeat(8, 1fr); }.question-stage { order: 1; }.question-panel { padding: 18px; }.question-panel h2 { font-size: 20px; }.question-actions { flex-wrap: wrap; }.question-actions .finish-button { margin-left: 0; width: 100%; }.question-actions [data-next], .question-actions [data-prev] { flex: 1; } }
.gateway-shell { min-height: 610px; }.gateway-link { margin: 20px 0 0; text-align: center; font-size: 12px; }.gateway-link a { color: var(--green); }.gateway-content { width: min(920px, 100%); margin: 0 auto; padding: 38px 5vw 60px; }.gateway-content .topbar { margin-bottom: 30px; }.gateway-panel { max-width: 760px; margin: 0 auto; padding: 38px; background: white; border: 1px solid var(--line); }.gateway-panel h2 { margin: 4px 0 8px; font: 700 34px 'Playfair Display', serif; }.gateway-meta { color: var(--muted); margin-bottom: 28px; }.rules { margin: 25px 0 30px; padding: 22px 25px; background: #f7faf4; border-left: 3px solid var(--green); }.rules h3 { margin-bottom: 12px; font: 700 20px 'Playfair Display', serif; }.rules ol { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; font-size: 13px; }.standalone-gateway { min-height: auto; width: min(600px, calc(100% - 40px)); margin: auto; }.standalone-gateway h1 { max-width: none; font-size: 40px; }.completion-card { text-align: center; align-items: center; }.completion-card .brand-mark { margin-bottom: 25px; }.completion-card p { max-width: 440px; line-height: 1.7; color: var(--muted); }.completion-card .button { margin-top: 18px; }
.history-block { margin-top: 24px; }.history-block h4 { margin: 0 0 12px; color: var(--green-dark); font: 700 18px 'Playfair Display', serif; }.history-block + .history-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.report-filter-inline { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin: 12px 0 16px; padding: 10px 12px; background: white; border: 1px solid var(--line); }.report-filter-inline label { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }.report-filter-inline select { width: auto; min-width: 150px; max-width: 260px; padding: 8px 10px; font-size: 12px; }.report-filter-inline label:nth-child(2) select { min-width: 125px; }.report-filter-inline .button { padding: 8px 11px; white-space: nowrap; }
.import-box { margin-bottom: 22px; padding: 16px; background: #f7faf4; border: 1px solid var(--line); }.import-box p { margin: 5px 0 12px; color: var(--muted); font-size: 12px; }.import-box small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; }.inline-upload { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }.inline-upload input[type="file"] { width: auto; padding: 7px; font-size: 11px; }
.matching-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; min-height: 180px; padding: 12px 0; }.matching-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }.matching-column { position: relative; z-index: 1; display: grid; align-content: start; gap: 10px; }.matching-column > strong { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }.matching-item { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: #fbfcfa; color: var(--ink); text-align: left; cursor: pointer; }.matching-item:hover, .matching-item.selected { border-color: var(--green); background: #eef7eb; }.matching-item.connected { border-color: var(--green); background: var(--lime); }.matching-line { stroke: var(--green); stroke-width: 3; stroke-linecap: round; }.short-answer { max-width: 420px; }.short-answer-input { font-size: 18px; letter-spacing: .04em; }.short-answer-setting[hidden] { display: none; }
@media (max-width: 800px) { .gateway-content { padding: 24px 16px 45px; }.gateway-content .topbar { align-items: flex-start; }.gateway-panel { padding: 24px 20px; }.gateway-panel h2 { font-size: 29px; }.rules { padding: 18px 18px 18px 22px; }.rules ol { line-height: 1.65; } }
