/* Shared PSEB-style question components for the independently themed banks. */
.med-app .test-shell {
  border-top: 1px solid color-mix(in srgb, var(--med-accent) 45%, transparent);
  border-radius: 26px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .5), 0 0 60px -30px var(--med-accent), inset 0 1px 1px rgba(255, 255, 255, .06);
}
.med-app .test-topline .quiet-button,
.med-app .study-toolbar .quiet-button {
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--med-text) 3%, transparent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.med-app .test-topline .quiet-button:hover:not(:disabled),
.med-app .study-toolbar .quiet-button:hover:not(:disabled),
.med-app .test-topline .quiet-button:focus-visible,
.med-app .study-toolbar .quiet-button:focus-visible {
  border-color: var(--med-accent);
  color: var(--med-text);
}
.med-app .progress-track.med-progress {
  display: flex;
  height: 4px;
  gap: 5px;
  overflow: visible;
  margin: 18px 0 20px;
  background: transparent;
}
.med-progress-segment {
  flex: 1 1 0;
  min-width: 1px;
  height: 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--med-muted) 20%, transparent);
  transition: background .3s ease, box-shadow .3s ease;
}
.med-progress-segment.answered {
  background: color-mix(in srgb, var(--med-accent) 55%, transparent);
}
.med-progress-segment.seen-correct {
  background: var(--med-green);
  box-shadow: 0 0 8px color-mix(in srgb, var(--med-green) 60%, transparent);
}
.med-progress-segment.seen-wrong {
  background: var(--med-red);
  box-shadow: 0 0 8px color-mix(in srgb, var(--med-red) 55%, transparent);
}
.med-progress-segment.current {
  background: var(--med-accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--med-accent) 70%, transparent);
}
.med-app .question-tags { margin: 4px 0 16px; }
.med-app .question-tags .meta-rune {
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--med-border) 70%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--med-text) 4%, transparent);
  color: var(--med-muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.med-app .question-tags .meta-rune.hot {
  border-color: color-mix(in srgb, var(--med-accent) 40%, transparent);
  color: var(--med-accent);
}
.med-app .question-prompt {
  margin: 12px 0 20px;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
}
.med-app .answer-grid { display: grid; gap: 0; }
.med-app .answer-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
  margin-bottom: 10px;
}
.med-app .answer-option {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 13px;
  min-height: 54px;
  padding: 14px 17px;
  overflow: hidden;
  border-radius: 15px;
  background: color-mix(in srgb, var(--med-text) 2.5%, transparent);
  text-align: left;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.med-app .answer-option > span:first-child {
  display: block;
  flex: none;
  width: auto;
  height: auto;
  padding-top: 1px;
  border: 0;
  border-radius: 0;
  color: var(--med-muted);
  font-size: .95rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.med-app .answer-option strong { font-size: clamp(.86rem, 2.8vw, .98rem); font-weight: 600; line-height: 1.55; }
.med-app .answer-option:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--med-text) 24%, transparent);
  background: color-mix(in srgb, var(--med-text) 6%, transparent);
  transform: translateX(3px);
}
.med-app .answer-option:disabled { cursor: default; }
.med-app .answer-option.selected {
  border-color: color-mix(in srgb, var(--med-accent) 65%, transparent);
  background: color-mix(in srgb, var(--med-accent) 10%, transparent);
  box-shadow: 0 0 26px -10px var(--med-accent);
}
.med-app .answer-option.selected > span:first-child { color: var(--med-accent); }
.med-app .answer-option.correct,
.med-app .answer-option.answer-key {
  border-color: color-mix(in srgb, var(--med-green) 65%, transparent);
  background: color-mix(in srgb, var(--med-green) 9%, transparent);
  box-shadow: 0 0 26px -8px var(--med-green);
}
.med-app .answer-option.correct > span:first-child,
.med-app .answer-option.answer-key > span:first-child { color: var(--med-green); }
.med-app .answer-option.incorrect {
  border-color: color-mix(in srgb, var(--med-red) 65%, transparent);
  background: color-mix(in srgb, var(--med-red) 9%, transparent);
  box-shadow: 0 0 26px -8px var(--med-red);
}
.med-app .answer-option.incorrect > span:first-child { color: var(--med-red); }
.med-app .answer-option.option-muted { opacity: .3; }
.med-app .answer-option.struck-through:not(.answer-key) strong {
  opacity: .45;
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--med-red) 70%, transparent);
  text-decoration-thickness: 2px;
}
.med-app .option-elimination {
  flex: none;
  width: 42px;
  border: 1px solid color-mix(in srgb, var(--med-border) 35%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--med-text) 2%, transparent);
  color: var(--med-muted);
  font-size: .85rem;
  font-weight: 900;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.med-app .option-elimination:hover,
.med-app .option-elimination:focus-visible {
  border-color: var(--med-red);
  color: var(--med-red);
}
.med-app .option-elimination[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--med-red) 50%, transparent);
  background: color-mix(in srgb, var(--med-red) 10%, transparent);
  color: var(--med-red);
}
.med-app .option-elimination:disabled { cursor: default; opacity: .4; }
.med-app .explanation {
  padding: 13px 16px;
  border-radius: 0 11px 11px 0;
}
.med-app .explanation p { line-height: 1.7; }

/* BOLO.IM keeps its lab panel but uses the PSEB toolbar's compact pill rhythm. */
.im-toolbar .st-toggle {
  min-height: 42px;
  padding: 8px 15px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.im-toolbar .st-toggle[aria-pressed="true"] {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
}
.session-tools .session-action,
.session-tools .session-chip {
  min-height: 36px;
  padding: 8px 13px;
  font-size: .66rem;
  letter-spacing: .06em;
}
.hint-btn { min-height: 36px; padding: 8px 13px; font-size: .66rem; letter-spacing: .06em; }

@media (max-width: 640px) {
  .med-app .answer-row { gap: 6px; }
  .med-app .option-elimination { width: 36px; }
  .med-app .answer-option { padding: 13px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .med-progress-segment,
  .med-app .answer-option,
  .med-app .option-elimination { transition: none; }
  .med-app .answer-option:hover:not(:disabled) { transform: none; }
}
