html { color-scheme: dark; overflow: hidden; }
body:has(#uko-player) { margin: 0; background: #11182a; }
#uko-player {
  --bg: #11182a; --surface: #20263c; --line: #44445e; --muted: #c1c6d7;
  --ink: #f5f4fb; --mint: #a3ead9; --lavender: #d3b4fd;
  --header: calc(58px + env(safe-area-inset-top,0px));
  min-height: 100vh; min-height: 100dvh; color: var(--ink);
  background: linear-gradient(145deg,#1d2037,#11182a 65%);
  font: 400 1rem/1.55 "DM Sans",system-ui,sans-serif;
}
#uko-player *, #uko-player *::before, #uko-player *::after { box-sizing: border-box; }
#uko-player [hidden] { display: none !important; }
#uko-player :is(button,textarea,input) { font: inherit; }
#uko-player :is(button,summary) { cursor: pointer; }
#uko-player button { border: 0; color: inherit; }
#uko-player a { color: inherit; }
#uko-player :focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
#uko-player [tabindex="-1"]:focus { outline: none; }
#uko-player svg { width: 1.25em; height: 1.25em; flex: none; }
#uko-player h1, #uko-player h2 { font-family: "Cormorant Garamond",Georgia,serif; font-weight: 400; line-height: 1.08; text-wrap: balance; letter-spacing: -.035em; margin: 0; overflow-wrap: anywhere; }
#uko-player h3 { line-height: 1.4; }
#uko-player p { margin: 0; }
.u-nav {
  display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; column-gap: 12px;
  position: fixed; z-index: 5; inset: 0 0 auto; height: var(--header);
  padding: env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-left),env(safe-area-inset-right)) 0;
  color: var(--ink); background: #14162955; border-bottom: 1px solid #d7bdff26; backdrop-filter: blur(8px);
}

