:root{font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;color:#fff;background:#101010;font-synthesis:none;text-rendering:optimizeLegibility;--page:#101010;--ui:#fff;--muted:#d6d6d6;--video-width:min(100vw,calc((100svh - 36px)*.5625))}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}button{font:inherit}.feed{height:100svh;min-height:520px;position:relative;overflow-y:auto;overflow-x:hidden;background:var(--page);color:var(--ui);scroll-snap-type:y mandatory;scroll-behavior:smooth;overscroll-behavior-y:contain;scrollbar-width:none;transition:background .25s,color .25s}.feed::-webkit-scrollbar{display:none}.theme-toggle{position:fixed;z-index:6;top:17px;right:22px;display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #ffffff55;border-radius:99px;background:#151515aa;color:#fff;font-size:11px;cursor:pointer;backdrop-filter:blur(5px)}.theme-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sun-icon{display:none}html[data-theme=light] .theme-toggle{background:#ffffffd9;color:#222;border-color:#0002}html[data-theme=light] .moon-icon{display:none}html[data-theme=light] .sun-icon{display:block}.theme-toggle:focus-visible,.action:focus-visible,.feed-controls button:focus-visible{outline:2px solid currentColor;outline-offset:4px}.stage{width:100%;position:relative}.video-slide{position:relative;width:min(100vw,1120px);height:100svh;min-height:520px;margin:0 auto;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center}.video-frame{position:relative;width:var(--video-width);height:min(100svh,calc(100vw*1.7778));min-height:520px;overflow:hidden;border-radius:16px;background:#252525;isolation:isolate}.scene-prague{background:#d1d1d1}.scene-studio{background:#d1d1d1}.scene-garden{background:#d1d1d1}.caption{position:absolute;z-index:2;left:22px;right:24px;bottom:25px;color:#fff;text-shadow:0 1px 8px #0009}.creator{display:flex;align-items:center;gap:9px;min-width:0}.avatar{width:34px;height:34px;flex:0 0 34px;border:1px solid #ffffffb3;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff}.avatar-one{background:#576a60}.avatar-two{background:#9d6b4a}.avatar-three{background:#916979}.avatar-four{background:#6c8669}.creator b{font-size:12px;font-weight:700;white-space:nowrap}.location{font-size:10px;color:#ffffffc5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.location:before{content:'·';margin-right:8px}.caption p{max-width:410px;margin:11px 0 5px;font-size:12px;line-height:1.4}.tags{font-size:10px;color:#ffffffd4}.actions{position:absolute;z-index:3;left:calc(50% + var(--video-width)/2 + 13px);bottom:105px;display:flex;flex-direction:column;align-items:center;gap:20px}.action{padding:0;border:0;background:none;color:#fff;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}.action svg{width:27px;height:27px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s,color .18s}.action.bookmark svg{width:24px;height:27px}.action small{font-size:12px;font-weight:500}.action:hover svg{transform:scale(1.13)}.action.like[aria-pressed=true] svg{fill:#ff435e;stroke:#ff435e;transform:scale(1.1)}.action.bookmark[aria-pressed=true] svg{fill:#fff;stroke:#fff}.feed-controls{position:fixed;z-index:5;right:22px;top:50%;transform:translateY(-50%);display:grid;gap:9px}.feed-controls button{width:37px;height:37px;padding:9px;border:1px solid #ffffff45;border-radius:50%;background:#10101066;color:white;cursor:pointer;transition:background .16s,transform .16s}.feed-controls button:hover{background:#ffffff24;transform:scale(1.05)}.feed-controls svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}html[data-theme=light]{--page:#efede8;--ui:#222;--muted:#52504a}html[data-theme=light] .feed-controls button{background:#f8f7f2;border-color:#0002;color:#282722}@media(max-width:720px){:root{--video-width:100vw}.video-slide{width:100%;min-height:520px}.video-frame{width:100%;height:100svh;min-height:520px;border-radius:0}.caption{left:20px;right:70px;bottom:26px}.location{display:none}.actions{left:auto;right:13px;bottom:100px;gap:17px}.action svg{width:29px;height:29px}.feed-controls{right:12px;top:50%;gap:7px}.feed-controls button{width:32px;height:32px;padding:8px}.theme-toggle{top:11px;right:12px}}@media(max-height:600px){.video-frame{min-height:100svh}.caption{bottom:16px}.actions{bottom:82px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
[hidden]{display:none!important}
:root{--theme-duration:320ms;--theme-easing:ease;--theme-text-duration:0ms}
html.theme-changing{--theme-text-duration:var(--theme-duration)}
.feed{transition:background-color var(--theme-duration) var(--theme-easing),color var(--theme-duration) var(--theme-easing)}
.site-title{transition:color var(--theme-text-duration) var(--theme-easing)}
.video-frame{transition:box-shadow var(--theme-duration) var(--theme-easing)}
.theme-toggle{transition:background-color var(--theme-duration) var(--theme-easing),color var(--theme-duration) var(--theme-easing),border-color var(--theme-duration) var(--theme-easing)}
.feed-controls button{transition:background-color var(--theme-duration) var(--theme-easing),color var(--theme-duration) var(--theme-easing),border-color var(--theme-duration) var(--theme-easing),transform 160ms ease}
.actions .action{transition:color var(--theme-duration) var(--theme-easing)}
.action svg{transition:transform 180ms ease}
.feed{-webkit-overflow-scrolling:touch;scroll-snap-type:y mandatory;touch-action:pan-y}
.feed.is-navigating{scroll-snap-type:none;scroll-behavior:auto;overflow-anchor:none}
.feed.is-navigating .playback-indicator{opacity:0;transition:none}
.site-title{position:fixed;z-index:6;top:18px;left:24px;color:var(--ui);font-size:15px;font-weight:650;letter-spacing:-.025em;line-height:1;padding:8px 0;text-decoration:none;cursor:pointer}
.site-title:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.video-frame .lesson-copy{color:#292929;text-shadow:none}
.video-frame .lesson-copy p{color:#292929}
.lesson-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101010;
}

.player-toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.playback-indicator {
  display: grid;
  place-items: center;
  width: clamp(56px, 8vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #16101c99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.playback-indicator svg {
  grid-area: 1 / 1;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.player-play-icon,
.is-paused .player-pause-icon {
  display: none;
}

.is-paused .player-play-icon {
  display: block;
  margin-right: 3px;
}

.video-slide.active .is-paused:not(.is-starting):not(.has-ended) .playback-indicator {
  opacity: 1;
}

.video-slide:not(.active) .playback-indicator,
.is-starting .playback-indicator,
.has-ended .playback-indicator {
  opacity: 0;
  transition: none;
}

.volume-control {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #16101c99;
  color: #fff;
}

.volume-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.volume-toggle::after {
  position: absolute;
  inset: -6px;
  content: "";
}

.volume-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume-waves,
.volume-cross {
  fill: none;
}

.volume-cross,
.is-muted .volume-waves {
  display: none;
}

.is-muted .volume-cross {
  display: block;
}

.volume-popover {
  position: absolute;
  left: 0;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 32px;
  padding: 14px 4px 18px;
  border-radius: 20px 20px 0 0;
  background: #16101c99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(.16, 1, .3, 1), visibility 180ms;
}

.volume-control:hover .volume-popover,
.volume-control:focus-within .volume-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.volume-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 104px;
  margin: 0;
  border: 0;
  background: linear-gradient(to top, #fff var(--volume-level, 0%), #ffffff60 var(--volume-level, 0%)) center / 4px 100% no-repeat;
  cursor: pointer;
  touch-action: none;
}

.volume-slider::-webkit-slider-runnable-track {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: transparent;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-left: -5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.volume-slider::-moz-range-track {
  width: 4px;
  height: 100%;
  border: 0;
  background: transparent;
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.player-toggle:focus-visible,
.volume-toggle:focus-visible,
.volume-slider:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .volume-popover {
    transform: none;
  }
}

.video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 24px;
  background: #d1d1d1;
  color: #292929;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.video-error p{margin:0 0 16px}
.video-retry{justify-self:center;min-height:42px;padding:10px 18px;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;cursor:pointer;font-size:14px}
.video-retry:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.video-frame:not(.is-enhanced) .player-toggle,
.video-frame:not(.is-enhanced) .volume-control{display:none}
.video-loading{position:absolute;left:50%;bottom:72px;transform:translateX(-50%);padding:8px 12px;border-radius:6px;background:#101010dd;color:#fff;font-size:14px;line-height:1.4;pointer-events:none}

.quiz-slide{position:relative;width:min(100vw,1120px);height:100svh;min-height:520px;margin:0 auto;display:grid;place-items:center;padding:28px;scroll-snap-align:start;scroll-snap-stop:always}
.quiz-slide .checkpoint{position:relative;inset:auto;width:min(560px,100%);max-height:calc(100svh - 56px);min-height:300px;padding:clamp(24px,4vw,42px);background:#f1eadb}

.quiz-slide.active .checkpoint{animation:question-arrive .32s cubic-bezier(.2,.7,.25,1) both}
@keyframes question-arrive{from{opacity:.65;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:720px){.quiz-slide{width:100%;padding:14px}.quiz-slide .checkpoint{max-height:calc(100svh - 28px);min-height:280px;padding:23px 19px}}
@media(max-width:720px){.site-title{top:12px;left:14px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.quiz-slide.active .checkpoint{animation:none}}
.lesson-copy{position:absolute;z-index:2;left:24px;right:24px;bottom:108px;color:#fff;text-shadow:0 1px 8px #000b}
.lesson-length{display:block;margin-bottom:12px;font-size:12px;font-weight:600;letter-spacing:.04em;color:#fff}
.lesson-copy h1{margin:0 0 10px;font-size:clamp(28px,4vw,44px);line-height:1.02;letter-spacing:-.035em}
.lesson-copy p{max-width:390px;margin:0;font-size:13px;line-height:1.45;color:#fff}
.continue-lesson span{margin-left:10px}
.checkpoint{position:absolute;z-index:4;inset:9% 7% 12%;display:flex;flex-direction:column;justify-content:center;overflow:auto;padding:clamp(18px,4vw,34px);border-radius:14px;background:#f1eadb;color:#24251f;box-shadow:0 15px 40px #0005}
.checkpoint-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;color:#45453d;font-size:11px;font-weight:700;letter-spacing:.02em}
.checkpoint h2{margin:0 0 18px;font-size:clamp(19px,2.4vw,27px);line-height:1.2;letter-spacing:-.025em}
.skip-question{padding:6px 10px;border:0;background:none;color:#383930;text-decoration:underline;text-underline-offset:3px;font-size:11px;cursor:pointer}
.answer-list{display:grid;gap:8px}
.answer-option{min-height:44px;padding:10px 12px;border:1px solid #929181;border-radius:7px;background:#f9f6ed;color:#292a25;text-align:left;font-size:12px;line-height:1.35;cursor:pointer;transition:background .15s,border-color .15s}
.answer-option:hover:not(:disabled){background:#e7e2d5;border-color:#66675d}
.answer-option:disabled{cursor:default}
.answer-option.correct,.answer-option.selected-correct{background:#dce8d6;border-color:#5f7956;color:#20381c}
.answer-option.selected-wrong{background:#f4dfd8;border-color:#a95845;color:#55271d}
.answer-feedback{margin:13px 0 0;color:#282a23;font-size:12px;line-height:1.45;font-weight:600}
.flash-answer{margin:0 0 18px;padding:14px 0;border-top:1px solid #aaa696;color:#303129;font-size:14px;line-height:1.5}
.continue-lesson{align-self:flex-start;min-height:40px;margin-top:16px;padding:0 14px;border:0;border-radius:7px;background:#273d31;color:#fff;font-size:12px;font-weight:600;cursor:pointer}
.continue-lesson:hover{background:#3e5a47}
.sequence-complete{position:fixed;z-index:8;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;background:#101010ed;color:#fff;font-size:clamp(24px,4vw,42px);font-weight:700}
.sequence-complete button{padding:11px 16px;border:1px solid #ffffff80;border-radius:7px;background:transparent;color:#fff;font-size:13px;cursor:pointer}
.sequence-complete button:hover{background:#ffffff20}
html[data-theme=light] .feed{color:#24251f}
html[data-theme=light] .video-frame{box-shadow:0 6px 28px #0002}
html[data-theme=light] .feed-controls button{background:#f8f7f2;border-color:#0003;color:#282722}
html[data-theme=light] .theme-toggle{background:#f8f7f2;color:#24251f;border-color:#0003}
html[data-theme=light] .feed-controls button:focus-visible,html[data-theme=light] .theme-toggle:focus-visible{outline-color:#24251f}
@media(max-width:720px){.lesson-copy{left:20px;right:20px;bottom:104px}.lesson-copy h1{font-size:32px}.lesson-copy p{max-width:330px;font-size:12px}.lesson-length{font-size:12px}.checkpoint h2{font-size:21px}.answer-option{min-height:46px}.checkpoint-top{margin-bottom:15px}}

[hidden]{display:none!important}

.skip-question:focus-visible,.answer-option:focus-visible,.continue-lesson:focus-visible,.sequence-complete button:focus-visible{outline:2px solid #18251b;outline-offset:3px}

@media(min-width:721px){html[data-theme=light] .actions .action{color:#24251f}html[data-theme=light] .action.bookmark[aria-pressed=true] svg{fill:#314a35;stroke:#314a35}}
.theme-toggle{width:38px;height:38px;justify-content:center;gap:0;padding:0;border-radius:50%}
.theme-toggle svg{position:absolute;width:17px;height:17px;transition:opacity var(--theme-duration) var(--theme-easing),transform var(--theme-duration) cubic-bezier(.2,.75,.25,1)}
.moon-icon,.sun-icon{display:block}
.moon-icon{opacity:1;transform:rotate(0) scale(1)}
.sun-icon{opacity:0;transform:rotate(-90deg) scale(.72)}
html[data-theme=light] .moon-icon{display:block;opacity:0;transform:rotate(90deg) scale(.72)}
html[data-theme=light] .sun-icon{opacity:1;transform:rotate(0) scale(1)}
@media(prefers-reduced-motion:reduce){.theme-toggle svg{transition:none}}
.video-frame .lesson-copy .lesson-length{color:#292929}
.action.bookmark:hover svg,.action.bookmark[aria-pressed=true] svg{transform:none}
.action.bookmark{width:48px;flex:0 0 48px}
.action.bookmark small{min-width:40px;text-align:center}
.actions{width:48px}
/* Reserve the missing bookmark's space so the like control never shifts. */
.video-slide[data-topic^="Intro"] .actions::after,
.video-slide[data-topic^="Outro"] .actions::after{
  content:"";
  width:48px;
  height:48px;
  flex:0 0 48px;
  pointer-events:none;
}
.monopoly-study{align-items:stretch;justify-content:flex-start;gap:14px}

.monopoly-question{padding:10px 0 14px;border-bottom:1px solid #c8c5bb}
.monopoly-question h3{margin:0 0 10px;font-size:15px;line-height:1.35}
.monopoly-question .answer-list{gap:6px}
.monopoly-question .answer-option{min-height:36px;padding:7px 10px;font-size:11px}
.monopoly-question .answer-option.is-selected{border-color:#384b3c;background:#e1e8dc}
#monopoly-quiz{overflow:auto;min-height:0}
#monopoly-answer-key h3{margin:18px 0 8px}
#monopoly-answer-key p{margin:7px 0;font-size:12px;line-height:1.4}
.monopoly-study{max-height:calc(100svh - 56px)}
@media(max-width:720px){.monopoly-study{max-height:calc(100svh - 28px);gap:10px}.monopoly-question h3{font-size:13px}}

.study-arrow{width:40px;height:40px;display:grid;place-items:center;padding:9px;border:1px solid #aaa99e;border-radius:50%;background:#f8f5ec;color:#292a25;cursor:pointer;transition:background .18s,color .18s}
.study-arrow:hover:not(:disabled){background:#e2dfd5}
.study-arrow:disabled{opacity:.35;cursor:default}
.study-arrow svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.quiz-checkpoint{width:min(740px,calc(100% - 24px));max-height:calc(100svh - 56px);min-height:370px;justify-content:flex-start;gap:12px}
.question-count{color:#55554d;font-size:12px;font-weight:700}
.quiz-checkpoint .answer-list{display:grid;gap:8px;overflow:auto}
.quiz-checkpoint .answer-option{min-height:42px}
.quiz-navigation{display:flex;justify-content:space-between;margin-top:auto}
.study-arrow:focus-visible{outline:3px solid #596b50;outline-offset:3px}
@media(max-width:720px){.study-arrow{width:32px;height:32px;padding:7px}.quiz-checkpoint{width:calc(100% - 10px);max-height:calc(100svh - 28px);min-height:350px;padding:20px}.quiz-checkpoint .answer-option{min-height:40px;padding:8px 10px}}

.quiz-checkpoint{display:grid;grid-template-rows:auto auto auto auto minmax(46px,auto) 42px;gap:10px;overflow-y:auto}
.quiz-checkpoint .checkpoint-top{margin:0}
.final-quiz { min-height: 0; }

.final-quiz .quiz-checkpoint {
  min-height: 0;
  align-content: start;
  overscroll-behavior-y: contain;
}

.quiz-checkpoint .quiz-question {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-height: 520px) {
  .feed { min-height: 0; }
}
.quiz-checkpoint .answer-list{align-content:start;overflow:visible}
.quiz-checkpoint .answer-option{min-height:42px}
.quiz-checkpoint .quiz-feedback{min-height:46px;margin:0;display:flex;align-items:center;font-size:13px;line-height:1.35;font-weight:650}
.quiz-navigation{grid-row:6;display:flex;justify-content:space-between;align-items:center;margin:0}
.quiz-checkpoint .answer-option.selected-wrong{background:#f4dfd8;border-color:#a95845;color:#55271d}
.quiz-checkpoint .answer-option.selected-correct,.quiz-checkpoint .answer-option.correct{background:#dce8d6;border-color:#5f7956;color:#20381c}
@media(max-width:720px){.quiz-checkpoint{width:calc(100% - 10px);max-height:calc(100svh - 28px);min-height:340px;padding:20px;grid-template-rows:auto auto auto auto minmax(48px,auto) 40px;gap:8px}.quiz-checkpoint .quiz-question{font-size:clamp(17px,5vw,21px)}.quiz-checkpoint .answer-option{min-height:38px;padding:7px 10px;font-size:12px}.quiz-checkpoint .quiz-feedback{font-size:12px}}

.study-arrow{width:42px;height:42px}
@media(max-width:720px){.study-arrow{width:38px;height:38px;padding:8px}}

.flashcard-set {
  padding-inline: clamp(48px, 8vw, 100px);
}

.study-wrapper {
  display: grid;
  grid-template-rows: auto 44px 40px;
  gap: 12px;
  width: min(560px, 100%);
  min-width: 0;
}

.flashcard-scene {
  --card-inset: clamp(18px, 4vw, 42px);
  position: relative;
  perspective: 1200px;
}

.flashcard-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 56px var(--card-inset);
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.flashcard-inner {
  display: grid;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}

.flashcard-inner.animate-flip {
  transition: transform 480ms cubic-bezier(.42, 0, .25, 1);
}

.flashcard-inner.is-flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: relative;
  display: grid;
  grid-area: 1 / 1;
  min-height: clamp(250px, 50svh, 360px);
  border-radius: 8px;
  background: #f1eadb;
  color: #24251f;
  box-shadow: 0 5px 16px #0002;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flashcard-back {
  transform: rotateY(180deg);
}

.flashcard-copy {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.flashcard-back .flashcard-copy {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.45;
}

.flashcard-header {
  position: absolute;
  inset: 16px var(--card-inset) auto;
  margin: 0;
  pointer-events: none;
}

.flashcard-header .skip-question {
  pointer-events: auto;
}

.flashcard-toggle:focus-visible {
  outline: 3px solid #596b50;
  outline-offset: -4px;
}

.study-navigation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

.study-status {
  grid-column: 2;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.study-navigation .next-card {
  grid-column: 3;
  justify-self: end;
}

.study-wrapper .continue-lesson {
  place-self: center;
  margin: 0;
}

.study-wrapper .continue-lesson:focus-visible {
  outline-color: var(--ui);
}

@media (prefers-reduced-motion: reduce) {
  .flashcard-inner.animate-flip {
    transition: none;
  }
}

/* One line and an always-visible label for each topic. */
.topic-nav {
  position: fixed;
  z-index: 7;
  top: 50%;
  left: 20px;
  width: 220px;
  transform: translateY(-50%);
  color: var(--ui);
  transition: color var(--theme-text-duration) var(--theme-easing);
}
.topic-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.topic-ticks {
  display: flex;
  flex: 0 0 16px;
  flex-direction: column;
  gap: 7px;
  padding: 4px 0;
}
.topic-tick {
  display: block;
  width: 16px;
  height: 3px;
  background: currentColor;
  opacity: .24;
  transform: scaleX(max(var(--tick-scale, .75), var(--hover-scale, 0), var(--interaction-scale, 0)));
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1), opacity 180ms ease;
}
.topic-marker { --tick-scale: .75; }
.topic-tick.is-past { opacity: .5; }
.topic-tick.is-current { --tick-scale: 1; opacity: 1; }
.topic-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 3px; }
.topic-link:focus-visible .topic-marker { --hover-scale: 1; opacity: 1; }
.topic-link:is(:hover, :focus-visible) .topic-tick {
  --interaction-scale: 2.25;
  opacity: 1;
}
.topic-label {
  position: absolute;
  left: 26px;
  width: max-content;
  max-width: 180px;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--page);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 1;
  transform: none;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1), background-color var(--theme-duration) var(--theme-easing), color var(--theme-text-duration) var(--theme-easing);
}
.topic-link[aria-current] .topic-label { color: var(--ui); font-weight: 700; }
.topic-link:is(:hover, :focus-visible) .topic-label {
  color: #fff;
  transform: translateX(20px);
}
html[data-theme=light] .topic-link:is(:hover, :focus-visible) .topic-label {
  background: transparent;
  color: var(--ui);
}
@media (max-width: 720px) {
  .topic-nav { left: 8px; width: 230px; top: 100px; transform: none; }
  .topic-link { padding: 8px; min-height: 44px; }
  .topic-ticks { flex-basis: 16px; }
  .topic-tick { width: 16px; height: 3px; }
  .topic-tick:not(.topic-marker) { display: none; }
  .topic-link[aria-current] .topic-marker { --tick-scale: 1; opacity: 1; }
  .topic-label { left: 32px; max-width: 180px; font-size: 12px; }
}
@media (max-height: 600px) and (min-width: 721px) {
  .topic-ticks { gap: 4px; }
  .topic-link { padding-block: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .topic-tick, .topic-label { transition: none; }
}

/* Saved library and its saved-only player reuse the lesson controls. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.saved-toggle {
  position: fixed;
  z-index: 7;
  top: 65px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  background: #151515aa;
  backdrop-filter: blur(5px);
  color: var(--ui);
  cursor: pointer;
  transition: background-color var(--theme-duration) var(--theme-easing), color var(--theme-duration) var(--theme-easing), border-color var(--theme-duration) var(--theme-easing);
}
.saved-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-theme=light] .saved-toggle { background: #f8f7f2; border-color: #0003; }
.saved-toggle:focus-visible, .text-back:focus-visible {
  outline: 2px solid var(--ui);
  outline-offset: 4px;
}
.feed.is-saved-grid { overflow: hidden; scroll-snap-type: none; scroll-behavior: auto; }
.saved-page {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 1120px);
  height: 100svh;
  overflow: hidden;
  margin: 0 auto;
  padding: 96px 80px 0;
}
.saved-header { margin-bottom: 28px; }
.saved-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 64px;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.saved-content:focus-visible { outline: 2px solid var(--ui); outline-offset: -2px; }
.text-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.text-back:hover { color: var(--ui); }
.text-back svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.saved-header h1 {
  margin: 14px 0 0;
  color: var(--ui);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.saved-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.saved-tile {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #555;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.saved-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}
.saved-tile:hover img { opacity: .8; }
.saved-tile:focus-visible { outline: 3px solid var(--ui); outline-offset: 3px; z-index: 1; }
.saved-tile-title {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 14px 14px;
  background: linear-gradient(transparent, #000d);
  color: #fff;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.saved-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: min(45svh, 100%);
  padding: 40px 20px;
  text-align: center;
}
.saved-empty h2 { margin: 0; font-size: clamp(22px, 2.5vw, 28px); font-weight: 600; }
.saved-viewer-back { position: fixed; z-index: 7; top: 68px; left: 24px; padding: 8px; background: var(--page); border-radius: 4px; }
.saved-storage-note { margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.text-back,.saved-header h1,.saved-storage-note{transition:color var(--theme-text-duration) var(--theme-easing)}
.saved-viewer-back{transition:background-color var(--theme-duration) var(--theme-easing),color var(--theme-text-duration) var(--theme-easing)}
.feed-controls button:disabled { opacity: .3; cursor: default; }
.feed-controls button:disabled:hover { transform: none; }
@media (max-width: 720px) {
  .saved-toggle { top: 59px; right: 12px; }
  .saved-page { padding: 102px 14px 0; }
  .saved-content { padding-bottom: 32px; }
  .saved-header { margin-bottom: 20px; }
  .saved-grid { gap: 3px; }
  .saved-tile-title { padding: 20px 8px 10px; font-size: 12px; }
  .text-back { font-size: 12px; }
  .saved-viewer-back { top: 62px; left: 10px; }
}
@media (max-width: 420px) {
  .saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
