/* =============================================================
   SHSAT PREP — shsat.css
   Extends site.css. New classes only. No overrides of globals.
   ============================================================= */

/* ----------------------------------------------------------
   Design tokens
   ---------------------------------------------------------- */
:root {
  --color-navy: #0f172a;
  --color-correct: #10b981;
  --color-error: #ef4444;
  --color-amber: #f59e0b;
  --color-slate: #64748b;
  --color-correct-bg: #d1fae5;
  --color-error-bg: #fee2e2;
  --color-amber-bg: #fef3c7;
}

/* ----------------------------------------------------------
   Wrapper
   ---------------------------------------------------------- */
.shsat-wrap {
  padding: 32px 0 80px;
}

/* ----------------------------------------------------------
   Tab bar
   ---------------------------------------------------------- */
.shsat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 36px;
}

.shsat-tab {
  display: inline-block;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
}

.shsat-tab:hover {
  color: #111;
}

.shsat-tab.active {
  color: #111;
  border-bottom-color: #111;
}

/* ----------------------------------------------------------
   Flash messages
   ---------------------------------------------------------- */
.shsat-messages {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.shsat-message {
  padding: 12px 16px;
  font-size: 15px;
  border-left: 3px solid #111;
  background: rgba(0, 0, 0, 0.04);
  margin-bottom: 8px;
}

/* ----------------------------------------------------------
   Page headings
   ---------------------------------------------------------- */
.shsat-page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.shsat-page-subtitle {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 32px;
}

/* ----------------------------------------------------------
   Cards / stat grid
   ---------------------------------------------------------- */
.shsat-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.shsat-stat-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px 18px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shsat-stat-card__value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.shsat-stat-card__value--sm {
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.shsat-stat-card__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------------------------
   Section heading
   ---------------------------------------------------------- */
.shsat-section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ----------------------------------------------------------
   Tables
   ---------------------------------------------------------- */
.shsat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 36px;
}

.shsat-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.shsat-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}

.shsat-table tr:last-child td {
  border-bottom: none;
}

/* Placement status colors */
.placement-above { color: #1a7f3c; font-weight: 600; }
.placement-close  { color: #8a6700; font-weight: 600; }
.placement-below  { color: rgba(0, 0, 0, 0.4); }

/* ----------------------------------------------------------
   Chart area
   ---------------------------------------------------------- */
.shsat-chart-wrap {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 36px;
  background: #FFFFFC;
}


/* ----------------------------------------------------------
   Button
   ---------------------------------------------------------- */
.shsat-btn {
  display: inline-block;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.12s, color 0.12s;
}

.shsat-btn:hover {
  background: #333;
}

.shsat-btn--outline {
  background: transparent;
  color: #111;
}

.shsat-btn--outline:hover {
  background: rgba(0, 0, 0, 0.06);
}

.shsat-btn--danger {
  background: transparent;
  color: rgba(160, 30, 20, 0.9);
  border-color: rgba(160, 30, 20, 0.4);
}

.shsat-btn--sm {
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.shsat-btn--done {
  background: transparent;
  color: #1a7f3c;
  border-color: #1a7f3c;
  cursor: default;
  pointer-events: none;
}

.shsat-btn--retake {
  background: transparent;
  color: #a4161a;
  border-color: rgba(164, 22, 26, 0.5);
}

.shsat-btn--retake:hover {
  background: rgba(164, 22, 26, 0.06);
}

/* ----------------------------------------------------------
   Auth forms
   ---------------------------------------------------------- */
.shsat-auth {
  max-width: 420px;
  margin: 60px auto;
}

.shsat-auth__title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.shsat-auth__sub {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 28px;
}

/* ----------------------------------------------------------
   Test list
   ---------------------------------------------------------- */
.shsat-test-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shsat-test-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  gap: 12px;
}

.shsat-test-item__title {
  font-size: 16px;
  font-weight: 600;
}

.shsat-test-item__meta {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 2px;
}

.shsat-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.5);
}

.shsat-badge--done {
  border-color: #1a7f3c;
  color: #1a7f3c;
}

/* ----------------------------------------------------------
   Test intro
   ---------------------------------------------------------- */
.shsat-intro {
  max-width: 600px;
}

.shsat-intro__rule {
  display: flex;
  gap: 32px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
}

.shsat-intro__rule-label {
  min-width: 140px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  padding-top: 2px;
}

/* ----------------------------------------------------------
   Test-taking layout
   ---------------------------------------------------------- */
