:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #eee;
  background: #000;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
button:focus-visible { outline: 1px solid #aaa; outline-offset: 3px; }
#campus { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
main { width: min(100%, 480px); text-align: center; }
.leopard { display: block; margin: 0 auto 16px; }
h1 { font-size: 48px; font-weight: 500; letter-spacing: -2px; margin: 0 0 28px; }
.study-form { display: flex; background: #0c0c0c; border: 1px solid #282828; border-radius: 8px; padding: 5px; }
.study-form:focus-within { border-color: #666; }
.study-form input { min-width: 0; flex: 1; padding: 12px 13px; color: #eee; background: transparent; border: 0; outline: 0; font-size: 14px; }
input::placeholder { color: #777; }
.study-form button { width: 40px; border: 0; border-radius: 4px; color: #999; background: transparent; font-size: 21px; }
.study-form button:hover { color: #fff; background: #191919; }
.study-form button:disabled { opacity: .4; cursor: wait; }
.status { font-size: 12px; color: #999; line-height: 1.5; margin: 14px 0 0; }
.status:empty { display: none; }
.status[data-error=true] { color: #ccc; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#reading-room { height: 100svh; display: flex; flex-direction: column; background: #000; }
.reading-tools { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid #282828; background: #000; }
.reading-tools button { height: 34px; min-width: 34px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #aaa; font-size: 21px; }
.reading-tools button:hover { background: #191919; color: #fff; }
#return-to-campus { font-size: 14px; padding: 0 8px; }
.reading-tools form { display: flex; flex: 1; margin-left: 8px; background: #0c0c0c; border: 1px solid #282828; border-radius: 6px; }
.reading-tools input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #eee; padding: 7px 12px; font-size: 13px; }
.reading-tools form:focus-within { outline: 1px solid #666; }
#lesson-frame { width: 100%; flex: 1; border: 0; background: #000; }
.reading-status { margin: 0; padding: 10px 18px; font-size: 12px; background: #191919; color: #ccc; }
@media (max-width: 600px) {
  h1 { font-size: 42px; }
  .reading-tools { gap: 0; padding: 8px 5px; }
  .reading-tools button { min-width: 27px; }
  .reading-tools form { margin-left: 3px; }
}
body { height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.tab-strip { display: flex; align-items: center; flex-shrink: 0; gap: 5px; height: 40px; padding: 4px 8px; border-bottom: 1px solid #202020; }
#study-tabs { display: flex; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.study-tab { display: flex; align-items: center; flex-shrink: 0; border: 1px solid #202020; border-radius: 6px; }
.study-tab:has([aria-selected=true]) { background: #161616; border-color: #444; }
.study-tab [role=tab] { max-width: 180px; min-width: 90px; display: flex; padding: 7px 10px; background: transparent; border: 0; color: #999; font-size: 12px; text-align: left; }
.study-tab [aria-selected=true] { color: #eee; }
.tab-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.close-tab, #new-tab { height: 28px; width: 28px; padding: 0; flex-shrink: 0; border: 0; border-radius: 4px; background: transparent; color: #888; font-size: 18px; }
.close-tab:hover, #new-tab:hover { background: #222; color: #eee; }
#campus { min-height: 0; flex: 1; }
#reading-room { height: auto; flex: 1; min-height: 0; }
#reading-pages { flex: 1; min-height: 0; }
.reading-page { height: 100%; display: flex; flex-direction: column; }
.lesson-frame { width: 100%; height: 100%; flex: 1; min-height: 0; border: 0; background: #000; }
.search-results { height: 100%; overflow-y: auto; padding: 30px max(24px, calc((100% - 900px) / 2)); text-align: left; text-transform: lowercase; }
.search-title { font-size: 22px; font-weight: 400; margin: 0 0 30px; overflow-wrap: anywhere; }
.search-results article { max-width: 680px; margin-bottom: 28px; }
.result-address, .search-credit { color: #777; font-size: 11px; }
.search-results h3 { margin: 7px 0; font-size: 17px; font-weight: 400; }
.search-results a { color: #ddd; text-decoration: none; }
.search-results a:hover { text-decoration: underline; }
.search-results p { color: #999; font-size: 13px; line-height: 1.6; margin: 0; }
.search-results .search-credit { font-size: 11px; margin: 30px 0; }
@media (max-width: 600px) {
  .study-tab [role=tab] { max-width: 130px; min-width: 70px; }
  .search-results { padding: 24px 18px; }
}
