/* CAE / C1 Advanced only. Exam content and scoring remain with the page. */
body.cae-practice [hidden] { display: none !important; }
body.cae-practice .cae-shell { width: 100%; max-width: 800px; margin: 0; padding: 0; }
body.cae-practice .module-header { margin-bottom: 28px; }
body.cae-practice .module-header p { color: var(--muted); font-size: 15px; margin-top: 10px; }
body.cae-practice .tab-bar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background: var(--practice-card); border-color: var(--border); padding: 6px; gap: 6px; }
body.cae-practice .tab-btn { min-width: 0; min-height: 48px; padding: 10px 6px; font-size: 13px; font-weight: 500; line-height: 1.5; white-space: normal; }
body.cae-practice .tab-btn.active { color: var(--sky); background: var(--practice-accent-wash); }
body.cae-practice .sec-label,
body.cae-practice .prompt-label { color: var(--muted) !important; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.6; }
body.cae-practice .body-text { color: var(--muted) !important; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
body.cae-practice .card,
body.cae-practice .cae-hero,
body.cae-practice .paper-card,
body.cae-practice .cae-practice-hero,
body.cae-practice .prompt-card { background: var(--practice-card) !important; border: 1px solid var(--border) !important; border-radius: 16px; padding: 24px; margin-bottom: 20px; }
body.cae-practice .cae-hero::before { display: none; }
body.cae-practice .cae-hero-title,
body.cae-practice .cae-practice-hero > div:first-child { color: var(--text) !important; font-weight: 600 !important; font-size: 23px !important; line-height: 1.5; }
body.cae-practice .cae-hero-sub { color: var(--muted); font-weight: 400; font-size: 14px; line-height: 1.7; }
body.cae-practice .estimated-band { background: var(--practice-accent-wash); color: var(--sky); font-size: 14px; line-height: 1.7; padding: 14px 16px; font-weight: 500; }
body.cae-practice .estimated-band strong { color: var(--sky) !important; }
body.cae-practice .no-expiry-badge { color: var(--mint); background: var(--bg); border-color: var(--border); font-weight: 500; font-size: 13px; line-height: 1.6; }
body.cae-practice .stats-row { gap: 12px; }
body.cae-practice .stat-cell { min-width: 0; background: var(--practice-card); border-color: var(--border); padding: 16px 12px; }
body.cae-practice .stat-val { font-size: 18px; font-weight: 600; }
body.cae-practice .stat-lbl { font-size: 12px; line-height: 1.6; font-weight: 400; }
body.cae-practice .suite-row { gap: 10px; }
body.cae-practice :is(.suite-badge,.paper-badge,.part-num,.criteria-badge,.band-tip-badge,.study-period,.req-score) { color: var(--sky) !important; background: var(--practice-accent-wash) !important; border-color: var(--border) !important; font-weight: 500; }
body.cae-practice .suite-badge { font-size: 12px; line-height: 1.6; }
body.cae-practice .paper-header { flex-wrap: wrap; gap: 12px; }
body.cae-practice .paper-title { color: var(--text) !important; min-width: 0; font-size: 18px; font-weight: 600; line-height: 1.6; }
body.cae-practice .paper-meta { gap: 12px; }
body.cae-practice .paper-meta span { font-size: 13px; font-weight: 400; line-height: 1.6; }
body.cae-practice .card > div:first-child > span[style*="font-weight:900"] { color: var(--text) !important; font-weight: 600 !important; line-height: 1.6; }
body.cae-practice .part-acc,
body.cae-practice .grade-acc { cursor: auto; background: var(--practice-card); border-color: var(--border) !important; padding: 0; border-radius: 14px; margin-bottom: 12px; }
body.cae-practice .part-header,
body.cae-practice .grade-header { min-height: 64px; padding: 16px 20px; cursor: pointer; list-style: none; align-items: center; gap: 12px; border-radius: 14px; }
body.cae-practice summary::-webkit-details-marker { display: none; }
body.cae-practice .part-title { display: block; font-size: 16px; font-weight: 500; line-height: 1.6; }
body.cae-practice .part-marks { display: block; font-size: 13px; line-height: 1.6; }
body.cae-practice .part-header > span:nth-child(2),
body.cae-practice .grade-header > span:nth-child(2) { min-width: 0; flex: 1; }
body.cae-practice .part-body,
body.cae-practice .grade-body { padding: 16px 20px 20px; margin: 0; border-radius: 0 0 14px 14px; background: var(--practice-card) !important; }
body.cae-practice .part-acc[open] .part-body,
body.cae-practice .grade-acc[open] .grade-body { display: block; }
body.cae-practice .cae-chevron { flex-shrink: 0; color: var(--muted); transition: transform .18s; }
body.cae-practice details[open] .cae-chevron { transform: rotate(180deg); }
body.cae-practice .part-tip { color: var(--text) !important; background: var(--bg) !important; padding: 14px 16px; font-weight: 400; font-size: 14px; line-height: 1.7; }
body.cae-practice .tip-arrow { color: var(--sky) !important; }
body.cae-practice .criteria-name { font-size: 16px; font-weight: 500; line-height: 1.6; }
body.cae-practice .criteria-desc { font-size: 14px; line-height: 1.7; }
body.cae-practice .band-tip-row { background: var(--practice-card); border-color: var(--border); padding: 16px; }
body.cae-practice .band-tip-badge { font-size: 12px; line-height: 1.6; }
body.cae-practice .practice-card { background: var(--practice-card); border-color: var(--border) !important; border-radius: 16px; padding: 24px; margin-bottom: 16px; cursor: auto; }
body.cae-practice .practice-card:hover { opacity: 1; }
body.cae-practice .practice-card-title { color: var(--text) !important; font-size: 19px; font-weight: 500; line-height: 1.6; }
body.cae-practice .practice-card-desc { font-size: 15px; line-height: 1.7; }
body.cae-practice .practice-card-weight { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
body.cae-practice .practice-card-btn,
body.cae-practice .submit-btn { width: 100%; min-height: 48px; border: 0; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; padding: 14px 20px; color: var(--practice-on-accent) !important; background: var(--sky) !important; border-radius: 12px; cursor: pointer; opacity: 1; }
body.cae-practice .practice-card-btn:hover:not(:disabled),
body.cae-practice .submit-btn:hover:not(:disabled) { background: var(--sky2) !important; }
body.cae-practice .prompt-text { font-family: inherit; font-size: clamp(20px,2.8vw,24px); font-weight: 500; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
body.cae-practice .new-prompt-btn { float: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 20px; padding: 10px 14px; border: 1px solid var(--border2); border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; }
body.cae-practice .chips-row { gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
body.cae-practice .chip { min-width: 90px; background: var(--practice-card); border-color: var(--border); padding: 14px; }
body.cae-practice .chip-val { color: var(--sky); font-size: 15px; font-weight: 600; }
body.cae-practice .chip-lbl { font-size: 12px; line-height: 1.6; }
body.cae-practice .cae-response-label { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
body.cae-practice .response-area { color: var(--text); background: var(--practice-card); border-color: var(--border2); min-height: 200px; padding: 16px 20px; font-size: 18px; line-height: 1.7; }
body.cae-practice .response-area:focus { border-color: var(--sky); }
body.cae-practice .response-area::placeholder { color: var(--muted); opacity: 1; }
body.cae-practice .cae-response-help { font-size: 13px; }
body.cae-practice .word-count { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 10px 0 20px; }
body.cae-practice .cae-back-btn,
body.cae-practice .cae-retry-btn { width: 100%; min-height: 48px; background: transparent; color: var(--muted); border: 1px solid var(--border2); border-radius: 12px; padding: 14px 20px; font: inherit; font-weight: 500; font-size: 14px; line-height: 1.5; cursor: pointer; margin: 12px 0; }
body.cae-practice .cae-back-btn:hover,
body.cae-practice .cae-retry-btn:hover { color: var(--text); background: var(--surface2); }
body.cae-practice :is(.new-prompt-btn,.cae-back-btn,.practice-card-btn,.cae-retry-btn,.submit-btn):disabled { background: var(--bg3) !important; color: var(--muted) !important; border-color: var(--border) !important; opacity: 1; cursor: not-allowed; }
body.cae-practice .cae-feedback-title { color: var(--text); font-size: 22px; line-height: 1.5; font-weight: 600; margin: 24px 0; }
body.cae-practice .cae-feedback-title:focus { outline: none; }
body.cae-practice .cae-feedback-error { color: var(--coral); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
body.cae-practice .result-score-box { background: var(--practice-card) !important; border-color: var(--border) !important; padding: 24px; }
body.cae-practice .result-score-num { color: var(--sky) !important; font-size: 44px; font-weight: 600; }
body.cae-practice .result-score-label { font-size: 16px; font-weight: 500; line-height: 1.6; }
body.cae-practice .result-grade-pill { color: var(--sky) !important; background: var(--practice-accent-wash) !important; font-size: 14px; font-weight: 500; line-height: 1.7; }
body.cae-practice .cae-criterion-name { font-size: 15px !important; font-weight: 500 !important; line-height: 1.7; }
body.cae-practice .cae-criterion-score { color: var(--sky) !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.7; }
body.cae-practice .cae-criterion-feedback { font-size: 15px !important; line-height: 1.7; overflow-wrap: anywhere; }
body.cae-practice .crit-bar-wrap { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
body.cae-practice .crit-bar { height: 6px; background: var(--sky) !important; }
body.cae-practice .grade-box { color: var(--sky) !important; background: var(--practice-accent-wash) !important; border-color: var(--border2) !important; font-size: 16px; font-weight: 600; }
body.cae-practice .grade-header > span:nth-child(2) > span:first-child { flex-wrap: wrap; }
body.cae-practice .grade-header > span:nth-child(2) > span:first-child > span { color: var(--text) !important; font-weight: 500 !important; font-size: 13px !important; line-height: 1.6; }
body.cae-practice .grade-header > span:nth-child(2) > span:first-child > span:nth-child(2) { background: var(--bg) !important; }
body.cae-practice .grade-header > span:nth-child(2) > span:last-child { font-size: 13px !important; line-height: 1.6; }
body.cae-practice .cae-equivalence { overflow-x: auto; border-radius: 8px; }
body.cae-practice .cae-equivalence:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
body.cae-practice .eq-table { min-width: 400px; margin-top: 0; }
body.cae-practice .eq-table th { color: var(--muted) !important; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.6; }
body.cae-practice .eq-table td { color: var(--text) !important; font-size: 14px; line-height: 1.7; }
body.cae-practice .req-info { min-width: 0; }
body.cae-practice .req-name { font-size: 15px; font-weight: 500; line-height: 1.6; }
body.cae-practice .req-purpose { font-size: 13px; line-height: 1.6; }
body.cae-practice .study-period { font-size: 12px; line-height: 1.6; }
body.cae-practice .pp-sv-btn { min-height: 48px; color: var(--muted); background: var(--practice-card); border-color: var(--border2); font-size: 14px; font-weight: 500; }
body.cae-practice .pp-sv-btn.saved,
body.cae-practice .pp-sv-done { color: var(--mint); background: var(--bg); border-color: var(--mint); }
body.cae-practice .pp-sv-input { min-width: 0; color: var(--text); background: var(--practice-card); border-color: var(--border2); font-size: 16px; }
body.cae-practice .pp-sv-add { min-height: 44px; color: var(--practice-on-accent); background: var(--sky); font-weight: 600; }
body.cae-practice .pp-sv-add:hover { color: var(--practice-on-accent); background: var(--sky2); }
body.cae-practice .pp-sv-hint { color: var(--muted); font-size: 13px; line-height: 1.7; }
@media (max-width: 860px) {
  body.cae-practice .tab-bar { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.cae-practice .tab-btn[data-tab="scores"] { grid-column: 1 / -1; }
  body.cae-practice :is(.card,.cae-hero,.paper-card,.cae-practice-hero,.prompt-card,.practice-card) { padding: 20px; }
}
@media (max-width: 500px) {
  body.cae-practice .stats-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.cae-practice .paper-title { flex-basis: calc(100% - 36px); }
  body.cae-practice .paper-badge { margin-inline-start: 36px; }
  body.cae-practice .band-tip-row,
  body.cae-practice .study-plan-row { flex-direction: column; }
  body.cae-practice .criteria-row { flex-wrap: wrap; }
  body.cae-practice .req-row { flex-wrap: wrap; }
  body.cae-practice .req-info { flex-basis: calc(100% - 40px); }
  body.cae-practice .req-score { margin-inline-start: 40px; }
}
