[hidden] { display: none !important; }
.mvs-controls { display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: center; font-size: .9rem; }
.mvs-controls button, .library-header button, .mvs-dialog button { font: inherit; color: inherit; border: 1px solid var(--line, #d7e0e5); border-radius: .5rem; background: var(--paper, #fff); padding: .35rem .65rem; cursor: pointer; }
.mvs-controls [aria-pressed="true"] { background: var(--soft, #e7f3ef); }
.mvs-controls [role="status"] { max-width: 17rem; }
.mvs-dialog { width: min(26rem, calc(100% - 2rem)); padding: 1.4rem; border: 1px solid var(--line, #d7e0e5); border-radius: .85rem; color: var(--ink, #202c38); background: var(--paper, #fff); }
.mvs-dialog::backdrop { background: #111b2680; }
.mvs-dialog form, .mvs-dialog label { display: grid; gap: .45rem; }
.mvs-dialog form { gap: .85rem; }
.mvs-dialog input { color: inherit; background: inherit; border: 1px solid var(--muted, #526675); border-radius: .45rem; padding: .55rem; font: inherit; width: 100%; }
.mvs-dialog p { margin: 0; }
.mvs-dialog h2 { margin: 0 0 .8rem; }
.mvs-auth-modes { display: flex; gap: .5rem; margin-bottom: .9rem; }
.mvs-auth-modes [aria-pressed="true"] { background: var(--soft, #e7f3ef); font-weight: 650; }
.library { --paper: #fff; --ink: #202c38; --muted: #526675; --line: #d7e0e5; --accent: #16766a; margin: 0; background: #f3f6f7; color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
.library *, .mvs-dialog * { box-sizing: border-box; }
.library-header { display: flex; align-items: center; justify-content: space-between; min-height: 65px; padding: .6rem clamp(1rem, 4vw, 3rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.library-header b, .eyebrow { letter-spacing: .09em; font-weight: 750; }
.library-main { width: min(52rem, calc(100% - 2rem)); margin: 2rem auto; }
.library-card, .lessons a { background: var(--paper); border: 1px solid var(--line); border-radius: .8rem; }
.library-card { padding: clamp(1rem, 4vw, 2rem); }
.library-card p { margin: 0; color: var(--muted); }
.library-card h1 { margin: .15rem 0 .5rem; font-size: clamp(1.65rem, 5vw, 2.65rem); line-height: 1.1; }
.library-card progress { width: 100%; height: .7rem; accent-color: var(--accent); }
.lessons { list-style: none; padding: 0; display: grid; gap: .55rem; }
.lessons a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; text-decoration: none; color: inherit; font-weight: 650; }
.lessons a:hover { border-color: var(--accent); }
.lessons small, .lessons [data-status] { font-size: .875rem; font-weight: 500; color: var(--muted); }
.lessons small { display: block; }
.lessons [data-status] { flex-shrink: 0; }
@media (max-width: 600px) {
  body[data-mvs-lesson] > header { flex-wrap: wrap; }
  html:has(body[data-mvs-lesson]) { scroll-padding-top: 132px; }
  .lessons a { align-items: start; flex-direction: column; gap: .15rem; }
}
.mvs-menu { position: relative; }
.mvs-menu summary { cursor: pointer; padding: .3rem .5rem; }
.mvs-menu ul { position: absolute; top: calc(100% + .25rem); left: 0; min-width: min(17rem, 76vw); padding: .35rem; margin: 0; list-style: none; background: var(--paper, #fff); border: 1px solid var(--line, #d7e0e5); border-radius: .55rem; z-index: 5; box-shadow: 0 .4rem 1rem #202c3826; }
.mvs-menu a { display: block; padding: .35rem .55rem; border-radius: .35rem; color: inherit; }
.mvs-menu a:hover, .mvs-menu [aria-current="page"] { background: var(--soft, #e7f3ef); }
.mvs-route { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin: 1rem 0; }
.mvs-route a { color: inherit; }
@media (max-width: 600px) {
  body[data-mvs-lesson="B01-U01-P02"] :is(th, td) { overflow-wrap: anywhere; }
}

.study-trail {
  display:flex; flex-wrap:wrap; align-items:center; gap:0 .5rem;
  margin:0 0 .8rem; font:550 .85rem/1.4 system-ui,sans-serif;
}
.study-trail > * { display:inline-flex; align-items:center; gap:.5rem; max-width:100%; overflow-wrap:anywhere; }
.study-trail a { min-height:44px; color:inherit; text-underline-offset:.18em; }
.study-trail > :not(:first-child)::before {
  content:""; width:.34rem; height:.34rem; flex:none;
  border-top:1px solid; border-right:1px solid; transform:rotate(45deg); opacity:.65;
}
.study-trail [aria-current] { font-weight:700; }
