@media screen {
  body.notes-mode { height:100dvh; overflow:hidden; font-family:system-ui,sans-serif; }
  body.notes-mode main { height:100dvh; display:flex; flex-direction:column; padding:10px 24px; }
  body.notes-mode .toolbar { width:100%; flex:none; margin-bottom:0; padding-bottom:10px; border-bottom:1px solid #ffffff1b; }
  body.notes-mode .icon { border:1px solid #ffffff1b; border-radius:6px; background:#ffffff03; color:#c2d1dd; }
  body.notes-mode .icon[aria-pressed=true] { background:#acc1f421; border-color:#acc1f46b; color:#acc1f4; }
  body.notes-mode #notes { width:100%; max-width:none; flex:1; min-height:0; overflow:auto; margin:0; padding:14px max(10px, calc((100% - 780px) / 2)) 100px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#a8b6bf55 transparent; }
  #notes > details { border-bottom:1px solid #ffffff1b; }
  #notes > details > summary { display:flex; align-items:center; gap:16px; min-height:70px; padding:18px 6px; list-style:none; color:#edf2f5; }
  #notes > details > summary::-webkit-details-marker { display:none; }
  #notes > details > summary::marker { content:''; }
  #notes > details > summary:hover { background:#ffffff04; }
  #notes .note-number { flex:none; width:30px; color:#62c9c7; font-size:14px; font-variant-numeric:tabular-nums; }
  #notes .note-heading { flex:1; min-width:0; font-size:20px; line-height:1.4; font-weight:600; overflow-wrap:anywhere; }
  #notes > details > summary svg { width:18px; height:18px; flex:none; color:#a8b6bf; transition:transform .15s; }
  #notes > details[open] > summary svg { transform:rotate(180deg); }
  #notes > details[data-current=true] .note-heading { color:#62c9c7; }
  #notes .note-body { padding:0 34px 12px 52px; }
  #notes .note-body p { margin:0 0 18px; font-size:19px; line-height:1.8; color:#dae2e7; overflow-wrap:anywhere; }
  #notes .background-notes { margin-top:24px; }
  #notes .background-notes > summary .note-heading { color:#e5bd79; }
}
@media screen and (max-width:600px) {
  body.notes-mode main { padding:8px; }
  body.notes-mode .toolbar { gap:4px; }
  body.notes-mode .icon { width:38px; height:38px; }
  body.notes-mode #notes { padding:6px 6px 72px; }
  #notes > details > summary { gap:10px; padding:18px 2px; min-height:68px; }
  #notes .note-number { width:25px; }
  #notes .note-heading { font-size:18px; }
  #notes .note-body { padding:0 4px 10px; }
  #notes .note-body p { font-size:18px; line-height:1.8; }
}
@media (prefers-reduced-motion:reduce) {
  #notes > details > summary svg { transition:none; }
}
@media screen and (max-width:400px) {
  .toolbar a[href="exports/b12-project-additions.txt"] { display:none; }
}
