/* Calm momentum: strong next actions, quiet supporting surfaces. */
:root { --motion-fast: 160ms; --motion-step: 210ms; --steady-paper: #fffefa; }
.main-wrap { background: radial-gradient(ellipse at 6% 0,#f8efd34d,transparent 640px),#f7f8f4; }
.section-navigation,.study-subjects { background: transparent; }
.learn-start-grid { grid-template-columns: minmax(0,2.1fr) minmax(230px,1fr); align-items: stretch; }
.learn-next-step { position:relative; display:flex; align-items:center; min-height:220px; padding:30px!important; border:1px solid #285b4d!important; border-radius:20px; background:linear-gradient(120deg,#204b40,#346953)!important; color:#fffefa; }
.learn-next-step h2 { color:#fffefa; font-size:clamp(23px,2.4vw,31px); line-height:1.25; max-width:25ch; }
.learn-next-step .eyebrow,.learn-next-step p { color:#dfeddf; }
.learn-next-step .learn-next-icon { display:none; }
.learn-next-step>div { width:100%; }
.learn-next-step .button.primary { position:static!important; margin-top:17px; background:#f7d981; color:#204638; box-shadow:0 3px 0 #c5a052; }
.learn-next-step .learning-reason { max-width:48ch; }
.lesson-resume-track { height:5px; max-width:280px; background:#ffffff26; border-radius:8px; overflow:hidden; margin-top:17px; }
.lesson-resume-track span { display:block; height:100%; background:#f7d981; border-radius:inherit; }
.learn-start-grid .flashcard-today { background:var(--steady-paper); border-color:#e0e5db; }
.learning-up-next { border:0!important; border-bottom:1px solid #dde4da!important; border-radius:0!important; background:transparent!important; padding:20px 4px!important; }
.page-learn .study-plan-card,.page-learn .study-plan-invitation { margin-top:22px; }
.progress-next-card { background:var(--steady-paper)!important; border-color:#dfe6dc!important; }
.progress-next-card:first-child { background:linear-gradient(125deg,var(--subject-soft),#fffefa)!important; border-color:var(--subject-border)!important; }
.progress-next-card:first-child .button { color:#fff; background:var(--subject-accent); border-color:var(--subject-accent); }
.progress-next-card .progress-status.untried { background:transparent; border:0; padding:0; color:#62766b; }
.early-progress { padding:22px 26px; margin:0 0 25px; border-left:3px solid #ba9755; background:#fcf7e9; border-radius:0 14px 14px 0; }
.early-progress h2 { font-size:20px; margin-bottom:8px; }
.early-progress p { margin-bottom:12px; max-width:64ch; }
.early-progress .text-link { display:inline-block; padding:6px 0; }
.lesson-body { animation:none!important; }
.example-walkthrough { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:18px 0; }
.example-walkthrough p { flex:1; margin:0; font-size:13px; }
.reasoning-steps li { transition:background var(--motion-fast),border-color var(--motion-fast); }
.reasoning-steps li.is-current { background:var(--subject-soft); border-color:var(--subject-border); }
.example-step-placeholder { color:#63756b; padding:18px 0; }
.lesson-paper .teaching-visual { min-height:120px; }
.lesson-paper svg circle,.lesson-paper svg rect,.lesson-paper svg line,.lesson-paper svg path { transition:cx 350ms,cy 350ms,x 350ms,y 350ms,width 350ms,height 350ms,stroke-dashoffset 350ms,fill 220ms; }
.answer-feedback { scroll-margin:24px; }
.answer-feedback-heading { border-left:3px solid var(--feedback-accent); padding-left:12px; }
.answer-feedback-part { border-left:3px solid #bc9557; }
.study-receipt { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px; background:#eef5e9; border:1px solid #d3e2c8; border-radius:18px; margin-bottom:24px; }
.study-receipt h2 { font-size:26px; margin-bottom:10px; }
.study-receipt p:last-child { margin-bottom:0; }
.study-receipt .button { flex-shrink:0; }
.writing-evidence { margin:20px 0; padding:18px; border:1px solid #dddecf; border-radius:12px; background:#fcf8ec; }
.writing-evidence>div { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.writing-evidence h3 { font-size:16px; margin:0; }
.writing-evidence span,.writing-evidence p { font-size:12px; }
.writing-evidence details { margin-top:12px; border-top:1px solid #e3decd; padding-top:10px; }
.writing-evidence summary { cursor:pointer; font-size:14px; min-height:30px; }
.writing-evidence blockquote { margin:12px 0 0; padding-left:12px; border-left:2px solid #b99b61; font-size:14px; line-height:1.8; }
.writing-evidence p { margin:10px 0 0; }
.choice:focus-visible,.button:focus-visible { outline-offset:4px; }
@media(max-width:800px) {
  .learn-start-grid { grid-template-columns:1fr; }
  .learn-next-step { padding:24px!important; min-height:0; }
  .study-receipt { align-items:stretch; flex-direction:column; padding:22px; }
  .player-layout.mobile-question .question-panel { padding-bottom:160px; }
  .player-layout.mobile-question .player-bottom { position:fixed; inset:auto 0 0; z-index:24; margin:0; padding:12px 18px calc(12px + env(safe-area-inset-bottom)); background:#fffefaf5; border-top:1px solid #d9e1d4; box-shadow:0 -6px 24px #263c3010; backdrop-filter:blur(12px); }
  .player-layout.mobile-source .player-bottom { display:none; }
  .mobile-source-tabs { position:sticky; top:0; z-index:15; background:#f7f8f4; padding:8px 0; }
  .is-study-session .mobile-source-tabs { top:calc(62px + env(safe-area-inset-top,0px)); }
  .player-tools { flex-wrap:wrap; gap:10px; }
  .question-panel .question-actions .button[data-action="check-answer"] { min-height:44px; }
  .writing-evidence { padding:15px; }
  body.is-editing-answer .player-layout.mobile-question .player-bottom { position:static; box-shadow:none; backdrop-filter:none; padding:14px 0; }
  body.is-editing-answer .player-layout.mobile-question .question-panel { padding-bottom:24px; }
}
@media(prefers-reduced-motion:reduce) {
  .lesson-paper svg *,.reasoning-steps li { transition:none!important; }
}

.page-learn .learn-next-step>div { display:block; }
.page-learn .learn-next-step h2 { font-size:clamp(24px,2.4vw,31px); margin:10px 0; }
.page-learn .learn-next-step .button { font-size:14px; padding:12px 20px; }
.page-learn .learn-next-step .learning-reason { font-size:14px; line-height:1.65; }
.page-learn .learn-start-grid .flashcard-today { background:var(--steady-paper); }

@media(max-width:800px){.player-bottom:has([data-action="check-answer"]){display:grid;grid-template-columns:1fr 1fr;gap:8px}.player-bottom [data-action="check-answer"]{grid-column:1 / -1}.player-bottom .button{min-height:44px;font-size:13px}}

.evidence-excerpt { display:block; color:#657063; line-height:1.6; padding-top:5px; }
.practice-comparison { margin:16px 0 22px; padding:16px 18px; border:1px solid #dce5db; border-radius:12px; background:#f5f8f2; }
.practice-comparison h4 { margin:0 0 10px; font-size:15px; }
.practice-comparison p { margin:0 0 10px; font-size:14px; line-height:1.6; }
.practice-comparison-times { display:flex; flex-wrap:wrap; gap:10px 25px; font-size:14px; color:#52655a; }
.practice-comparison-times strong { margin-left:7px; color:#254d3f; font-variant-numeric:tabular-nums; }
.practice-comparison .caption { margin:10px 0 0; font-size:12px; }
.practice-comparison details { margin-top:12px; font-size:12px; color:#617267; }
.practice-comparison details p { margin:8px 0 0; font-size:12px; }
.practice-comparison summary { cursor:pointer; }

/* Practice is one reading workspace, with the question as its primary focus. */
.page-session .player-header { align-items:flex-start; margin-bottom:24px; }
.page-session .player-header h1 { margin-bottom:12px; font-size:clamp(24px,2.5vw,32px); line-height:1.25; }
.practice-context { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; color:#647269; font-size:12px; }
.page-session .player-tools { padding-top:28px; }
.practice-workspace { border:1px solid #dce3d8; border-radius:18px; background:#fffefa; }
.practice-workspace.standalone { max-width:820px; margin-inline:auto; }
.practice-workspace .player-layout { gap:0; align-items:stretch; }
.practice-workspace .player-layout.standalone { grid-template-columns:minmax(0,1fr); }
.practice-workspace .source-panel { position:sticky; top:24px; align-self:start; height:calc(100dvh - 240px); min-height:340px; max-height:900px; margin:0; padding:32px; border:0; border-radius:18px 0 0 0; background:#f6f7f0; font-size:16px; line-height:1.85; }
.practice-workspace .source-panel h2 { font-size:23px; margin-bottom:22px; }
.practice-workspace .source-label { font-size:10px; letter-spacing:.12em; color:#647660; }
.practice-workspace .question-panel { min-width:0; padding:32px; border:0; border-left:1px solid #dce3d8; border-radius:0 18px 0 0; background:transparent; scroll-margin-top:24px; }
.practice-workspace.standalone .question-panel { border-left:0; }
.practice-workspace .practice-progress { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; padding:0 0 20px; margin:0 0 24px; border:0; border-bottom:1px solid #e2e7dd; border-radius:0; background:transparent; }
.practice-progress h2 { margin:0; font-size:14px; line-height:1.5; font-weight:650; letter-spacing:0; color:#294d40; }
.practice-progress h2 span { font-weight:400; color:#647269; }
.practice-answer-count { font-size:12px; line-height:1.5; color:#647269; }
.practice-workspace .question { margin:0; }
.practice-workspace .question-stem { margin:0 0 25px; font-size:clamp(20px,1.7vw,24px); line-height:1.5; color:#203e36; font-weight:650; }
.practice-workspace .choices { gap:12px; }
.practice-workspace .choice { padding:16px; font-size:15px; min-height:64px; border-radius:10px; }
.practice-workspace .question-actions { margin:16px 0 0; gap:8px 18px; }
.practice-workspace .question-actions .caption { font-size:11px; color:#647269; }
.practice-extras { margin-top:24px; border-top:1px solid #e2e7dd; }
.practice-workspace .practice-extras details { margin:0; padding:0; border:0; }
.practice-extras summary { padding:13px 0; min-height:44px; cursor:pointer; font-size:13px; font-weight:500; color:#486051; }
.practice-extras summary span { margin-left:8px; color:#6b786b; font-size:12px; font-weight:400; }
.practice-extras details[open] { padding-bottom:14px; }
.practice-workspace .notes label { margin-top:2px; font-size:12px; }
.practice-workspace .notes textarea { min-height:100px; }
.practice-extras .formula-sheet { margin:0; font-size:13px; line-height:1.8; }
.practice-feedback-note { margin:18px 0 0; color:#647269; font-size:12px; line-height:1.7; }
.practice-footer { position:sticky; bottom:0; z-index:20; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px 24px; padding:18px 24px; border-top:1px solid #dce3d8; border-radius:0 0 18px 18px; background:#fffefa; box-shadow:0 -6px 20px #203e3605; }
.practice-footer>p { flex:1 1 190px; max-width:36ch; margin:0; font-size:12px; line-height:1.6; color:#647269; }
.practice-footer .player-bottom { display:flex; flex:1 1 auto; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin:0; }
.practice-footer .button { min-height:44px; font-size:14px; padding:12px 18px; }
.practice-footer .practice-back { margin-right:auto; }
.practice-footer .practice-skip { min-width:44px; padding-inline:10px; }
.practice-score-details { margin:18px 0 0; color:#647269; font-size:12px; }
.practice-score-details>summary { display:list-item; cursor:pointer; padding:10px 0; }
.practice-score-details .score-session-strip { margin-top:8px; padding:14px 0; border:0; border-radius:0; background:transparent; }
.practice-score-details .score-subject-icon { display:none; }
.practice-score-details .score-session-strip strong { font-size:13px; font-weight:500; color:#486051; }
@media(max-width:1100px) and (min-width:801px) {
  .practice-workspace .question-panel,.practice-workspace .source-panel { padding:24px; }
  .practice-footer>p { display:none; }
  .practice-workspace .practice-progress { flex-direction:column; gap:4px; }
}
@media(max-width:800px) {
  .page-session .player-header { gap:12px; margin-bottom:16px; }
  .page-session .player-tools { padding-top:0; gap:10px; }
  .practice-context { gap:8px 12px; font-size:11px; }
  .practice-workspace { border-radius:14px; }
  .practice-workspace .question-panel { padding:24px 20px 26px; border:0; border-radius:14px; scroll-margin-top:130px; }
  .practice-workspace .source-panel { position:static; height:auto; max-height:none; min-height:0; padding:24px 20px; border-radius:14px; font-size:16px; }
  .practice-workspace .source-panel h2 { font-size:22px; }
  .practice-workspace .practice-progress { gap:5px 12px; margin-bottom:22px; padding-bottom:16px; }
  .practice-workspace .question-stem { font-size:21px; line-height:1.5; }
  .practice-workspace .choice { font-size:15px; padding:14px 12px; }
  .practice-workspace.mobile-question { margin-bottom:100px; }
  .practice-footer { position:fixed; inset:auto 0 0; padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); border-radius:0; box-shadow:0 -4px 20px #203e3610; }
  .practice-footer>p { display:none; }
  .practice-footer .player-bottom { flex-wrap:nowrap; gap:8px; }
  .practice-footer .button { min-height:46px; padding:11px 14px; font-size:13px; }
  .practice-footer .practice-back { margin-right:0; }
  .practice-footer .practice-next { margin-left:auto; }
  .practice-footer .player-bottom:has(.practice-check) { display:grid; grid-template-columns:auto auto 1fr; }
  .practice-footer .practice-check { grid-column:1 / -1; grid-row:1; }
  .practice-workspace:has(.practice-check) { margin-bottom:160px; }
  .practice-workspace.has-source.mobile-source .practice-footer { display:none; }
  body.is-editing-answer .practice-footer { position:static; box-shadow:none; }
  body.is-editing-answer .practice-workspace { margin-bottom:0; }
  .practice-score-details { margin-bottom:160px; }
}
@media(max-width:360px) {
  .practice-footer .player-bottom { gap:6px; }
  .practice-footer .button { flex-shrink:0; padding:11px 10px; font-size:12px; white-space:nowrap; }
}
