/* Shared library, progress, reference and settings surfaces. */
.study-page { max-width: 1040px; margin: 0 auto; padding: 4px 0 24px; color: #0f172a; }
#list-wrong-page.study-page { padding: 4px 0 24px; }
.study-page h1, .study-page h2 { color: #0f172a; font-family: 'Space Grotesk', 'Be Vietnam Pro', sans-serif; letter-spacing: -.025em; }
.study-page h1 { margin: 8px 0 12px; font-size: 32px; line-height: 1.3; }
.study-page h2 { margin: 0 0 10px; font-size: 19px; line-height: 1.5; font-weight: 600; }
.study-page p { line-height: 1.75; }
.study-intro { margin-bottom: 28px; }
.study-intro p { max-width: 720px; margin: 0; color: #64748b; font-size: 15px; }
.study-eyebrow { display: block; color: #027bb6; font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.study-muted { color: #64748b; }
.study-small { font-size: 12px; }
.study-card { display: block; padding: 24px; border: 1px solid rgba(255,255,255,.95); border-radius: 20px; background: rgba(255,255,255,.84); box-shadow: 0 8px 32px -4px rgba(15,23,42,.04), 0 0 24px rgba(2,132,199,.025), inset 0 -1px 0 rgba(15,23,42,.035); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }
.study-card p:last-child { margin-bottom: 0; }
.study-stack { display: grid; gap: 16px; }
.study-section-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.study-section-heading h2 { margin: 0; }
.study-link-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.study-link-card { display: flex; align-items: center; gap: 16px; min-height: 128px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.study-link-card:hover, .study-exam-card:hover, .study-violation-card:hover { border-color: rgba(14,165,233,.4); box-shadow: 0 10px 28px rgba(2,132,199,.08); transform: translateY(-2px); }
.study-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 13px; border: 1px solid #ccecff; background: #eaf7ff; display: inline-flex; justify-content: center; align-items: center; color: #0284c7; font-size: 23px; }
.study-icon img { width: 34px; height: 34px; object-fit: contain; }
.study-icon:not(.study-sign-icon) img { filter: brightness(0) saturate(100%) invert(40%) sepia(88%) saturate(1591%) hue-rotate(167deg) brightness(91%) contrast(101%); }
.study-sign-icon { background: #f4f8fc; border-color: #e2e8f0; }
.study-sign-icon img { width: 30px; height: 30px; }
.study-link-content { flex: 1; min-width: 0; }
.study-link-content strong { display: block; font-size: 16px; line-height: 1.55; font-weight: 600; }
.study-link-content > span { display: block; margin-top: 5px; color: #64748b; font-size: 12px; line-height: 1.65; }
.study-chevron { font-size: 12px; color: #94a3b8; }
.study-card-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; color: #007cb5; font-size: 13px; font-weight: 600; }
.study-card-action:hover { color: #005c90; }
.study-card-action .fa { font-size: 12px; }
.study-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.study-stat { min-width: 0; padding: 18px 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: rgba(255,255,255,.8); }
.study-stat > span { display: block; color: #64748b; font-size: 12px; }
.study-stat > span .fa { margin-right: 4px; }
.study-stat strong { display: block; margin-top: 7px; font-family: 'Space Grotesk', sans-serif; font-size: 27px; }
.study-stat strong small { font-size: 12px; font-weight: 400; }
.study-stat.study-success { color: #087b60; background: #f0fcf7; border-color: #c5f2df; }
.study-stat.study-success > span { color: #247e69; }
.study-stat.study-error { color: #bb3a48; background: #fff6f6; border-color: #ffdee2; }
.study-stat.study-error > span { color: #ae4353; }
.study-question-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(46px,1fr)); gap: 8px; }
.study-question-number { display: flex; min-height: 46px; justify-content: center; align-items: center; background: #f5f8fc; border: 1px solid #e2e8f0; border-radius: 9px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; }
.study-question-number:hover { box-shadow: 0 0 0 2px #bae6fd; }
.study-question-number.correct, .study-question-number.correctdanger { color: #087b60; background: #dcf7ec; border-color: #a7e7cd; }
.study-question-number.wrong, .study-question-number.wrongdanger { color: #b63445; background: #fff0f1; border-color: #f9c8cf; }
.study-question-number.danger, .study-question-number.correctdanger, .study-question-number.wrongdanger { border-color: #e7a440; box-shadow: inset 0 0 0 1px #e7a440; }
.study-required-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #e7a440; margin-right: 4px; }
.study-notice { display: flex; align-items: center; gap: 12px; padding: 16px 20px; margin-bottom: 24px; border: 1px solid #cceaff; border-radius: 14px; background: #edf8ff; color: #226388; font-size: 13px; line-height: 1.65; }
.study-notice > .fa { font-size: 20px; color: #0284c7; }
.study-notice > .study-pill { flex-shrink: 0; margin-left: auto; }
.study-pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border: 1px solid #e2e8f0; border-radius: 8px; color: #61738a; background: #f4f7fb; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .025em; }
.study-pill-success { background: #effcf6; color: #118568; border-color: #bdebd7; }
.study-pill-error { background: #fff2f3; color: #bb3a48; border-color: #fbd1d6; }
.study-exam-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.study-exam-card { display: flex; flex-direction: column; min-height: 235px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.study-exam-card .study-section-heading { margin-bottom: 16px; gap: 8px; }
.study-exam-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #edf8ff; border-radius: 11px; color: #0284c7; font-size: 18px; }
.study-exam-card h2 { font-size: 22px; margin-bottom: 8px; }
.study-exam-card p { margin-top: 0; }
.study-exam-results { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; color: #64748b; font-size: 11px; }
.study-exam-results .fa-check { color: #118568; }
.study-exam-results .fa-times { color: #bb3a48; }
.study-exam-card .study-card-action { padding-top: 18px; margin-top: auto; }
.study-exam-passed { border-color: #c6efde; }
.study-exam-failed { border-color: #f9d6dc; }
.study-empty { text-align: center; padding: 44px 32px; }
.study-empty h1 { font-size: 28px; }
.study-empty p { max-width: 520px; margin: 12px auto 24px; color: #64748b; font-size: 14px; }
.study-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid #c8efdf; border-radius: 20px; background: #effcf7; color: #139773; font-size: 28px; margin-bottom: 14px; }
.study-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 11px; background: linear-gradient(120deg,#0284c7,#00a7d0); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; box-shadow: 0 5px 15px rgba(2,132,199,.15); }
.study-button:hover { filter: brightness(.97); }
.study-button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.study-button-full { width: 100%; margin-top: 12px; }
.study-button-secondary { background: #f4f7fb; color: #334155; border-color: #e2e8f0; box-shadow: none; }
.study-button-danger { background: #b93c4c; box-shadow: none; }
.study-review-card h2 { margin-top: 10px; font-family: 'Be Vietnam Pro', sans-serif; font-size: 17px; line-height: 1.8; letter-spacing: -.01em; }
.study-question-image { text-align: center; margin: 20px 0; }
.study-question-image img { max-height: 360px; width: auto; max-width: 100%; border-radius: 12px; }
.study-review-answers { display: grid; gap: 8px; margin-top: 20px; }
.study-review-answer { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 11px; font-size: 14px; line-height: 1.7; }
.study-answer-index { display: flex; align-items: center; justify-content: center; flex: 0 0 25px; height: 25px; background: rgba(255,255,255,.75); border: 1px solid #dbe4ed; border-radius: 7px; font-size: 12px; }
.study-answer-text { flex: 1; }
.study-answer-text small { display: block; margin-top: 4px; font-weight: 600; font-size: 11px; }
.study-review-answer > .fa { margin-top: 5px; }
.study-review-answer.correct { background: #effcf7; border-color: #bcebd7; color: #14795f; }
.study-review-answer.wrong { background: #fff3f4; border-color: #fbd4d9; color: #b23b4c; }
.study-tip { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin: 20px 0 0; background: #eff8ff; color: #33647d; border-radius: 12px; font-size: 13px; }
.study-tip > .fa { margin-top: 4px; color: #0284c7; font-size: 20px; }
.study-tip strong { display: block; margin-bottom: 5px; color: #12618b; }
.study-license-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.study-license-card { display: flex; align-items: center; gap: 14px; padding: 20px; cursor: pointer; }
.study-license-card:hover { border-color: #b7dff5; }
.study-license-card input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #0284c7; }
.study-license-card > span:not(.study-pill) { flex: 1; }
.study-license-card strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 19px; margin-bottom: 5px; }
.study-license-card .study-muted { display: block; line-height: 1.6; }
.study-license-card .study-pill { flex-shrink: 0; background: #e0f4ff; color: #027ab4; border-color: #bce8ff; }
.study-selected { background: rgba(239,249,255,.95); border-color: #83c9ee; box-shadow: 0 0 0 1px rgba(2,132,199,.08); }
.study-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0; }
.study-reset-row { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.study-reset-row > div { flex: 1; }
.study-reset-row h2 { font-size: 16px; margin-bottom: 4px; }
.study-reset-row p { color: #64748b; font-size: 12px; margin: 0; }
.study-reset-row > a { flex-shrink: 0; font-size: 12px; font-weight: 600; }
.study-icon-danger { background: #fff1f3; color: #b23b4c; border-color: #f8d5db; }
.study-text-danger { color: #b23b4c !important; }
.study-sign-card { display: grid; grid-template-columns: 108px minmax(0,1fr); align-items: start; gap: 28px; }
.study-sign-image { display: flex; align-items: center; justify-content: center; min-height: 108px; padding: 8px; border-radius: 14px; background: #f8fafc; }
.study-sign-image img { max-width: 100%; max-height: 110px; object-fit: contain; }
.study-sign-card h2 { margin: 10px 0 8px; font-size: 19px; }
.study-sign-card p { margin: 0; color: #64748b; font-size: 14px; }
.study-segmented { display: flex; gap: 6px; border: 0; min-width: 0; margin: 0 0 24px; padding: 0; }
.study-segmented legend { margin-bottom: 12px; color: #334155; font-weight: 600; font-size: 13px; }
.study-segmented label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; min-height: 46px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: rgba(255,255,255,.7); color: #64748b; font-size: 13px; cursor: pointer; }
.study-segmented input { width: 15px; height: 15px; margin: 0; accent-color: #0284c7; }
.study-segmented label.study-active { color: #0277ac; background: #ecf8ff; border-color: #8bd0f5; }
.study-violation-card { transition: border-color .18s, box-shadow .18s, transform .18s; }
.study-violation-card h2 { font-family: 'Be Vietnam Pro', sans-serif; font-size: 16px; letter-spacing: 0; line-height: 1.75; }
.study-fine { color: #b13a4b; font-size: 15px; font-weight: 500; margin: 12px 0 0; }
.study-detail-page h1 { font-size: 25px; line-height: 1.55; }
.study-detail-page p { font-size: 14px; }
.study-detail-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e9eef4; }
.study-detail-section h2 { font-size: 18px; }
.study-reference { display: flex; align-items: center; gap: 10px; width: fit-content; padding: 10px 12px; margin-top: 12px; border-radius: 10px; color: #0279b2; background: #eff8ff; font-size: 12px; line-height: 1.7; }
.study-related-heading { margin-top: 32px; }
.study-form-page { max-width: 720px; }
.study-field-label { display: block; margin-bottom: 10px; color: #334155; font-size: 13px; font-weight: 600; }
.study-input { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid #dbe3ed; border-radius: 10px; background: #f7f9fc; color: #0f172a; font-size: 16px; }
.study-input::placeholder { color: #94a3b8; }
.study-plate-input { text-transform: uppercase; font-family: 'Space Grotesk', sans-serif; letter-spacing: .03em; }
.study-plate-input::placeholder { text-transform: none; letter-spacing: 0; }
.study-form-page .study-small { margin-top: 8px; }
.study-lookup-result { overflow-wrap: anywhere; overflow-x: auto; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e2e8f0; font-size: 14px; }
.study-lookup-result table { width: 100%; border-collapse: collapse; }
.study-lookup-result td { padding: 12px 8px; border-bottom: 1px solid #e2e8f0; }
.study-lookup-result .row_right { text-align: right; }
.study-lookup-result .row_left { text-align: left; }
.study-lookup-result .css-tt { display: inline-block; padding: 8px 12px; background: #eff8ff; border: 1px solid #ccecff; border-radius: 8px; }
.study-guide { counter-reset: guide; }
.study-guide h2 { margin-top: 12px; }
.study-guide p { font-size: 14px; color: #64748b; }
.study-step { color: #0284c7; font-family: 'Space Grotesk', sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -.04em; }
.study-inline-links { display: flex; flex-wrap: wrap; gap: 24px; }
.study-download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.study-download { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; background: #f7faff; border: 1px solid #e2eaf4; border-radius: 16px; text-align: center; }
.study-download img { width: 144px; height: 144px; max-width: 100%; object-fit: contain; margin-bottom: 12px; border-radius: 12px; }
.study-download strong { color: #027bb6; font-size: 14px; }
.study-download span { color: #64748b; font-size: 12px; }
.study-reset-confirm { margin-top: 18px; }
.study-reset-confirm .study-actions { margin-bottom: 0; }
.study-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.study-page a:focus-visible, .study-page button:focus-visible, .study-page input:focus-visible { outline: 3px solid #38bdf8; outline-offset: 4px; }
.study-input:focus { outline: none; background: #fff; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2,132,199,.15); }
@media (max-width: 767px) {
    .study-page, #list-wrong-page.study-page { padding: 2px 0 24px; }
    .study-page h1 { font-size: 26px; }
    .study-intro { margin-bottom: 22px; }
    .study-intro p { font-size: 13px; }
    .study-card { padding: 20px; border-radius: 18px; }
    .study-link-grid, .study-license-options { grid-template-columns: 1fr; gap: 12px; }
    .study-link-card { min-height: 104px; gap: 14px; }
    .study-link-content strong { font-size: 15px; }
    .study-stat { padding: 13px 10px; border-radius: 13px; }
    .study-stat > span { font-size: 10px; line-height: 1.6; }
    .study-stat > span .fa { display: none; }
    .study-stat strong { font-size: 23px; }
    .study-stat strong small { font-size: 10px; }
    .study-stat-grid { gap: 8px; }
    .study-section-heading { flex-wrap: wrap; gap: 8px; }
    .study-question-grid { grid-template-columns: repeat(auto-fill,minmax(40px,1fr)); gap: 7px; }
    .study-question-number { min-height: 42px; font-size: 13px; }
    .study-exam-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .study-exam-card { min-height: 223px; padding: 16px; }
    .study-exam-card .study-section-heading { flex-wrap: nowrap; }
    .study-exam-card h2 { font-size: 20px; }
    .study-exam-icon { width: 30px; height: 32px; font-size: 15px; }
    .study-exam-card .study-pill { font-size: 9px; padding: 4px 6px; }
    .study-exam-card .study-card-action { font-size: 11px; gap: 5px; }
    .study-exam-results { font-size: 10px; }
    .study-notice { padding: 14px 16px; font-size: 12px; }
    .study-notice > .study-pill { display: none; }
    .study-empty { padding: 32px 20px; }
    .study-empty h1 { font-size: 24px; }
    .study-review-card h2 { font-size: 15px; }
    .study-review-answer { font-size: 13px; padding: 12px; gap: 9px; }
    .study-reset-row { flex-wrap: wrap; padding: 20px; }
    .study-reset-row > a { margin-left: 64px; }
    .study-sign-card { grid-template-columns: 76px minmax(0,1fr); gap: 16px; }
    .study-sign-image { min-height: 76px; padding: 4px; }
    .study-sign-card h2 { font-size: 16px; }
    .study-sign-card p { font-size: 12px; }
    .study-segmented { gap: 5px; }
    .study-segmented label { padding: 10px 5px; font-size: 11px; gap: 5px; }
    .study-segmented label > .fa { display: none; }
    .study-detail-page h1 { font-size: 22px; }
    .study-license-card .study-pill { font-size: 9px; }
    .study-download { padding: 16px 10px; }
    .study-download img { width: 112px; height: 112px; }
}
@media (max-width: 360px) {
    .study-exam-card { padding: 13px; }
    .study-exam-icon { display: none; }
    .study-license-card { padding: 16px; gap: 10px; }
    .study-sign-card { grid-template-columns: 1fr; }
    .study-sign-image { width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
    .study-page *, .study-page *::before, .study-page *::after { transition: none !important; animation: none !important; }
}
