/* Test-driver look: Pearson VUE delivery of the GMAT exam. */
.exam {
  --pv-title: #1d3a66;
  --pv-tool: #46719f;
  --pv-tool-2: #3c6592;
  --pv-foot: #1d3a66;
  --pv-line: #c9d3df;
  --pv-text: #1e1e1e;
  --pv-sel: #1d3a66;
  position: fixed; inset: 0; display: flex; flex-direction: column;
  background: #fff; color: var(--pv-text);
  font: 16px/1.55 Arial, Helvetica, sans-serif;
  user-select: none; -webkit-user-select: none;
  z-index: 50;
}
.exam * { box-sizing: border-box; }

/* Title bar */
.pv-title {
  height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between;
  background: var(--pv-title); color: #fff; padding: 0 16px; border-bottom: 1px solid #12284a;
}
.pv-title .pv-name { font-size: 16px; font-weight: bold; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-title .pv-status { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.pv-stat { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.pv-stat:hover { background: rgba(255,255,255,.12); }
.pv-stat svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.pv-stat .pv-val { font-variant-numeric: tabular-nums; font-weight: bold; }
.pv-stat.hidden-val .pv-val { display: none; }
.pv-stat.warn .pv-val { color: #ffd34d; }

/* Toolbar */
.pv-tools {
  height: 40px; flex: none; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(#5480b0, var(--pv-tool)); padding: 0 12px; border-bottom: 1px solid #2f557f;
}
.pv-tools .grp { display: flex; gap: 8px; align-items: center; }

/* Footer */
.pv-foot {
  height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between;
  background: var(--pv-foot); padding: 0 14px; border-top: 1px solid #12284a;
}
.pv-foot .grp { display: flex; gap: 10px; align-items: center; }

.pv-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px;
  background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.8);
  border-radius: 3px; font: bold 14px Arial, Helvetica, sans-serif; cursor: pointer; white-space: nowrap;
}
.pv-btn:hover { background: rgba(255,255,255,.18); }
.pv-btn:active { background: rgba(255,255,255,.28); }
.pv-btn[disabled] { opacity: .45; cursor: default; background: transparent; }
.pv-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pv-btn u { text-decoration: underline; text-underline-offset: 2px; }
.pv-btn.on { background: #fff; color: var(--pv-title); }
.pv-btn.on svg { fill: var(--pv-title); stroke: var(--pv-title); }
.pv-btn.quiet { border-color: rgba(255,255,255,.35); font-weight: normal; opacity: .85; }

/* Main content */
.pv-main { flex: 1; overflow: auto; position: relative; background: #fff; user-select: text; -webkit-user-select: text; }
.pv-single { max-width: 960px; margin: 0 auto; padding: 34px 40px 60px; }
.pv-split { display: flex; height: 100%; }
.pv-split > .pane { flex: 1 1 50%; overflow: auto; padding: 28px 32px 48px; }
.pv-split > .pane.left { border-right: 4px solid #d5dde8; background: #fff; }
.pv-split > .pane.right { background: #fff; }

.q-stem { margin: 0 0 22px; }
.q-stem p { margin: 0 0 14px; }
.q-prompt { margin: 6px 0 22px; font-weight: normal; }
.q-center { text-align: center; margin: 12px 0; font-size: 18px; }
.q-list { margin: 12px 0 4px 24px; font-size: 17px; letter-spacing: .3px; }
.q-rn { margin: 12px 0 4px 24px; line-height: 1.9; }
.q-passage p { margin: 0 0 14px; text-indent: 0; }
.q-passage { line-height: 1.7; }
.q-dir { font-size: 14.5px; color: #333; margin-bottom: 16px; font-style: italic; }

/* Answer options */
.opts { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 3px; cursor: pointer; }
.opt:hover { background: #f1f5fa; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.radio {
  flex: none; width: 19px; height: 19px; margin-top: 2px; border-radius: 50%;
  border: 2px solid #59626e; background: #fff; display: inline-grid; place-items: center;
}
.radio::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: transparent; }
input:checked + .radio { border-color: var(--pv-sel); }
input:checked + .radio::after { background: var(--pv-sel); }
input:focus-visible + .radio { outline: 2px solid #f0a500; outline-offset: 2px; }
.opt.locked { cursor: default; }
.opt.locked:hover { background: transparent; }

/* Math */
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 2px; font-size: .92em; line-height: 1.15; }
.frac > .fn { border-bottom: 1px solid currentColor; padding: 0 3px 1px; }
.frac > .fd { padding: 1px 3px 0; }
.sqrt { white-space: nowrap; }
.sqrt > .rad { border-top: 1px solid currentColor; padding: 0 2px; margin-left: 1px; }
sup, sub { font-size: .72em; line-height: 0; }

/* Data Sufficiency */
.ds-st { margin: 18px 0 24px 8px; line-height: 1.9; }

/* Tables (TPA, TA, yes/no) */
.grid-table { border-collapse: collapse; margin: 8px 0 18px; }
.grid-table th, .grid-table td { border: 1px solid #b9c4d2; padding: 7px 12px; text-align: left; vertical-align: middle; }
.grid-table th { background: #e6edf6; font-weight: bold; font-size: 14.5px; }
.grid-table td.rc { text-align: center; width: 92px; }
.grid-table td.rc .opt { justify-content: center; padding: 4px; }
.grid-table td.rc .opt .radio { margin: 0; }
.tpa th.colh { text-align: center; width: 110px; }
.data-table { border-collapse: collapse; font-size: 14.5px; margin: 6px 0 10px; min-width: 60%; }
.data-table th, .data-table td { border: 1px solid #b9c4d2; padding: 6px 10px; }
.data-table th { background: #e6edf6; text-align: center; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sortbar { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 14.5px; }
.sortbar select, .gi-sel {
  font: 14.5px Arial, sans-serif; padding: 3px 6px; border: 1px solid #7b8796; border-radius: 2px; background: #fff; color: #111;
}
.gi-text { line-height: 2.3; margin-top: 18px; }
.gi-sel { min-width: 140px; margin: 0 3px; }
.chart-wrap { margin: 10px 0 8px; max-width: 680px; }
.chart-wrap svg { width: 100%; height: auto; display: block; }

/* MSR tabs */
.msr-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--pv-title); margin-bottom: 14px; flex-wrap: wrap; }
.msr-tab { padding: 7px 14px; background: #dfe6ef; border: 1px solid #b9c4d2; border-bottom: none; cursor: pointer; font: bold 14px Arial, sans-serif; color: #24364f; border-radius: 3px 3px 0 0; }
.msr-tab.on { background: var(--pv-title); color: #fff; border-color: var(--pv-title); }
.msr-src { font-size: 15px; line-height: 1.6; }
.msr-src p { margin: 0 0 12px; }

/* Info screens */
.pv-doc { max-width: 900px; margin: 0 auto; padding: 36px 44px 60px; }
.pv-doc h1 { font-size: 24px; margin: 0 0 18px; color: #142c52; }
.pv-doc h2 { font-size: 18px; margin: 22px 0 8px; color: #142c52; }
.pv-doc p, .pv-doc li { margin: 0 0 10px; }
.pv-doc table.sum { border-collapse: collapse; margin: 14px 0 18px; }
.pv-doc table.sum th, .pv-doc table.sum td { border: 1px solid #b9c4d2; padding: 8px 16px; text-align: left; }
.pv-doc table.sum th { background: #e6edf6; }
.order-table { border-collapse: collapse; margin: 16px 0; }
.order-table td, .order-table th { border: 1px solid #b9c4d2; padding: 10px 16px; }
.order-table th { background: #e6edf6; }
.order-table tr.sel td { background: #eef4fb; }
.order-table td.pick { width: 54px; text-align: center; }
.agree-box { border: 1px solid #b9c4d2; background: #f8fafc; padding: 18px 22px; height: 300px; overflow: auto; font-size: 14.5px; }

/* Review & Edit */
.rv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rv-edits { font-weight: bold; color: #142c52; background: #eef3f9; border: 1px solid #c9d3df; padding: 6px 12px; border-radius: 3px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin: 20px 0; }
.rv-cell {
  position: relative; height: 62px; border: 1px solid #9fb0c6; border-radius: 3px; background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font: bold 17px Arial, sans-serif; color: #142c52;
}
.rv-cell:hover { background: #eef4fb; border-color: #46719f; }
.rv-cell small { font: normal 11.5px Arial, sans-serif; color: #5b6b80; margin-top: 2px; }
.rv-cell .bm { position: absolute; top: 4px; right: 6px; width: 14px; height: 18px; }
.rv-cell .bm svg { width: 14px; height: 18px; fill: #c8102e; stroke: #8a0b20; stroke-width: 1; }
.rv-cell.edited { border-color: #46719f; background: #f3f7fc; }
.rv-legend { display: flex; gap: 18px; align-items: center; font-size: 14px; color: #3b4a5e; }
.rv-legend svg { width: 12px; height: 16px; fill: #c8102e; vertical-align: -2px; }
.rv-note { background: #fff8e1; border: 1px solid #e8d49a; padding: 8px 12px; border-radius: 3px; font-size: 14.5px; margin: 0 0 16px; }

/* Break */
.brk { text-align: center; padding-top: 80px; }
.brk .clock { font: bold 56px Arial, sans-serif; color: #142c52; font-variant-numeric: tabular-nums; margin: 18px 0; }

/* Dialogs */
.pv-modal-back { position: fixed; inset: 0; background: rgba(15, 25, 40, .35); display: grid; place-items: center; z-index: 200; }
.pv-modal {
  width: min(460px, calc(100vw - 32px)); background: #fff; border: 1px solid #1d3a66; box-shadow: 0 10px 40px rgba(0,0,0,.35);
  font: 15px/1.5 Arial, Helvetica, sans-serif;
}
.pv-modal .hd { background: var(--pv-title, #1d3a66); color: #fff; font-weight: bold; padding: 9px 14px; font-size: 15px; }
.pv-modal .bd { padding: 20px 20px 10px; color: #1e1e1e; }
.pv-modal .ft { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px 16px; }
.pv-modal .ft button {
  min-width: 78px; height: 32px; padding: 0 16px; border: 1px solid #1d3a66; background: #fff; color: #1d3a66;
  font: bold 14px Arial, sans-serif; border-radius: 3px; cursor: pointer;
}
.pv-modal .ft button.primary { background: #1d3a66; color: #fff; }
.pv-modal .ft button:hover { filter: brightness(1.08); }

/* Floating tool windows */
.tool-win {
  position: fixed; z-index: 150; background: #eef1f5; border: 1px solid #1d3a66; box-shadow: 0 8px 28px rgba(0,0,0,.3);
  user-select: none;
}
.tool-win .hd { background: #1d3a66; color: #fff; font: bold 14px Arial, sans-serif; padding: 6px 10px; display: flex; justify-content: space-between; align-items: center; cursor: move; }
.tool-win .hd button { background: none; border: none; color: #fff; font: bold 18px Arial; cursor: pointer; line-height: 1; padding: 0 2px; }

.calc { width: 268px; }
.calc .disp { margin: 10px; background: #fff; border: 1px solid #8a96a6; height: 52px; text-align: right; padding: 4px 8px; font: 24px "Consolas", "Courier New", monospace; overflow: hidden; position: relative; }
.calc .disp .mem { position: absolute; left: 6px; top: 3px; font: bold 11px Arial; color: #555; }
.calc .keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 0 10px 10px; }
.calc .keys button { height: 34px; border: 1px solid #9aa6b5; background: linear-gradient(#fff, #e3e8ee); border-radius: 3px; font: 14px Arial, sans-serif; cursor: pointer; }
.calc .keys button:active { background: #cfd8e3; }
.calc .keys button.op { font-weight: bold; }
.calc .keys button.eq { grid-row: span 2; height: auto; background: linear-gradient(#f4f8fc, #cbd8e8); font-weight: bold; }

.wb { display: flex; flex-direction: column; resize: both; overflow: hidden; min-width: 380px; min-height: 280px; max-width: 100vw; max-height: 100vh; }
.wb.max { left: 6px !important; top: 6px !important; width: calc(100vw - 12px) !important; height: calc(100vh - 12px) !important; resize: none; }
.wb .hd .wb-max { font-size: 15px; margin-left: auto; margin-right: 8px; }
.wb .wb-bar { display: flex; gap: 6px; padding: 6px; background: #dde4ec; border-bottom: 1px solid #b6c1cf; flex-wrap: wrap; align-items: center; flex: none; }
.wb .wb-bar .seg { display: flex; gap: 3px; padding-right: 6px; border-right: 1px solid #b6c1cf; }
.wb .wb-bar .seg:last-child { border-right: none; }
.wb .wb-bar button { height: 28px; padding: 0 9px; border: 1px solid #9aa6b5; background: #fff; border-radius: 3px; font: 13px Arial, sans-serif; cursor: pointer; color: #1e1e1e; }
.wb .wb-bar button:hover { background: #eef3f9; }
.wb .wb-bar button.on { background: #1d3a66; color: #fff; border-color: #1d3a66; }
.wb .wb-bar button.sw { width: 26px; padding: 0; background: var(--sw); border-color: #fff; box-shadow: 0 0 0 1px #9aa6b5; }
.wb .wb-bar button.sw.on { box-shadow: 0 0 0 2px #1d3a66; border-color: #fff; background: var(--sw); }
.wb .wb-bar button.zl { min-width: 52px; }
.wb .canvas-wrap { flex: 1; position: relative; background: #fff; overflow: hidden; cursor: crosshair; outline: none; touch-action: none; }
.wb canvas { position: absolute; inset: 0; }
.wb .wb-tip { position: absolute; left: 8px; bottom: 6px; font: 11.5px Arial, sans-serif; color: #8a97a8; pointer-events: none; }
.wb .txt-input { position: absolute; font: 16px Arial, sans-serif; border: 1px dashed #46719f; background: rgba(255,255,255,.92); padding: 1px 3px; outline: none; min-width: 140px; }

.pv-loading { display: grid; place-items: center; height: 100%; color: #415675; font-size: 15px; }

@media (max-width: 760px) {
  .pv-split { flex-direction: column; height: auto; }
  .pv-split > .pane.left { border-right: none; border-bottom: 4px solid #d5dde8; }
  .pv-single, .pv-doc { padding: 22px 16px 40px; }
  .pv-title .pv-name { font-size: 13px; }
  .pv-btn { padding: 0 9px; font-size: 13px; }
  .pv-btn .lbl-long { display: none; }
}
