/* Practice and evidence notebook share the learning shell's theme tokens. */
.lp-page { max-width: 1160px; margin: 0 auto; padding: .3rem 0 3rem; color: var(--ink); }
.lp-page *, .lp-page *::before, .lp-page *::after { box-sizing: border-box; }
.lp-page [hidden] { display: none !important; }
.lp-page h1 { margin: 0 0 .65rem; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.25; }
.lp-page h2 { margin: 0 0 .7rem; font-size: 1.35rem; line-height: 1.4; }
.lp-page h3 { margin: 0 0 .55rem; font-size: 1.05rem; }
.lp-page p { max-width: 66ch; line-height: 1.75; overflow-wrap: anywhere; }
.lp-page a { color: var(--accent); text-underline-offset: .2em; }
.lp-page button, .lp-page input, .lp-page select { font: inherit; }
.lp-page button, .lp-page select, .lp-page a { -webkit-tap-highlight-color: transparent; }
.lp-page :is(a,button,input,select,summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.lp-intro { margin: 0 0 1.65rem; color: var(--muted); }
.lp-context { margin: 0 0 1.25rem; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--surface); }
.lp-context p { margin: 0; }
.lp-layout { display: grid; grid-template-columns: minmax(240px, .78fr) minmax(0, 1.8fr); gap: 2rem; align-items: start; }
.lp-choose { padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lp-choose > summary { cursor: pointer; min-height: 28px; font-size: 1.1rem; font-weight: 650; line-height: 1.6; }
.lp-choose[open] > summary { margin-bottom: .7rem; }
.lp-chooser-current { display: block; margin-top: .35rem; color: var(--muted); font-size: 14px; font-weight: 400; }
.lp-field { display: block; margin: .9rem 0; }
.lp-field > span { display: block; font-size: 14px; margin: 0 0 .35rem; font-weight: 650; }
.lp-field select { width: 100%; min-height: 44px; padding: .6rem 2rem .6rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
.lp-toggle { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-size: 14px; color: var(--muted); }
.lp-toggle input { width: 1rem; height: 1rem; accent-color: var(--accent); }
.lp-point-count, .lp-note { font-size: .88rem; color: var(--muted); }
.lp-point-list { display: grid; gap: .4rem; max-height: 510px; overflow-y: auto; margin: 1rem -.35rem 0; padding: .2rem .35rem .4rem; }
.lp-point { display: block; width: 100%; text-align: left; color: var(--ink); border: 1px solid transparent; border-radius: 7px; background: transparent; padding: .7rem .8rem; cursor: pointer; line-height: 1.5; }
.lp-point:hover { border-color: var(--line); background: var(--bg); }
.lp-point[aria-current="true"] { border-color: var(--accent); background: var(--bg); box-shadow: inset 3px 0 0 var(--accent); }
.lp-point small { display: block; color: var(--muted); margin-top: .25rem; font-size: 14px; }
.lp-work { min-width: 0; }
.lp-empty { padding: 2.4rem 1.7rem; border: 1px dashed var(--line); border-radius: 12px; }
.lp-empty p:last-child { margin-bottom: 0; }
.lp-quiz { margin: 0; }
.lp-quiz-head { padding: 0 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.lp-quiz-head .lp-note { margin: .25rem 0 .7rem; }
.lp-quiz-head h2 { margin-bottom: .6rem; font-size: 1.65rem; }
.lp-evidence-label { display: inline-block; margin: .3rem 0 0; padding: .35rem .65rem; color: var(--accent); border: 1px solid var(--line); border-radius: 4px; font-size: 14px; font-weight: 600; }
.lp-quiz fieldset, .lp-rating fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
.lp-quiz legend { font-weight: 650; padding: 0; margin: 0 0 .5rem; }
.lp-prompt { font-size: 1.1rem; margin: .5rem 0 1.2rem; }
.lp-options { display: grid; gap: .65rem; }
.lp-option { display: flex; gap: .8rem; align-items: start; padding: 1rem; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); line-height: 1.65; cursor: pointer; }
.lp-option:has(input:checked) { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.lp-option input { flex: 0 0 auto; margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
/* Inline fractions can extend beyond the line box; keep room above and below. */
.lp-option > span { min-width: 0; overflow-wrap: anywhere; overflow-x: auto; overflow-y: hidden; padding-block: 8px; }
.lp-option input:disabled { opacity: 1; }
.lp-option[data-result="correct"] { border: 2px solid var(--a); background: var(--ok-soft); box-shadow: none; }
.lp-option[data-result="incorrect"] { border: 2px solid var(--no); background: var(--no-soft); box-shadow: none; }
.lp-option-result { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.lp-option[data-result="correct"] .lp-option-result { color: var(--a); }
.lp-option[data-result="incorrect"] .lp-option-result { color: var(--no); }
.lp-feedback[data-verdict="incorrect"] { border-left-color: var(--no); }
.lp-feedback[data-verdict="incorrect"] [data-lp-feedback-title] { color: var(--no); }
.lp-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; align-items: center; }
.lp-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .65rem 1rem; background: var(--accent); border: 1px solid var(--accent); border-radius: 6px; color: var(--surface) !important; text-decoration: none; cursor: pointer; font-weight: 650; line-height: 1.5; }
.lp-button.secondary { background: var(--surface); color: var(--ink) !important; border-color: var(--line); }
.lp-button:disabled { cursor: default; opacity: .65; }
.lp-alert { color: var(--ink); padding: .75rem 1rem; margin: 1rem 0; border-left: 3px solid var(--accent); background: var(--surface); }
.lp-feedback { margin-top: 1.5rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; overflow-x: auto; }
.lp-feedback p { margin: .4rem 0 .85rem; }
.lp-feedback ol, .lp-feedback ul { padding-left: 1.3rem; line-height: 1.8; }
.lp-feedback h3:not(:first-child) { margin-top: 1.4rem; }
.lp-return-line { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.7rem; }
.lp-next { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.lp-rating { padding-top: 1rem; }
.lp-rating legend { font-size: .9rem; font-weight: 600; }
.lp-rating label { display: inline-flex; gap: .4rem; padding: .55rem .7rem .55rem 0; line-height: 1.5; align-items: center; }
.lp-rating input { accent-color: var(--accent); }
.lp-rating .lp-actions { margin-top: .3rem; }
.lp-katex, .lp-page .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.lp-katex { line-height: 1.9; }
.lp-page .katex-display { margin: .8em 0; }
.lr-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 1.6rem 0 2rem; background: var(--surface); }
.lr-summary > div { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); }
.lr-summary > div:last-child { border-right: 0; }
.lr-summary dt { font-size: 14px; color: var(--muted); }
.lr-summary dd { font-size: 1.7rem; font-weight: 650; margin: .3rem 0 0; }
.lr-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 2rem; align-items: start; }
.lr-section { margin-bottom: 2rem; min-width: 0; }
.lr-section > p { margin-top: .35rem; }
.lr-review-list, .lr-events { list-style: none; padding: 0; margin: .8rem 0; }
.lr-review-list > li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.lr-review-list > li:first-child { padding-top: .2rem; }
.lr-review-list h3 { margin-bottom: .4rem; }
.lr-review-list p { margin: .3rem 0; }
.lr-meta { color: var(--muted); font-size: 14px; line-height: 1.6; }
.lr-question { color: var(--accent); font-size: 14px; font-weight: 650; }
.lr-events > li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.lr-event-head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.lr-event-head a { font-weight: 600; }
.lr-events p { margin: .25rem 0 0; }
.lr-pill { font-size: 14px; color: var(--muted); white-space: nowrap; }
.lr-evidence { border-top: 1px solid var(--line); }
.lr-evidence > summary { cursor: pointer; padding: 1.05rem 0; font-weight: 650; line-height: 1.5; }
.lr-evidence > p { margin-top: 0; }
.lr-export { padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.lr-export p { margin: .6rem 0; }
.lr-export .lp-button { margin-top: .5rem; }
.lr-show-more { font-size: .9rem; margin: .5rem 0; }
@media (max-width: 760px) {
  .lp-page { padding: .3rem 0 2rem; }
  .lp-layout, .lr-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .lp-choose { padding: 1rem; }
  .lp-point-list { max-height: 240px; }
  .lp-quiz-head h2 { font-size: 1.4rem; }
  .lp-option { padding: .85rem .8rem; gap: .6rem; }
  .lp-feedback { padding: 1rem; }
  .lr-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lr-summary > div { padding: .85rem 1rem; }
  .lr-summary > div:nth-child(2) { border-right: 0; }
  .lr-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lr-event-head { align-items: start; flex-direction: column; gap: .15rem; }
}
@media (prefers-reduced-motion: reduce) { .lp-page * { scroll-behavior: auto !important; } }
