:root { color-scheme: dark; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif; }
#view { position: fixed; inset: 0 0 56px 0; }
.lecture-bar { position: fixed; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #0d1117; border-top: 1px solid #222b38; }
.lecture-bar button { background: #161c25; color: #f3eee4; border: 1px solid #222b38; border-radius: 8px; height: 38px; min-width: 44px; font-size: 18px; cursor: pointer; }
.lecture-bar .where { flex: 1; text-align: left; font-size: 14px; padding: 0 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.demo-link { color: #e8a33d; font-size: 14px; white-space: nowrap; }
dialog#menu { background: #0d1117; color: #f3eee4; border: 1px solid #222b38; border-radius: 12px; width: min(560px, calc(100vw - 32px)); max-height: 80vh; padding: 20px 24px; }
dialog#menu::backdrop { background: rgba(0,0,0,.6); }
dialog#menu h2 { margin: 0 0 12px; font-size: 20px; }
dialog#menu ol { padding-left: 0; list-style: none; margin: 0; }
dialog#menu li button { width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 8px 6px; font-size: 16px; cursor: pointer; border-radius: 6px; }
dialog#menu li button:hover, dialog#menu li button.current { background: #161c25; }
dialog#menu li small { color: #9aa4b2; margin-right: 10px; }
dialog#menu .close { float: right; background: none; border: 0; color: #9aa4b2; font-size: 26px; cursor: pointer; }
@media (max-width: 600px) { .demo-link { display: none; } }
