.public-practice-page {
  --pp-ink: #193052;
  --pp-muted: #566982;
  --pp-blue: var(--entry-blue);
  --pp-line: #dce5f2;
  --pp-soft: #eff4ff;
  --pp-ease: cubic-bezier(.2, .7, .25, 1);
  background: #f7faff;
  color: var(--pp-ink);
  line-height: 1.65;
  scrollbar-color: #a3b7dc #f0f4fa;
  caret-color: var(--pp-blue);
}
.public-practice-page ::selection { background: #dce6ff; color: #18326a; }
.public-practice-page :focus-visible { outline: 3px solid #5273e4; outline-offset: 4px; }
.public-practice-page a { text-underline-offset: 4px; }
.public-practice-page button:disabled { cursor: not-allowed; opacity: .6; }
.public-practice-page .entry-wrap { max-width: 1140px; }
.public-practice-page .entry-nav { min-height: 88px; }
.public-practice-page .entry-button { min-height: 44px; border-radius: 8px; box-shadow: none; transition: transform 120ms var(--pp-ease), background 160ms var(--pp-ease); }
.public-practice-page .entry-button:hover { transform: none; box-shadow: none; }
.public-practice-page .entry-button:active { transform: translateY(1px) scale(.98); }
.pp-main { padding-top: 42px; padding-bottom: 24px; }
.pp-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 32px; animation: pp-arrive 420ms var(--pp-ease) both; }
.pp-intro h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.3; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 750; text-wrap: balance; }
.pp-intro p { font-size: 15px; margin: 0; color: var(--pp-muted); }
.pp-stage { border: 0; margin: 0; padding: 0; flex-shrink: 0; }
.pp-stage legend { font-size: 12px; color: var(--pp-muted); padding: 0; margin-bottom: 7px; }
.pp-stage > div { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid #c7d5ec; border-radius: 9px; padding: 3px; background: white; }
.pp-stage > div::before { content: ""; position: absolute; inset: 3px auto 3px 3px; width: calc((100% - 6px) / 2); border-radius: 6px; background: var(--pp-blue); transition: transform 260ms var(--pp-ease); pointer-events: none; }
.pp-stage > div[data-active=senior]::before { transform: translateX(100%); }
.pp-stage button { position: relative; border: 0; background: transparent; color: var(--pp-muted); min-width: 82px; min-height: 40px; padding: 7px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; transition: color 160ms var(--pp-ease), transform 120ms var(--pp-ease); }
.pp-stage button[aria-pressed=true] { color: white; }
.pp-stage button:hover:not([aria-pressed=true]) { color: var(--pp-blue); }
.pp-mode-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--pp-line); margin-bottom: 26px; animation: pp-arrive 440ms 60ms var(--pp-ease) both; }
.pp-mode-row > p { color: var(--pp-muted); font-size: 12px; margin: 0 0 12px; }
.pp-tabs { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; flex-shrink: 0; }
.pp-tabs::after { content: ""; position: absolute; bottom: -1px; left: 0; width: calc((100% - 30px) / 2); height: 3px; border-radius: 3px 3px 0 0; background: var(--pp-blue); transition: transform 260ms var(--pp-ease); pointer-events: none; }
.pp-tabs[data-active=listening]::after { transform: translateX(calc(100% + 30px)); }
.pp-tabs button { position: relative; border: 0; background: transparent; color: var(--pp-muted); font-size: 16px; font-weight: 600; padding: 10px 1px 17px; min-height: 48px; transition: color 160ms var(--pp-ease), transform 120ms var(--pp-ease); }
.pp-tabs button[aria-selected=true], .pp-tabs button:hover { color: var(--pp-blue); }
.pp-layout { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 30px; align-items: start; }
.pp-index { padding-top: 6px; }
.pp-index h2 { font-size: 16px; margin: 0 0 5px; font-weight: 650; }
.pp-index > p { font-size: 12px; color: var(--pp-muted); margin: 0 0 18px; }
.pp-index ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.pp-index button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 58px; text-align: left; background: transparent; color: var(--pp-muted); border: 1px solid transparent; border-radius: 8px; padding: 9px 10px; font-size: 14px; transition: background 220ms var(--pp-ease), color 220ms var(--pp-ease), border-color 220ms var(--pp-ease), transform 120ms var(--pp-ease); }
.pp-index button:hover { background: #edf3ff; color: var(--pp-ink); }
.pp-index button[aria-current=step] { background: #eaf0ff; color: #294fca; }
.pp-index-number { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid #c9d6ec; border-radius: 6px; font-size: 12px; font-variant-numeric: tabular-nums; background: #fff; transition: background 220ms var(--pp-ease), color 220ms var(--pp-ease), border-color 220ms var(--pp-ease); }
.pp-index-label { flex: 1; }
.pp-index-state { display: block; font-size: 12px; color: var(--pp-muted); margin-top: 1px; }
.pp-index button[aria-current=step] .pp-index-number { background: var(--pp-blue); border-color: var(--pp-blue); color: white; }
.pp-sheet { min-width: 0; min-height: 460px; border: 1px solid var(--pp-line); border-radius: 16px; background: white; padding: 28px 32px 30px; }
.pp-sheet-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid #e7edf6; padding-bottom: 17px; margin-bottom: 24px; }
.pp-source { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; min-width: 0; }
.pp-source-label { font-size: 12px; color: var(--pp-muted); overflow-wrap: anywhere; }
.pp-badge { font-size: 12px; font-weight: 600; color: #294fab; background: #edf2ff; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.pp-badge-simulation { color: #69502f; background: #f7f1e8; }
.pp-counter { font-size: 12px; color: var(--pp-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-passage { max-height: 340px; overflow: auto; padding: 18px 21px; background: #f5f8fd; border-radius: 8px; margin: 0 0 25px; font-size: 16px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.pp-question-form { margin: 0; }
.pp-options { padding: 0; margin: 0; border: 0; min-width: 0; }
.pp-options legend { font-size: 20px; line-height: 1.65; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 19px; padding: 0; width: 100%; }
.pp-option { display: grid; grid-template-columns: 16px 18px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 13px 15px; min-height: 52px; border: 1px solid #dce5f2; border-radius: 8px; cursor: pointer; margin-bottom: 10px; font-size: 15px; overflow-wrap: anywhere; transition: background 220ms var(--pp-ease), border-color 220ms var(--pp-ease), transform 120ms var(--pp-ease); }
.pp-option:hover { background: #f7f9ff; border-color: #afc2eb; }
.pp-option:has(input:checked) { background: #eff4ff; border-color: #6685de; }
.pp-option:has(input:focus-visible) { outline: 3px solid #5273e4; outline-offset: 3px; }
.pp-option input { accent-color: var(--pp-blue); margin: 0; position: relative; top: 1px; width: 16px; height: 16px; }
.pp-option-letter { font-weight: 650; color: #45638e; }
.pp-option.is-answer { background: #eef8f3; border-color: #86b6a0; }
.pp-option.is-wrong { background: #fff3ef; border-color: #d9a18d; }
.pp-option:has(input:disabled) { cursor: default; }
.pp-option-status { margin-left: auto; font-size: 12px; font-weight: 600; white-space: nowrap; color: #255f47; }
.pp-option.is-wrong .pp-option-status { color: #924025; }
.pp-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: 24px; }
.pp-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 11px 19px; border: 1px solid var(--pp-blue); border-radius: 8px; background: var(--pp-blue); color: white !important; font-size: 14px; font-weight: 600; line-height: 1.5; transition: transform 120ms var(--pp-ease), background 160ms var(--pp-ease), border-color 160ms var(--pp-ease); }
.pp-button:hover:not(:disabled) { background: #3153d4; border-color: #3153d4; }
.pp-button-secondary { color: var(--pp-blue) !important; background: white; border-color: #bdccef; }
.pp-button-secondary:hover:not(:disabled) { background: var(--pp-soft); border-color: #a6b9ec; }
.pp-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pp-link-button { padding: 10px 5px; border: 0; background: transparent; color: #456493; min-height: 44px; font-size: 14px; transition: transform 120ms var(--pp-ease), color 160ms var(--pp-ease); }
.pp-link-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.pp-actions .pp-next { margin-left: auto; }
:is(.pp-button, .pp-link-button, .pp-stage button, .pp-tabs button, .pp-index button):active:not(:disabled) { transform: translateY(1px) scale(.98); transition-duration: 100ms; }
.pp-option:active:not(:has(input:disabled)) { transform: scale(.995); transition-duration: 100ms; }
.pp-feedback { background: #f1f5fe; border-left: 3px solid #91a9e5; border-radius: 0 8px 8px 0; padding: 16px 19px; margin-top: 23px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.pp-feedback h3 { font-size: 15px; margin: 0 0 5px; font-weight: 650; }
.pp-feedback p { margin: 0; white-space: pre-wrap; }
.pp-feedback.is-correct { background: #eef8f3; border-color: #86b6a0; color: #225a43; }
.pp-feedback.is-incorrect { background: #fff4ee; border-color: #d9a18d; color: #834126; }
.pp-summary { padding-top: 18px; max-width: 510px; }
.pp-summary h2 { font-size: 27px; line-height: 1.4; letter-spacing: -.02em; margin: 0 0 13px; }
.pp-summary > p { font-size: 15px; color: var(--pp-muted); line-height: 1.9; margin: 0 0 25px; }
.pp-summary-count { font-size: 17px; color: var(--pp-ink) !important; }
.pp-load { text-align: center; min-height: 460px; padding: 115px 24px 65px; background: white; border: 1px solid var(--pp-line); border-radius: 16px; }
.pp-load h2 { font-size: 23px; margin: 14px 0 9px; font-weight: 650; }
.pp-load p { font-size: 14px; color: var(--pp-muted); margin: 0 0 23px; }
.pp-loading-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pp-blue); animation: pp-breathe 1.2s ease-in-out infinite; }
.pp-account { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 25px 0; border-top: 1px solid var(--pp-line); }
.pp-account h2 { font-size: 17px; font-weight: 650; margin: 0 0 5px; line-height: 1.6; }
.pp-account p { font-size: 14px; color: var(--pp-muted); margin: 0; }
.pp-account > a { flex-shrink: 0; }
.pp-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--pp-line); padding: 22px 0 27px; font-size: 12px; color: var(--pp-muted); }
.pp-footer a:hover { text-decoration: underline; }
.pp-noscript { padding: 18px; background: #fff5e9; color: #77441b; }
@keyframes pp-breathe { 50% { opacity: .35; } }
@keyframes pp-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 850px) {
  .public-practice-page .entry-wrap { width: calc(100% - 48px); }
  .pp-layout { grid-template-columns: 156px minmax(0, 1fr); gap: 22px; }
  .pp-sheet { padding: 25px 24px; }
  .pp-intro { gap: 20px; }
  .pp-stage button { min-width: 69px; padding: 7px 13px; }
  .pp-account { gap: 20px; }
  .pp-account h2 { font-size: 16px; }
}
@media (max-width: 640px) {
  .public-practice-page .entry-wrap { width: calc(100% - 32px); }
  .public-practice-page .entry-nav { min-height: 76px; gap: 12px; }
  .public-practice-page .entry-nav nav { gap: 15px; font-size: 12px; }
  .public-practice-page .entry-nav .entry-button { min-height: 40px; padding: 8px 15px; }
  .public-practice-page .brand-logo { width: 141px; height: 51px; }
  .public-practice-page .brand-logo img { width: 209px; left: -32px; top: -30px; }
  .pp-main { padding-top: 30px; }
  .pp-intro { display: block; margin-bottom: 21px; }
  .pp-intro h1 { font-size: 27px; margin-bottom: 10px; }
  .pp-intro p { font-size: 14px; max-width: 30em; }
  .pp-stage { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
  .pp-stage legend { float: left; margin: 0; line-height: 48px; font-size: 12px; }
  .pp-stage button { min-width: 77px; min-height: 38px; }
  .pp-mode-row { display: block; margin-bottom: 22px; }
  .pp-tabs { display: inline-grid; }
  .pp-tabs button { font-size: 15px; padding-bottom: 14px; }
  .pp-mode-row > p { font-size: 12px; margin: 13px 0; }
  .pp-layout { display: block; }
  .pp-index { padding: 0; margin-bottom: 19px; }
  .pp-index h2 { display: inline; font-size: 14px; }
  .pp-index > p { display: inline; margin-left: 10px; font-size: 12px; }
  .pp-index ol { display: flex; gap: 6px; margin-top: 12px; }
  .pp-index li { flex: 1; min-width: 0; }
  .pp-index button { flex-direction: column; justify-content: center; gap: 5px; padding: 8px 2px; min-height: 70px; text-align: center; font-size: 12px; }
  .pp-index-number { width: 25px; height: 25px; font-size: 12px; }
  .pp-index-state { display: none; }
  .pp-index-label { flex: 0; }
  .pp-sheet { min-height: 400px; padding: 21px 18px 24px; border-radius: 12px; }
  .pp-sheet-top { padding-bottom: 15px; margin-bottom: 21px; align-items: flex-start; gap: 8px; }
  .pp-source { gap: 6px 8px; }
  .pp-counter { padding-top: 3px; }
  .pp-options legend { font-size: 18px; }
  .pp-option { grid-template-columns: 16px 16px minmax(0, 1fr); font-size: 14px; padding: 12px; gap: 8px; }
  .pp-option-status { grid-column: 3; margin-left: 0; white-space: normal; }
  .pp-passage { padding: 15px; font-size: 15px; max-height: 300px; }
  .pp-actions { gap: 8px; margin-top: 21px; }
  .pp-button { padding: 10px 14px; min-height: 44px; }
  .pp-link-button { font-size: 14px; }
  .pp-actions .pp-next { margin-left: auto; }
  .pp-feedback { padding: 14px; font-size: 14px; }
  .pp-feedback h3 { font-size: 14px; }
  .pp-summary h2 { font-size: 24px; }
  .pp-summary > p { font-size: 14px; }
  .pp-account { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 26px; padding: 23px 0; }
  .pp-account h2 { font-size: 16px; }
  .pp-account p { font-size: 14px; }
  .pp-load { min-height: 400px; padding: 93px 20px 52px; }
  .pp-load h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-practice-page *, .public-practice-page *::before, .public-practice-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Short, single-blank excerpts: keep the passage and word choices in one glance. */
.pp-passage { max-height: none; font-size: 18px; line-height: 1.9; }
.pp-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-options legend { margin-bottom: 16px; font-size: 17px; }
.pp-option { margin: 0; }
@media (max-width: 600px) { .pp-options { grid-template-columns: 1fr; } .pp-passage { font-size: 16px; } }

/* Word-bank excerpts retain every original word and scan as one shared bank. */
.pp-options.is-word-bank { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.pp-options.is-word-bank .pp-option { min-height: 48px; padding: 10px 12px; flex-wrap: wrap; gap: 9px; }
.pp-options.is-word-bank .pp-option-status { width: 100%; padding-left: 26px; }
.pp-index-label { font-size: 13px; line-height: 1.6; }
@media(max-width:600px) { .pp-options.is-word-bank { grid-template-columns: repeat(2,minmax(0,1fr)); }.pp-options.is-word-bank .pp-option { padding: 10px; font-size: 13px; overflow-wrap: anywhere; } }
