/* SHSAT Practice Engine — neutral test-engine skin (not the Modernist system). */

.eng * { box-sizing: border-box; }
.eng { min-height: 100vh; display: flex; flex-direction: column; background: #e8e9ea; font-family: Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.eng mark { color: inherit; padding: 0 1px; }
.eng-hl { border-radius: 2px; }
.eng-hl-blue { background: #bfe0ff; }
.eng-hl-pink { background: #ffd0e6; }
.eng button { font-family: inherit; }
.eng [hidden] { display: none !important; }

.eng-word { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: -0.02em; color: #fff; }

/* ── Section start screen ─────────────────────────────────────────── */
.eng-start { flex: 1; display: flex; flex-direction: column; background: #e8e9ea; }
.eng-start-bar { background: #3f4a54; border-bottom: 1px solid #2b333b; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.eng-start-body { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 56px 20px 60px; }
.eng-start-card-outer { width: 100%; max-width: 520px; background: #eef0f1; border: 1px solid #c0c4c7; border-radius: 4px; padding: 14px; }
.eng-start-card { background: #fff; border: 1px solid #c6cacd; border-radius: 4px; }
.eng-start-title { margin: 0; text-align: center; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 30px; color: #201e1d; padding: 22px 20px 14px; word-wrap: break-word; }
.eng-start-count-wrap { padding: 0 20px 22px; border-bottom: 2px dashed #ccc; }
.eng-start-count { width: 60%; margin: 0 auto; background: #e4f0f7; border: 1px solid #b7d5e6; border-radius: 4px; padding: 12px 14px; text-align: center; }
.eng-start-count p { margin: 0; font-size: 18px; color: #20434f; }
.eng-start-actions { background: #efefef; padding: 22px 20px 28px; text-align: center; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.eng-btn { border: 1px solid #17527f; padding: 12px 34px; font-size: 16px; font-weight: 700; cursor: pointer; background: #1a5fa0; color: #fff; }
.eng-btn:hover { background: #154d84; }
.eng-btn-sm { padding: 8px 16px; font-size: 13px; }
.eng-btn-ghost { background: #f2f3f4; color: #2c3136; border: 1px solid #9aa1a7; padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.eng-btn-ghost:hover { background: #e2e4e6; }
.eng-btn-icon { background: #4a555f; color: #e6eaed; border: 1px solid #6b7580; padding: 6px 11px; font-size: 12px; cursor: pointer; }

/* ── Test chrome (toolbar + breadcrumb) ──────────────────────────── */
.eng-test { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.eng-toolbar { background: #3f4a54; border-bottom: 1px solid #2b333b; padding: 8px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eng-nav-pair { display: flex; gap: 1px; }
.eng-nav-pair button { color: #fff; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid #17527f; }
.eng-nav-back { background: #1a5fa0; }
.eng-nav-back.is-disabled { background: #5a6a78; }
.eng-nav-next { background: #1a5fa0; }
.eng-nav-next:hover { background: #154d84; }
.eng-tool-group { display: flex; gap: 1px; margin-left: 6px; }
.eng-tool-btn { border: 1px solid #9aa1a7; padding: 8px 12px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: #f2f3f4; color: #2c3136; }
.eng-tool-btn.is-on { background: #3a6ea5; color: #fff; }
.eng-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.eng-timer { display: flex; align-items: center; gap: 8px; }
.eng-timer-text { font-size: 15px; font-weight: 700; color: #e6eaed; font-variant-numeric: tabular-nums; min-width: 76px; text-align: right; }
.eng-timer-text.is-warn { color: #ffb4a3; }
.eng-user-name { font-size: 13px; color: #d6dade; }

/* display:contents keeps Review/Bookmark/tool-group/toolbar-right laid out as
   direct children of .eng-toolbar's flex row above the breakpoint below --
   this wrapper only starts participating in layout (as a dropdown panel)
   once the media query turns it into a real box. */
.eng-toolbar-collapsible { display: contents; }
.eng-toolbar-hamburger { display: none; position: relative; z-index: 202; color: #fff; background: transparent; border: 1px solid #6b7580; padding: 8px 12px; font-size: 15px; cursor: pointer; }
.eng-mobile-menu-backdrop { position: fixed; inset: 0; z-index: 200; }

@media (max-width: 760px) {
  .eng-toolbar-hamburger { display: flex; align-items: center; justify-content: center; }
  .eng-toolbar-collapsible {
    display: none; position: fixed; top: 50px; left: 10px; right: 10px; z-index: 201;
    flex-direction: column; align-items: stretch; gap: 8px; background: #fff; border-radius: 6px;
    padding: 12px; box-shadow: 0 12px 32px rgba(32, 30, 29, .3); max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .eng-toolbar-collapsible.is-open { display: flex; }
  .eng-toolbar-collapsible .eng-tool-group, .eng-toolbar-collapsible .eng-toolbar-right { margin-left: 0; }
  .eng-toolbar-collapsible .eng-toolbar-right { flex-wrap: wrap; }
}

.eng-crumb { background: #f2f3f4; border-bottom: 1px solid #c6cacd; padding: 7px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eng-crumb span.sep { color: #a9aeb2; }
.eng-crumb-item { font-size: 12px; color: #4a5055; }
.eng-crumb-current { font-size: 12px; color: #201e1d; font-weight: 700; }

/* ── Content pane ─────────────────────────────────────────────────── */
.eng-content { flex: 1; min-height: 0; overflow: auto; padding: 16px; background: var(--eng-bg, #e8e9ea); position: relative; }
.eng-pen-layer { position: absolute; inset: 0; z-index: 20; }
.eng-pen-layer canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M3 17l1-4 10-10 3 3-10 10-4 1z' fill='%23000' stroke='%23fff' stroke-width='0.5'/%3E%3C/svg%3E") 2 18, crosshair; }

.eng-pane { display: flex; justify-content: center; }
.eng-pane-inner { width: 100%; max-width: 760px; }
.eng-intro-card { background: #fff; border: 1px solid #c6cacd; box-shadow: 0 1px 2px rgba(32, 30, 29, .12); }
.eng-intro-head { padding: 30px 26px; background: #eceae2; }
.eng-intro-head p { margin: 0 0 4px; text-align: center; font-size: 19px; color: #201e1d; }
.eng-intro-head .strong-sub { font-size: 21px; font-weight: 700; }
.eng-intro-head .grade { font-size: 21px; margin-bottom: 22px; }
.eng-intro-block { background: #fff; border-radius: 10px; padding: 20px 24px 22px; margin-bottom: 22px; }
.eng-intro-block h3 { margin: 0 0 10px; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 20px; color: #201e1d; }
.eng-intro-block p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #2c3136; }
.eng-intro-block p.strong { margin: 0 0 2px; font-weight: 700; color: #201e1d; }
.eng-intro-block p.indent { padding-left: 22px; }
.eng-intro-block ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; color: #2c3136; }
.eng-intro-block ul li { margin-bottom: 14px; }
.eng-intro-foot { padding: 18px 24px 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.eng-intro-foot .hint { font-size: 13px; color: #6b7075; }
.eng-intro-note { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: #5f666c; }

.eng-directions { max-width: 900px; margin: 0 auto; background: var(--eng-pane, #fff); border: 1px solid #c6cacd; box-shadow: 0 1px 2px rgba(32, 30, 29, .1); padding: 28px 34px 34px; color: var(--eng-ink, #201e1d); font-size: var(--eng-font, 15px); }
.eng-directions .head { margin: 0 0 4px; text-align: center; font-size: 1.1em; font-weight: 700; letter-spacing: 0.04em; }
.eng-directions .note { margin: 0 0 20px; font-size: 1em; line-height: 1.65; text-wrap: pretty; }
.eng-directions .dir-label { margin: 26px 0 10px; text-align: center; font-size: 1em; font-weight: 700; }
.eng-directions .dir-body { margin: 0; font-size: 1em; line-height: 1.65; text-wrap: pretty; }

/* Width/shadow tuned to sit closer to TestNav's real itemCanvas (see
   examples/styles/tn.css: `.itemCanvas{box-shadow:0 3px 6px rgba(0,0,0,.5);
   border-radius:4px}`), toned down from that literal value to fit Mokello's
   own softer palette. A plain question hugs its own content height instead
   of stretching to the bottom of the screen -- but a passage item needs the
   opposite: .eng-col-body's internal scroll only works if something in this
   chain has a *definite* height (a percentage height resolves to auto
   against an auto-height ancestor, per spec), so #col-passage being present
   restores the old fixed-height/flex:1 behavior; only WITHOUT a passage does
   the card fall back to auto/hug-content. Do not replace the height branch
   with `max-height` on .eng-item-card -- that was tried and silently broke
   the passage's internal scroll (the whole page scrolled instead). */
.eng-item-grid { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; font-size: var(--eng-font, 15px); }
.eng-item-grid:has(#col-passage:not([hidden])) { height: 100%; }
.eng-item-card { min-height: 0; display: flex; flex-wrap: wrap; align-items: stretch; background: var(--eng-pane, #fff); border: 1px solid #c6cacd; border-radius: 4px; box-shadow: 0 2px 8px rgba(32, 30, 29, .25); }
.eng-item-grid:has(#col-passage:not([hidden])) .eng-item-card { flex: 1; }
.eng-col { flex: 1 1 360px; min-width: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; position: relative; }
.eng-col--divided { border-left: 1px solid #dcdfe2; }

/* Below the width where two 360px columns no longer fit side by side (same
   breakpoint as .eng-toolbar-collapsible above), .eng-item-card's flex-wrap
   already stacks the columns vertically -- but each column's height: 100%
   above (needed on desktop so it can scroll independently inside a
   fixed-height card) keeps claiming the *entire* card height even once
   stacked, so the second column renders far below the visible card instead
   of right after the first. Dropping to height: auto here lets each column
   just hug its own content and fall back to .eng-content's single scroll
   region instead -- see the height-chain warning above this block. */
@media (max-width: 760px) {
  .eng-item-grid:has(#col-passage:not([hidden])) { height: auto; }
  .eng-item-grid:has(#col-passage:not([hidden])) .eng-item-card { flex: initial; }
  .eng-col { height: auto; }
}
.eng-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #dcdfe2; }
.eng-col-kicker { font-size: 0.78em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eng-muted, #6b7075); }
.eng-col-body { flex: 1; min-height: 0; padding: 18px 20px 24px; overflow: auto; color: var(--eng-ink, #201e1d); }
.eng-passage-title { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.18em; font-weight: 700; text-align: center; }
.eng-passage-subhead { margin: 18px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.02em; font-weight: 700; }
.eng-passage-subhead--numbered { margin-left: 2em; }
/* Table captions ("A Brief History of...", "Earliest Speed Records:") are
   stored as an ordinary paragraph whose entire content is one bold span —
   no dedicated markup, since that's exactly what distinguishes a caption
   from any other bold text: it's the only content in its paragraph. */
.eng-passage-para:has(> strong:only-child) { text-align: center; }
.eng-passage-para { margin: 0 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 1em; line-height: 1.72; text-wrap: pretty; }
/* Passage context printed before a title is introductory material, while an
   all-italic paragraph immediately after a title is its byline. */
.eng-passage-para:has(~ .eng-passage-title) { font-style: italic; }
.eng-passage-title + .eng-passage-para:has(> em:only-child) { text-align: center; }
/* Hanging indent: [LN:n]'s first line shifts left by the same amount
   padding-left reserves, so a numbered paragraph's actual text starts at
   the same x position as every other paragraph regardless of the
   number's digit width, and any wrapped (not <br>-forced) line stays
   flush with it too. */
.eng-passage-para--numbered { text-indent: -2em; padding-left: 2em; }
.eng-line-num { display: inline-block; width: 1.4em; text-align: right; margin-right: 0.6em; color: var(--eng-muted, #6b7075); font-size: 0.85em; }
.eng-footnote-ref { font-size: 0.7em; color: var(--eng-muted, #6b7075); }
.eng-footnotes { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #dcdfe2; }
.eng-footnotes ol { margin: 0; padding-left: 20px; font-family: Georgia, "Times New Roman", serif; font-size: 0.85em; line-height: 1.6; color: var(--eng-muted, #6b7075); }
.eng-footnotes li { margin-bottom: 6px; }
.eng-footnote-term { font-weight: 700; color: var(--eng-ink, #201e1d); }
.eng-col-head-right { display: flex; align-items: center; gap: 8px; }
.eng-tool-hint { font-size: 0.75em; color: var(--eng-muted, #6b7075); }
.eng-stem { margin: 0 0 18px; font-size: 1.02em; line-height: 1.6; font-weight: 400; text-wrap: pretty; }
.eng-stem-text { margin: 0 0 18px; font-size: 1em; line-height: 1.6; font-weight: 400; text-wrap: pretty; }
.eng-stem-text:last-child { margin-bottom: 0; }
.eng-stem-quote { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid #4a5055; background: #f2f3f4; font-size: 1em; font-weight: 700; line-height: 1.6; }
.eng-stem-table { margin: 0 0 18px; border-collapse: collapse; font-size: 0.95em; font-weight: 400; }
.eng-stem-table th, .eng-stem-table td { border: 1px solid #9aa1a7; padding: 6px 14px; text-align: left; }
.eng-stem-table th { background: #f2f3f4; font-weight: 700; text-align: center; }
.eng-stem-table td:first-child { text-align: center; }
.eng-table-source { margin: -10px 0 18px; text-align: right; font-style: italic; font-size: 0.8em; color: var(--eng-muted, #6b7075); }
.eng-item-figure { display: block; max-width: 100%; margin: 0 0 18px; border: 1px solid #dcdfe2; }
.eng-choice-image { display: block; max-width: 100%; margin-top: 2px; }
.eng-answer-image { display: block; max-width: 100%; margin-top: 4px; }

.eng-grid-answer { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.eng-grid-answer label { font-size: 0.82em; color: var(--eng-muted, #6b7075); }
.eng-grid-answer input { padding: 12px 14px; font-size: 1.3em; font-variant-numeric: tabular-nums; letter-spacing: 0.14em; border: 1px solid #9aa1a7; background: #fff; color: #201e1d; width: 100%; }
.eng-grid-answer .hint { font-size: 0.78em; color: var(--eng-muted, #6b7075); }

.eng-choices { display: flex; flex-direction: column; gap: 9px; }
.eng-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #c0c4c7; background: var(--eng-pane, #fff); cursor: pointer; position: relative; }
.eng-choice.is-selected { background: var(--eng-selected-bg, #e4eef8); border-color: #1a5fa0; }
.eng-choice-radio { flex: none; margin-top: 4px; accent-color: #1a5fa0; }
.eng-choice-letter { flex: none; font-weight: 700; color: var(--eng-ink, #201e1d); }
.eng-choice.is-selected .eng-choice-letter { color: #1a5fa0; }
.eng-choice-text { font-size: 1em; line-height: 1.55; color: var(--eng-ink, #201e1d); }

.eng-choice.is-eliminated::after,
.eng-choice.is-elim-hover::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to top right, transparent calc(50% - var(--elim-w)), #c62828 calc(50% - var(--elim-w)), #c62828 calc(50% + var(--elim-w)), transparent calc(50% + var(--elim-w))),
        linear-gradient(to bottom right, transparent calc(50% - var(--elim-w)), #c62828 calc(50% - var(--elim-w)), #c62828 calc(50% + var(--elim-w)), transparent calc(50% + var(--elim-w)));
}
.eng-choice.is-eliminated::after { --elim-w: 1.5px; }
.eng-choice.is-elim-hover::after { --elim-w: 0.5px; }

/* ── Floating pencil tools ────────────────────────────────────────── */
.eng-pencil-tools { position: fixed; right: 10px; top: 160px; z-index: 40; display: flex; flex-direction: column; gap: 1px; }
/* touch-action: none on all draggable/resizable surfaces below -- without
   it, iOS cancels the pointer sequence after a few pixels and scrolls the
   page instead of dragging. */
.eng-pencil-tools button { border: 1px solid #16191c; padding: 10px 12px; font-size: 14px; cursor: pointer; }
.eng-pencil-tools .active { background: #2c3136; color: #fff; }
.eng-pencil-tools .pass { background: #3f4a54; color: #e6eaed; }
.eng-pencil-tools .pass.is-disabled { color: #79838c; }

/* ── Notepad ──────────────────────────────────────────────────────── */
.eng-notepad { position: fixed; z-index: 60; width: 640px; background: #fff; border: 1px solid #8f959a; box-shadow: 0 12px 32px rgba(32, 30, 29, .28); }
.eng-notepad-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: #3f4a54; color: #fff; cursor: move; touch-action: none; }
.eng-notepad-head span { font-size: 13px; font-weight: 700; }
.eng-notepad-close { background: transparent; border: 0; color: #fff; font-size: 15px; cursor: pointer; line-height: 1; }
.eng-notepad textarea { width: 100%; height: 380px; border: 0; background: #fff; caret-color: #1a5fa0; padding: 12px; font-size: 13px; line-height: 1.6; resize: none; outline: none; color: #201e1d; box-sizing: border-box; }

/* ── Line reader mask ─────────────────────────────────────────────── */
.eng-lr { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.eng-lr-shade { position: absolute; background: #201e1d; cursor: move; pointer-events: auto; touch-action: none; }
.eng-lr-outer-resize { position: absolute; width: 14px; height: 14px; background: #3f4a54; border: 1px solid #fff; cursor: nwse-resize; pointer-events: auto; display: flex; align-items: center; justify-content: center; touch-action: none; }
.eng-lr-hole-handle { position: absolute; height: 18px; background: #201e1d; border-top: 2px solid #ffd34d; border-bottom: 2px solid #ffd34d; cursor: grab; pointer-events: auto; display: flex; align-items: center; justify-content: center; touch-action: none; }
.eng-lr-hole-resize { position: absolute; right: 0; top: 0; bottom: 0; width: 18px; background: #ffd34d; cursor: nwse-resize; display: flex; align-items: center; justify-content: center; touch-action: none; }
.eng-lr-move-icon { color: #ffd34d; pointer-events: none; }
.eng-lr-resize-icon { pointer-events: none; }
.eng-lr-resize-icon line { stroke: currentColor; stroke-width: 1.4; }
.eng-lr-outer-resize .eng-lr-resize-icon { color: #fff; }
.eng-lr-hole-resize .eng-lr-resize-icon { color: #201e1d; }

/* ── Highlighter toolbar (mirrors TestNav's #contextMenu highlighter buttons) ── */
.eng-hl-toolbar { position: fixed; z-index: 65; transform: translate(-50%, -100%); text-align: center; }
.eng-hl-btn-group { display: flex; border: 1px solid #bfbfbf; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(32, 30, 29, .3); }
.eng-hl-btn { display: flex; align-items: center; justify-content: center; padding: 6px 10px; border: none; border-right: 1px solid #bfbfbf; background: linear-gradient(to bottom, #ffffff, #e6e6e6); cursor: pointer; }
.eng-hl-btn:last-child { border-right: none; }
.eng-hl-btn:hover { background: linear-gradient(to bottom, #f5f5f5, #d8d8d8); }
.eng-hl-swatch { display: block; width: 14px; height: 14px; border: 1px solid #999; }
.eng-hl-swatch-clear { background-image: linear-gradient(135deg, #fff 0%, #fff 40%, #a22a1f 41%, #a22a1f 59%, #fff 60%, #fff 100%); }
.eng-hl-swatch-blue { background: #87ceeb; }
.eng-hl-swatch-pink { background: #ffb6c1; }
.eng-hl-arrow-wrap { position: relative; height: 8px; }
.eng-hl-arrow-border { position: absolute; left: 50%; top: -1px; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 9px solid #b3b3b3; }
.eng-hl-arrow { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid #e6e6e6; }

/* ── Magnifier ────────────────────────────────────────────────────── */
.eng-magnifier { position: fixed; z-index: 70; width: 200px; height: 200px; overflow: hidden; border: 1px solid #201e1d; box-shadow: 0 12px 32px rgba(32, 30, 29, .4); cursor: move; background: #fff; touch-action: none; }
.eng-magnifier-content { position: absolute; top: 0; left: 0; }

/* ── Modals ───────────────────────────────────────────────────────── */
/* Blocking dialogs stay above every test-taking layer, including the mobile
   nav (200), drawing canvas (20), and all floating tool panels (up to 100). */
.eng-modal-backdrop { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(32, 30, 29, .5); }
.eng-modal { width: min(440px, 100%); background: #fff; border: 1px solid #8f959a; box-shadow: 0 18px 44px rgba(32, 30, 29, .34); }
.eng-modal.wide { width: min(620px, 100%); max-height: 82vh; overflow: auto; }
.eng-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #3f4a54; color: #fff; }
.eng-modal-head.sticky { position: sticky; top: 0; }
.eng-modal-head.warn { background: #8a5a00; }
.eng-modal-head span { font-size: 15px; font-weight: 700; }
.eng-modal-body { padding: 20px 18px; }
.eng-modal-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: #2c3136; }
.eng-modal-body p:last-child { margin-bottom: 0; }
.eng-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid #dcdfe2; }
.eng-modal-actions.sticky { position: sticky; bottom: 0; background: #fff; }
.eng-modal-close { background: transparent; border: 1px solid #6b7580; color: #fff; padding: 5px 11px; font-size: 12px; cursor: pointer; }

/* ── Review dropdown (mirrors TestNav's anchored tab+list popover) ──── */
.eng-review-backdrop { position: fixed; inset: 0; z-index: 89; }
.eng-review-dropdown { position: fixed; z-index: 90; width: 270px; background: #fff; border-radius: 4px; box-shadow: 0 2px 10px rgba(32, 30, 29, .3); overflow: hidden; }
.eng-review-tabs { display: flex; height: 80px; }
.eng-review-tab { flex: 1 1 90px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 8px 4px 10px; background: #f2f2f2; border: 0; border-top: 1px solid #ccc; border-left: 1px solid #ccc; font-size: 12px; color: #333; cursor: pointer; }
.eng-review-tab:last-child { border-right: 1px solid #ccc; }
.eng-review-tab.is-on { background: #fff; border-bottom: 2px solid #0074cc; }
.eng-review-tab-badge { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; line-height: 1; }
.eng-review-tab-badge-all { background: #fff; border: 2px solid #9aa1a7; border-radius: 4px; color: #333; }
.eng-review-tab-badge-unanswered { background: #fca227; border: 1px solid #444; border-radius: 50%; color: #fff; }
.eng-review-tab-badge-bookmarks { background: #1a5fa0; color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.eng-review-tab-label { font-size: 11px; line-height: 1.2; }
.eng-review-list { width: 270px; max-height: 415px; overflow-y: auto; border-top: 1px solid #ccc; }
.eng-review-row { height: 40px; line-height: 40px; padding: 0 14px 0 33px; border-bottom: 1px solid #ccc; font-size: 15px; color: #333; cursor: pointer; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eng-review-row:last-child { border-bottom: 0; }
.eng-review-row:hover { background: linear-gradient(to bottom, #0074cc, #0044cc); color: #fff; }
.eng-review-row.is-current { background: linear-gradient(to bottom, #666666, #444444); color: #fff; cursor: default; }
.eng-review-dot { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: #fca227; border: 1px solid #444; }
.eng-review-bookmark { position: absolute; right: 10px; top: -6px; width: 16px; height: 20px; background: #1a5fa0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }

/* ── User menu / contrast dialog ──────────────────────────────────── */
.eng-user-menu-backdrop { position: fixed; inset: 0; z-index: 100; }
.eng-user-menu { position: absolute; right: 12px; top: 50px; width: 280px; background: #fff; border: 1px solid #8f959a; box-shadow: 0 12px 32px rgba(32, 30, 29, .3); }
.eng-user-menu button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #e7e9eb; padding: 11px 14px; font-size: 13px; color: #1a5fa0; cursor: pointer; }
.eng-user-menu button:last-child { border-bottom: 0; }
.eng-user-menu button:hover { background: #f2f6fa; }

.eng-contrast-options { padding: 10px 0; }
.eng-contrast-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; }
.eng-contrast-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #6b7075; }
.eng-contrast-sample { flex: none; padding: 4px 10px; border: 1px solid #201e1d; font-size: 13px; }
.eng-contrast-label { font-size: 13px; color: #2c3136; }

/* ── Practice configure screen ────────────────────────────────────── */
.eng-config-wrap { padding: 0 20px 22px; border-bottom: 2px dashed #ccc; display: flex; flex-direction: column; gap: 18px; }
.eng-config-block { display: flex; flex-direction: column; gap: 8px; }
.eng-config-label { font-size: 12px; font-weight: 700; color: #4a5055; text-transform: uppercase; letter-spacing: 0.06em; }
.eng-subject-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.eng-subject-btn { flex: 1 1 160px; border: 1px solid #9aa1a7; background: #f2f3f4; color: #2c3136; padding: 12px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.eng-subject-btn.is-on { background: #1a5fa0; border-color: #17527f; color: #fff; }
.eng-topic-count { font-weight: 400; opacity: 0.7; }
.eng-config-count { width: 120px; padding: 10px 12px; font-size: 16px; border: 1px solid #9aa1a7; }

/* ── Exhibits (practice) — TestNav-matching sidebar trigger + draggable modal ── */
/* Exact values pulled from examples/styles/tn.css's #exhibit-sidebar /
   .exhibit-sidebar-button / .tn8-draggable-modal rules. */
.eng-exhibit-sidebar {
  position: fixed; right: 0; top: 30%; z-index: 59; width: 53px; height: 50px;
  border: 0; border-radius: 6px 0 0 6px; cursor: pointer; padding: 6px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(#474747, #636363); color: #fff;
  box-shadow: -1px 1px 4px rgba(0, 0, 0, .25);
}
.eng-exhibit-sidebar:hover, .eng-exhibit-sidebar.is-open { box-shadow: -1px 1px 4px rgba(0, 0, 0, .4); }
.eng-exhibit-sidebar-label { font-size: 12px; font-weight: 700; }
.eng-exhibit-sidebar-icon { font-size: 16px; }

.eng-exhibits-modal {
  position: fixed; z-index: 60; min-width: 320px; min-height: 200px; display: flex; flex-direction: column;
  background: #fff; border-radius: 10px 10px 6px 6px; box-shadow: 0 12px 32px rgba(32, 30, 29, .28);
  overflow: hidden;
}
.eng-exhibits-modal-head {
  display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 15px;
  cursor: move; background: linear-gradient(#fff, #e6e6e6); border-bottom: 1px solid #ccc; touch-action: none;
}
.eng-exhibits-modal-head h2 { margin: 0; font-size: 16px; font-weight: 400; color: #666; }
.eng-exhibits-modal-close { background: transparent; border: 0; color: #666; font-size: 16px; cursor: pointer; line-height: 1; }
.eng-exhibits-tabs { display: flex; gap: 2px; padding: 10px 10px 0; border-bottom: 1px solid #ddd; }
.eng-exhibits-tab { border: 1px solid transparent; border-bottom: 0; background: transparent; color: #4a5055; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 4px 4px 0 0; margin-bottom: -1px; }
.eng-exhibits-tab.is-on { border-color: #ddd; border-bottom-color: #fff; background: #fff; color: #201e1d; font-weight: 700; }
.eng-exhibits-tab--reference.is-on { background: #3a6ea5; border-color: #3a6ea5; color: #fff; }
.eng-exhibits-tab--explanation { color: #1a6b3c; }
.eng-exhibits-tab--explanation.is-on { background: #1a6b3c; border-color: #1a6b3c; color: #fff; }
.eng-exhibits-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; }
.eng-exhibits-resize { position: absolute; right: 4px; bottom: 4px; width: 14px; height: 14px; color: #9aa1a7; cursor: nwse-resize; display: flex; align-items: center; justify-content: center; touch-action: none; }
.eng-exhibit-answer { margin: 0 0 14px; padding: 10px 12px; font-size: 1em; font-weight: 700; line-height: 1.5; color: #1a6b3c; background: #eef7f0; border: 1px solid #cfe8d6; }
.eng-exhibit-concept { margin: 0 0 10px; font-size: 0.82em; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--eng-muted, #6b7075); }
.eng-exhibit-explanation-text { font-size: 1em; line-height: 1.6; color: var(--eng-ink, #201e1d); }
.eng-exhibit-reference { margin: 0; padding-left: 20px; font-size: 1em; line-height: 1.6; color: var(--eng-ink, #201e1d); }
.eng-exhibit-reference li { margin-bottom: 10px; }
/* Per-choice "why is this right/wrong" breakdown -- shared markup between
   the exhibit panel, the report row detail, and the print-review popup
   (renderChoiceExplanationsHtml, test-chrome.ts), so one rule covers all
   three instead of each carrying its own copy. */
.eng-choice-explanations { margin: 14px 0 0; padding-left: 20px; font-size: 1em; line-height: 1.6; color: var(--eng-ink, #201e1d); }
.eng-choice-explanations li { margin-bottom: 10px; }
.eng-choice-explanations ul { margin: 6px 0 0; padding-left: 20px; }
.eng-choice-explanations ul li { margin-bottom: 0; }

/* ── Score report ─────────────────────────────────────────────────── */
.eng-report { height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 44px 20px 64px; background: #e8e9ea; }
.eng-report-inner { width: 100%; max-width: 820px; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.eng-report-brand { flex: none; display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.eng-report-brand .word { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: #201e1d; }
.eng-report-brand .sub { font-size: 12px; color: #6b7075; letter-spacing: 0.04em; text-transform: uppercase; }
.eng-report-card { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #c6cacd; box-shadow: 0 1px 2px rgba(32, 30, 29, .12); }
.eng-report-card--summary { flex: none; }
.eng-report-summary { flex: none; padding: 28px 26px 24px; border-bottom: 1px solid #dcdfe2; display: flex; gap: 32px; align-items: flex-end; flex-wrap: wrap; }
.eng-report-summary .stat-label { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: #6b7075; margin-bottom: 6px; }
.eng-report-composite { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 64px; line-height: 1; color: #201e1d; font-variant-numeric: tabular-nums; }
.eng-report-summary .stat-sub { font-size: 12px; color: #6b7075; margin-top: 6px; }
.eng-report-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.eng-report-stat-value { font-size: 26px; font-weight: 700; color: #201e1d; font-variant-numeric: tabular-nums; }
.eng-result-rows { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0 6px; }
.eng-result-row { display: flex; align-items: center; gap: 14px; padding: 11px 26px; border-bottom: 1px solid #eef0f1; }
.eng-result-row .n { flex: none; width: 28px; font-weight: 700; font-size: 13px; color: #201e1d; font-variant-numeric: tabular-nums; }
.eng-result-row .label { flex: 1; min-width: 0; font-size: 13px; color: #2c3136; }
.eng-result-row .given, .eng-result-row .answer { flex: none; font-size: 13px; color: #6b7075; font-variant-numeric: tabular-nums; }
.eng-result-row .mark { flex: none; width: 80px; text-align: right; font-size: 12px; font-weight: 700; }
.eng-result-toggle { flex: none; width: 26px; height: 26px; border: 1px solid #c6cacd; background: #f2f3f4; color: #4a5055; font-size: 11px; cursor: pointer; transition: transform 0.15s; }
.eng-result-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.eng-result-detail { padding: 4px 26px 16px 68px; border-bottom: 1px solid #eef0f1; background: #fafbfb; }
.eng-result-answer { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #1a6b3c; }
.eng-result-explanation { margin: 0; font-size: 13px; line-height: 1.6; color: #2c3136; }
.eng-report-actions { flex: none; display: flex; gap: 12px; padding: 18px 26px 22px; flex-wrap: wrap; border-top: 1px solid #dcdfe2; }
.eng-report-note { flex: none; margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: #5f666c; }
