.player-notes-backdrop { position: fixed; inset: 0; z-index: 69; background: #0008; pointer-events: auto; }
.player-notes {
  position: fixed; inset: 0; z-index: 70;
  color-scheme: dark; color: #f2ecd8; background: rgba(12,16,10,.96);
  border: 2px solid #6b5a2e; border-radius: 8px; padding: 0; margin: auto;
  width: min(620px, calc(100vw - 32px)); max-height: min(740px, calc(100dvh - 32px));
  font: 14px/1.55 "Trebuchet MS", sans-serif; box-shadow: 0 20px 80px #0009;
  pointer-events: auto;
}
.player-notes[open] { display: flex; flex-direction: column; }
.player-notes > .scroll-wrap { min-height: 0; flex: 1; }
.player-notes .scroll-bar { margin: 8px 6px 8px 0; }
.player-notes header, .player-notes footer { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.player-notes header { border-bottom: 1px solid #59604a; }
.player-notes h2 { margin: 0; font-size: 23px; color: #ffd166; }
.player-notes-summary { color: #b4c1b2; margin: 18px 24px 8px; }
.player-notes-list { overflow-y: auto; padding: 0 24px 12px; min-height: 0; }
.player-notes-list section { padding: 14px 0; border-bottom: 1px solid #445048; }
.player-notes h3 { font-size: 15px; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
.player-notes h3 span { color: #d5e4a5; font-size: 11px; border: 1px solid #758858; border-radius: 4px; padding: 1px 6px; }
.player-notes ul { padding-left: 20px; margin: 0; }
.player-notes li + li { margin-top: 8px; }
.player-notes footer { border-top: 1px solid #59604a; flex-wrap: wrap; }
.player-notes footer p { flex: 1; font-size: 12px; color: #b4c1b2; margin: 0; }
.player-notes button { font: inherit; color: #f2ecd8; background: #263021; border: 1px solid #6b5a2e; border-radius: 4px; padding: 8px 12px; cursor: pointer; }
.player-notes button:hover, .player-notes button.hovered { background: #35402b; border-color: #cbbf9a; }
.player-notes button:disabled { opacity: .5; cursor: default; }
.player-notes [hidden] { display: none; }
.player-notes button:focus-visible, .player-notes-list:focus-visible { outline: 2px solid #d5e4a5; outline-offset: 2px; }
#characterUpdates[hidden], #menuUpdates[hidden] { display: none; }
@media (max-width: 540px) {
  .player-notes header, .player-notes footer { padding: 14px 16px; }
  .player-notes-summary { margin: 14px 16px 4px; }
  .player-notes-list { padding: 0 16px 12px; }
}
