:root {
  --green: #1f4d36;
  --green-2: #2f6b4a;
  --green-soft: #eaf2ed;
  --gold: #d7a647;
  --gold-soft: #fff7df;
  --ink: #1f2937;
  --muted: #667085;
  --bg: #f4f6f4;
  --panel: #ffffff;
  --line: #d9e1dc;
  --danger: #a33131;
  --danger-soft: #fff0f0;
  --success: #246b43;
  --shadow: 0 12px 34px rgba(31, 77, 54, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: #fff; padding: .75rem 1rem; border-radius: 8px; color: var(--green); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; padding: .75rem clamp(1rem, 4vw, 3rem); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--green); color: #fff; font-weight: 900; letter-spacing: -.04em; }
.brand-title { font-weight: 800; font-size: 1.15rem; }
.eyebrow { color: var(--green-2); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.app-shell { width: min(1240px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; }
.view { display: grid; gap: 1rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.centered { min-height: 50vh; display: grid; place-items: center; align-content: center; text-align: center; padding: 2rem; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(135deg, #fff, #f3f8f5); }
h1, h2, h3 { margin: 0 0 .55rem; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.035em; }
h2 { font-size: 1.35rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.hero-score { min-width: 170px; display: grid; place-items: center; gap: .15rem; padding: 1.1rem 1.4rem; border-radius: 16px; background: var(--green); color: #fff; }
.hero-score strong { font-size: 2.35rem; line-height: 1; }
.hero-score span { font-size: .82rem; opacity: .9; }
.score-label { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.resume-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-color: #a6c6b1; background: var(--green-soft); }
.resume-banner p { margin: .2rem 0 0; color: var(--muted); }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.mode-card { padding: 1.35rem; display: flex; flex-direction: column; min-height: 270px; }
.mode-card.featured { border-color: #9fbea9; box-shadow: 0 15px 38px rgba(31,77,54,.13); }
.mode-card p { color: var(--muted); flex: 1; }
.mode-kicker { margin-bottom: .6rem; color: var(--gold); font-size: .74rem; font-weight: 900; letter-spacing: .1em; }
.mode-meta { display: flex; justify-content: space-between; gap: .5rem; margin: .8rem 0 1rem; color: var(--green-2); font-size: .82rem; font-weight: 750; }
.button { border: 1px solid transparent; border-radius: 11px; padding: .72rem 1rem; font-weight: 800; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(215,166,71,.4); outline-offset: 2px; }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 7px 18px rgba(31,77,54,.17); }
.button-primary:hover:not(:disabled) { background: #173e2b; }
.button-secondary { background: #fff; border-color: var(--line); color: var(--green); }
.button-secondary:hover:not(:disabled), .button-ghost:hover:not(:disabled) { background: var(--green-soft); }
.button-ghost { background: transparent; border-color: transparent; color: var(--green); }
.button-gold { background: var(--gold); color: #1f2b23; }
.full-width { width: 100%; }
.dashboard-panel, .note-panel { padding: 1.4rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; }
.stat strong { display: block; font-size: 1.65rem; }
.stat span { color: var(--muted); font-size: .85rem; }
.empty-state { color: var(--muted); padding: 1.2rem; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; }
.results-table th, .results-table td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.results-table th { color: var(--muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.status-pill { display: inline-flex; align-items: center; padding: .35rem .65rem; border-radius: 999px; background: var(--gold-soft); color: #705217; border: 1px solid #efdba5; font-size: .8rem; font-weight: 800; }
.exam-topbar { padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.exam-topbar h1 { font-size: 1.55rem; margin: .1rem 0 0; }
.exam-top-actions { display: flex; gap: .8rem; align-items: center; }
.timer { display: grid; text-align: right; }
.timer-label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.timer strong { font-variant-numeric: tabular-nums; font-size: 1.15rem; }
.timer.warning strong { color: var(--danger); }
.exam-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 1rem; align-items: start; }
.question-nav-panel { position: sticky; top: 94px; padding: 1rem; max-height: calc(100vh - 110px); overflow: auto; }
.nav-summary, .legend { display: flex; justify-content: space-between; gap: .7rem; font-size: .84rem; color: var(--muted); margin-bottom: .75rem; }
.legend { justify-content: flex-start; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: .35rem; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #e4e8e5; }
.legend-dot.answered { background: var(--green-2); }
.legend-dot.flagged { background: var(--gold); }
.question-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: .38rem; margin-bottom: 1rem; }
.palette-btn { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .78rem; font-weight: 750; padding: 0; }
.palette-btn.answered { background: var(--green-soft); border-color: #a6c6b1; color: var(--green); }
.palette-btn.flagged { box-shadow: inset 0 0 0 2px var(--gold); }
.palette-btn.current { outline: 3px solid rgba(31,77,54,.25); border-color: var(--green); }
.question-panel { padding: clamp(1.2rem, 3vw, 2rem); min-height: 590px; }
.question-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .86rem; font-weight: 700; }
.tag { border-radius: 999px; background: var(--green-soft); color: var(--green); padding: .25rem .6rem; }
.progress-track { height: 7px; margin: .8rem 0 1.5rem; background: #edf0ee; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--green-2); transition: width .2s ease; }
.question-text { font-size: clamp(1.25rem, 2.3vw, 1.7rem); margin-bottom: 1.4rem; }
.answer-options { display: grid; gap: .7rem; }
.answer-option { width: 100%; display: grid; grid-template-columns: 42px 1fr; gap: .8rem; align-items: center; text-align: left; padding: .9rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); }
.answer-option:hover { border-color: #94b7a1; background: #fbfdfb; }
.answer-option.selected { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.option-letter { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #f0f3f1; font-weight: 900; color: var(--green); }
.answer-option.selected .option-letter { background: var(--green); color: #fff; }
.question-actions { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; margin-top: 1.5rem; align-items: center; }
.question-actions #flagBtn { justify-self: center; }
.question-actions #flagBtn.active { background: var(--gold-soft); border-color: #efdba5; color: #705217; }
.results-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(1.5rem,4vw,3rem); }
.score-ring { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--green) var(--score, 0%), #e7ece8 0); position: relative; }
.score-ring::before { content: ''; position: absolute; inset: 13px; background: #fff; border-radius: 50%; }
.score-ring strong, .score-ring span { position: relative; z-index: 1; }
.score-ring strong { font-size: 2.3rem; }
.score-ring span { color: var(--muted); font-size: .85rem; }
.result-actions { display: flex; gap: .8rem; padding: 1rem 1.2rem; }
.resultsView .panel, #resultsView > .panel { padding: 1.3rem; }
.review-list { display: grid; gap: 1rem; }
.review-card { padding: 1rem; border: 1px solid var(--line); border-left: 5px solid var(--danger); border-radius: 12px; background: #fff; }
.review-card h3 { font-size: 1rem; }
.review-answer { padding: .75rem; border-radius: 10px; margin-top: .6rem; }
.review-answer.correct { background: var(--green-soft); }
.review-answer.yours { background: var(--danger-soft); }
.review-explanation { color: #344054; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(17,24,39,.55); }
.modal { width: min(500px, 100%); padding: 1.4rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.2rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 0 0 2rem; color: var(--muted); font-size: .8rem; }
@media (max-width: 1000px) { .mode-grid { grid-template-columns: repeat(2,1fr); } .exam-layout { grid-template-columns: 1fr; } .question-nav-panel { position: static; max-height: none; } .question-palette { grid-template-columns: repeat(10,1fr); } }
@media (max-width: 720px) { .resume-banner { align-items: stretch; flex-direction: column; } .site-header { min-height: 66px; } .brand-mark { width: 42px; height: 42px; } .eyebrow { font-size: .65rem; } .brand-title { font-size: 1rem; } .app-shell { width: min(100% - 1rem, 1240px); margin-top: .6rem; } .hero, .results-hero { grid-template-columns: 1fr; } .hero-score { min-width: 0; width: 100%; } .mode-grid, .stat-grid { grid-template-columns: 1fr; } .exam-topbar { align-items: flex-start; } .exam-top-actions { flex-direction: column; align-items: flex-end; } .question-palette { grid-template-columns: repeat(8,1fr); } .question-actions { grid-template-columns: 1fr 1fr; } .question-actions #flagBtn { grid-column: 1 / -1; grid-row: 1; width: 100%; } .question-actions #prevBtn { grid-column: 1; grid-row: 2; } .question-actions #nextBtn { grid-column: 2; grid-row: 2; } .result-actions, .section-heading { align-items: stretch; flex-direction: column; } .site-footer { width: calc(100% - 1rem); } }
@media (max-width: 430px) { .header-actions .button { padding: .55rem .7rem; font-size: .8rem; } .question-palette { grid-template-columns: repeat(6,1fr); } .answer-option { grid-template-columns: 36px 1fr; padding: .78rem; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* Shortcode embed mode: WordPress supplies the surrounding page chrome. */
.embedded .site-header, .embedded .site-footer { display: none; }
.embedded .app-shell { width: min(100% - 1rem, 1240px); margin-top: .6rem; margin-bottom: 1rem; }
.embedded body { min-height: 0; }

.question-instruction{margin:-.2rem 0 1rem;color:#5f6b64;font-weight:700}.calc-entry{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.calc-entry input{font:inherit;font-size:1.1rem;padding:.9rem 1rem;border:2px solid #cbd5ce;border-radius:12px;min-width:180px;max-width:280px}.calc-entry input:focus{outline:3px solid rgba(31,77,54,.18);border-color:#1f4d36}.unit-label{font-weight:800;color:#445249}.answer-option.checkbox-style{align-items:flex-start}.answer-option .check-box{width:1.35rem;height:1.35rem;border:2px solid #6b7c72;border-radius:5px;display:inline-grid;place-items:center;margin-top:.1rem;flex:0 0 auto}.answer-option.selected .check-box{background:#1f4d36;border-color:#1f4d36;color:white}.partial-note{font-size:.88rem;color:#5f6b64;margin-top:.65rem}.review-answer.partial{background:#fff6dd;border-left:4px solid #d7a647}.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:900px){.mode-grid{grid-template-columns:1fr 1fr}}@media(max-width:640px){.mode-grid{grid-template-columns:1fr}}
