/* Listening only. Load after practice-page.css and the website theme. */
body.li-practice .session-bar { background: transparent; flex-wrap: wrap; border-color: var(--border); }
body.li-practice .sec-label { display: block; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.li-practice .diff-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
body.li-practice .diff-card { min-width: 0; padding: 18px 14px; border: 1px solid var(--border2); border-radius: 12px; background: var(--practice-card); font-family: inherit; }
body.li-practice .diff-card:hover { background: var(--surface2); border-color: var(--sky); }
body.li-practice .diff-card[aria-pressed="true"] { background: var(--practice-accent-wash); border-color: var(--sky); }
body.li-practice .diff-label { color: var(--text); font-size: 15px; font-weight: 600; }
body.li-practice .diff-card[aria-pressed="true"] .diff-label { color: var(--sky); }
body.li-practice .diff-desc { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
body.li-practice .toggle-row { padding: 16px 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; margin-bottom: 0; gap: 16px; }
body.li-practice .toggle-info { margin: 0; min-width: 0; }
body.li-practice .toggle-title { color: var(--text); font-size: 14px; font-weight: 500; }
body.li-practice .toggle-sub { font-size: 13px; line-height: 1.5; margin-top: 4px; }
body.li-practice .toggle-switch { height: 44px; }
body.li-practice .toggle-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
body.li-practice .toggle-track { top: 9px; bottom: 9px; background: var(--border2); pointer-events: none; }
body.li-practice .toggle-thumb { top: 12px; }
body.li-practice .toggle-switch input:checked + .toggle-track { background: var(--sky); }
body.li-practice .toggle-switch input:focus-visible + .toggle-track { outline: 2px solid var(--sky); outline-offset: 4px; }
body.li-practice .btn-start,
body.li-practice .btn-check,
body.li-practice .btn-next-sentence,
body.li-practice .btn-r-submit,
body.li-practice .li-tour-action.primary {
  background: var(--sky); color: var(--practice-on-accent); border: 1px solid transparent;
  box-shadow: none; min-height: 48px; font-weight: 600; border-radius: 999px;
}
body.li-practice .btn-start:hover,
body.li-practice .btn-check:hover:not(:disabled),
body.li-practice .btn-next-sentence:hover,
body.li-practice .btn-r-submit:hover,
body.li-practice .li-tour-action.primary:hover { background: var(--sky2); color: var(--practice-on-accent); transform: none; }
body.li-practice .btn-check:disabled { background: var(--bg3); color: var(--muted); border-color: var(--border); opacity: 1; }
body.li-practice .btn-start { margin: 24px 0; }
body.li-practice .listening-exercise-meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
body.li-practice .listening-workspace,
body.li-practice .result-card { background: var(--practice-card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; margin-bottom: 24px; animation: none; }
body.li-practice .listen-card { border: 0; border-radius: 0; background: transparent; padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--border); animation: none; }
body.li-practice .input-card { border: 0; border-radius: 0; background: transparent; padding: 0; margin-bottom: 0; }
body.li-practice .play-btn { width: 80px; height: 80px; font-size: 32px; background: var(--practice-accent-wash); border: 1px solid var(--sky); color: var(--sky); }
body.li-practice .play-btn:hover:not(:disabled) { background: var(--bg2); transform: none; }
body.li-practice .play-btn.playing { background: var(--practice-accent-wash); border-color: var(--sky); animation: none; }
body.li-practice .play-btn:disabled { opacity: 1; }
body.li-practice .play-label { color: var(--text); font-size: 15px; font-weight: 500; }
body.li-practice .play-count { color: var(--muted); font-size: 13px; }
body.li-practice .transcript-preview { color: var(--text); background: var(--bg); border-color: var(--border); font-size: 18px; text-align: start; overflow-wrap: anywhere; animation: none; }
body.li-practice .speed-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; max-width: 400px; margin: 0 auto; }
body.li-practice .speed-pill { min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 999px; background: transparent; color: var(--muted); border-color: var(--border2); font-size: 13px; }
body.li-practice .speed-pill.active { background: var(--practice-accent-wash); color: var(--sky); border-color: var(--sky); }
body.li-practice .speed-pill:hover { background: var(--surface2); color: var(--text); }
body.li-practice .listen-input { min-height: 132px; background: var(--bg); border: 1px solid var(--border2); border-radius: 12px; font-size: 18px; line-height: 1.6; padding: 14px 16px; }
body.li-practice .listen-input:focus { border-color: var(--sky); }
body.li-practice .listen-input::placeholder { color: var(--muted); opacity: 1; }
body.li-practice .score-circle-wrap { justify-content: flex-start; }
body.li-practice .score-pct { font-size: 28px; font-weight: 600; }
body.li-practice .score-grade { font-size: 12px; font-weight: 500; }
body.li-practice .correct-block,
body.li-practice .your-block { background: var(--bg); border-color: var(--border); border-radius: 12px; padding: 16px; }
body.li-practice .correct-label,
body.li-practice .your-label { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.li-practice .correct-text,
body.li-practice .your-words { font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
body.li-practice .result-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
body.li-practice .btn-play-again,
body.li-practice .btn-cancel { min-height: 48px; background: transparent; color: var(--muted); border-color: var(--border2); font-weight: 500; }
body.li-practice .btn-play-again:hover,
body.li-practice .btn-cancel:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); }
body.li-practice .listening-report-btn { color: var(--muted) !important; text-align: start; min-height: 44px; }
body.li-practice .listening-report-btn:hover { color: var(--red) !important; }
body.li-practice .ai-banner { background: transparent; border: 0; padding: 0; align-items: flex-start; font-size: 12px; }
body.li-practice .ai-banner-badge { background: var(--bg2); color: var(--muted); font-weight: 500; }
body.li-practice .report-card,
body.li-practice .li-tour-card { background: var(--practice-card); border-color: var(--border); box-shadow: none; }
body.li-practice .li-tour-body { color: var(--muted); }
body.li-practice .li-tour-action { background: transparent; color: var(--muted); }
body.li-practice .li-tour-action.primary { background: var(--sky); color: var(--practice-on-accent); }
body.li-practice .li-tour-spotlight { border-color: var(--sky); box-shadow: 0 0 0 9999px rgba(0,0,0,.68); }
body.li-practice .pp-tour-btn { min-height: 44px !important; background: transparent; color: var(--muted); border-color: var(--border); }
body.li-practice .pp-tour-btn:hover { background: var(--practice-accent-wash); color: var(--sky); border-color: var(--sky); }
body.li-practice .ai-badge-nav { background: transparent; color: var(--muted); border-color: var(--border); }
body.li-practice .ai-dot { animation: none; }
body.li-practice .pp-session-notice { background: var(--practice-card); border-color: var(--border); box-shadow: none; }
html[data-theme] body.li-practice .pp-session-notice strong,
html[data-theme] body.li-practice .pp-session-notice button { color: var(--text) !important; }
html[data-theme] body.li-practice .pp-session-notice span { color: var(--muted) !important; }
body.li-practice .pp-session-notice button { background: transparent; border-color: var(--border2); min-height: 44px; }

@media (max-width: 860px) {
  body.li-practice .listening-workspace,
  body.li-practice .result-card { padding: 20px; border-radius: 16px; }
  body.li-practice .diff-row { grid-template-columns: minmax(0,1fr); }
  body.li-practice .diff-card { text-align: start; padding: 16px; }
  body.li-practice .diff-label { justify-content: flex-start; }
  body.li-practice .result-actions { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 500px) {
  body.li-practice .speed-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
html.pp-embedded-exercise body.li-practice .main-content { padding-top: 28px !important; }
