/* =========================================================================
   FULL LENGTH TEST — EDUQUITY SKIN (.ft-skin-ssc)

   The SSC CBT replica look, worn by this page's own exam shell.

   Why this file exists: the paper itself is sat in app/ssc/, which brings its
   own stylesheet. But this page keeps the same markup for the two things that
   never leave it — resuming a paused paper, and walking a finished one in
   review — and nothing here dressed it. `.ft-skin-premium` in ft-premium.css
   covered the other skin; the SSC one had 35 rules written against a class
   (`.ft-skin-system`) that nothing has applied since the premium console was
   given an identity of its own, so a student who sat the paper in the Eduquity
   console and pressed "Review test" got the markup with no CSS at all.

   PORTED, NOT REWRITTEN: every rule below is app/ssc/style.css's SCREEN 9
   block with its selectors scoped to .ft-skin-ssc, and #screenExam rewritten
   to the same. Hard-coded px and 2005-era colours are the point — the replica
   has to look like the same ASP.NET page on every screen, so nothing here
   follows the app's type ramp or its tokens. When the replica changes, re-port
   rather than hand-patch, and keep this file in step with app/ssc/style.css.

   One substitution: the replica's --exam-zoom is --ssc-zoom here, which is
   what FtRuntime.setZoom() writes on the shell.
   ========================================================================= */

/* =========================================================
   SCREEN 9: LIVE CBT EXAM ENGINE

   Faithful copy of the SSC online mock interface
   (ssccbt.cbexams.com/sscmocktest/mframeset.aspx), minus the red
   "this is only a mock test" notice line above the links row.

   Fixed px and hard-coded colours on purpose: the whole point is that
   it looks like the same 2005-era ASP.NET page on every screen, so
   nothing here scales with the app's own type ramp.

   Two typefaces, as on the original — Times for the header block and
   the two notice lines, Arial for everything else.
   ========================================================= */
/* The exam screen owns exactly one viewport and never more. `.view-screen`
   gives every screen `flex: 1`, whose `flex-basis: 0%` overrides the height
   below on the body's column axis, and a flex item's default `min-height:auto`
   then refuses to shrink under its own content — so an 83-question palette or
   a long set of options grew the page instead of scrolling inside it, and the
   panels that are supposed to scroll (the palette grid, the question area)
   never got a bounded height to scroll within.
   `flex: none` hands the height back to the declaration; overflow:hidden makes
   sure nothing escapes the screen it belongs to. */
.ft-skin-ssc {
  flex: none;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #000000;
  /* Zoom (+) / Zoom (-) drive this; only the question body reads it. */
  --ssc-zoom: 1;
}

/* ── Top white header ─────────────────────────────────────── */
.ft-skin-ssc .exam-top-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 6px;
  background: #ffffff;
  border-bottom: 1px solid #cccccc;
}
.ft-skin-ssc .exam-hdr-org {
  flex: none;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Exactly the height of .exam-photo-box, so the emblem and the two photo
   frames read as one row of equals across the exam header. */
.ft-skin-ssc .ssc-hdr-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}
.ft-skin-ssc .exam-org-name {
  font-size: 13px;
  font-weight: bold;
  color: #111111;
  white-space: nowrap;
}

/* A paper handed over from Aksh Niti is already identified before it reaches
   this engine. Keep the live exam neutral: no test title/date is exposed
   while questions are being attempted. The emblem is not a title, so it
   stays — hiding the whole .exam-hdr-org block took it down with the caption. */
.ft-skin-ssc body.aksh-inbound-test .exam-org-name,
.ft-skin-ssc body.aksh-inbound-test .exam-palette-column .palette-sec-title {
  visibility: hidden;
}

/* Level with the "SSC-Mock Test" caption, not with the middle of the
   header — that is where the original parks them. */
