/* Learn reading and interaction layer. Uses the official Revision AI palette. */
:root{--study-accent:#7047eb;--study-mint:#8bf0cf;--study-ink:var(--color-text-primary,var(--ink,#191625));--study-surface:var(--color-surface,var(--surface,#fff));--study-line:var(--color-border,var(--line,#e4e1ed));--study-soft:var(--color-background,var(--soft,#f7f7fc))}
[data-theme="dark"]{--study-surface:#24212e;--study-soft:#2e293c;--study-line:#494157;--study-ink:#f2eff9}
.study-icon{width:18px;height:18px;display:inline-block;vertical-align:middle;flex:none}
.study-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.study-tools .study-download,.study-toggle,.study-flip-control{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid var(--study-line);border-radius:9px;background:var(--study-surface);color:var(--study-ink);font:600 13px/1.3 Inter,sans-serif;cursor:pointer}
.study-tools .study-download{color:var(--study-accent);border-color:var(--study-accent)}
.study-download[aria-busy="true"] .study-icon{animation:study-pulse 1s ease-in-out infinite}
.study-download-status{font:400 12px/1.5 Inter,sans-serif;color:var(--study-ink)}
.study-download-status:empty{display:none}
.study-math,.note .fx,.coaching-formula,.sim-equation,.formula,.study-formula{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-variant-numeric:lining-nums;font-weight:500;letter-spacing:.015em}
.study-math{background:var(--study-soft);border-radius:4px;padding:1px 4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.note .fx,.study-formula{display:block;padding:16px 20px!important;margin:12px 0!important;border:1px solid var(--study-line)!important;border-left:3px solid var(--study-accent)!important;border-radius:10px;background:var(--study-soft)!important;color:var(--study-ink);font-size:1.12em;line-height:1.8;overflow-wrap:anywhere}
.study-number{font-variant-numeric:tabular-nums;font-style:italic}
.study-visual{margin:22px 0;padding:20px;border:1px solid var(--study-line);border-radius:14px;background:var(--study-surface);color:var(--study-ink)}
.study-visual h3{font:700 17px/1.4 Manrope,Inter,sans-serif;margin:0 0 14px}
.study-visual svg{display:block;width:100%;height:auto;max-height:310px;background:#fff;border-radius:8px}
.study-visual figcaption{font:400 13px/1.65 Inter,sans-serif;margin:12px 0 0;color:var(--study-ink)}
.study-concepts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0!important;list-style:none!important;margin:0!important}
.study-concepts li{border-top:3px solid var(--study-accent);padding:14px 10px!important;background:var(--study-soft);border-radius:8px;font:500 13px/1.7 Inter,sans-serif;list-style:none!important}
.study-concepts .study-step{display:block;width:26px;height:26px;text-align:center;border-radius:50%;background:var(--study-mint);color:#191625;font:700 12px/26px Inter,sans-serif;margin-bottom:8px}
.study-public-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start}
.study-public-side{position:sticky;top:90px;border:1px solid var(--study-line);border-radius:12px;padding:12px;background:var(--study-surface)}
.study-public-side h2{font-size:16px;margin:14px 8px}
.study-public-side ol{list-style:none;padding:0;margin:0;max-height:65vh;overflow:auto}
.study-public-side a{display:block;padding:9px 10px;border-radius:7px;text-decoration:none;color:var(--study-ink);font:500 13px/1.5 Inter,sans-serif}
.study-public-side a[aria-current]{background:var(--study-soft);color:var(--study-accent);font-weight:700;border-left:3px solid var(--study-accent)}
.study-public-main{min-width:0}.study-public-main .article-body{max-width:none;padding:26px 30px;border:1px solid var(--study-line);border-radius:14px;background:var(--study-surface)}
.study-public-main>.next-step{margin-top:18px}
.study-toggle{width:100%;justify-content:flex-start;margin-bottom:10px}
.study-is-collapsed .study-toggle{padding:8px;width:36px;justify-content:center;margin:0}
.study-is-collapsed .study-toggle span,.study-is-collapsed [data-study-side]>:not(.study-toggle),.study-is-collapsed .learn-notes-side>:not(.study-toggle){display:none}
.study-public-grid.study-is-collapsed{grid-template-columns:48px minmax(0,1fr)}
.study-public-grid.study-is-collapsed .study-public-side{padding:5px;border:0;background:transparent}
@media(min-width:1024px){.learn-notes-grid.study-is-collapsed{grid-template-columns:48px minmax(0,1fr)}}
.learn-notes-side>.study-toggle{background:var(--study-surface)}
.learn-actions{gap:7px!important}.learn-actions .btn,.note-wrap .btn.sm,.learn-topic-end .btn{min-height:36px!important;padding:7px 10px!important;font-size:12px!important;line-height:1.4;gap:6px;border-radius:8px}
.study-icon-action{width:36px!important;min-width:36px!important;height:36px;max-width:36px;padding:7px!important;flex:none;justify-content:center!important}
.study-icon-action>svg{margin:0!important;width:18px;height:18px}
.learn-progress-bar,.bar,.track{overflow:hidden}.learn-progress-bar>i,.bar>i,.track>i{transition:width .45s ease}
.study-reading-progress{display:flex;align-items:center;gap:10px;margin:4px 0 14px;font:500 12px/1.5 Inter,sans-serif;color:var(--study-ink)}
.study-reading-progress progress{width:120px;height:5px;accent-color:var(--study-accent)}
#fcCard.study-flashcard{perspective:1200px;border:0!important;background:transparent!important;min-height:300px;outline-offset:5px}
#fcCard.study-flashcard .in{display:grid;min-height:300px;height:auto;transform-style:preserve-3d;transition:transform .48s cubic-bezier(.2,.7,.2,1)}
#fcCard.study-flashcard.flip .in{transform:rotateY(180deg)}
#fcCard.study-flashcard .f,#fcCard.study-flashcard .b{position:relative!important;inset:auto!important;grid-area:1/1;backface-visibility:hidden;-webkit-backface-visibility:hidden;min-height:300px;border:1px solid var(--study-line);border-radius:18px;padding:24px!important;background:var(--study-surface);color:var(--study-ink);display:flex;flex-direction:column;justify-content:space-between}
#fcCard.study-flashcard .b{transform:rotateY(180deg);border-top:4px solid var(--study-accent);background:var(--study-soft)}
#fcCard.study-flashcard .txt{font:600 clamp(19px,2.2vw,27px)/1.6 Manrope,Inter,sans-serif;padding:22px 0;overflow-wrap:anywhere}
#fcCard.study-flashcard .lbl{font:600 11px/1.5 Inter,sans-serif;text-transform:uppercase;letter-spacing:.06em}
#fcCard.study-flashcard .hint{font:400 12px/1.6 Inter,sans-serif}
.study-card-controls{display:flex;justify-content:center;gap:8px;margin:16px 0}
.study-ratings{max-width:560px;margin:14px auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.study-ratings[hidden]{display:none}.study-ratings button{padding:9px 5px;min-height:48px;display:flex;flex-direction:column;gap:4px;align-items:center;border:1px solid var(--study-line);background:var(--study-surface);border-radius:9px;color:var(--study-ink);font:600 12px/1.4 Inter,sans-serif;cursor:pointer}.study-ratings button:hover{border-color:var(--study-accent);background:var(--study-soft)}.study-ratings small{font-weight:400;font-size:11px}
/* Tutor typography: headings, explanations, labels and equations each have their own hierarchy. */
#studio-section .board-title{font:750 24px/1.3 Manrope,Inter,sans-serif}
#studio-section .coaching-intro h3{font:750 clamp(24px,2.3vw,32px)/1.25 Manrope,Inter,sans-serif;max-width:19em;margin:12px auto}
#studio-section .coaching-intro>p{font:400 15px/1.75 Inter,sans-serif;max-width:40em;margin:12px auto 20px}
#studio-section .coaching-question{font:650 21px/1.6 Manrope,Inter,sans-serif;white-space:pre-line}
#studio-section .feedback-part{padding:14px 16px;border:1px solid var(--study-line);border-radius:10px;margin:12px 0;background:var(--study-surface)}
#studio-section .feedback-part>b{display:block;font:700 11px/1.5 Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--study-accent);margin-bottom:7px}
#studio-section .feedback-part>p,#studio-section .worked-solution>p{font:400 15px/1.85 Inter,sans-serif;margin:0;white-space:pre-line}
#studio-section .coaching-formula{font-size:21px;padding:15px 18px;border:1px solid var(--study-line);border-left:3px solid var(--study-accent);border-radius:9px;background:var(--study-soft)}
#studio-section .coaching-plan{gap:12px;margin:22px 0}#studio-section .coaching-plan>div{padding:12px 8px}#studio-section .coaching-plan small{font-size:12px}
#studio-section .coach-caption p{font:400 14px/1.85 Inter,sans-serif;white-space:pre-line}
#studio-section .coaching-disclosure,#studio-section .adaptation-note{font:400 12px/1.7 Inter,sans-serif;color:var(--body,#6b6578)}
#studio-section .board-kicker,#studio-section .caption-heading{font:650 11px/1.5 Inter,sans-serif;letter-spacing:.07em}
#studio-section .btn,#studio-section .btn.sm,.page-heading .heading-action .btn{min-height:36px;padding:7px 11px;font-size:12px;line-height:1.5}
#studio-section .btn.primary,#studio-section .caption-controls #start-btn.btn.sm{min-height:38px}
#studio-section .mode-tabs button{min-height:40px;font-size:13px;padding:9px 12px}
#studio-section .interaction-toggles button{min-height:34px;min-width:34px;font-size:12px}
.study-prose-line{display:block;margin:0 0 10px}.study-prose-line:last-child{margin-bottom:0}
.study-caption-short{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.study-read-more{border:0;background:transparent;color:var(--study-accent);font:600 12px/1.5 Inter,sans-serif;padding:6px 0;cursor:pointer}
.study-session-meter{height:5px;border-radius:5px;background:var(--study-line);overflow:hidden;margin:0 0 18px}.study-session-meter i{height:100%;display:block;background:var(--study-accent);transition:width .4s ease}
.study-icon-action:hover,.study-toggle:hover,.study-flip-control:hover{border-color:var(--study-accent);color:var(--study-accent);transform:translateY(-1px)}
.study-icon-action,.study-toggle,.study-flip-control{transition:transform .15s ease,border-color .15s ease}
.study-icon-action:focus-visible,.study-toggle:focus-visible,.study-flip-control:focus-visible,.study-download:focus-visible{outline:3px solid var(--study-accent);outline-offset:3px}
@keyframes study-pulse{50%{opacity:.4}}
@media(max-width:760px){.study-public-grid,.study-public-grid.study-is-collapsed{grid-template-columns:1fr;gap:14px}.study-public-side{position:static;top:auto}.study-public-grid.study-is-collapsed .study-public-side{padding:0}.study-is-collapsed .study-toggle{width:auto}.study-is-collapsed .study-toggle span{display:inline}.study-public-main .article-body{padding:18px}.study-concepts{grid-template-columns:1fr}.study-visual{padding:14px}.study-public-side ol{max-height:240px}#studio-section .coaching-question{font-size:18px}}
@media(pointer:coarse){.study-toggle,.study-flip-control,.study-tools .study-download,.study-icon-action,.learn-actions .btn,#studio-section .btn,#studio-section .btn.sm,#studio-section .interaction-toggles button{min-height:44px!important;min-width:44px!important}.study-icon-action{width:44px!important;max-width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){#fcCard.study-flashcard .in,.study-session-meter i,.learn-progress-bar>i,.bar>i,.track>i,.study-icon-action,.study-toggle,.study-flip-control{transition:none!important;animation:none!important}.study-download .study-icon{animation:none!important}}
#fcCard.study-flashcard .txt{display:block!important;text-align:center;align-self:stretch;flex:none!important}
#msgs .msg.a .mbody{font:400 15px/1.85 Inter,sans-serif}
#msgs .msg.a .mbody h2,#msgs .msg.a .mbody h3,#msgs .msg.a .mbody h4{font-family:Manrope,Inter,sans-serif;font-weight:750;color:var(--study-ink);line-height:1.4;margin:18px 0 9px}
#msgs .msg.a .mbody h2{font-size:21px}#msgs .msg.a .mbody h3{font-size:18px}
#msgs .msg.a .mbody p{margin:0 0 13px}#msgs .msg.a .mbody li{padding:4px 0}
#msgs .msg.a .mbody blockquote{border-left:3px solid var(--study-accent);margin:16px 0;padding:10px 15px;background:var(--study-soft);border-radius:0 8px 8px 0}
#msgs .msg.a .src,#msgs .msg.a .ai-line,#msgs .msg.a .llm-note{font:400 12px/1.6 Inter,sans-serif;margin-top:12px}
#msgs .msg.a .fu{gap:6px}#msgs .msg.a .fu button{min-height:34px;padding:6px 10px;font:500 12px/1.5 Inter,sans-serif}
