:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  --background: #151513;
  --panel: #20201d;
  --border: #45443d;
  --accent: #d8b269;
  --text: #f5f1e7;
  --muted: #c1bcae;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); }
header { border-bottom: 1px solid var(--border); min-height: 4.5rem; padding: .8rem max(1rem, calc((100% - 67rem) / 2)); }
header, .section-head, .entry, .actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.brand span { display: block; color: var(--text); font-weight: 500; letter-spacing: normal; }
main { max-width: 69rem; margin: auto; padding: clamp(1rem, 4vw, 3rem) 1rem 4rem; }
h1 { margin: 0 0 1rem; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.12; }
h2 { margin: 0; font-size: 1.2rem; }
p { color: var(--muted); }
section, #signin { padding: 1.15rem; margin: 1rem 0; border: 1px solid var(--border); background: var(--panel); border-radius: .6rem; }
.entries { display: grid; gap: .55rem; margin-top: .75rem; }
.entry { padding: .7rem 0; border-top: 1px solid var(--border); }
.entry p { margin: .3rem 0 0; font-size: .92rem; overflow-wrap: anywhere; }
.entry > div:first-child { min-width: 0; }
.entry strong, li, pre { overflow-wrap: anywhere; }
.actions { flex-wrap: wrap; justify-content: flex-end; }
button, .button, input, select { font: inherit; }
button, .button { padding: .52rem .82rem; color: var(--text); border: 1px solid var(--border); border-radius: .4rem; background: var(--background); text-decoration: none; }
.button { display: inline-block; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: default; }
.primary { background: var(--accent); color: #181510; border-color: var(--accent); font-weight: 650; }
:focus-visible { outline: 2px solid #f4d392; outline-offset: 3px; }
dialog { width: min(42rem, calc(100% - 2rem)); max-height: 90vh; overflow: auto; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: .6rem; padding: 1.25rem; }
dialog::backdrop { background: rgb(0 0 0 / .75); }
label { display: grid; gap: .25rem; margin-top: .8rem; }
input, select { min-width: 0; border-radius: .4rem; border: 1px solid var(--border); padding: .55rem; color: var(--text); background: var(--background); }
.error { color: #ffb6a3; }
pre { white-space: pre-wrap; color: var(--muted); }
@media (max-width: 37rem) {
  .entry, .section-head { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .actions { justify-content: flex-start; }
}