.shsat-test-layout {
  display: grid;
  grid-template-columns: 1fr 172px;
  gap: 24px;
  align-items: start;
  max-width: 1060px;
}

@media (max-width: 720px) {
  .shsat-test-layout {
    grid-template-columns: 1fr;
  }
}

/* Timer */
.shsat-timer {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.shsat-timer--overtime {
  color: rgba(180, 40, 30, 0.8);
}

/* Question display */
.shsat-question-panel {
  padding-bottom: 40px;
}

.shsat-question-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
}

.shsat-passage {
  background: rgba(0, 0, 0, 0.025);
  border-left: 3px solid rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
}

.shsat-passage__title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
}

.shsat-question-image {
  margin-bottom: 20px;
  text-align: center;
}

.shsat-question-image img {
  max-width: 100%;
  max-height: 360px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.shsat-question-text {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.shsat-choices {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.shsat-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
  font-size: 16px;
  line-height: 1.5;
}

.shsat-choice:hover {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.02);
}

.shsat-choice.selected {
  border-color: #111;
  background: rgba(0, 0, 0, 0.04);
}

.shsat-choice__letter {
  font-weight: 700;
  min-width: 20px;
  padding-top: 1px;
}

/* Question map (sidebar) */
.shsat-qmap {
  position: sticky;
  top: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px;
  background: #fff;
}

.shsat-qmap__section {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
}

.shsat-qmap__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}

.shsat-qmap__dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: background 0.1s;
  color: rgba(0, 0, 0, 0.5);
}

.shsat-qmap__dot.answered {
  background: #111;
  color: #fff;
  border-color: #111;
}

.shsat-qmap__dot.flagged {
  border-color: rgba(180, 40, 30, 0.6);
  color: rgba(180, 40, 30, 0.8);
}

.shsat-qmap__dot.current {
  outline: 2px solid #111;
  outline-offset: 1px;
}

/* Passage group shading (ELA sidebar — unanswered state only) */
.shsat-qmap__dot--shade1:not(.answered) { background: rgba(39, 76, 119, 0.08); }
.shsat-qmap__dot--shade2:not(.answered) { background: rgba(100, 60, 0, 0.08); }
.shsat-qmap__dot--shade3:not(.answered) { background: rgba(60, 100, 0, 0.07); }

/* Adaptive: locked module slots (not yet assigned) */
.shsat-qmap__dot--locked {
  background: transparent;
  color: rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.08);
  border-style: dashed;
  cursor: default;
  font-size: 14px;
  pointer-events: none;
}

/* ----------------------------------------------------------
   Results page
   ---------------------------------------------------------- */
.shsat-score-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 600px) {
  .shsat-score-display {
    grid-template-columns: 1fr;
  }
}

.shsat-score-box {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 24px 20px;
  text-align: center;
  background: #fff;
}

.shsat-score-box__value {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.shsat-score-box__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.shsat-score-box--composite .shsat-score-box__value {
  font-size: 56px;
}

/* Answer review */
.shsat-answer-row {
  display: grid;
  grid-template-columns: 40px 1fr 60px 60px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
}

.shsat-answer-row--correct .shsat-answer-given {
  color: #1a7f3c;
  font-weight: 700;
}

.shsat-answer-row--wrong .shsat-answer-given {
  color: rgba(160, 30, 20, 0.9);
  font-weight: 700;
  text-decoration: line-through;
}

.shsat-answer-row--unanswered {
  color: rgba(0, 0, 0, 0.4);
}

/* ----------------------------------------------------------
   Resources page
   ---------------------------------------------------------- */
.shsat-resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.shsat-resource-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
}

.shsat-resource-item a {
  color: #111;
  font-weight: 600;
}

.shsat-resource-item__type {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 3px;
}

/* ----------------------------------------------------------
   Placement heatmap grid
   ---------------------------------------------------------- */
.shsat-heat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.shsat-heat-tile {
  padding: 11px 12px 10px;
  color: #fff;
  cursor: default;
  transition: opacity 0.12s;
}

.shsat-heat-tile:hover {
  opacity: 0.88;
}

