@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600&display=swap');
:root{color-scheme:light;--bg:#f6f7f3;--paper:#fff;--ink:#1b302b;--muted:#53665d;--pine:#153a34;--line:#dfe6de;--soft:#e9f0e9;--gold:#f4d58a;--serif:Literata,Georgia,serif;--reading-size:1.13rem;--bar:75px;scroll-behavior:smooth}
:root[data-mode="dark"]{color-scheme:dark;--bg:#111b19;--paper:#192723;--ink:#e1eee4;--muted:#a9beb2;--pine:#224d43;--line:#384d43;--soft:#2a4539;--gold:#f4d58a}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:400 1rem/1.55 "DM Sans",system-ui,sans-serif}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.42}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #b98227;outline-offset:3px}button svg,a svg,.brand-icon svg,.search svg{width:19px;height:19px;flex:none}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:8px 12px;background:transparent;font-weight:700;white-space:nowrap}.quiet:hover,.outlined:hover{background:var(--soft)}.outlined{background:var(--paper);border-color:var(--line);font-size:.9rem;min-height:43px}.compact{padding:0;width:43px;height:43px;min-width:43px}.skip{position:fixed;top:8px;left:8px;transform:translateY(-150%);z-index:100;padding:8px;background:var(--paper)}.skip:focus{transform:none}.top{height:var(--bar);border-bottom:1px solid var(--line);background:var(--paper);position:sticky;top:0;z-index:5}.top-inner{max-width:1320px;margin:auto;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 35px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font:600 1.20rem/1.15 var(--serif)}.brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#153a34;color:#f4d58a}.brand small{display:block;font:700 .64rem/1.25 "DM Sans",sans-serif;letter-spacing:.125em;color:var(--muted);margin-top:5px}.top-actions{display:flex;align-items:center;gap:8px}.mobile-library{display:none}.layout{max-width:1320px;padding:28px 35px 0;margin:auto;display:grid;grid-template-columns:242px minmax(0,1fr);gap:26px}.library{background:var(--paper);border:1px solid var(--line);border-radius:18px;position:sticky;top:calc(var(--bar) + 28px);align-self:start;padding:16px;min-height:280px;max-height:calc(100dvh - var(--bar) - 52px);display:flex;flex-direction:column}.library-header{display:flex;align-items:center;justify-content:space-between}.library h2{font:600 1.06rem var(--serif);margin:3px 0 15px}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:8px 9px;border-radius:9px;margin-bottom:12px;color:var(--muted)}.search span{display:flex}.search input{width:100%;min-width:0;padding:0;border:0;background:transparent;color:var(--ink);font-size:.86rem}.search input:focus{outline:none}.search:focus-within{outline:2px solid #b98227;outline-offset:2px}.testaments{display:grid;grid-template-columns:1fr 1fr;background:var(--bg);border-radius:10px;padding:3px;gap:3px;margin-bottom:10px}.testaments button{padding:6px 3px;font-size:.88rem}.testaments button[aria-pressed=true]{background:var(--paper);box-shadow:0 1px 3px #0002}.book-list{overflow:auto;scrollbar-width:thin}.book-list>div+div{margin-top:3px}.book-toggle{width:100%;justify-content:space-between;text-align:left;padding:8px 9px;font-size:.94rem;white-space:normal;font-weight:500}.book-toggle:hover,.book-toggle[aria-current=true]{background:var(--soft);font-weight:700}.book-toggle svg{width:15px;height:15px}.chapters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px 2px 10px}.chapters button{min-height:32px;padding:2px;font-size:.83rem;border:1px solid var(--line);border-radius:7px}.chapters button:hover{background:var(--soft)}.chapters button[aria-current=true]{background:var(--pine);color:white}.no-books{font-size:.9rem;color:var(--muted);margin:8px}
.hero{min-height:292px;border-radius:21px;background-color:#193b35;background-position:center 47%;background-size:cover;background-image:linear-gradient(98deg,#102c27 0%,#12352fe9 31%,#14362e67 79%,#17352e50),url(./montanhas.jpg);display:flex;align-items:center;color:#fbfaf2;padding:32px clamp(25px,5vw,60px);isolation:isolate}.hero-copy{max-width:95%}.eyebrow,.section-kicker{font-size:.72rem;letter-spacing:.13em;font-weight:700;margin:0;color:#f4d58a}.hero h1{font:500 clamp(2.7rem,5.8vw,4.65rem)/1.07 var(--serif);letter-spacing:-.055em;margin:6px 0 10px;overflow-wrap:anywhere}.hero p:not(.eyebrow){margin:0 0 20px;color:#edf5ed;font-size:1rem}.primary{min-height:47px;background:#f4d58a;color:#24372f;padding-inline:16px}.primary:hover:not(:disabled){background:#ffe5a5}.reading{margin-top:20px;background:var(--paper);border:1px solid var(--line);border-radius:19px;overflow:clip}.reader-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:10px clamp(14px,3vw,34px)}.view-links,.chapter-nav,.section-actions{display:flex;align-items:center;gap:6px}.view-links a{display:inline-flex;gap:7px;align-items:center;padding:8px 11px;border-radius:8px;text-decoration:none;font-size:.94rem;font-weight:700;color:var(--muted)}.view-links a:hover,.view-links a.selected{background:var(--soft);color:var(--ink)}.chapter-nav button{width:36px;min-width:36px;height:36px;min-height:36px}.chapter-body,.study{padding:29px clamp(16px,4vw,48px) 33px;scroll-margin-top:calc(var(--bar) + 15px)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:20px}.section-head h2{font:500 clamp(1.45rem,3vw,2.1rem)/1.26 var(--serif);letter-spacing:-.035em;margin:3px 0 0}.section-kicker{color:var(--muted)}.verses{list-style:none;margin:0;padding:0}.verse{display:grid;grid-template-columns:2.1rem minmax(0,1fr);gap:8px;border-radius:7px;padding:5px 6px 6px 3px;font:400 var(--reading-size)/1.77 var(--serif);scroll-margin-top:calc(var(--bar) + 55px)}.verse-number{font:700 .79rem/1.4 "DM Sans",sans-serif;color:var(--muted);text-align:right;padding:5px 7px 0 0}.spoken{background:#f9edc8;color:#29352a}.spoken .verse-number{color:#5d4b15}.study{background:var(--soft);border-top:1px solid var(--line)}.study h3{font:600 1.25rem/1.45 var(--serif);margin:0 0 9px}.study p,.study ul{font-size:var(--reading-size);margin:0 0 13px}.study [data-audio-key]{padding:4px 6px;border-radius:7px;margin-left:-6px;scroll-margin-top:calc(var(--bar) + 55px)}.reference{font-size:.88rem;font-weight:700;text-underline-offset:3px;display:inline-block;margin-top:9px}.bottom-nav{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding:14px clamp(14px,3vw,34px)}.audio-bar{position:sticky;top:var(--bar);z-index:3;display:flex;align-items:center;gap:12px;padding:8px clamp(14px,3vw,34px);background:var(--paper);border-bottom:1px solid var(--line)}[hidden]{display:none!important}.audio-toggle{background:var(--pine);color:white}.audio-info{flex:1;line-height:1.3}.audio-info strong{display:block;font-size:.86rem}.audio-info progress{display:block;width:100%;height:.48rem;margin:4px 0 0;accent-color:#578476}.status{margin:12px clamp(14px,3vw,34px);font-size:.9rem;color:var(--muted)}footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:20px 0;color:var(--muted);font-size:.88rem}dialog{width:min(92vw,510px);max-height:83dvh;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:17px;padding:19px 23px;box-shadow:0 12px 60px #0003}dialog::backdrop,#library-overlay{background:#101d19a6}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font:600 1.45rem var(--serif);margin:0}.setting{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:13px 0}.setting select{max-width:61%;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:7px;padding:7px}.saved-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.saved-row:last-child{border-bottom:0}.saved-row button:first-child{white-space:normal;text-align:left;justify-content:start}
@media(max-width:790px){:root{--bar:64px}.top-inner{padding:0 14px}.top-actions{gap:1px}.top-actions button{font-size:.84rem;min-height:40px;padding-inline:7px}.top-actions svg{width:17px;height:17px}.top-actions .compact{min-width:34px;width:34px}.mobile-library{display:inline-flex}.layout{display:block;padding:14px 13px 0}.library{display:none;position:fixed;inset:0 auto 0 0;width:min(88vw,340px);max-height:none;z-index:10;border-radius:0;padding:15px 17px;box-shadow:5px 0 20px #0002}.library.open{display:flex}.library h2{margin:3px 0 10px}.library-header{margin-bottom:8px}#library-overlay{position:fixed;inset:0;z-index:9}.hero{min-height:224px;border-radius:16px;padding:23px}.hero h1{font-size:clamp(2.35rem,9vw,3.5rem)}.reading{margin-top:12px;border-radius:15px}.chapter-body,.study{padding-top:21px}.verse{grid-template-columns:1.7rem minmax(0,1fr);gap:4px}.verse-number{padding-right:4px}}
@media(max-width:385px){.brand{font-size:1rem;gap:6px}.brand-icon{width:35px;height:35px}.brand small{font-size:.56rem}.section-head{flex-wrap:wrap}.view-links a{padding:7px}.bottom-nav button{padding:6px;font-size:.8rem}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}

.section-actions{flex-wrap:wrap;justify-content:flex-end}
.voice-shortcut{gap:5px}
.verse-form{margin-top:12px}
.verse-range{display:grid;gap:6px;font-weight:600}
.verse-range input{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink)}
.verse-range input[aria-invalid=true]{border-color:#aa664b}
.verse-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:6px;min-width:0;margin:15px 0 0;padding:5px 2px 8px;border:0;max-height:28dvh;overflow:auto}
.verse-options legend{font-weight:600;margin-bottom:7px;padding:0}
.verse-option{position:relative;cursor:pointer}
.verse-option input{position:absolute;left:7px;top:7px;width:23px;height:23px;opacity:0}
.verse-option span{display:grid;place-items:center;min-height:39px;border:1px solid var(--line);border-radius:7px;background:var(--bg);font-size:.88rem}
.verse-option input:checked+span{background:var(--pine);color:#fff;border-color:var(--pine)}
.verse-option input:focus-visible+span{outline:2px solid #b98227;outline-offset:2px}
.verse-message{color:var(--muted);font-size:.9rem;min-height:1.4em;margin:7px 0}
.verse-form-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;margin-top:10px}
@media(max-width:550px){
  .chapter-body .section-head{align-items:flex-start;flex-direction:column}
  .chapter-body .section-actions{justify-content:flex-start}
  .top-actions .voice-shortcut svg{display:none}
}
@media(max-width:365px){.top-actions #open-saved svg,.top-actions #open-library svg{display:none}}
.voice-sample-state{min-height:1.4em;margin-bottom:0;color:var(--muted);font-size:.9rem}

#study-content h3{font-size:clamp(1.25rem,3vw,1.55rem)}
#study-content h4{font-size:1rem;margin-top:22px;margin-bottom:3px;font-weight:700}
#study-content p{line-height:1.7;max-width:77ch}
#study-content blockquote{margin:9px 0 14px;padding:10px 14px;border-left:3px solid #8fa894;border-radius:0 8px 8px 0;font:400 var(--reading-size)/1.65 var(--serif);max-width:70ch}
#study-content blockquote:not(.spoken){background:var(--paper)}

/* Keep the library controls visible while the book list scrolls on touchscreens. */
.library{overflow:hidden}
.library-header,.library>.search,.library>.testaments{flex-shrink:0}
.book-list{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
@media(max-width:790px){
  .library{height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;min-height:0;padding-bottom:max(15px,env(safe-area-inset-bottom))}
  .library .search input{font-size:1rem}
}


/* Original RefletirAdven artwork: preserve its colors and proportions. */
.brand-logo{display:block;width:66px;height:66px;object-fit:contain;flex-shrink:0;border-radius:7px}
.brand-copy{font-size:1.12rem}
.egw-reading{margin-top:28px;border-top:1px solid var(--line);padding-top:8px}
.egw-reference{padding:14px 0;border-bottom:1px solid var(--line)}
.egw-reference strong{font:600 1.12rem var(--serif)}
.egw-reference p{margin:5px 0;font-size:1rem}
.egw-reading .egw-note{font-size:.94rem;color:var(--muted);line-height:1.6}
.egw-reading summary{cursor:pointer;padding:14px 0;font-weight:700}
@media(max-width:790px){.brand-logo{width:54px;height:54px}.brand-copy{display:none}.brand{gap:0}.top-actions{flex-wrap:nowrap}}

/* Persistent highlights are independent from the temporary audio focus. */
.verse.highlighted .verse-text{background:var(--highlight-color);color:#243026;border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding-inline:3px}
.saved-passage{align-items:flex-start;gap:8px;padding-block:12px}
.saved-passage .saved-passage-link{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:7px;padding:4px 0}
.saved-passage-link strong{font-size:1rem;color:var(--ink)}
.saved-passage-link span{font:400 1rem/1.65 var(--serif);color:var(--ink)}
.saved-passage .compact{flex-shrink:0}

[data-highlight-color=yellow]{--highlight-color:#ffe28a}
[data-highlight-color=green]{--highlight-color:#bde7bb}
[data-highlight-color=blue]{--highlight-color:#b8dcf7}
[data-highlight-color=pink]{--highlight-color:#f7c3d5}
[data-highlight-color=purple]{--highlight-color:#d9c6f5}
.verse-tap{display:block;min-width:0;min-height:44px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;white-space:normal;user-select:text;-webkit-user-select:text;cursor:pointer}
.verse-tap:focus-visible{outline:2px solid #b98227;outline-offset:3px}
.highlight-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.highlight-color{display:flex;flex-direction:column;gap:7px;min-height:80px;padding:10px 4px;background:var(--bg);border:1px solid var(--line);font-size:1rem}
.highlight-color[aria-pressed=true]{outline:2px solid var(--pine);outline-offset:2px}
.highlight-swatch{display:block;width:34px;height:34px;background:var(--highlight-color);border:1px solid #0003;border-radius:50%}
.saved-passage{border-left:5px solid var(--highlight-color);padding-left:10px}
.saved-color-group{margin-top:22px}
.saved-color-title{display:flex;align-items:center;gap:9px;font-size:1.08rem;margin:0 0 9px}
.saved-color-title::before{content:'';display:block;width:18px;height:18px;flex-shrink:0;border-radius:50%;background:var(--highlight-color);border:1px solid #0003}

.chapter-completion{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.chapter-completion button{min-height:42px;font-size:.94rem}
.chapter-completion button[aria-pressed=true]{background:var(--pine);border-color:var(--pine);color:#fff}
.chapters button{position:relative}
.chapter-completed{box-shadow:inset 0 -3px 0 #578476}
.chapter-completion-badge{position:absolute;right:2px;top:0;font-size:.62rem;line-height:1.2;font-weight:700;color:var(--pine)}
.chapters button[aria-current=true] .chapter-completion-badge{color:white}

.topic-search{margin-top:16px}
.topic-search-label{display:grid;gap:7px;font-weight:600}
.topic-search input{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font-size:1rem}
.topic-status{font-size:.94rem;color:var(--muted)}
.topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0}
.topic-choice{white-space:normal;min-height:48px;font-size:1rem;text-align:left;justify-content:flex-start}
.topic-results h3{font:600 1.5rem var(--serif);margin:15px 0 8px}
.topic-passage{padding:16px 0;border-top:1px solid var(--line)}
.topic-passage h4{font-size:1.05rem;margin:0 0 8px}
.topic-passage p{font:400 1.08rem/1.75 var(--serif);margin:0 0 12px}
@media(max-width:365px){.top-actions #open-topics svg{display:none}}
.resume-audio{display:flex;margin-top:12px;max-width:100%;white-space:normal;min-height:44px;border-color:#f4d58a;color:#fbfaf2;background:#102c2780;text-align:left}
.resume-audio:hover{background:#102c27}
@media(max-width:540px){.audio-bar{flex-wrap:wrap;gap:8px}.audio-info{min-width:110px}#quick-audio{order:4;width:100%;min-height:40px;font-size:.9rem}}

/* Original interactive study, kept separate from Bible/audio dialogs. */
.course-entry{margin:16px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 25px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.course-entry h2{font:600 1.4rem/1.3 var(--serif);margin:5px 0}.course-entry p{margin:0;color:var(--muted)}
.course-dialog{width:min(94vw,860px);max-height:90dvh;overflow:auto;padding:22px clamp(16px,4vw,36px)}
.course-dialog .dialog-head{gap:16px;align-items:flex-start}.course-dialog .dialog-head h2{line-height:1.4}.course-dialog h3{font:600 1.3rem/1.4 var(--serif)}
.course-body{font-size:1rem;line-height:1.7}.course-body>section{margin:25px 0}.course-intro{padding:14px 0}.course-intro .eyebrow{color:var(--muted);font-size:.85rem;letter-spacing:.04em}
.course-progress{display:grid;gap:6px;margin:16px 0}.course-progress progress{width:100%;height:12px;accent-color:var(--pine)}
.course-list{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.course-list li{min-width:0}
.course-lesson-link{width:100%;height:100%;padding:16px;border:1px solid var(--line);border-radius:12px;white-space:normal;display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;background:var(--paper)}
.course-lesson-link:hover{background:var(--soft)}.course-lesson-link strong{font:600 1.2rem/1.4 var(--serif)}.course-lesson-link>span:last-child{font-weight:400;color:var(--muted);font-size:.9rem}
.course-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.course-actions button{white-space:normal;text-align:center}
.course-answer{display:grid;gap:9px;margin:22px 0}.course-answer>span{font-weight:600}.course-answer textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:110px;padding:12px;font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:9px}.course-answer textarea:focus-visible{outline:2px solid #b98227;outline-offset:2px}
.course-quiz{min-width:0;padding:16px 20px;border:1px solid var(--line);border-radius:12px;margin:25px 0;background:var(--soft)}.course-quiz legend{font-weight:700;padding:0 8px}.course-choice{display:flex;align-items:flex-start;gap:12px;cursor:pointer;padding:10px 0}.course-choice input{margin-top:7px;accent-color:var(--pine);flex:none;width:18px;height:18px}.course-feedback{font-weight:600}.course-hint{font-size:.9rem;color:var(--muted)}
.course-passage{margin:10px 0;border:1px solid var(--line);border-radius:9px;padding:12px 16px}.course-passage summary,.course-sources summary{cursor:pointer;font-weight:600}.course-passage>div{font:1.05rem/1.8 var(--serif)}.course-sources{border-top:1px solid var(--line);padding:18px 0}.course-sources a{display:block;overflow-wrap:anywhere;margin:10px 0}
#course-print{display:none}
@media(max-width:600px){.course-entry{display:block;padding:18px}.course-entry button{margin-top:14px}.course-list{grid-template-columns:1fr}.course-dialog .dialog-head h2{font-size:1.25rem}.course-dialog{padding:17px}.course-actions button{flex:1 1 160px}.course-quiz{padding:12px}}
@media print{
  @page{size:A4;margin:18mm}
  :root{color-scheme:light}
  body{background:white!important;color:#111!important;font:11pt/1.55 Georgia,serif}
  body.course-is-printing>*:not(#course-print){display:none!important}
  body.course-is-printing #course-print{display:block!important;color:#111;background:white;overflow-wrap:anywhere}
  #course-print header{border-bottom:1px solid #777;padding-bottom:10pt;margin-bottom:16pt}
  #course-print h1{font-size:23pt;line-height:1.2}#course-print h2{font-size:18pt;line-height:1.3}#course-print h3{font-size:11pt;break-after:avoid}
  #course-print p{orphans:3;widows:3}
  #course-print .print-lesson+.print-lesson{break-before:page}
  #course-print .print-answer{break-inside:avoid}
  #course-print .print-response{white-space:pre-wrap;min-height:45pt;border-bottom:1px solid #bbb}
  #course-print footer{display:block;font-size:9pt;border-top:1px solid #777;padding-top:10pt;break-before:page;color:#333}
}

/* Detailed workbook adapted from the supplied course. */
.course-dialog>.dialog-head{position:sticky;top:-22px;background:var(--paper);z-index:2;padding:12px 0;border-bottom:1px solid var(--line)}
.course-question-card{border-top:1px solid var(--line);padding:25px 0 12px;margin-top:24px}
.course-question-card>h3{font-size:1.2rem}.course-question-card h4{font-size:1rem;margin:22px 0 8px;color:var(--ink)}
.course-response-control{min-width:0;border:1px solid var(--line);border-radius:12px;padding:16px 20px;background:var(--soft);margin:20px 0}.course-response-control legend{padding:0 8px;font-weight:700}.course-response-control .course-answer{margin:0}.course-response-control .course-hint{margin-top:0}
.course-truth-choice{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 0}.course-truth-choice select{width:100%;min-width:0;max-width:100%;white-space:normal;font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:10px}
.course-exercise{margin:18px 0;border-left:3px solid #809e8c;background:var(--soft);padding:14px 18px}
.course-commitment{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.course-support{margin:12px 0;border:1px solid var(--line);border-radius:10px;padding:14px}.course-support summary{font-weight:600;cursor:pointer}
.course-figure{margin:18px 0}.course-figure img{display:block;width:100%;height:auto;background:white;border:1px solid var(--line)}.course-figure figcaption{font-size:.88rem;line-height:1.5;color:var(--muted);margin-top:8px}.course-figure a{display:block}
.course-matching-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.course-source-options{margin:16px 0}.course-source-options li{padding:3px 0}
@media(max-width:600px){.course-dialog>.dialog-head{top:-17px}.course-response-control{padding:12px}.course-question-card>h3{font-size:1.1rem}.course-matching-columns{grid-template-columns:1fr}}
@media print{
 #course-print h3{font-size:13pt;line-height:1.35;margin-top:20pt}#course-print h4{font-size:11pt;break-after:avoid}
 #course-print .course-exercise{background:none;border-color:#777;margin:10pt 0;padding:8pt 12pt}
 #course-print .course-source-options{margin:10pt 0}#course-print .course-source-options li{padding:0}
 #course-print .print-question{break-inside:auto}#course-print .print-response-label{break-after:avoid;font-weight:bold}
 #course-print .print-supports{break-before:page}#course-print .course-figure{break-before:page;break-inside:avoid;margin:0}
 #course-print .course-figure img{max-height:225mm;width:auto;max-width:100%;object-fit:contain;border:0}
 #course-print .course-figure figcaption{color:#333;font-size:9pt}
}
@media print{
 @page wide{size:A4 landscape;margin:18mm}
 #course-print .print-supports>.course-figure:first-of-type{break-before:auto}
 #course-print .print-supports>.course-figure:first-of-type img{max-height:210mm}
 #course-print .course-figure.landscape{page:wide}
 #course-print .course-figure.landscape img{max-height:150mm;max-width:261mm;width:100%}
}

.top-actions .study-shortcut{background:var(--gold);color:#20372f;border-color:#d9b965;min-height:42px;padding-inline:17px;box-shadow:0 2px 7px #0001}
.top-actions .study-shortcut:hover{background:#f8dfa5;border-color:#b78e37}
@media(max-width:600px){
 :root{--bar:100px}
 .top-inner{gap:12px}
 .top-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;flex:1;min-width:0}
 .top-actions button{min-width:0;width:100%;padding:5px 3px;font-size:.88rem;min-height:38px}
 .top-actions button svg{display:none}
 .top-actions #open-settings svg{display:block}
 .top-actions .compact{width:100%;min-width:0;height:38px}
 .top-actions .study-shortcut{padding-inline:3px;min-height:38px}
}
.course-pdf-notice{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.course-pdf-notice a{display:inline-flex;margin:5px 8px 5px 0;text-decoration:none;white-space:normal}
