:root {
  color-scheme: light;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: #1c2435;
  background: #f5f5f0;
  --navy: #172743;
  --blue: #224a82;
  --muted: #535f72;
  --line: #d7dce4;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: var(--blue); text-underline-offset: 3px; }
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: .72rem 1.05rem;
  background: var(--blue);
  color: white;
  font-weight: 650;
}
button:hover { filter: brightness(1.12); }
:focus-visible { outline: 3px solid #3476ba; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.masthead { background: var(--navy); border-bottom: 4px solid #edbb63; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: white; }
.brand small, .account small { display: block; font-size: .78rem; color: #dce5f3; margin-top: .15rem; }
.mark { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid #edbb63; border-radius: 9px; color: #edbb63; font-weight: 800; }
.account { display: flex; align-items: center; gap: 1rem; color: white; font-size: .9rem; }
.quiet { border-color: #71829c; background: transparent; padding: .45rem .65rem; }
.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav .shell { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
.nav a { text-decoration: none; color: var(--muted); padding: .95rem 0 .75rem; border-bottom: 3px solid transparent; }
.nav a[aria-current] { border-color: var(--blue); color: var(--blue); font-weight: 700; }
main { padding-block: 2.5rem 4rem; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.55rem); letter-spacing: -.035em; margin-bottom: .4rem; }
h2 { font-size: 1.1rem; }
.intro { margin-bottom: 1.5rem; }
.intro p, .hint, .optional, .semester p { color: var(--muted); }
.intro p { margin-bottom: 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.issue-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .33fr); gap: 1.15rem; align-items: start; }
.semester { border-top: 4px solid #d7a44c; }
.semester p { margin: .4rem 0 0; font-size: .9rem; }
.login { max-width: 390px; margin: 4vh auto 0; }
.login form, .details { display: grid; gap: 1.05rem; justify-items: stretch; }
.login form { margin-top: 1.4rem; }
.details { border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 1.25rem; }
form > button[type=submit] { justify-self: start; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, label { font-weight: 650; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: .55rem; margin-top: .65rem; }
.choice { border-color: var(--line); color: var(--navy); background: #f9fafc; text-align: left; }
.choice[aria-pressed=true] { border-color: var(--blue); color: var(--blue); background: #eaf1fb; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
input:not([type=hidden]), select {
  display: block;
  margin-top: .4rem;
  width: 100%;
  min-height: 43px;
  padding: .55rem .65rem;
  border: 1px solid #aab4c4;
  border-radius: 6px;
  color: inherit;
  background: white;
}
.hint { font-size: .88rem; margin: -.35rem 0 0; }
.optional { font-size: .82rem; font-weight: 400; }
.error { background: #fff1ef; border-left: 3px solid #ae382f; color: #843026; padding: .7rem; }
.success { background: #edf6ee; border-left: 3px solid #37794b; color: #245536; padding: .7rem; }
.account-form { display: grid; gap: 1.05rem; }
.accounts-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: start; }
.account-picker { padding: 0; overflow: hidden; }
.create-account-option { display: block; padding: 1rem; font-weight: 700; border-bottom: 1px solid var(--line); text-decoration: none; }
.create-account-option[aria-current], .selected-account { background: #eaf1fb; }
.account-scroll { max-height: min(60vh, 540px); overflow: auto; }
.account-scroll th { position: sticky; top: 0; z-index: 1; }
.account-scroll td { padding: 0; }
.account-scroll td a { display: block; padding: .9rem 1rem; }
.account-scroll td:last-child { padding: .9rem 1rem; }
.account-info { display: grid; grid-template-columns: max-content 1fr; gap: .65rem 1rem; margin-bottom: 1.5rem; }
.account-info dt { color: var(--muted); }
.account-info dd { margin: 0; overflow-wrap: anywhere; }
.self-account { margin: 1.2rem 0 0; }
.timing-section { max-width: 720px; margin-bottom: 1.25rem; }
.term-details { padding: 1rem 0; border-top: 1px solid var(--line); }
.term-details summary { cursor: pointer; }
.term-details .account-form { margin-top: 1rem; }
.delete-account { border-top: 1px solid var(--line); padding-top: 1rem; }
.danger { background: #972834; }
.register { padding: 0; overflow: hidden; }
.register > p, .pagination { padding: 1rem; margin: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #eaf0f7; color: var(--navy); }
td:first-child { white-space: nowrap; font-weight: 700; }
.pagination { display: flex; gap: 1rem; }
.issue-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.action-link { display: inline-block; padding: .68rem 1rem; border: 1px solid var(--blue); border-radius: 7px; background: var(--blue); color: white; text-decoration: none; font-weight: 650; }
.action-link.secondary { background: white; color: var(--blue); }
.permit-details { max-width: 680px; }
.permit-details dl { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 1.2rem; margin-bottom: 0; }
.permit-details dt { color: var(--muted); }
.permit-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 690px) {
  .details .grid { grid-template-columns: 1fr; }
  .accounts-layout { grid-template-columns: 1fr; }
  .account-scroll { max-height: 220px; }
  .issue-layout, .choices { grid-template-columns: 1fr; }
  .shell { width: calc(100% - 1.4rem); }
  .panel { padding: 1rem; }
  .register { padding: 0; }
  .account > span { display: none; }
  .issue-heading { flex-wrap: wrap; }
}