.ft-skin-ssc .exam-hdr-zoom {
  flex: none;
  align-self: flex-end;
  display: flex;
  gap: 12px;
  margin: 0 0 4px 140px;
}
.ft-skin-ssc .btn-zoom-pill {
  padding: 6px 16px;
  border: 1px solid #2a63ad;
  border-radius: 5px;
  background: linear-gradient(180deg, #5b8fc9 0%, #3d74b4 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.ft-skin-ssc .btn-zoom-pill:hover {
  background: linear-gradient(180deg, #6b9ed4 0%, #4a81c0 100%);
}
.ft-skin-ssc .btn-zoom-pill:active {
  background: #35659c;
}
.ft-skin-ssc .exam-hdr-center {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

/* Every rule in this header block names its own font on purpose. The global
   reset at the top of this file sets `* { font-family: Arial }`, and a
   universal rule that matches an element directly beats a serif family
   inherited from its parent — which is why the header rendered in Arial
   while the original is Times. */
.ft-skin-ssc .ssc-hdr-title {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.3px;
  color: #000000;
}
.ft-skin-ssc .exam-roll-info {
  margin-top: 10px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 15px;
  font-weight: bold;
  color: #000000;
}
.ft-skin-ssc .exam-hdr-clock {
  flex: none;
  width: 180px;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

/* "Time Left" sits above the box on the original, not inside it. */
.ft-skin-ssc .timer-label {
  font-family: 'Times New Roman', Times, serif;
  font-size: 15px;
  font-weight: bold;
  color: #000000;
}
.ft-skin-ssc .timer-countdown {
  margin-top: 3px;
  padding: 1px 0 2px;
  border: 1px solid #cccc66;
  background: #ffff99;
  font-family: 'Times New Roman', Times, serif;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.15;
  color: #000000;
  font-variant-numeric: tabular-nums;
}

/* Pause and full screen, parked immediately left of the clock. Neither is
   on the original — the real hall has an invigilator and a kiosked browser
   instead — so they stay icon-only and borrow the zoom buttons' colours
   rather than adding new labels to a header the candidate has memorised. */
.ft-skin-ssc .exam-hdr-tools {
  flex: none;
  align-self: flex-end;
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.ft-skin-ssc .exam-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #2a63ad;
  border-radius: 5px;
  background: linear-gradient(180deg, #5b8fc9 0%, #3d74b4 100%);
  color: #ffffff;
  cursor: pointer;
}
.ft-skin-ssc .exam-icon-btn:hover {
  background: linear-gradient(180deg, #6b9ed4 0%, #4a81c0 100%);
}
.ft-skin-ssc .exam-icon-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

/* Under ten minutes the box warms, under five it goes red. The only
   behaviour here the original does not have, and worth keeping. */
.ft-skin-ssc .exam-hdr-clock.is-warning .timer-countdown {
  background: #ffd27f;
  border-color: #d9a441;
}
.ft-skin-ssc .exam-hdr-clock.is-critical .timer-countdown {
  background: #ffb3b3;
  border-color: #cc0000;
  color: #7a0000;
}
.ft-skin-ssc .exam-hdr-photos {
  flex: none;
  display: flex;
  gap: 8px;
}
.ft-skin-ssc .exam-photo-box {
  width: 75px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  padding-bottom: 2px;
  border: 1px solid #d3d3d3;
  background: #e9e9e9;
  overflow: hidden;
}
.ft-skin-ssc .exam-photo-box svg {
  width: 40px;
  height: 40px;
  flex: none;
}
.ft-skin-ssc .exam-photo-box em {
  font-size: 6px;
  font-style: normal;
  color: #8a8a8a;
  white-space: nowrap;
}

/* ── Links row ────────────────────────────────────────────── */
.ft-skin-ssc .exam-status-bar {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
}
.ft-skin-ssc .exam-links-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ft-skin-ssc .status-link {
  font-size: 13px;
  font-weight: normal;
  text-decoration: underline;
  white-space: nowrap;
  cursor: pointer;
}
.ft-skin-ssc .link-blue {
 color: #1111cc;
}
.ft-skin-ssc .link-orange {
 color: #b34700;
}
.ft-skin-ssc .link-dark {
 color: #1a1a1a; font-weight: bold;
}
.ft-skin-ssc .exam-status-center {
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  font-weight: bold;
  color: #cc0000;
}
.ft-skin-ssc .exam-status-right {
  text-align: right;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  white-space: nowrap;
}
.ft-skin-ssc .exam-status-right b {
  font-family: 'Times New Roman', Times, serif;
  color: #ff6600;
}

/* ── PART strip ───────────────────────────────────────────── */
.ft-skin-ssc .exam-controls-row {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 4px 8px;
  background: #ffffff;
}
.ft-skin-ssc .sec-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ft-skin-ssc .btn-sec-tab {
  min-width: 85px;
  padding: 6px 10px;
  border: 1px solid #16209c;
  border-radius: 4px;
  background: #1a2fc8;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.ft-skin-ssc .btn-sec-tab:hover {
  filter: brightness(1.12);
}
.ft-skin-ssc .btn-sec-tab.active-tab {
  background: #1fa01f;
  border-color: #157615;
}
.ft-skin-ssc .btn-sec-tab.inactive-tab {
  background: #1a2fc8;
  border-color: #16209c;
}

/* A saved part is closed for good and has to look closed, not merely
   fail on click. */
.ft-skin-ssc .btn-sec-tab.saved-tab {
  background: #8b8b8b;
  border-color: #6e6e6e;
  cursor: not-allowed;
}
.ft-skin-ssc .btn-sec-tab.saved-tab:hover {
  filter: none;
}
.ft-skin-ssc .sec-action-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ft-skin-ssc .sec-action-btns-row {
  display: flex;
  gap: 24px;
}
.ft-skin-ssc .btn-exam-blue {
  min-width: 132px;
  padding: 7px 16px;
  border: 1px solid #2a63ad;
  border-radius: 5px;
  background: linear-gradient(180deg, #5b8fc9 0%, #3d74b4 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.ft-skin-ssc .btn-exam-blue:hover {
  background: linear-gradient(180deg, #6b9ed4 0%, #4a81c0 100%);
}

/* Mark for Review turns into this once the question is flagged. */
.ft-skin-ssc .btn-exam-blue.btn-unmark {
  background: linear-gradient(180deg, #f2f0ea 0%, #dcd7c9 100%);
  border-color: #a89f8a;
  color: #333333;
}
.ft-skin-ssc .btn-exam-blue.btn-unmark:hover {
  background: linear-gradient(180deg, #f8f7f3 0%, #e6e2d7 100%);
}

/* Takes Save & Next's place on the last question of a part. */
.ft-skin-ssc .last-q-notice {
  display: none;
  align-self: center;
  max-width: 240px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.35;
  color: #0033cc;
}

/* Shown by openExamPanel(), directly under the two buttons. */
.ft-skin-ssc .exam-panel-close {
  display: none;
  color: #cc0000;
  font-size: 12px;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}
.ft-skin-ssc.panel-open .exam-panel-close {
  display: block;
}

/* ── Workspace ────────────────────────────────────────────── */
.ft-skin-ssc .exam-workspace-grid {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 0;
  background: #ffffff;
  border-top: 1px solid #d3d3d3;
}
.ft-skin-ssc .exam-question-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Left padding matches .q-scroll-area's, so the caption starts on the same
   vertical as the question box and the options below it. */
.ft-skin-ssc .q-no-title-row {
  flex: none;
  padding: 8px 16px 6px;
  font-size: 15px;
  font-weight: bold;
  color: #000000;
}
.ft-skin-ssc .q-content-box {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 1px solid #d3d3d3;
  border-left: 0;
  border-bottom: 0;
  background: transparent;
  overflow: hidden;
}

/* Watermark stays put while the question scrolls over it. */
.ft-skin-ssc .q-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.ft-skin-ssc .q-watermark span {
  position: absolute;
  color: #000000;
  opacity: 0.07;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  transform: rotate(-14deg);
}
.ft-skin-ssc .q-scroll-area {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  padding: 12px 16px 20px;
}
.ft-skin-ssc .q-lang-select-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}
.ft-skin-ssc .q-lang-dropdown {
  padding: 3px 6px;
  border: 1px solid #767676;
  border-radius: 0;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  color: #000000;
}
.ft-skin-ssc .q-text-area {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #a9a9a9;
  font-size: calc(16px * var(--ssc-zoom));
  line-height: 1.7;
  color: #000000;
}
.ft-skin-ssc .q-text-area b {
  font-weight: bold;
}

/* Diagram and SVG figures arrive with the current test hand-off.  SVGs keep
   their vector clarity while staying within the question workspace. */
.ft-skin-ssc .exam-figure {
  width: min(100%, 560px);
  margin: 10px 0 2px;
  overflow: auto hidden;
}
.ft-skin-ssc .exam-figure svg,
.ft-skin-ssc .exam-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}
.ft-skin-ssc .option-figure {
  margin: 8px 0 0;
}
.ft-skin-ssc .option-figure svg,
.ft-skin-ssc .option-figure img {
  max-height: 240px;
}

/* ── Options: ruled rows of radio buttons ─────────────────── */
.ft-skin-ssc .q-options-list {
  display: block;
  border: 1px solid #a9a9a9;
  border-bottom: 0;
}

/* Each option is a two-cell row: a ruled box holding the radio, then the
   text. Only the dial itself is clickable — not the box around it and not
   the text, same as the original. */
.ft-skin-ssc .exam-opt-item {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #a9a9a9;
  background: transparent;
  font-size: calc(16px * var(--ssc-zoom));
  line-height: 1.55;
  color: #000000;
}

/* A chosen option shows only in the radio dial — the original tints
   nothing, and a blue row would be the loudest thing on the page. */
.ft-skin-ssc .opt-radio-cell {
  flex: none;
  width: 42px;
  display: grid;
  place-items: center;
  padding: 12px 0;
  border-right: 1px solid #a9a9a9;
}
.ft-skin-ssc .opt-text {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
}
.ft-skin-ssc .option-radio {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  accent-color: #2b5fa8;
  cursor: pointer;
}

/* ── Reading passage / cloze ──────────────────────────────────
   A comprehension question arrives with its passage already inlined ahead of
   the question text (practiceAndTestRuntime.js › withEduquityPassage), because
   this screen has no panel of its own to put one in. The markup is the study
   app's PassageReader card, so the class names are its; only the skin is
   restated here, in this page's ruled black-on-white idiom rather than the
   app's dark card.

   Deliberately uncapped: the real CBT prints the whole passage above the
   question and lets the workspace scroll, and #qScrollArea already returns to
   the top on every question. */
.ft-skin-ssc .q-text-area .passage-card {
  margin: -2px 0 14px;
  border: 1px solid #a9a9a9;
  background: #fbfbf7;
}
.ft-skin-ssc .q-text-area .passage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #a9a9a9;
  background: #ececec;
}
.ft-skin-ssc .q-text-area .passage-label {
  font-weight: bold;
  font-size: calc(14px * var(--ssc-zoom));
  color: #000000;
}
.ft-skin-ssc .q-text-area .passage-counter {
  margin-left: auto;
  font-size: calc(13px * var(--ssc-zoom));
  color: #333333;
  white-space: nowrap;
}
.ft-skin-ssc .q-text-area .passage-instruction {
  padding: 10px 14px 0;
  font-style: italic;
  font-size: calc(14px * var(--ssc-zoom));
  color: #333333;
}
.ft-skin-ssc .q-text-area .passage-body {
  padding: 10px 14px 12px;
  font-size: calc(15px * var(--ssc-zoom));
  line-height: 1.75;
  color: #000000;
  text-align: justify;
}
.ft-skin-ssc .q-text-area .passage-body p {
  margin: 0 0 10px;
}
.ft-skin-ssc .q-text-area .passage-body p:last-child {
  margin-bottom: 0;
}

/* An empty cloze gap, and the numbered word an "opposite in meaning to"
   question points at. Both stay black — a coloured highlight would be the
   loudest thing on a page that is otherwise entirely black on white. */
.ft-skin-ssc .q-text-area .cloze-blank {
  font-weight: bold;
  letter-spacing: 1px;
}
.ft-skin-ssc .q-text-area .cloze-blank sup {
  font-size: 0.7em;
  letter-spacing: 0;
}
.ft-skin-ssc .q-text-area .cloze-blank.is-word {
  letter-spacing: normal;
  text-decoration: underline dotted #666666;
  text-underline-offset: 3px;
}

/* ── Palette toggle handle ────────────────────────────────── */
.ft-skin-ssc .palette-toggle-arrow {
  flex: none;
  align-self: flex-start;
  width: 24px;
  height: 30px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ft-skin-ssc .palette-toggle-arrow::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 15px solid #1a6fd4;
}
.ft-skin-ssc .palette-toggle-arrow[aria-expanded="false"]::before {
  border-left: 0;
  border-right: 15px solid #1a6fd4;
}

/* ── Right palette column ─────────────────────────────────── */
.ft-skin-ssc .exam-palette-column {
  flex: none;
  width: 282px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
}
.ft-skin-ssc.palette-collapsed .exam-palette-column {
  display: none;
}
.ft-skin-ssc .palette-sec-title {
  flex: none;
  padding: 8px 10px 10px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  color: #000000;
}
.ft-skin-ssc .palette-grid-25 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* Generous row gap: the ▲ that marks a review question hangs below
     its box and must not touch the row underneath. */
  gap: 20px 6px;
  align-content: start;
  padding: 4px 10px 12px;
  overflow-y: auto;
}
.ft-skin-ssc .pal-btn {
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  position: relative;
}
.ft-skin-ssc .pal-btn:hover {
  filter: brightness(1.15);
}

/* The four states the SYMBOLS table documents. */
.ft-skin-ssc .pal-unattempted {
 background: #1a2fc8; color: #ffffff;
}
.ft-skin-ssc .pal-answered {
 background: #1fa01f; color: #ffffff;
}
.ft-skin-ssc .pal-marked {
 background: #cc0000; color: #ffffff;
}
.ft-skin-ssc .pal-ans-marked {
 background: #ffd400; color: #000000;
}

/* The ▲ under a review-marked box. Sized to the original's, which is
   noticeably chunkier than a default-size glyph. */
.ft-skin-ssc .pal-arrow {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) scaleX(1.15);
  font-size: 13px;
  font-style: normal;
  line-height: 1;
  color: inherit;
}
.ft-skin-ssc .pal-btn.current-active {
  box-shadow: 0 0 0 2px #000000;
}

/* ── PART analysis table ──────────────────────────────────── */
.ft-skin-ssc .part-analysis-card {
  flex: none;
  margin: 0 8px 10px;
}
.ft-skin-ssc .part-analysis-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ft-skin-ssc .part-analysis-title {
  padding: 5px 6px;
  border: 1px solid #7a7a7a;
  border-bottom: 0;
  background: #c9c9c9;
  font-size: 12px;
  font-weight: bold;
  color: #000000;
  text-align: center;
}
.ft-skin-ssc .part-analysis-tbl td {
  padding: 5px 8px;
  border: 1px solid #7a7a7a;
  background: #ffffff;
  text-align: left;
  font-weight: normal;
}
.ft-skin-ssc .part-analysis-tbl td:last-child {
  width: 44px;
  background: #ffff9e;
  color: #ff6600;
  font-weight: bold;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ft-skin-ssc .palette-submit-row {
  flex: none;
  padding: 0 8px 10px;
}

/* Sits directly above Submit Test. Same shape, quieter fill: closing a part
   is final, but it is not the end of the paper, and the two must not read as
   the same weight of decision. */
.ft-skin-ssc .btn-submit-section {
  width: 100%;
  padding: 7px 12px;
  margin-bottom: 6px;
  border: 1px solid #9aa7b8;
  border-radius: 5px;
  background: linear-gradient(180deg, #f4f6f9 0%, #e3e8ef 100%);
  color: #2c3e50;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.ft-skin-ssc .btn-submit-section:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border-color: #6d7f95;
}
.ft-skin-ssc .btn-submit-test {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid #2a63ad;
  border-radius: 5px;
  background: linear-gradient(180deg, #5b8fc9 0%, #3d74b4 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.ft-skin-ssc .btn-submit-test:hover {
  background: linear-gradient(180deg, #6b9ed4 0%, #4a81c0 100%);
}

/* ── SYMBOLS / INSTRUCTIONS / SUMMARY panels ──────────────────
   The original floats these over the exam rather than dimming the
   page behind them, and closes them from the [Close (x)] link that
   appears under the Save & Next button. Same here. */
.ft-skin-ssc .exam-panel {
  display: none;
  position: absolute;
  top: 6px;
  z-index: 50;
  max-height: calc(100% - 14px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #b0a084;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.ft-skin-ssc .exam-panel.is-open {
  display: block;
}
.ft-skin-ssc .exam-panel-head {
  padding: 6px 12px;
  background: #e8e0ce;
  border-bottom: 1px solid #b0a084;
  font-size: 13px;
  font-weight: bold;
  color: #000000;
}

/* Corner close, in addition to the [Close (x)] link under Save & Next —
   a panel that covers the question needs a way out where the eye is. */
.ft-skin-ssc .exam-panel-x {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #b0a084;
  border-radius: 3px;
  background: #f4efe3;
  color: #7a2d2d;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.ft-skin-ssc .exam-panel-x:hover {
  background: #e8dcc4;
  color: #cc0000;
}
.ft-skin-ssc .exam-panel-body {
  padding: 14px 16px;
}

/* SYMBOLS */
.ft-skin-ssc .exam-panel-symbols {
  left: 150px;
  right: 150px;
  padding: 14px 16px 18px;
}
.ft-skin-ssc .symbols-lead {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.45;
  color: #0033cc;
}
.ft-skin-ssc .symbols-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ft-skin-ssc .symbols-table th {
  padding: 6px 8px;
  border: 1px solid #b8ac93;
  background: #ede6d6;
  font-weight: bold;
  color: #000000;
  text-align: center;
}
.ft-skin-ssc .symbols-table th.sym-col {
  width: 180px;
}
.ft-skin-ssc .symbols-table td {
  padding: 8px;
  border: 1px solid #b8ac93;
  vertical-align: middle;
}
.ft-skin-ssc .symbols-table td:first-child {
  text-align: center;
}
.ft-skin-ssc .symbols-table td:last-child {
  color: #00339a;
  font-weight: bold;
  line-height: 1.45;
}
.ft-skin-ssc .sym-radio {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1px solid #6b6b6b;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
  position: relative;
}
.ft-skin-ssc .sym-radio.is-on::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #2b5fa8;
}

/* The palette swatches reuse .pal-* so the legend can never drift
   from the real thing. Extra bottom room for the ▲ marker. */
.ft-skin-ssc .sym-pal {
  display: inline-flex;
  width: 44px;
  margin-bottom: 8px;
  cursor: default;
}
.ft-skin-ssc .sym-btn {
  display: inline-block;
  min-width: 132px;
  padding: 5px 12px;
  border: 1px solid #2a63ad;
  border-radius: 4px;
  background: linear-gradient(180deg, #5b8fc9 0%, #3d74b4 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}
.ft-skin-ssc .sym-btn-grey {
  background: linear-gradient(180deg, #f2f0ea 0%, #dcd7c9 100%);
  border-color: #a89f8a;
  color: #333333;
}

/* INSTRUCTIONS */
.ft-skin-ssc .exam-panel-instructions {
  left: 250px;
  right: 320px;
}
.ft-skin-ssc .inst-ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.ft-skin-ssc .inst-ol > li {
  margin-bottom: 16px;
}
.ft-skin-ssc .inst-ul {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.ft-skin-ssc .inst-ul li {
  margin-bottom: 4px;
}
.ft-skin-ssc .inst-ol .num {
  color: #0033cc;
  font-weight: bold;
}
.ft-skin-ssc .inst-sec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 6px;
}
.ft-skin-ssc .inst-sec-table th,
.ft-skin-ssc .inst-sec-table td {
  padding: 7px 10px;
  border: 1px solid #cfc8b6;
}
.ft-skin-ssc .inst-sec-table th {
  background: #f3efe6;
  font-weight: bold;
  text-align: left;
}
.ft-skin-ssc .inst-sec-table td:nth-child(3),
.ft-skin-ssc .inst-sec-table td:nth-child(4),
.ft-skin-ssc .inst-sec-table th:nth-child(3),
.ft-skin-ssc .inst-sec-table th:nth-child(4) {
  text-align: center;
}
.ft-skin-ssc .inst-sec-table tbody tr:nth-child(even) {
  background: #faf8f3;
}

/* OVERALL TEST SUMMARY */
.ft-skin-ssc .exam-panel-summary {
  left: 150px;
  width: 820px;
  max-width: calc(100% - 300px);
}
.ft-skin-ssc .summary-body {
  padding: 26px 40px 30px;
}
.ft-skin-ssc .summary-body p {
  margin: 0 0 22px;
  font-size: 17px;
  font-weight: bold;
  color: #000000;
}
.ft-skin-ssc .summary-body p:last-child {
  margin-bottom: 0;
}
.ft-skin-ssc .summary-body b {
  color: #cc0000;
  padding: 0 6px;
}

/* ── Section-save confirmation ────────────────────────────────
   The one modal in the exam. Leaving a part is irreversible and
   forfeits its remaining time, so unlike the three information
   panels this one does block the page behind it. */
.ft-skin-ssc .exam-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ft-skin-ssc .exam-confirm-overlay.is-open {
  display: flex;
}
.ft-skin-ssc .exam-confirm-box {
  width: 100%;
  max-width: 470px;
  background: #ffffff;
  border: 1px solid #b0a084;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}
.ft-skin-ssc .exam-confirm-body {
  padding: 16px 18px 18px;
}
.ft-skin-ssc .confirm-lead {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: bold;
  color: #0033cc;
}
.ft-skin-ssc .confirm-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}
.ft-skin-ssc .confirm-tbl td {
  padding: 6px 10px;
  border: 1px solid #cfc8b6;
}
.ft-skin-ssc .confirm-tbl td:last-child {
  width: 90px;
  background: #ffff9e;
  color: #ff6600;
  font-weight: bold;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ft-skin-ssc .confirm-warn {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #cc0000;
}
.ft-skin-ssc .confirm-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.ft-skin-ssc .btn-confirm-save {
  padding: 7px 16px;
  border: 1px solid #157615;
  border-radius: 5px;
  background: #1fa01f;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.ft-skin-ssc .btn-confirm-save:hover {
  filter: brightness(1.1);
}

/* Same shape as the save button, in the colour the rest of the engine already
   uses for the irreversible thing on a screen. */
.ft-skin-ssc .btn-confirm-exit {
  padding: 7px 16px;
  border: 1px solid #8f1414;
  border-radius: 5px;
  background: #c62828;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.ft-skin-ssc .btn-confirm-exit:hover {
  filter: brightness(1.1);
}

/* ── Paused ───────────────────────────────────────────────────
   The clock stops and the paper goes away with it. Hiding the
   question is the point: a paused exam you can still read is not
   a pause, it is free time. */
.ft-skin-ssc .exam-pause-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #f4f2ec;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ft-skin-ssc.is-paused .exam-pause-overlay {
  display: flex;
}
.ft-skin-ssc .exam-pause-box {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border: 1px solid #b0a084;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.ft-skin-ssc .exam-pause-body {
  padding: 22px 24px 26px;
}
.ft-skin-ssc .exam-pause-body p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #333333;
}

/* The pause box is centred, so its button row is too — unlike the section
   dialog's, which is right-aligned under a table. */
.ft-skin-ssc .pause-btn-row {
  justify-content: center;
}
.ft-skin-ssc .pause-exit-confirm {
  display: none;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e0dcd2;
}
.ft-skin-ssc .pause-exit-confirm.is-open {
  display: block;
}
.ft-skin-ssc .pause-exit-confirm .confirm-btn-row {
  justify-content: center;
}
.ft-skin-ssc .pause-clock {
  margin: 14px auto 18px;
  width: 180px;
  padding: 2px 0;
  border: 1px solid #cccc66;
  background: #ffff99;
  font-family: 'Times New Roman', Times, serif;
  font-size: 19px;
  font-weight: bold;
  color: #000000;
  font-variant-numeric: tabular-nums;
}

/* ── Responsive ──────────────────────────────────────────────
   The original is a fixed desktop page and does not respond at all.
   This one still has to be usable on a phone, so below 1080px the
   header stacks and below 860px the palette becomes a drawer. */
@media (max-width: 1080px) {
.ft-skin-ssc .exam-top-header {
    flex-wrap: wrap;
    gap: 8px 12px;
}
.ft-skin-ssc .exam-hdr-photos {
    order: 1;
    margin-left: auto;
}
.ft-skin-ssc .exam-hdr-center {
    order: 3;
    flex-basis: 100%;
}
.ft-skin-ssc .exam-roll-info {
    margin-top: 2px;
}
.ft-skin-ssc .exam-status-bar {
    grid-template-columns: 1fr;
    gap: 6px;
}
.ft-skin-ssc .exam-status-center,
.ft-skin-ssc .exam-status-right {
    text-align: left;
}
.ft-skin-ssc .exam-panel-symbols,
.ft-skin-ssc .exam-panel-instructions,
.ft-skin-ssc .exam-panel-summary {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
}
}
@media (max-width: 860px) {
.ft-skin-ssc {
    height: auto;
    min-height: 100vh;
}
.ft-skin-ssc .exam-hdr-photos {
    display: none;
}
.ft-skin-ssc .exam-hdr-org {
    width: auto;
}
.ft-skin-ssc .ssc-hdr-logo {
    height: 44px;
}
.ft-skin-ssc .ssc-hdr-title {
    font-size: 14px;
}
.ft-skin-ssc .exam-roll-info,
.ft-skin-ssc .timer-label {
    font-size: 12px;
}
.ft-skin-ssc .timer-countdown {
    font-size: 14px;
}

/* Auto width alone squeezes this to the label's width and clips the
     digits — the yellow box still needs room for hh:mm:ss. */
.ft-skin-ssc .exam-hdr-clock {
    width: auto;
    min-width: 112px;
}
.ft-skin-ssc .exam-hdr-tools {
    align-self: center;
    margin-bottom: 0;
}
.ft-skin-ssc .btn-zoom-pill {
    padding: 4px 10px;
}
.ft-skin-ssc .exam-status-center,
.ft-skin-ssc .exam-status-right {
    font-size: 13px;
}
.ft-skin-ssc .exam-controls-row {
    grid-template-columns: 1fr;
    gap: 6px;
}
.ft-skin-ssc .sec-tabs-wrapper {
    overflow-x: auto;
}

/* Three 132px buttons plus two 24px gaps is 444px — wider than the
     phone. Let them shrink and wrap instead of pushing the page sideways. */
.ft-skin-ssc .sec-action-btns,
.ft-skin-ssc .sec-action-btns-row {
    width: 100%;
}
.ft-skin-ssc .sec-action-btns-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.ft-skin-ssc .btn-exam-blue {
    min-width: 0;
    padding: 7px 12px;
}
.ft-skin-ssc .last-q-notice {
    flex-basis: 100%;
    max-width: none;
    text-align: center;
}
.ft-skin-ssc {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}
.ft-skin-ssc .exam-workspace-grid {
    display: block;
}
.ft-skin-ssc .q-content-box {
    border-left: 1px solid #d3d3d3;
    border-bottom: 1px solid #d3d3d3;
    overflow: visible;
}
.ft-skin-ssc .q-scroll-area {
    height: auto;
    overflow: visible;
}
.ft-skin-ssc .exam-palette-column {
    width: 100%;
    border-top: 1px solid #d3d3d3;
}
.ft-skin-ssc .palette-toggle-arrow {
    display: none;
}
.ft-skin-ssc.palette-collapsed .exam-palette-column {
    display: flex;
}
}


/* =========================================================================
   REVIEW CHROME INSIDE THE REPLICA

   Everything above is the replica as shipped. Below is the one thing the real
   SSC console has no equivalent for: walking a finished paper.

   The explanation card, the action row and the filter strip are the app's own
   components, drawn from the app's tokens — and those tokens are dark, because
   this page's default theme is. Dropped unchanged onto a white 2005 console
   they would be near-white text on white. So the shell re-declares the handful
   of tokens they read, in the replica's own palette. Everything scoped here is
   OUR chrome; nothing in the replica proper reads these.
   ========================================================================= */

.ft-skin-ssc {
    --text-main: #111111;
    --text-muted: #4a4a4a;
    --line: #d3d3d3;
    --surface: #f7f7f7;
    --surface-raised: #efefef;
}

.ft-skin-ssc .ft-review-explain {
    margin: 14px 0 6px;
    padding: 12px 14px 14px;
    border: 1px solid #d3d3d3;
    border-top: 1px solid #d3d3d3;
    border-radius: 4px;
    background: #fbfbfb;
    font-family: Arial, Helvetica, sans-serif;
    max-width: none;
}

.ft-skin-ssc .ft-review-filter {
    margin: 0 0 8px;
    border-radius: 4px;
    border-color: #c8c8c8;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.ft-skin-ssc .ft-rf-btn {
    font-family: Arial, Helvetica, sans-serif;
}

/* The replica's own chrome is 13px Arial; the pill has to sit in that row
   without towering over it. The replica gives .q-no-title-row a fixed height
   and its own padding, so the pill is sized from the inside instead. */
.ft-skin-ssc .q-no-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-skin-ssc .ft-review-toolbar {
    border-color: #c8c8c8;
    background: #ffffff;
    padding: 2px 4px;
}

.ft-skin-ssc .ft-rt-btn,
.ft-skin-ssc .ft-review-toolbar .qr-btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: #333333;
    padding: 3px 8px;
}

.ft-skin-ssc .ft-rt-btn.is-on {
    color: #b8860b;
}

.ft-skin-ssc .ft-rf-swap {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: normal;
    color: #444444;
    border-color: #c8c8c8;
}

.ft-skin-ssc .ft-rf-swap:hover {
    color: #0b3d91;
    border-color: #0b3d91;
}