.shsat-heat-tile__school {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.shsat-heat-tile__gap {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.shsat-heat-tile__cutoff {
  font-size: 10px;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------
   Attempt links below bar chart
   ---------------------------------------------------------- */
.shsat-attempt-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
  margin-top: -20px;
}

.shsat-attempt-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-decoration: none;
  color: #111;
  font-size: 14px;
  transition: opacity 0.1s;
}

.shsat-attempt-link:hover {
  opacity: 0.65;
}

.shsat-attempt-link__title {
  font-weight: 600;
}

.shsat-attempt-link__meta {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------
   School cutoff pills (dashboard chart)
   ---------------------------------------------------------- */
.shsat-cutoff-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shsat-cutoff-pills__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin-right: 4px;
}

.shsat-cutoff-pill {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.12s, color 0.12s;
}

.shsat-cutoff-pill:hover {
  background: rgba(0, 0, 0, 0.06);
}

.shsat-cutoff-pill.active {
  background: #111;
  color: #fff;
}

/* ----------------------------------------------------------
   Grid-in answer input
   ---------------------------------------------------------- */
.shsat-gridin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.shsat-gridin__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
}

.shsat-gridin__input {
  width: 160px;
  padding: 10px 14px;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  outline: none;
  letter-spacing: 0.06em;
  transition: border-color 0.1s;
}

.shsat-gridin__input:focus {
  border-color: #111;
}

.shsat-gridin__hint {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

/* ----------------------------------------------------------
   Landing hero
   ---------------------------------------------------------- */
.shsat-landing-hero {
  padding: 60px 0 48px;
  max-width: 600px;
}

.shsat-landing-hero h1 {
  font-size: 38px;
  margin-bottom: 16px;
}

.shsat-landing-hero p {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 28px;
}

.shsat-landing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}

.shsat-landing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 16px;
}

.shsat-landing-features li::before {
  content: "✓  ";
  font-weight: 700;
}


/* ── Content Review Interface ─────────────────────────────────────────────── */

