:root {
  color-scheme: light;
  --brand: #970c25;
  --paper: #f8f8f8;
  --ink: #292929;
  --divider: #ededed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { margin: 0; background: var(--paper); scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.app-shell {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.app-header {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  color: #fff;
  background: var(--brand);
}
.toolbar { display: flex; align-items: center; height: 58px; padding: 0 16px; gap: 14px; }
.back-button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: -4px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.back-button:focus-visible { outline: 2px solid white; outline-offset: 1px; }
.back-button:active { background: rgb(255 255 255 / 12%); }
h1 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
main { padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
h2 { margin: 0; padding: 16px 0 12px; color: var(--brand); text-align: center; font-size: 17px; line-height: 24px; font-weight: 700; }
.course { padding: 0 0 14px; margin: 0 0 12px; border-bottom: 1px solid var(--divider); }
.course:last-child { margin-bottom: 0; }
.course p, .course h3 { margin: 0; font-size: 13px; line-height: 24px; font-weight: 400; overflow-wrap: anywhere; }
.notice { font-size: 14px; line-height: 1.6; }
@media (min-width: 600px) {
  html, body { background: #e8e9ec; }
  .app-shell { box-shadow: 0 0 0 1px rgb(0 0 0 / 6%); }
}
@media print {
  html, body { background: white; }
  .app-shell { max-width: none; box-shadow: none; }
  .back-button { visibility: hidden; }
  .course { break-inside: avoid; }
  .app-header { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
