/* Full test: styled after the real test platform (white page, thin red line under the header,
   navy question counter, square answer boxes, centred outlined red Next button). One fixed light look. */
body.exam-mode { background: #ffffff; color: #222; color-scheme: light; }
body.exam-mode .wrap > header.top, body.exam-mode nav.rail { display: none; }
body.exam-mode .wrap { max-width: 1100px; padding-block: 0 48px; }
body.fulltest-hidden {}
.panel.fulltest { border-color: #e3b4b8; }

.x-page { --x-red: #be1d2c; --x-red2: #cc0000; --x-navy: #1c3866; --x-ink: #333366; --x-grey: #605d5e; --x-green: #2e9e5b; --x-orange: #e6862e;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif; font-weight: 300; color: #222; display: flex; flex-direction: column; gap: 20px;
  -webkit-user-select: none; user-select: none;
  /* the shared avatar uses these colour tokens: keep them light on this fixed white page */
  --accent: #1c3866; --accent-soft: #f3e3e4; --surface: #ffffff; --ink: #222222; --line: #dddddd; --muted: #666666; }
.x-page textarea, .x-page input { -webkit-user-select: text; user-select: text; }
.x-page b, .x-page strong { font-weight: 600; }

.x-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 18px 0 10px; border-bottom: 2px solid var(--x-red); }
.x-brand { display: flex; flex-direction: column; gap: 2px; }
.x-mark { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 700; color: var(--x-red); letter-spacing: .02em; }
.x-sub { font-size: .72rem; color: var(--x-grey); }
.x-meta { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.x-who { color: var(--x-grey); font-size: .95rem; }
.x-who span { margin-left: 14px; }
.x-time { color: var(--x-red); font-size: .95rem; font-variant-numeric: tabular-nums; min-height: 1.4em; }

.x-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.x-card { border: 1px solid #e5e5e5; border-radius: 10px; padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.x-card h2 { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--x-ink); font-size: 1.4rem; }
.x-card h3 { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--x-ink); font-size: 1.05rem; margin-top: 6px; }
.x-card ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.x-part { color: var(--x-red); font-weight: 400; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }

.x-qrow { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.x-count { color: var(--x-ink); line-height: 1; display: flex; align-items: flex-end; flex: 0 0 auto; }
.x-count b { font-size: 50px; font-weight: 300; }
.x-count span { font-size: 20px; margin-bottom: 4px; }
.x-qtext { flex: 1 1 400px; min-width: 0; font-weight: 600; font-size: 1.1rem; line-height: 1.5; padding-top: 14px; }
.x-qtext table.mini { font-weight: 400; }
.x-countdown { color: var(--x-navy); font-weight: 400; padding-top: 14px; font-variant-numeric: tabular-nums; }
.x-fig { display: flex; justify-content: center; overflow-x: auto; }
.x-fig svg { max-width: 100%; height: auto; }
.x-page .x-fig svg { --surface: #fff; --ink: #222; --accent: #1c3866; --line: #999; --muted: #666; }

.x-opts { display: flex; flex-direction: column; gap: 6px; padding-left: 64px; }
@media (max-width: 640px) { .x-opts { padding-left: 0; } }
.x-opt { font: inherit; font-weight: 300; font-size: 1.05rem; text-align: left; display: flex; gap: 12px; align-items: center;
  background: none; border: 0; padding: 8px 6px; color: #222; cursor: pointer; border-radius: 4px; width: 100%; }
.x-opt:hover { background: #f6f6f8; }
.x-box { flex: 0 0 auto; width: 16px; height: 16px; border: 1px solid #dcdfe6; border-radius: 2px; background: #fff; position: relative; }
.x-opt[aria-pressed="true"] .x-box { background: #409eff; border-color: #409eff; }
.x-opt[aria-pressed="true"] .x-box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.x-opt[aria-pressed="true"] { color: #409eff; }

.x-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 800px) { .x-split { grid-template-columns: 1fr; } }
.x-passage { border: 1px solid #e5e5e5; border-radius: 6px; padding: 16px 18px; max-height: 520px; overflow-y: auto; font-weight: 400; line-height: 1.6; }
.x-passage h3 { color: var(--x-ink); font-weight: 600; margin-bottom: 8px; }
.x-passage p + p { margin-top: 10px; }
.x-picture { max-width: 520px; border: 1px solid #ddd; margin-left: 64px; }
@media (max-width: 640px) { .x-picture { margin-left: 0; } }
.x-picture svg { display: block; width: 100%; height: auto; }
.x-text { width: min(750px, 100%); min-height: 300px; margin-left: 64px; border: 1px solid #c0c4cc; border-radius: 2px; padding: 10px 12px;
  font: 400 1.05rem/1.6 "Poppins", "Segoe UI", sans-serif; color: #222; background: #fff; resize: vertical; }
@media (max-width: 640px) { .x-text { margin-left: 0; } }

.x-center { display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; }
.x-centertext { text-align: center; align-items: center; }
.x-gap { gap: 12px; margin-top: 8px; }
.x-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.x-centerrow { justify-content: center; }
.x-next { font: 400 1rem "Poppins", sans-serif; width: 220px; height: 48px; border-radius: 10px; border: 1px solid var(--x-red2);
  background: #fff; color: var(--x-red2); cursor: pointer; }
.x-next:hover:not(:disabled) { background: var(--x-red2); color: #fff; }
.x-next:disabled { opacity: .4; cursor: default; }
.x-btn { font: 400 .95rem "Poppins", sans-serif; padding: 9px 18px; border-radius: 4px; border: 1px solid #dcdfe6; background: #fff; color: #606266; cursor: pointer; }
.x-btn:disabled { opacity: .45; cursor: default; }
.x-btn.x-green { background: #f0f9eb; border-color: #c2e7b0; color: #67c23a; }
.x-btn.x-green:hover:not(:disabled) { background: #67c23a; color: #fff; }
.x-btn.x-orange { background: #fdf6ec; border-color: #f5dab1; color: #e6a23c; }
.x-btn.x-orange:hover:not(:disabled) { background: #e6a23c; color: #fff; }
.x-link { font: inherit; background: none; border: 0; color: var(--x-navy); text-decoration: underline; cursor: pointer; padding: 4px; }
.x-input { font: 400 1rem "Poppins", sans-serif; border: 1px solid #c0c4cc; border-radius: 4px; padding: 8px 10px; width: min(320px, 100%); color: #222; background: #fff; }
.x-page :focus-visible { outline: 3px solid #409eff; outline-offset: 2px; }
.x-warn { color: var(--x-red2); }
.x-muted { color: #888; font-size: .9rem; }
.x-big { font-size: 2.4rem; color: var(--x-ink); font-variant-numeric: tabular-nums; }

/* toast like the real "Please answer" message */
.x-toast { position: fixed; top: calc(20px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 50;
  background: #fdf6ec; border: 1px solid #faecd8; color: #e6a23c; padding: 10px 20px; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.1); font-weight: 400; }
.x-modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 60; padding: 16px; }
.x-modal { background: #fff; border-radius: 6px; padding: 22px 26px; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.x-modal h3 { color: var(--x-ink); font-weight: 600; }

/* interview: interviewer (red box) → you (navy box) */
.x-stage { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.x-box-red, .x-box-navy { width: min(400px, 100%); aspect-ratio: 400 / 280; border-radius: 4px; display: grid; place-items: center; position: relative; overflow: hidden; }
.x-box-red { background: #c9252d; }
.x-box-navy { background: #1c3866; color: #fff; }
.x-box-red .avatar { width: 62%; }
.x-box-navy video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.x-arrow { color: #1c3866; font-size: 1.8rem; }
@media (max-width: 640px) {               /* keep both boxes side by side so the buttons stay on screen */
  .x-stage { flex-wrap: nowrap; gap: 8px; }
  .x-box-red, .x-box-navy { width: 48%; }
  .x-arrow { display: none; }
  .x-mic { font-size: 1.6rem; } .x-mic .meter { width: 80%; }
}
.x-mic { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 2.6rem; }
.x-mic .meter { width: 180px; background: rgba(255,255,255,.25); }
.x-mic .meter i { background: #fff; }
.x-recdot { position: absolute; top: 10px; right: 12px; color: #ff5a5a; font-size: .85rem; font-weight: 600; }
.x-rec-timer { color: var(--x-red2); font-size: 1.6rem; font-weight: 400; padding-top: 10px; font-variant-numeric: tabular-nums; }
.x-controls { gap: 12px; min-height: 90px; }
.x-say { font-weight: 400; font-size: 1.05rem; }
.x-help { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; flex-direction: column; }

/* results */
.x-tick { width: 64px; height: 64px; border-radius: 50%; background: #67c23a; color: #fff; display: grid; place-items: center; font-size: 2rem; }
.x-table { border-collapse: collapse; width: 100%; font-weight: 400; }
.x-table th, .x-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }
.x-table th { color: var(--x-grey); font-weight: 600; font-size: .85rem; }
.x-rev { border-left: 4px solid #ddd; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; font-weight: 400; }
.x-rev.ok { border-left-color: #67c23a; } .x-rev.no { border-left-color: var(--x-red2); }
.x-ex { background: #f6f7f9; padding: 6px 10px; border-radius: 4px; font-size: .95rem; }
