:root {
  color-scheme: light;
  font: 100%/1.5 Inter, system-ui, sans-serif;
  color: #242424;
  background: #f7f7f7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 62rem; margin: auto; padding: 0 1.5rem 4rem; overflow-wrap: anywhere; }
.masthead { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid #d5d5d5; }
.masthead span:first-child { font-weight: 700; }
.masthead span:last-child, .muted, time, dt { color: #555; }
.heading, #gate { padding: clamp(1.75rem, 5vw, 3.25rem) 0 1.5rem; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.15; }
h2 { font-size: 1.18rem; line-height: 1.3; }
h1, h2 { font-weight: 650; }
#gate > * + *, .heading > * + * { margin-top: .6rem; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
section { padding: 1.35rem; background: white; border: 1px solid #dedede; border-radius: 1.15rem; display: grid; gap: .85rem; }
.payment { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.payment strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.badge { padding: .18rem .65rem; border-radius: 2rem; background: #e6f4ea; color: #17542e; font-weight: 600; }
dl { display: grid; grid-template-columns: minmax(7rem, auto) minmax(0, 1fr); gap: .55rem .85rem; }
button, .button, textarea { font: inherit; }
button, .button { justify-self: start; min-height: 44px; padding: .55rem 1rem; border: 1px solid #252525; border-radius: 1.5rem; color: white; background: #252525; cursor: pointer; font-weight: 600; }
.secondary { display: inline-flex; align-items: center; color: #252525; background: white; text-decoration: none; border-color: #777; }
button:disabled { background: #e2e2e2; color: #595959; border-color: transparent; cursor: default; }
:is(button, textarea, a):focus-visible { outline: 3px solid #425f9a; outline-offset: 3px; }
form { display: grid; gap: .5rem; min-width: 0; }
label { font-weight: 600; }
textarea { width: 100%; min-height: 6rem; resize: vertical; padding: .65rem; border: 1px solid #777; border-radius: .65rem; color: inherit; background: white; }
#note-message:empty { display: none; }
#comparison { padding: .75rem; border-left: 3px solid #806030; background: #fff8eb; }
#latest-note { white-space: pre-wrap; }
@media (max-width: 44rem) {
  main { padding-inline: 1rem; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  section { padding: 1rem; }
  dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dd + dt { margin-top: .5rem; }
}

.session-actions { display: flex; justify-content: flex-end; padding-top: .75rem; }
.session-actions + .heading { padding-top: .25rem; }
