.isort-test {
  max-width: 820px;
  margin: 0 auto;
  color: #1f2937;
  font-family: inherit;
}

.isort-panel,
.isort-box {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
}

.isort-hidden {
  display: none !important;
}

/* The Reading Test uses the Learner System's saved-language control without
 * loading the Learner System's complete frontend stylesheet. */
.isort-test .isols-language-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0 0 18px;
}

.isort-test .isols-language-selector label {
  display: grid;
  gap: 5px;
  margin: 0;
}

.isort-test .isols-language-selector__heading {
  font-weight: 700;
  line-height: 1.4;
}

.isort-test .isols-language-selector select {
  min-width: 170px;
  min-height: 42px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  padding: 8px 34px 8px 10px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
}

.isort-test .isols-language-selector select:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.isort-test .isols-language-selector noscript {
  display: block;
}

.isort-test .isols-language-selector .isols-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

/* This stylesheet is enqueued only by a Reading Test shortcode, so the
 * public-site TranslatePress switcher remains untouched elsewhere. */
.trp-language-switcher.trp-floating-switcher,
#trp-floater-ls {
  display: none !important;
}

.isort-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  line-height: 1.5;
}

.isort-choice-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.isort-ack-note {
  color: #4b5563;
}

.isort-instructions {
  margin: 16px 0 20px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 16px 18px;
  background: #eff6ff;
}

.isort-instructions h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.isort-instructions ul {
  margin: 0;
  padding-left: 20px;
}

.isort-instructions li {
  margin: 6px 0;
}

.isort-sample-link {
  margin: 14px 0;
}

.isort-button-secondary {
  background: #334155;
}

.isort-button-secondary:hover,
.isort-button-secondary:focus {
  background: #1e293b;
}

.isort-check input {
  margin-top: 4px;
}

.isort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 11px 18px;
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.isort-button:hover,
.isort-button:focus {
  color: #ffffff;
  background: #115e59;
}

.isort-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.isort-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

.isort-meta strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111827;
  color: #ffffff;
  font-size: 22px;
}

.isort-progress {
  margin-bottom: 12px;
  color: #4b5563;
  font-weight: 700;
}

.isort-passage-status {
  margin: 0 0 14px;
  padding: 12px 14px;
  font-weight: 800;
}

.isort-message {
  border-radius: 8px;
  padding: 12px 14px;
}

.isort-message-info {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #134e4a;
}

.isort-message-notice {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #78350f;
}

.isort-message-warning {
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #7c2d12;
}

.isort-paragraph {
  font-size: 22px;
  line-height: 1.65;
}

.isort-paragraph-actions {
  margin-top: 20px;
  text-align: right;
}

.isort-error {
  color: #b91c1c;
  font-weight: 700;
}

.isort-player {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.isort-player audio {
  width: 100%;
}

.isort-reminder {
  margin-top: 18px;
  padding: 14px;
  background: #f0fdfa;
  border-left: 4px solid #0f766e;
}

.isort-practice-exit {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.isort-exit-confirm {
  display: grid;
  gap: 10px;
  border: 1px solid #facc15;
  border-radius: 8px;
  padding: 14px;
  background: #fefce8;
}

.isort-exit-confirm p {
  margin: 0;
  font-weight: 700;
}

.isort-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .isort-panel,
  .isort-box {
    padding: 18px;
  }

  .isort-paragraph {
    font-size: 19px;
  }
}

/* Interface-only typography. Keep the passage and its ancestors' typography,
 * width and padding unchanged so reading layout is identical to 1.0.28. */
.isort-panel,
.isort-box {
  border-color: #e2e8f0;
  border-radius: 12px;
}

.isort-panel > h2,
.isort-box > h2 {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

.isort-instructions {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.isort-instructions h3 {
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}

.isort-check,
.isort-panel > p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #334155;
}

.isort-meta > span,
.isort-progress {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: #475569;
}

.isort-meta strong {
  flex-shrink: 0;
  border-radius: 12px;
  background: #f0fdfa;
  color: #115e59;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.isort-passage-status,
.isort-message,
.isort-exit-confirm p {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
}

.isort-test .isort-error {
  color: #b91c1c;
  font-weight: 600;
}

.isort-test .isort-message-info { color: #134e4a; }
.isort-test .isort-message-notice { color: #78350f; }
.isort-test .isort-message-warning { color: #7c2d12; }

.isort-button {
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
}

/* Specificity and order preserve the secondary treatment in every state. */
.isort-button.isort-button-secondary {
  background: #f8fafc;
  border-color: #64748b;
  color: #334155;
}

.isort-button.isort-button-secondary:hover,
.isort-button.isort-button-secondary:focus {
  background: #e2e8f0;
  color: #0f172a;
}

.isort-test :is(button, a, input, select, audio):focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .isort-panel > h2,
  .isort-box > h2 {
    font-size: 1.375rem;
  }
}