.u-nav :is(button,a), .u-drawer-head button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: transparent; }
.u-nav :is(button,a):hover, .u-drawer-head button:hover { background: #ffffff18; }
.u-course { text-align: center; font-weight: 650; font-size: clamp(.85rem,1.5vw,1.1rem); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.u-timeline {
  position: fixed; z-index: 4; top: calc(var(--header) + 10px); left: 50%; transform: translateX(-50%);
  width: min(390px,calc(100% - 36px)); --panel-offset: calc(var(--header) + 67px);
}
#uko-player .u-path-toggle {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center;
  width: 100%; gap: 10px; height: 50px; padding: 5px 16px 9px; text-align: left;
  background: #181b30ed; border: 1px solid #aa91c374; border-radius: 14px; box-shadow: 0 4px 20px #080a1244;
}
.u-path-section { font-size: .91rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-path-toggle small { font-size: .8rem; color: #e1dfea; white-space: nowrap; }
.u-path-toggle svg { width: 16px !important; height: 16px !important; }
.u-meter { position: absolute; bottom: 4px; left: 16px; right: 16px; height: 3px; border-radius: 5px; background: #686076; overflow: hidden; }
.u-meter i { display: block; height: 100%; background: var(--lavender); }
#u-path {
  position: fixed; inset: var(--panel-offset) 0 auto; margin: 0 auto; width: min(390px,calc(100% - 36px)); max-width: none;
  max-height: calc(100dvh - var(--panel-offset) - 16px); padding: 16px; background: #181e32; color: var(--ink);
  border: 1px solid #665774; border-radius: 16px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 15px 48px #08091480;
}
#u-path::backdrop { background: #080a1338; }

#u-path nav h3 { margin: 15px 8px 6px; font-size: .83rem; color: var(--lavender); }
#u-path li button:disabled { opacity: .63; cursor: default; }
.u-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#u-path h2 { font-size: 2rem; }
#u-path p { color: var(--muted); font-size: .9rem; }
#u-path ol { list-style: none; margin: 22px 0; padding: 0; }
#u-path li { position: relative; padding-bottom: 5px; }
#u-path li:not(:last-child)::before { content: ""; position: absolute; width: 1px; top: 28px; left: 28px; bottom: -28px; background: #615575; }
#u-path li button, .u-path-summary { position: relative; display: flex; gap: 12px; align-items: center; width: 100%; min-height: 52px; padding: 10px; text-align: left; border-radius: 12px; background: transparent; }
#u-path li button:hover, #u-path .u-path-summary:hover { background: #292e45; }
#u-path [aria-current="step"] { background: #302c47; box-shadow: inset 0 0 0 1px #947baa; }
#u-path li button > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
#u-path li small { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }
#u-path li button > svg { color: var(--mint); }
.u-number { position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #756b88; border-radius: 50%; background: var(--surface); font-variant-numeric: tabular-nums; }
#u-path [aria-current] .u-number { color: #22172e; background: var(--lavender); }
#uko-player { isolation: isolate; }
.u-scene { position: fixed; inset: 0; height: 100vh; height: 100lvh; pointer-events: none; z-index: -1; background: #20243c; }
.u-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#12162769,#10162688 48%,#111526ac); }
.u-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.u-hero { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--header) + 76px) 20px 85px; color: white; }
.u-lesson:not(:has(audio)) .u-hero { min-height: 42svh; padding-bottom: 20px; }
.u-lesson:has(.u-read-toggle) { --reading-space: clamp(94px,21svh,180px); }
.u-lesson:has(.u-read-toggle) .u-hero { padding-bottom: var(--reading-space); }
.u-lesson:has(.u-read-toggle) .u-transcript { position: relative; margin-top: calc(16px - var(--reading-space)); }
.u-transcript, .u-sheet .u-paper { border: 1px solid #81719475; border-radius: 24px 24px 0 0; background: #171d30fa; box-shadow: 0 -12px 45px #0e10202e; }
.u-transcript:not([hidden]) { animation: u-rise .24s ease-out; }
@keyframes u-rise { from { opacity: .45; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@media(prefers-reduced-motion:reduce) { .u-transcript:not([hidden]) { animation:none; } }
.u-hero-inner { width: min(100%,840px); text-align: center; text-shadow: 0 2px 8px #10142599; }
.u-meta, .u-kicker { color: var(--lavender); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.u-hero .u-meta { color: #fff; }
.u-meta span { margin: 0 .7em; }
#uko-player .u-hero h1 { font-size: clamp(2.7rem,6.6vw,6.2rem); margin: 15px 0 30px; }
.u-audio { display: grid; justify-items: center; gap: 18px; }
#uko-player .u-play { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: white; background: #764bb0; box-shadow: 0 0 0 7px #cfb4ff26,0 8px 26px #09122344; }
#uko-player .u-play svg { width: 30px; height: 30px; }
#uko-player .u-play:hover { background: #885ac5; }
.u-play:disabled { opacity: .65; cursor: default; }
.u-track { width: min(100%,340px); }
.u-track > div { display: flex; justify-content: space-between; font-size: .8rem; font-variant-numeric: tabular-nums; }
.u-track input { appearance: none; display: block; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--lavender); }
.u-track input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right,var(--lavender) var(--at,0%),#e4e2f19c var(--at,0%)); }
.u-track input::-webkit-slider-thumb { appearance: none; margin-top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--lavender); }
.u-track input::-moz-range-track { background: #e4e2f19c; height: 4px; }
.u-track input::-moz-range-progress, .u-track input::-moz-range-thumb { background: var(--lavender); }
.u-media-error:empty, .u-status:empty { display: none; }
#uko-player .u-read-toggle, #uko-player .u-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 9px 18px; background: #171c30cb; border: 1px solid #b9afca; border-radius: 30px; color: #fff; text-decoration: none; }
.u-read-toggle { margin-top: 17px; }
.u-read-toggle[aria-expanded=true] svg:last-child, .u-review[open] summary svg { transform: rotate(180deg); }
.u-prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.u-hero-next { margin-top: 25px; }
#uko-player .u-primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 21px; border-radius: 28px; background: #7346ad; color: white; text-decoration: none; font-weight: 700; font-size: .95rem; }
#uko-player .u-primary:hover { background: #885ac5; }
.u-sheet, .u-summary { padding-top: calc(var(--header) + 66px); }
.u-paper { width: min(100%,790px); margin: 0 auto; padding: clamp(24px,4vw,55px) clamp(20px,4vw,55px) 70px; }
#uko-player .u-paper :is(h1,h2) { font-size: clamp(2.35rem,4.8vw,4.6rem); margin: 10px 0 24px; }
.u-paper fieldset { min-width: 0; margin: 27px 0; border: 0; padding: 0; }
.u-paper legend, .u-prompt { font-size: 1.13rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.u-paper legend { margin-bottom: 10px; }
.u-paper legend small { display: block; color: var(--muted); font-size: .79rem; margin-bottom: 5px; }
.u-option { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); overflow-wrap: anywhere; }
.u-option input { accent-color: var(--lavender); flex: none; margin: 0; width: 16px; height: 16px; }
.u-option:has(input:checked) { border-color: var(--lavender); background: #302c47; }
.u-paper textarea { width: 100%; display: block; resize: vertical; margin-top: 16px; padding: 16px; border: 1px solid #726a87; border-radius: 12px; color: var(--ink); background: var(--surface); }
.u-paper textarea::placeholder { color: #adadc1; }
#uko-player .u-hint { margin: 10px 0 26px; color: var(--muted); font-size: .88rem; }
#uko-player .u-score { color: var(--lavender); font-weight: 650; margin-bottom: 24px; }
.u-answer { padding: 18px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.u-answer h3 { margin: 7px 0 9px; }
.u-answer strong { margin-right: 6px; }
#uko-player .u-why { margin-top: 8px; color: var(--muted); }
.u-mark { display: flex; gap: 7px; align-items: center; font-size: .85rem; font-weight: 700; }
.u-mark.correct { color: var(--mint); }
.u-mark.incorrect { color: #ffc1aa; }
.u-review { border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }
.u-review summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; font-weight: 700; }
.u-review summary::-webkit-details-marker { display: none; }
.u-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.u-transcript { scroll-margin-top: calc(var(--header) + 65px); min-height: 40vh; }
.u-status:not(:empty) { position: fixed; z-index: 6; max-width: calc(100% - 2rem); inset: auto auto 12px 16px; border-radius: 8px; background: #312c40; color: #fff0ce; padding: 8px 15px; font-size: .85rem; }
.u-empty { padding-top: calc(var(--header) + 55px); }
@media(max-width:600px) {
  #uko-player .u-hero h1 { font-size: clamp(2.65rem,11vw,4rem); }

  .u-paper { padding-inline: 20px; }
}
.u-floats { position: fixed; z-index: 3; inset: auto max(14px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); display: flex; justify-content: space-between; pointer-events: none; }
#uko-player .u-floats button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: #221e32ee; border: 1px solid #a48ab5; box-shadow: 0 2px 12px #08061755; pointer-events: auto; }
#uko-player .u-floats [data-action=next] { background: #7448a8; border-color: #b89bd3; }
#uko-player .u-floats button:hover:enabled { background: #754bad; }
#uko-player .u-floats button:disabled { background: #3a3743; color: #b4adbc; border-color: #746b79; cursor: default; }
#uko-player .u-ack { display: inline-flex; gap: 9px; align-items: center; margin: 10px 0 4px; padding: 10px 16px; min-height: 44px; border: 1px solid #b69acf; border-radius: 24px; background: #402f5b; }
#uko-player .u-ack:disabled { color: #d3cadf; border-color: #6b6179; background: #282536; cursor: default; }
#uko-player .u-lesson-title { width: min(100%,790px); margin: 0 auto; padding: clamp(18px,4vh,42px) 20px 17px; color: white; text-shadow: 0 2px 12px #121425; text-align: center; font: 400 clamp(1.9rem,4.4vw,3.8rem)/1.13 Georgia,serif; overflow-wrap: anywhere; }
.u-sheet .u-paper { min-height: 60svh; }
#uko-player .u-sheet h1, #uko-player .u-transcript h2 { font-size: clamp(1.9rem,3.75vw,3.5rem); }
#uko-player .u-sheet .u-paper, #uko-player .u-transcript, #uko-player .u-summary .u-paper { padding-bottom: 86px; }
#uko-player .u-path-toggle {height:59px;gap:2px 9px;padding:7px 15px;background:rgba(22,25,43,.43);backdrop-filter:blur(12px);border:1px solid #ffffff36;box-shadow:none;border-radius:16px}
.u-timeline {--panel-offset:calc(var(--header) + 77px)}
.u-stops {grid-column:1/-1;display:flex;align-items:center;gap:9px;color:#f3eefb;font-size:.72rem}
.u-stops {gap:14px;white-space:nowrap}
.u-dots {flex:1;display:flex;align-items:center;justify-content:space-between;position:relative;isolation:isolate}
.u-dots:has(.u-stop + .u-stop)::before {content:"";position:absolute;inset:50% 9px auto;height:2px;background:#cbc2dd;z-index:-1}
.u-stop {display:grid;place-items:center;min-width:19px;height:19px;padding:0 2px;background:#302d40;border:1px solid #cec3da;border-radius:50%;color:white;font:600 10px/1 system-ui}
.u-stop.current {background:#e2c6ff;border-color:#f5eaff;color:#29143d;box-shadow:0 0 0 2px #9f75c8}
#u-path .u-drawer-head button {border-radius:8px;width:36px;height:36px}
#u-path .u-drawer-head button svg {width:16px;height:16px}
#u-path .u-drawer-head button:focus-visible {outline-width:1px;outline-offset:-5px}
.u-sheet {height:100vh;height:100dvh;padding-top:calc(var(--header) + 74px);display:flex;flex-direction:column;overflow:hidden}
#uko-player .u-sheet .u-lesson-title {flex:none;max-height:22%;overflow:auto;padding:clamp(6px,2vh,22px) 16px}
#uko-player .u-sheet .u-paper {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:calc(86px + env(safe-area-inset-bottom));border-bottom:0;animation:u-sheet-enter .42s cubic-bezier(.2,.8,.25,1) both}
@keyframes u-sheet-enter {from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#uko-player .u-sheet .u-paper{animation:none}}
@media (max-height:680px) {
  #uko-player .u-sheet .u-paper {
    border-bottom:calc(68px + env(safe-area-inset-bottom)) solid #171d30;
    padding-bottom:16px;
  }
}
.u-section-stop {display:block;flex:0 0 8px;height:8px;border-radius:50%;background:#dfc4ff;box-shadow:0 0 0 2px #302438}
.u-dots:has(.u-section-stop)::before {left:4px}
#uko-player .u-video {display:block;width:min(100%,720px);max-height:46svh;margin:0 auto 15px;border-radius:14px;background:#111320}
.u-overview {padding:calc(var(--header) + 88px) 15px 90px}
.u-overview .u-paper {background:#171d30ef;border-radius:20px}
.u-stops {overflow:hidden;padding:3px}
.u-dots {flex:1 0 auto;gap:8px;min-height:21px}
.u-dots::before {content:"";position:absolute;inset:50% 9px auto;height:2px;background:#a79eb8;z-index:-1}
.u-minor-stop {width:9px;height:9px;background:#413c50;border:1px solid #d6cbe3;border-radius:50%;flex:none}
.u-minor-stop.current {background:#e2c6ff;box-shadow:0 0 0 2px #ac82cc}
.u-stop.u-intro-stop {border-color:#f1d29a;background:#59452c;color:white}
.u-stop.u-intro-stop.current {background:#efd5a8;color:#30200e}
.u-video-modal {width:min(880px,94vw);padding:12px;background:#131625;color:white;border:1px solid #675876;border-radius:16px}
.u-video-modal::backdrop {background:#080a14df}
.u-video-modal video {display:block;width:100%;max-height:76dvh}
.u-video-modal button {display:block;margin:0 0 10px auto}
#uko-player .u-video-open {margin:12px auto;display:flex}
.u-lesson:not(:has(audio)) .u-hero {min-height:100svh}

@view-transition { navigation:auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(*) { animation-duration:360ms; animation-timing-function:cubic-bezier(.22,.7,.25,1); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration:0s!important; }
}
.u-scene {view-transition-name:var(--uko-motion-name)}
.u-video-modal {box-sizing:border-box;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#0b0c14}
.u-video-modal[open] {display:grid;grid-template-rows:auto minmax(0,1fr)}
.u-video-modal video {height:100%;max-height:none;object-fit:contain}
html:has(.u-video-modal[open]) {overflow:hidden}

/* The viewport owns the shell. Only the active reading or task surface scrolls. */
body:has(#uko-player) { overflow:hidden; }
#uko-player {
  position:fixed; inset:0; height:100dvh; min-height:0; overflow:hidden;
  --header:calc(44px + env(safe-area-inset-top));
  --content-top:calc(var(--header) + 60px);
}
.u-scene { height:100%; }
.u-timeline { top:calc(var(--header) + 5px); --panel-offset:var(--content-top); }
#uko-player .u-path-toggle { height:49px; padding:4px 12px; }
#uko-player > article {
  position:absolute; inset:var(--content-top) 0 0; min-height:0; height:auto;
  padding-top:0; overflow:auto; overscroll-behavior:contain;
  transition:opacity .2s ease;
}
#uko-player .u-sheet { overflow:hidden; }
#uko-player .u-sheet .u-paper {
  border-bottom:0; padding:clamp(16px,2.4vw,28px) clamp(18px,3vw,34px) calc(58px + env(safe-area-inset-bottom));
}
#uko-player .u-sheet .u-lesson-title {
  max-height:2.8em; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; padding:0 12px; margin:4px auto 10px;
  font-size:clamp(18px,2vw,26px);
}
#uko-player .u-lesson .u-hero {
  min-height:100%; padding:16px 18px 60px;
}
#uko-player .u-lesson:has(.u-transcript:not([hidden])) .u-hero {min-height:0;padding:16px 18px}
#uko-player .u-lesson .u-transcript {margin:0 auto}
#uko-player .u-hero h1 { font-size:clamp(24px,3vw,36px); margin:8px 0 16px; }
#uko-player .u-paper :is(h1,h2), #u-path h2 { font-size:clamp(21px,2.3vw,29px); margin:4px 0 12px; }
.u-paper { padding:clamp(16px,2.6vw,32px); }
.u-paper fieldset { margin:14px 0; }
.u-option { padding:8px 12px; }
#uko-player .u-primary, #uko-player .u-secondary, #uko-player .u-read-toggle, #uko-player .u-ack { min-height:40px; padding:6px 14px; font-size:.9rem; }
#uko-player .u-play { width:48px; height:48px; }
#uko-player .u-play svg { width:21px; height:21px; }
.u-audio { gap:8px; }
.u-floats { bottom:max(8px,env(safe-area-inset-bottom)); }
#uko-player .u-floats button { width:44px; height:44px; }
#uko-player .u-overview { padding:8px 12px 64px; }
#uko-player .u-summary { padding-bottom:60px; }
#uko-player:has(#u-path[open]:not(.closing)) > :is(article,.u-floats) {opacity:0;pointer-events:none}
.u-floats { transition:opacity .2s; }
@keyframes u-path-in { from {opacity:0;transform:translateY(-18px);clip-path:inset(0 0 95% round 14px)} to {opacity:1;transform:none;clip-path:inset(0 round 14px)} }
@keyframes u-path-out { from {opacity:1;transform:none} to {opacity:0;transform:translateY(-18px);clip-path:inset(0 0 95% round 14px)} }
@keyframes u-step-in { from {opacity:0;translate:0 7px} to {opacity:1;translate:0} }
@media(prefers-reduced-motion:no-preference) {
  #u-path[open] {animation:u-path-in .25s ease-out both}
  #u-path.closing {animation:u-path-out .2s ease-in both}
  #uko-player > article:not(.u-sheet) {animation:u-step-in .22s ease-out}
}
@media(max-height:500px){
  #uko-player {--header:calc(40px + env(safe-area-inset-top))}
  #uko-player .u-hero h1 {font-size:22px;margin:2px 0 8px}
  #uko-player .u-lesson .u-hero {padding-block:6px 46px}
  .u-read-toggle {margin-top:5px}
}
@media(prefers-reduced-motion:reduce){
  #uko-player > article,.u-floats {transition:none}
}
.u-nav {grid-template-columns:88px minmax(0,1fr) 88px}
.u-nav-end {display:flex;justify-content:flex-end}
