/* The same vehicle illustrations, palette and card language as the home page. */
[hidden] { display:none !important; }
.test-app { padding-block:48px 80px; min-height:80vh; }
.app-intro { margin-bottom:34px; }
.app-intro > :is(h1, p) { max-width:750px; }
.app-intro h1 { font-size:clamp(32px,4vw,49px); letter-spacing:-.04em; line-height:1.15; margin:12px 0 16px; }
.app-intro > p:not(.eyebrow) { color:var(--muted); font-size:17px; line-height:1.8; }
.app-message { padding:16px 20px; background:#eef4e5; border:1px solid #d4dfc8; border-radius:12px; margin-bottom:24px; }
.app-message.is-error { background:#fff4ed; border-color:#e8b69c; color:#753f25; }
.setup-section { border:0; padding:0; margin:0 0 36px; min-width:0; }
.setup-section legend { display:flex; align-items:center; gap:12px; font-size:23px; font-weight:650; padding:0; margin-bottom:14px; letter-spacing:-.02em; }
.step-badge { display:inline-grid; place-items:center; width:34px; height:34px; background:#e4edda; color:var(--green); border-radius:50%; font-size:13px; }
.setup-description { color:var(--muted); margin:-4px 0 18px; font-size:14px; }
.test-app .category-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
.test-app .category-option { min-height:146px; }
.language-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.language-option { display:flex; align-items:center; gap:12px; min-height:95px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; position:relative; }
.language-option:has(input:checked), .mode-option:has(input:checked) { background:#edf5db; border-color:#709451; box-shadow:inset 0 0 0 1px #709451; }
.language-option:has(input:focus-visible), .mode-option:has(input:focus-visible) { outline:3px solid var(--green); outline-offset:3px; }
.language-option strong { display:block; font-size:15px; }
.language-option small { color:var(--muted); font-size:12px; display:block; margin-top:3px; }
.language-check { position:absolute; right:8px; top:6px; color:var(--green); opacity:0; }
.language-check .icon { width:14px; }
.language-option:has(input:checked) .language-check { opacity:1; }
.language-art { display:block; flex-shrink:0; width:40px; height:28px; border-radius:5px; box-shadow:0 0 0 1px #0000000a; overflow:hidden; }
.flag-pl { background:linear-gradient(#fff 50%,#d8414f 50%); }
.flag-de { background:linear-gradient(#252b2a 33.33%,#cb3943 33.33% 66.66%,#edc35b 66.66%); }
.flag-uk { background:linear-gradient(#5291d9 50%,#f0d05b 50%); }
.flag-en { background:linear-gradient(90deg,transparent 40%,#c83b4c 40% 60%,transparent 60%),linear-gradient(transparent 36%,#c83b4c 36% 64%,transparent 64%),linear-gradient(90deg,transparent 33%,#fff 33% 67%,transparent 67%),linear-gradient(transparent 26%,#fff 26% 74%,transparent 74%),#35547a; }
.flag-pjm { display:grid; place-items:center; background:#dbe7ed; color:var(--green); }
.mode-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.mode-option { cursor:pointer; position:relative; display:grid; grid-template-columns:52px 1fr; gap:7px 17px; padding:24px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.mode-icon { grid-row:1/4; width:52px; height:52px; display:grid; place-items:center; border-radius:14px; background:#eaf0e0; color:var(--green); }
.mode-icon .icon { width:26px; height:26px; }
.mode-option > strong { font-size:23px; }
.mode-option > span:not(.mode-icon) { grid-column:2; color:var(--muted); font-size:14px; line-height:1.6; }
.mode-option .mode-tag { font-size:12px!important; color:var(--green)!important; font-weight:650; }
.learning-settings { background:#eef2e9; border-radius:14px; padding:24px; margin-top:-15px; margin-bottom:28px; }
.learning-settings fieldset { border:0; padding:0; margin:0 0 20px; }
.learning-settings legend { font-weight:650; margin-bottom:12px; }
.learning-settings fieldset label { display:inline-flex; align-items:center; gap:8px; margin:0 24px 8px 0; }
.learning-settings input { accent-color:var(--green); width:18px; height:18px; flex-shrink:0; }
.feedback-toggle { display:flex; gap:12px; align-items:flex-start; }
.feedback-toggle small { display:block; color:var(--muted); margin-top:5px; }
.start-panel { background:var(--green); color:#fff; border-radius:16px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px; }
.start-panel p { margin-top:7px; font-size:14px; color:#d9e5d4; }
.start-panel .button { flex-shrink:0; }
.test-app button:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.test-app .exam-titlebar { margin-bottom:24px; }
.test-app .exam-grid { align-items:start; }
.test-app .question-heading { margin-bottom:22px; white-space:pre-line; }
.question-context { display:grid; grid-template-columns:1.4fr 1fr auto; gap:16px; margin:0; padding:18px 26px; background:var(--soft); border-block:1px solid var(--line); }
.question-context dt { color:var(--muted); font-size:12px; margin-bottom:6px; }
.question-context dd { display:flex; align-items:center; gap:7px; margin:0; font-size:16px; font-weight:700; }
.question-context dd .icon { width:18px; height:18px; }
.live-answers { border:0; padding:0; margin:20px 0 0; min-width:0; }
.live-answers .answer-list { display:grid; gap:10px; }
.live-answers .answer-option { overflow-wrap:anywhere; }
.answer-result { font-size:12px; font-weight:650; margin-left:auto; }
.answer-option.is-correct { border-color:#418052; background:#eaf6e9; }
.answer-option.is-wrong { border-color:#c56e63; background:#fff0eb; }
.answer-option.is-correct .answer-result { color:#216032; }
.answer-option.is-wrong .answer-result { color:#9a3e30; }
.answer-option:has(input:disabled) { cursor:default; }
.answer-feedback { margin-top:18px; padding:13px; border-radius:9px; background:#eaf6e9; color:#216032; }
.answer-feedback.is-wrong { background:#fff0eb; color:#9a3e30; }
.live-media-grid { display:grid; gap:16px; }
.live-media { margin:0; border-radius:12px; background:#f0f3ea; overflow:hidden; }
.media-frame { position:relative; height:410px; overflow:hidden; background:#17221d; }
.live-media img, .live-media video { position:absolute; inset:0; display:block; height:100%; width:100%; object-fit:contain; background:#17221d; opacity:0; }
.live-media.is-ready img, .live-media.is-ready video { opacity:1; }
.media-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:24px; text-align:center; color:var(--green); background:radial-gradient(ellipse at 50% 25%,#f6faed,#e5edde); }
.media-placeholder-icon { display:grid; place-items:center; width:70px; height:70px; border-radius:22px; background:#fff9; border:1px solid #fff; box-shadow:0 8px 24px #204c400a; }
.media-placeholder-icon .icon { width:30px; height:30px; }
.media-placeholder strong { font-size:17px; line-height:1.4; }
.media-placeholder [data-media-description] { max-width:38ch; color:var(--muted); font-size:13px; line-height:1.6; }
.media-loading-bar { width:130px; height:4px; border-radius:4px; background:#204c4012; overflow:hidden; position:relative; margin-top:5px; }
.media-loading-bar::after { content:""; position:absolute; inset:0; width:45%; border-radius:inherit; background:var(--green); animation:media-loading 1.4s ease-in-out infinite; }
.live-media.is-ready .media-placeholder { display:none; }
.live-media.has-error .media-loading-bar { display:none; }
@keyframes media-loading { from { transform:translateX(-110%); } to { transform:translateX(330%); } }
@media(prefers-reduced-motion:reduce) { .media-loading-bar::after { animation:none; left:28%; } }
.live-media figcaption { display:flex; align-items:center; gap:6px; padding:9px 12px; font-size:12px; color:var(--muted); }
.live-media figcaption .icon { width:15px; height:15px; }
.fallback-note { font-size:12px; line-height:1.5; background:#eef3e5; border-radius:8px; padding:10px 12px; margin-bottom:16px; color:var(--green); }
.live-progress { display:flex; flex-direction:column; margin:16px 0; }
.live-progress strong { font-size:34px; line-height:1.2; }
.live-progress span, [data-learning-cycle] { color:var(--muted); font-size:13px; line-height:1.6; }
.test-app .question-dots { margin-top:18px; }
.result-hero { padding:44px 26px; background:#edf3e4; border-radius:20px; text-align:center; }
.result-icon { display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:var(--green); color:var(--lime); margin:0 auto 20px; }
.result-icon .icon { width:32px; height:32px; }
.result-hero h1 { font-size:clamp(26px,4vw,42px); margin:12px 0; letter-spacing:-.03em; }
.result-hero > p { color:var(--muted); }
.result-score { display:block; font-size:72px; margin-top:20px; letter-spacing:-.04em; color:var(--green); }
.result-score span { font-size:24px; font-weight:500; }
.result-stats { display:flex; justify-content:center; gap:54px; margin:30px 0; }
.result-stats div { display:flex; flex-direction:column; gap:7px; }
.result-stats strong { font-size:29px; }
.result-stats span { font-size:13px; color:var(--muted); }
.mistakes-heading { margin:38px 0 20px; }
.mistakes-heading p { color:var(--muted); margin-top:8px; }
.mistakes-list { display:grid; gap:20px; }
.mistake-card { padding:25px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.mistake-card h3 { font-size:19px; line-height:1.6; margin:12px 0 20px; }
.question-catalog-number { color:var(--muted); font-size:12px; }
.review-status { display:inline-block; padding:6px 10px; border-radius:6px; font-size:13px; font-weight:650; margin-top:12px; }
.review-status.correct { background:#e9f4e6; color:#255a30; }
.review-status.wrong { background:#fff0eb; color:#9a3e30; }
.review-status.unanswered { background:#f1f3f1; color:var(--muted); }
.review-answer { padding:12px 15px; border-radius:8px; margin:6px 0; font-size:14px; }
.review-answer.correct { background:#e9f4e6; color:#255a30; }
.review-answer.wrong { background:#fff0eb; color:#9a3e30; }
.review-answer span { display:block; font-size:12px; font-weight:650; margin-top:4px; }
.mistake-card details { margin-top:15px; }
.mistake-card summary { cursor:pointer; font-weight:600; font-size:14px; }
.summary-pages { display:flex; align-items:center; justify-content:center; gap:20px; margin-top:25px; }
.summary-cta { margin-top:32px; padding:32px 20px; border-radius:18px; background:var(--soft); text-align:center; }
.summary-cta h2 { font-size:26px; margin-bottom:10px; }
.summary-contact { margin-top:24px; padding:24px; border:1px solid var(--line); border-radius:16px; background:#fff; overflow-wrap:anywhere; }
.summary-contact h2 { margin-bottom:10px; font-size:22px; }
.summary-contact p { color:var(--muted); line-height:1.7; }
.summary-contact a, .terms-notice a { color:var(--green); text-decoration:underline; text-underline-offset:3px; }
.terms-notice { margin:18px 0 0; font-size:13px; line-height:1.7; color:var(--muted); }
.summary-cta p { color:var(--muted); margin-bottom:22px; }
.end-dialog { max-width:530px; padding:30px; border:0; border-radius:18px; color:var(--ink); margin:auto; box-shadow:0 25px 80px #0003; }
.end-dialog::backdrop { background:#10281c88; }
.end-dialog h2 { margin-bottom:14px; }
.end-dialog p { color:var(--muted); line-height:1.7; margin-bottom:24px; }
.end-dialog > div { display:flex; flex-wrap:wrap; gap:12px; }
@media(max-width:1000px) { .language-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .test-app .category-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:640px) {
  .media-frame { height:220px; }
  .media-placeholder { gap:9px; padding:18px; }
  .media-placeholder-icon { width:50px; height:50px; border-radius:16px; }
  .media-placeholder-icon .icon { width:24px; height:24px; }
  .media-placeholder strong { font-size:15px; }
  .question-context { grid-template-columns:1fr 1fr; padding:16px 20px; gap:14px; }
  .question-context > div:first-child { grid-column:1 / -1; }
  .test-app { padding-block:28px 50px; }
  .test-app .category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
  .test-app .category-option { min-height:132px; padding:14px 10px; }
  .language-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .language-option { min-height:85px; padding:13px 10px; gap:9px; }
  .language-art { width:33px; height:24px; }
  .language-option strong { font-size:13px; }
  .mode-grid { grid-template-columns:1fr; }
  .mode-option { padding:20px; }
  .setup-section legend { font-size:20px; }
  .start-panel { flex-direction:column; align-items:stretch; padding:23px; gap:20px; }
  .start-panel .button { width:100%; }
  .test-app .answer-actions { flex-wrap:wrap; }
  .test-app .answer-actions button { width:100%; }
  .test-app .exam-titlebar { align-items:flex-start; gap:10px; }
  .test-app .exam-titlebar h1 { font-size:24px; }
  .test-app .exam-titlebar p { font-size:12px; }
  .result-stats { gap:25px; }
  .result-hero { padding:30px 14px; }
  .mistake-card { padding:19px 15px; }
  .summary-pages { gap:9px; font-size:12px; }
  .summary-pages .button { padding:10px; font-size:13px; }
}
@media(max-width:380px) { .test-app .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.live-answers .answer-option.is-correct, .live-answers .answer-option.is-correct:has(input:checked) { border-color:#418052; background:#eaf6e9; box-shadow:inset 0 0 0 1px #418052; }
.live-answers .answer-option.is-wrong, .live-answers .answer-option.is-wrong:has(input:checked) { border-color:#c56e63; background:#fff0eb; box-shadow:inset 0 0 0 1px #c56e63; }
.live-answers .answer-option.is-wrong .answer-key { color:#fff; background:#9a3e30; border-color:#9a3e30; }
.live-answers .answer-option.is-wrong .answer-circle { border-color:#9a3e30; }
.test-app .progress-card h2 { font-size:18px; letter-spacing:-.02em; }
.guest-history-notice { display:flex; align-items:flex-start; gap:12px; padding:17px 20px; border:1px solid #ead5a5; background:#fff8e6; color:#725320; border-radius:14px; margin-top:22px; font-size:14px; }
.guest-history-notice>.icon { flex-shrink:0; margin-top:3px; }
.guest-history-notice p { margin-top:4px; line-height:1.65; }
.guest-history-notice a { font-weight:650; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:640px) { .guest-history-notice { padding:15px; font-size:13px; } }
