.course-progress { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 0 42px; padding: 28px 32px; border: 1px solid #e7dcc76b; border-radius: 18px; background: #263b30d9; }
.course-progress h2 { margin: 8px 0 12px; font-family: var(--font-condensed); font-size: clamp(24px, 3vw, 32px); }
.course-progress p { line-height: 1.6; }
.course-progress .site-button { flex-shrink: 0; }
.course-progress-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; max-width: 320px; }
.course-progress-actions .site-button { text-align: center; }
.progress-reset { color: #ffd1bc; background: transparent; border-color: #cc9b8a80; cursor: pointer; }
.progress-reset:enabled:hover { background: #804b4240; }
.progress-reset:disabled { opacity: .5; cursor: default; }
.progress-reset-section { margin: 30px 0; }
.progress-reset-status { max-width: 600px; color: #d3ddc9; font-size: 14px; line-height: 1.6; }
.progress-reset-status:empty { display: none; }
.course-progress progress { display: block; width: min(100%, 440px); height: 10px; border: 0; border-radius: 10px; overflow: hidden; background: #e7dcc733; accent-color: #efb683; }
.course-progress progress::-webkit-progress-bar { background: #e7dcc733; border-radius: 10px; }
.course-progress progress::-webkit-progress-value { background: #efb683; border-radius: 10px; }
.course-progress progress::-moz-progress-bar { background: #efb683; border-radius: 10px; }
.progress-note { color: #d3ddc9; font-size: 14px; line-height: 1.6; }
.certificate-page { padding-top: 40px; padding-bottom: 60px; }
.certificate-intro { max-width: 800px; color: #f7efdf; font-size: 18px; line-height: 1.65; }
.certificate-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 26px 0 32px; }
.certificate-test { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: #263b30e6; border: 1px solid #e7dcc74d; border-radius: 10px; color: #f7efdf; text-decoration: none; line-height: 1.5; }
.certificate-test > span:first-child { font-weight: 700; }
.certificate-test > span:last-child { color: #f3b785; font-size: 14px; text-align: right; }
.certificate-test.is-complete { border-color: #b6d6a5a6; }
.certificate-test.is-complete > span:last-child { color: #c9ecc4; }
.certificate-test:hover { background: #3e5544; }
.certificate-form { margin: 28px 0; padding: 26px 30px; border: 1px solid #e7dcc76b; border-radius: 16px; background: #263b30e6; }
.certificate-form label { display: block; font-size: 20px; font-weight: 700; }
.certificate-form .progress-note { margin: 10px 0 16px; }
.certificate-name-row { display: flex; align-items: stretch; gap: 14px; }
.certificate-name-row input { min-width: 0; flex: 1; width: 100%; padding: 14px 16px; border: 1px solid #e7dcc794; border-radius: 8px; background: #1d3129; color: #fff3de; font: inherit; font-size: 18px; }
.certificate-name-row input::placeholder { color: #c4cdbb; }
.certificate-name-row input:focus-visible { outline: 3px solid #efb683; outline-offset: 3px; }
.certificate-name-row button { flex-shrink: 0; }
.certificate-page button { cursor: pointer; font: inherit; }
.certificate-notice { color: #ffd1bc; line-height: 1.6; }
.certificate-notice:empty { display: none; }
.certificate-document { margin: 30px 0 22px; box-shadow: 0 18px 50px #10271a66; }
.certificate-document canvas { display: block; width: 100%; height: auto; }
.certificate-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #e7dcc780; border-radius: 16px; background: #263b30; color: #f7efdf; overflow: auto; }
.certificate-dialog::backdrop { background: #10271ad9; }
.certificate-dialog .certificate-form { margin: 0; border: 0; }
.certificate-dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.certificate-dialog-heading h2 { margin: 0; font-family: var(--font-condensed); font-size: 28px; }
.certificate-dialog-heading button { flex-shrink: 0; }
.certificate-dialog .certificate-name-row { flex-direction: column; }
.certificate-dialog .certificate-name-row input { box-sizing: border-box; }
.certificate-dialog button { cursor: pointer; font: inherit; }
.certificate-actions { flex-wrap: wrap; margin-bottom: 32px; }
.certificate-actions .progress-note { flex-basis: 100%; margin-top: 0; }
.quiz-actions a.slide-control { text-align: center; text-decoration: none; }
@media (max-width: 700px) {
    .course-progress { align-items: stretch; flex-direction: column; padding: 22px; }
    .course-progress-actions { max-width: none; }
    .certificate-checklist { grid-template-columns: 1fr; }
    .certificate-test { padding: 16px; }
    .certificate-form { padding: 22px 18px; }
    .certificate-name-row { flex-direction: column; }
    .certificate-actions > button { width: 100%; justify-content: center; }
    .quiz-actions a.slide-control { width: 100%; }
}
@media (max-width: 480px) {
    .site-header { padding-left: 16px; padding-right: 16px; gap: 8px; }
    .site-brand { font-size: 14px; letter-spacing: -.5px; gap: 5px; }
    .site-brand .brand-mark { width: 22px; height: 22px; }
    .site-nav { gap: 0; }
    .site-nav a { padding: 8px 6px; font-size: 14px; letter-spacing: 0; }
}
@media (max-width: 360px) {
    .site-brand .brand-mark { display: none; }
    .site-header { padding-left: 12px; padding-right: 12px; }
}
@media print {
    @page { size: A4 landscape; margin: 0; }
    body:has(#certificatePage:not([hidden]) #certificateDocument:not([hidden])) { margin: 0 !important; padding: 0 !important; background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    body:has(#certificatePage:not([hidden]) #certificateDocument:not([hidden]))::after { display: none !important; }
    body:has(#certificatePage:not([hidden]) #certificateDocument:not([hidden])) > :not(#certificatePage) { display: none !important; }
    body:has(#certificatePage:not([hidden]) #certificateDocument:not([hidden])) #certificatePage { display: block !important; width: 297mm; max-width: none; margin: 0; padding: 0; }
    body:has(#certificatePage:not([hidden]) #certificateDocument:not([hidden])) #certificatePage > :not(#certificateDocument) { display: none !important; }
    body:has(#certificatePage:not([hidden]) #certificateDocument:not([hidden])) #certificateDocument { display: block !important; width: 297mm; height: 210mm; margin: 0; box-shadow: none; break-inside: avoid; }
    body:has(#certificatePage:not([hidden]) #certificateDocument:not([hidden])) #certificateDocument canvas { width: 297mm; height: 209.9mm; object-fit: contain; }
}
