:root {
  color-scheme: light dark;
  font: 100%/1.5 system-ui, sans-serif;
  --unread: light-dark(#173e9a, #a8c7ff);
  --read: light-dark(#592b78, #e6b6f4);
}
body { margin: 0; }
main { max-width: 64rem; margin-inline: auto; padding: 1rem; }
h1, h2, h3 { line-height: 1.2; }
button, textarea { font: inherit; }
button { min-height: 2.5rem; padding-inline: .75rem; }
textarea { display: block; box-sizing: border-box; width: 100%; margin-block: .25rem .75rem; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
#messages > div { margin-block: .25rem; }
#messages a {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}
#messages a:link { color: var(--unread); }
#messages a:visited, #messages a[data-read="true"] { color: var(--read); }
#messages a[data-read="false"] { font-weight: 700; }
nav, .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
dialog {
  box-sizing: border-box;
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1.25rem;
}
dialog::backdrop { background: rgb(0 0 0 / .65); }
#body { white-space: pre-wrap; overflow-wrap: anywhere; margin-block: 1rem; }
iframe { box-sizing: border-box; width: 100%; min-height: 70vh; margin-top: 1rem; }
