.tph-cse {
  --tph-teal: #147d73;
  --tph-navy: #173a59;
  --tph-ink: #18242e;
  --tph-muted: #53616a;
  --tph-border: #d9e0dd;
  color: var(--tph-ink);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 28px 0;
  text-align: left;
  scroll-margin-top: 24px;
}
.tph-cse *, .tph-cse *::before, .tph-cse *::after { box-sizing: border-box; }
.tph-cse [hidden] { display: none !important; }
.tph-cse .tph-shell { border: 1px solid var(--tph-border); border-radius: 16px; overflow: hidden; background: #fff; }
.tph-cse .tph-header { background: #173a59; color: #fff; padding: 28px 32px; }
.tph-cse .tph-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .13em; margin: 0 0 8px; color: #c9e1e4; }
.tph-cse .tph-title { color: inherit; font-family: inherit; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.25; font-weight: 700; margin: 0; }
.tph-cse .tph-title:focus { outline: none; }
.tph-cse .tph-subtitle { color: #e1eaf0; margin: 10px 0 0; font-size: 15px; }
.tph-cse .tph-content { padding: 28px 32px 32px; }
.tph-cse .tph-ad { padding: 8px 32px 32px; text-align: center; }
.tph-cse .tph-ad-top { padding: 16px 32px 0; }
.tph-cse .tph-ad-content { min-width: 0; max-width: 100%; display: flow-root; }
.tph-cse .tph-ad-content ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.tph-cse .tph-ad.tph-ad-empty { padding-top: 0; padding-bottom: 0; }
.tph-cse .tph-ad.tph-ad-empty .tph-ad-content { height: 0; min-height: 0; overflow: hidden; }
.tph-cse .tph-shell:has(> .tph-ad:not(.tph-ad-empty)) .tph-content { padding-bottom: 8px; }
.tph-cse .tph-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0; }
.tph-cse .tph-setup-topic { grid-template-columns: 1fr; }
.tph-cse .tph-setup-topic .tph-field { max-width: 340px; width: 100%; }
.tph-cse .tph-field { min-width: 0; }
.tph-cse .tph-field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.tph-cse select { color: var(--tph-ink); background: #fbfcfa; width: 100%; height: auto; border: 1px solid #afbbb8; border-radius: 7px; font: inherit; padding: 11px 12px; white-space: normal; }
.tph-cse select:disabled { opacity: 1; background: #f1f3ef; color: var(--tph-muted); }
.tph-cse .tph-note { font-size: 14px; color: var(--tph-muted); margin: 16px 0; }
.tph-cse .tph-header-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.tph-cse .tph-header-meta .tph-subtitle { margin: 0; }
.tph-cse .tph-timer { color: var(--tph-navy); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tph-cse .tph-timer-low { color: #a33a29; }
.tph-cse .tph-header .tph-timer { color: #fff; }
.tph-cse .tph-header .tph-timer-low { color: #ffd28c; }
.tph-cse .tph-practice-label { color: #fff; font-size: 14px; font-weight: 700; }
.tph-cse .tph-practice-score { color: var(--tph-navy); background: #edf8f5; border: 1px solid #9fcac3; border-radius: 7px; padding: 12px; margin: 0 0 20px; }
.tph-cse .tph-setup > .tph-note, .tph-cse .tph-setup > .tph-button { grid-column: 1 / -1; }
.tph-cse .tph-setup > .tph-note { margin: 0; }
.tph-cse .tph-button { appearance: none; width: auto; min-height: 44px; padding: 11px 20px; border: 1px solid var(--tph-teal); border-radius: 7px; background: var(--tph-teal); color: #fff; font: inherit; font-weight: 700; line-height: 1.35; text-decoration: none; cursor: pointer; box-shadow: none; margin: 0; }
.tph-cse .tph-button:hover { background: #0d655d; color: #fff; }
.tph-cse .tph-button-start { border-color: #c45100; background: #c45100; color: #fff; font-weight: 700; }
.tph-cse .tph-button-start:hover { border-color: #a94300; background: #a94300; color: #fff; }
.tph-cse .tph-button-secondary { border-color: #afbbb8; background: #fff; color: var(--tph-navy); }
.tph-cse .tph-button-secondary:hover { background: #edf4f2; color: var(--tph-navy); }
.tph-cse .tph-button:disabled { opacity: .45; cursor: default; }
.tph-cse :is(button, input, select, summary):focus-visible { outline: 3px solid #b57a20; outline-offset: 3px; }
.tph-cse .tph-alert, .tph-cse .tph-image-error { background: #fff1ef; border: 1px solid #e5b5b2; border-radius: 7px; color: #8c3331; padding: 14px; }
.tph-cse .tph-resume { border: 1px solid #9fcac3; padding: 16px; border-radius: 8px; background: #edf8f5; margin-bottom: 24px; }
.tph-cse .tph-resume p { margin: 0 0 12px; }
.tph-cse .tph-progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 6px; overflow: hidden; appearance: none; margin: 0 0 24px; background: #e8ece9; }
.tph-cse .tph-progress::-webkit-progress-bar { background: #e8ece9; }
.tph-cse .tph-progress::-webkit-progress-value { background: var(--tph-teal); }
.tph-cse .tph-progress::-moz-progress-bar { background: var(--tph-teal); }
.tph-cse .tph-question { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 18px 0; }
.tph-cse .tph-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.tph-cse .tph-fraction { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; white-space: nowrap; font-size: .9em; line-height: 1.1; margin: 0 .1em; }
.tph-cse .tph-fraction-numerator { padding: 0 .15em .1em; border-bottom: 1px solid currentColor; }
.tph-cse .tph-fraction-denominator { padding: .1em .15em 0; }
.tph-cse .tph-power { white-space: nowrap; }
.tph-cse .tph-exponent { position: static; vertical-align: super; font-size: .75em; line-height: 0; }
.tph-cse .tph-highlight { text-decoration: underline; text-underline-offset: 3px; color: #0d655d; }
.tph-cse .tph-image { display: block; max-width: 100%; max-height: 440px; width: auto; height: auto; margin: 16px auto; object-fit: contain; }
.tph-cse .tph-passage { background: #f6f7f3; border-left: 3px solid #afbbb8; padding: 18px 20px; border-radius: 4px; margin-bottom: 20px; }
.tph-cse .tph-passage p, .tph-cse .tph-explanation p { margin: 0; }
.tph-cse .tph-small-label { font-size: 12px; letter-spacing: .08em; font-weight: 700; color: var(--tph-muted); margin: 0 0 10px !important; }
.tph-cse .tph-choices { display: grid; gap: 10px; margin: 20px 0; padding: 0; border: 0; min-width: 0; }
.tph-cse .tph-choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--tph-border); border-radius: 8px; background: #fbfcfa; cursor: pointer; font-weight: 400; transition: background-color 180ms ease, border-color 180ms ease; }
.tph-cse .tph-choice:hover { background: #f0f7f4; border-color: #70aca3; }
.tph-cse .tph-choice:has(input:checked) { border-color: var(--tph-teal); background: #e9f6f2; box-shadow: inset 0 0 0 1px var(--tph-teal); }
.tph-cse .tph-choice input { appearance: auto; accent-color: var(--tph-teal); flex: 0 0 auto; width: 18px; height: 18px; margin: 4px 0 0; }
.tph-cse .tph-choice-content { display: block; flex: 1; min-width: 0; }
.tph-cse .tph-choice-label { color: var(--tph-navy); font-weight: 700; display: inline-block; min-width: 24px; margin-right: 8px; }
.tph-cse .tph-choice .tph-image { margin-left: 0; max-height: 240px; }
.tph-cse .tph-image-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tph-cse .tph-image-choices .tph-choice { display: grid; grid-template-columns: 18px 1fr; gap: 8px; padding: 12px; }
.tph-cse .tph-image-choices .tph-choice-content { display: contents; }
.tph-cse .tph-image-choices .tph-image { grid-column: 1 / -1; margin: 8px auto 0; max-height: 150px; }
.tph-cse .tph-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tph-border); }
.tph-cse .tph-segments { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 18px; background: #f6f7f3; border-radius: 8px; }
.tph-cse .tph-segment { display: inline-flex; flex-direction: column; align-items: center; }
.tph-cse .tph-segment > span { text-decoration: underline; text-underline-offset: 4px; }
.tph-cse .tph-segment small { font-weight: 700; margin-top: 4px; }
.tph-cse .tph-order { display: grid; gap: 10px; list-style: none; padding: 0; margin: 16px 0; }
.tph-cse .tph-order-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 14px; background: #fbfcfa; border: 1px solid var(--tph-border); border-radius: 8px; margin: 0; }
.tph-cse .tph-order-number { font-weight: 700; color: var(--tph-teal); }
.tph-cse .tph-order-controls { display: flex; gap: 6px; }
.tph-cse .tph-order-controls .tph-button { padding: 8px; min-width: 44px; }
.tph-cse .tph-score { background: #edf8f5; border: 1px solid #9fcac3; border-radius: 12px; padding: 26px; text-align: center; }
.tph-cse .tph-score strong { font-size: 54px; color: var(--tph-teal); line-height: 1; }
.tph-cse .tph-score p { margin: 12px 0 0; font-weight: 600; }
.tph-cse .tph-result-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.tph-cse .tph-review { display: grid; gap: 12px; margin-top: 28px; }
.tph-cse .tph-review-item { border: 1px solid var(--tph-border); border-radius: 8px; overflow: hidden; }
.tph-cse .tph-review-item summary { padding: 15px 18px; cursor: pointer; font-weight: 700; }
.tph-cse .tph-correct summary { background: #edf8f2; color: #216746; }
.tph-cse .tph-incorrect summary { background: #fff1ef; color: #983f3c; }
.tph-cse .tph-review-body { padding: 6px 18px 20px; }
.tph-cse .tph-review-choice { border: 1px solid var(--tph-border); border-radius: 6px; padding: 12px; margin: 10px 0; }
.tph-cse .tph-review-choice p { margin: 6px 0 0; }
.tph-cse .tph-review-choice strong { font-size: 13px; }
.tph-cse .tph-answer-correct { background: #edf8f2; border-color: #8bbb9d; }
.tph-cse .tph-answer-incorrect { background: #fff1ef; border-color: #e5b5b2; }
.tph-cse .tph-choice:has(input:disabled) { cursor: default; }
.tph-cse .tph-choice.tph-answer-correct, .tph-cse .tph-choice.tph-answer-correct:has(input:checked) { background: #edf8f2; border-color: #43845c; box-shadow: inset 0 0 0 1px #43845c; }
.tph-cse .tph-choice.tph-answer-incorrect, .tph-cse .tph-choice.tph-answer-incorrect:has(input:checked) { background: #fff1ef; border-color: #b35450; box-shadow: inset 0 0 0 1px #b35450; }
.tph-cse .tph-feedback-slot { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 180ms ease, opacity 180ms ease; }
.tph-cse .tph-feedback-slot.tph-feedback-open { grid-template-rows: 1fr; opacity: 1; }
.tph-cse .tph-feedback-inner { min-height: 0; overflow: hidden; }
.tph-cse .tph-feedback { padding: 20px; border: 1px solid; border-radius: 8px; margin-top: 20px; scroll-margin: 20px; }
.tph-cse .tph-feedback:focus { outline: none; }
.tph-cse .tph-feedback-title:focus { outline: none; }
.tph-cse .tph-feedback-correct { background: #edf8f2; border-color: #8bbb9d; }
.tph-cse .tph-feedback-incorrect { background: #fff1ef; border-color: #e5b5b2; }
.tph-cse .tph-feedback-title { font: inherit; font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #216746; }
.tph-cse .tph-feedback-incorrect .tph-feedback-title { color: #983f3c; }
.tph-cse .tph-feedback .tph-explanation { background: #fff; padding: 16px; margin-top: 16px; }
.tph-cse .tph-explanation { margin-top: 20px; padding: 18px; background: #eef3f8; border-radius: 6px; }
.tph-cse .tph-answer-order { padding-left: 22px; margin: 8px 0 20px; }
.tph-cse .tph-answer-order li { margin: 8px 0; }
.tph-cse .tph-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .tph-cse .tph-feedback-slot, .tph-cse .tph-choice { transition: none; }
}
@media (max-width: 540px) {
  .tph-cse .tph-header { padding: 20px 8px; }
  .tph-cse .tph-content { padding: 20px 6px; }
  .tph-cse .tph-ad { padding: 8px 6px 20px; }
  .tph-cse .tph-ad-top { padding: 12px 6px 0; }
  .tph-cse .tph-setup { grid-template-columns: 1fr; gap: 16px; }
  .tph-cse .tph-setup-topic .tph-field { max-width: none; }
  .tph-cse .tph-choice { padding: 12px 8px; gap: 8px; }
  .tph-cse .tph-image-choices .tph-choice { padding: 8px; }
  .tph-cse .tph-passage { padding: 14px 8px; }
  .tph-cse .tph-segments, .tph-cse .tph-resume { padding: 12px 8px; }
  .tph-cse .tph-feedback { padding: 14px 8px; }
  .tph-cse .tph-explanation, .tph-cse .tph-feedback .tph-explanation { padding: 12px 8px; }
  .tph-cse .tph-review-item summary { padding: 12px 8px; }
  .tph-cse .tph-review-body { padding: 6px 8px 16px; }
  .tph-cse .tph-review-choice { padding: 10px 8px; }
  .tph-cse .tph-score { padding: 20px 8px; }
  .tph-cse .tph-result-actions .tph-button { flex: 1 1 180px; }
  .tph-cse .tph-order-item { grid-template-columns: 20px 1fr; gap: 8px; padding: 12px 8px; }
  .tph-cse .tph-order-controls { grid-column: 2; justify-content: flex-end; }
  .tph-cse .tph-navigation { flex-wrap: wrap; }
  .tph-cse .tph-navigation .tph-button { padding: 10px 12px; font-size: 14px; flex: 1 1 110px; }
}