.content-review {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

/* Header */
.content-review__header {
  margin-bottom: 36px;
}

.content-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  margin-bottom: 12px;
}
.content-back:hover { color: #111; }

.content-review__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.content-review__header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.content-review__note {
  font-size: 13px;
  color: #888;
  margin: 6px 0 0;
}

.content-review__status-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.status-pill--published { background: #d1fae5; color: #065f46; }
.status-pill--draft     { background: #fef3c7; color: #92400e; }
.status-pill--adaptive  { background: #dbeafe; color: #1e40af; }
.status-pill--standard  { background: #f3f4f6; color: #374151; }
.status-pill--free      { background: #f5f3ff; color: #5b21b6; }

/* Sections (ELA / Math) */
.content-section {
  margin-bottom: 56px;
}

.content-section__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
}

/* Stage blocks */
.content-stage {
  margin-bottom: 36px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow-x: auto;
}

.content-stage__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 8px 8px 0 0;
}

.content-stage__title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-stage__count {
  font-size: 12px;
  color: #6b7280;
}

/* Stage pills */
.stage-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stage-pill--routing      { background: #dbeafe; color: #1d4ed8; }
.stage-pill--easy_module  { background: #d1fae5; color: #065f46; }
.stage-pill--hard_module  { background: #fee2e2; color: #991b1b; }
.stage-pill--standard     { background: #f3f4f6; color: #374151; }

.content-empty {
  padding: 16px;
  color: #9ca3af;
  font-size: 13px;
  font-style: italic;
}

/* Tables */
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.content-table th {
  text-align: left;
  padding: 9px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  white-space: nowrap;
}

.content-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.content-table__row:last-child td { border-bottom: none; }

.content-table__row:hover td { background: #f9fafb; }

.content-table__subhead th {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.col-num    { width: 36px; font-weight: 600; color: #374151; }
.col-skill  { width: 140px; }
.col-diff   { width: 72px; }
.col-preview { }
.col-ans    { width: 40px; text-align: center; }
.col-traps  { width: 180px; }
.col-actions { width: 64px; }

.content-table--questions .content-table__preview {
  color: #374151;
  line-height: 1.45;
}

.content-table__distractors {
  line-height: 1.8;
}

.content-table__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.content-passage-note {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  margin-right: 4px;
}

.content-empty-cell { color: #d1d5db; }

/* Badges & tags */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge--green { background: #d1fae5; color: #065f46; }
.badge--gray  { background: #f3f4f6; color: #6b7280; }

.skill-tag {
  display: inline-block;
  font-size: 11px;
  color: #374151;
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.diff-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}
.diff-tag--easy   { background: #d1fae5; color: #065f46; }
.diff-tag--medium { background: #fef3c7; color: #92400e; }
.diff-tag--hard   { background: #fee2e2; color: #991b1b; }

.trap-tag {
  display: inline-block;
  font-size: 10px;
  background: #ede9fe;
  color: #5b21b6;
  padding: 1px 6px;
  border-radius: 3px;
  margin: 1px 2px 1px 0;
  word-break: break-all;
}

/* Buttons */
.content-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.content-btn:hover { background: #374151; color: #fff; }
.content-btn--sm { padding: 4px 10px; font-size: 12px; border-radius: 4px; }
.content-btn--primary { background: #111; color: #fff; }
.content-btn--ghost {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.content-btn--ghost:hover { background: #f9fafb; color: #111; }
.content-btn--add {
  background: #fff;
  color: #1d4ed8;
  border: 1px dashed #93c5fd;
  font-size: 12px;
  padding: 4px 12px;
}
.content-btn--add:hover { background: #eff6ff; color: #1e40af; border-color: #3b82f6; }
.content-btn--danger {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.content-btn--danger:hover { background: #fef2f2; border-color: #ef4444; }

.delete-form { display: inline; margin: 0; padding: 0; }

/* Test cards (content home) */
.test-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.test-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.test-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.test-card__pills {
  display: flex;
  gap: 6px;
}

.test-card__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.test-card__body {
  display: flex;
  gap: 0;
}

.test-card__section {
  flex: 1;
  padding: 14px 20px;
  border-right: 1px solid #f3f4f6;
}
.test-card__section:last-child { border-right: none; }

.test-card__section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.test-card__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.test-card__count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #374151;
}

.stage-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.stage-dot--routing      { background: #3b82f6; }
.stage-dot--easy_module  { background: #10b981; }
.stage-dot--hard_module  { background: #ef4444; }
.stage-dot--standard     { background: #9ca3af; }

/* Edit / Add form */
.content-edit-form {
  margin-top: 24px;
}

.content-edit-form__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

.content-edit-form__col {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px 24px;
}

.content-edit-form__col h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  margin: 24px 0 12px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.content-edit-form__col h3:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.cef-field {
  margin-bottom: 14px;
}

.cef-image-preview {
  margin-bottom: 10px;
}

.cef-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  margin-bottom: 8px;
}

.cef-image-clear {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ef4444;
  cursor: pointer;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
}

.cef-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cef-field input,
.cef-field select,
.cef-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}

.cef-field input:focus,
.cef-field select:focus,
.cef-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.cef-field textarea { resize: vertical; }

.cef-field--checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cef-field--checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.cef-inline-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
.cef-hint {
  font-size: 11px;
  color: #9ca3af;
  margin: 4px 0 0;
}
/* Choice blocks (A/B/C/D) */
.cef-choice {
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.cef-choice__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.cef-choice__letter {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.cef-choice__trap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cef-distractor-label {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.cef-choice textarea {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
  background: #fff;
}

.cef-choice textarea:focus {
  outline: none;
  background: #fffbeb;
}

.content-edit-form__errors {
  margin: 20px 0;
  padding: 14px 18px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  font-size: 13px;
  color: #991b1b;
}

.content-edit-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: #f9fafb;
  padding: 14px 24px;
  margin-left: -28px;
  margin-right: -28px;
  border-top: 1px solid #e5e7eb;
}

.cef-position {
  font-size: 12px;
  color: #9ca3af;
  margin-left: auto;
}

.cef-nav {
  display: flex;
  gap: 8px;
}

/* ----------------------------------------------------------
   Focus / Improvement cards (dashboard + error analysis)
   ---------------------------------------------------------- */
.shsat-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.shsat-focus-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shsat-focus-card__skill {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 4px;
}

.shsat-focus-card__accuracy {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.shsat-focus-card__accuracy--danger { color: var(--color-error); }
.shsat-focus-card__accuracy--warn   { color: var(--color-amber); }
.shsat-focus-card__accuracy--ok     { color: var(--color-correct); }

.shsat-focus-card__detail {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.shsat-focus-card__cta {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: auto;
}

.shsat-focus-card__cta:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   Chart wrap refinement
   ---------------------------------------------------------- */
.shsat-chart-wrap {
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ----------------------------------------------------------
   Passage two-column layout (test-taking)
   ---------------------------------------------------------- */
.shsat-passage-layout {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 28px;
  align-items: start;
}

.shsat-passage-col {
  position: sticky;
  top: 12px;
}

.shsat-passage--scroll {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 3px solid rgba(0, 0, 0, 0.18);
  padding: 20px 22px;
  background: rgba(0, 0, 0, 0.025);
  font-size: 15px;
  line-height: 1.75;
  border-radius: 2px;
}

.shsat-question-col {
  /* no extra styles needed */
}

@media (max-width: 780px) {
  .shsat-passage-layout {
    grid-template-columns: 1fr;
  }
  .shsat-passage-col {
    position: static;
  }
  .shsat-passage--scroll {
    max-height: 320px;
  }
}

/* ----------------------------------------------------------
   Question footer (nav info + prev/next, below choices)
   ---------------------------------------------------------- */
.shsat-question-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shsat-question-footer__info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ----------------------------------------------------------
   Sentence highlight block (referenced sentence in question)
   ---------------------------------------------------------- */
.shsat-sentence-block {
  background: rgba(39, 76, 119, 0.05);
  border-left: 3px solid rgba(39, 76, 119, 0.3);
  padding: 12px 18px;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
  font-style: italic;
  color: rgba(0, 0, 0, 0.78);
}

/* ----------------------------------------------------------
   Parent insights box (error analysis)
   ---------------------------------------------------------- */
.shsat-insights-box {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  padding: 24px 28px 20px;
}
.shsat-insights-box__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin: 0 0 16px;
}
.shsat-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.shsat-insight {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.09);
}
.shsat-insight--warn { border-left: 3px solid var(--color-amber); }
.shsat-insight--ok   { border-left: 3px solid var(--color-correct); }
.shsat-insight__value {
  font-size: 28px;
  font-weight: 700;
  color: #161a1d;
  line-height: 1;
  margin-bottom: 4px;
}
.shsat-insight__label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.shsat-insight__note {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   Question review rows (correct / unanswered)
   ---------------------------------------------------------- */
.shsat-qrow {
  display: grid;
  grid-template-columns: 24px 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 13.5px;
}
.shsat-qrow--correct {
  background: rgba(16, 185, 129, 0.06);
  color: rgba(0, 0, 0, 0.65);
}
.shsat-qrow--unanswered {
  background: rgba(245, 158, 11, 0.07);
  color: rgba(0, 0, 0, 0.65);
}
.shsat-qrow__icon {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--color-correct);
}
.shsat-qrow__icon--wrong { color: var(--color-error); }
.shsat-qrow__num { font-weight: 600; color: rgba(0, 0, 0, 0.5); }
.shsat-qrow__text { color: rgba(0, 0, 0, 0.7); }
.shsat-qrow__skill {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   Question review cards (wrong answers)
   ---------------------------------------------------------- */
.shsat-qcard {
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 3px solid var(--color-error);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
}
.shsat-qcard__header {
  padding: 16px 18px 0;
}
.shsat-qcard__text {
  font-size: 15px;
  color: #161a1d;
  margin: 10px 0 14px;
  line-height: 1.6;
}
.shsat-qcard__choices {
  padding: 0 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shsat-choice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  font-size: 14px;
  line-height: 1.45;
}
.shsat-choice--correct {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}
.shsat-choice--wrong {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.3);
}
.shsat-choice--neutral { background: rgba(0, 0, 0, 0.025); }
.shsat-choice__letter {
  font-weight: 700;
  font-size: 13px;
  min-width: 18px;
  color: rgba(0, 0, 0, 0.5);
}
.shsat-choice--correct .shsat-choice__letter { color: var(--color-correct); }
.shsat-choice--wrong   .shsat-choice__letter { color: var(--color-error); }
.shsat-choice__text { flex: 1; }
.shsat-choice__tag {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .03em;
}
.shsat-choice__tag--correct {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}
.shsat-choice__tag--wrong {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.shsat-qcard__trap {
  padding: 8px 18px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}
.shsat-trap-label {
  font-weight: 700;
  color: rgba(124, 58, 237, 0.8);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  margin-right: 4px;
}
.shsat-qcard__explanation {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(39, 76, 119, 0.03);
}
.shsat-explanation-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(39, 76, 119, 0.7);
  display: block;
  margin-bottom: 6px;
}
.shsat-qcard__explanation p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------------------------
   Difficulty + skill badge pills (error analysis question cards)
   ---------------------------------------------------------- */
.shsat-badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: .03em;
}
.shsat-badge-pill--easy   { background: rgba(16, 185, 129, 0.12); color: #047857; }
.shsat-badge-pill--medium { background: rgba(245, 158, 11, 0.12); color: #92400e; }
.shsat-badge-pill--hard   { background: rgba(239, 68, 68, 0.12);  color: #b91c1c; }
.shsat-badge-pill--skill  { background: rgba(100, 116, 139, 0.1); color: rgba(0,0,0,0.55); }

/* ----------------------------------------------------------
   Skill persistence badges (focus areas)
   ---------------------------------------------------------- */
.shsat-persistence-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.shsat-persistence-badge--persistent {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}
.shsat-persistence-badge--new {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
}
