:root {
  color-scheme: dark;
  font: 16px/1.55 system-ui, sans-serif;
  --page: #11150f;
  --panel: #1b2218;
  --line: #394332;
  --gold: #e4ba51;
  --text: #f0f0e7;
  --muted: #b6c0b0;
  background: var(--page);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 15rem 1fr; }
aside { background: #161c13; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1.4rem 1rem; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #ffe193; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; }
.brand b { display: grid; place-items: center; height: 2.8rem; width: 3rem; border: 1px solid #806c36; background: #29291a; color: var(--gold); }
.brand span, .eyebrow { font-size: .76rem; letter-spacing: .12em; font-weight: 750; color: var(--gold); }
nav { display: grid; gap: .35rem; padding: 2rem 0; }
nav a { display: block; padding: .65rem .75rem; color: var(--muted); text-decoration: none; border: 1px solid transparent; border-radius: .35rem; }
nav a:hover, nav a[aria-current] { color: var(--gold); background: #262e20; border-color: var(--line); }
.account { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.account small { display: block; color: var(--muted); margin-bottom: .65rem; }
main { width: 100%; max-width: 88rem; padding: clamp(1.2rem, 3vw, 3rem); min-width: 0; }
header { border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; padding-bottom: 1rem; }
.eyebrow { text-transform: uppercase; margin: 0 0 .35rem; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.1; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: .55rem; padding: clamp(.85rem, 2vw, 1.35rem); margin-bottom: 1rem; min-width: 0; }
.stats, .columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats strong { display: block; font-size: 1.9rem; color: var(--gold); }
.stats span, small, .muted, dt { color: var(--muted); }
.status { white-space: nowrap; border: 1px solid #746137; color: #f3d288; background: #332d1e; padding: .15rem .55rem; border-radius: .3rem; font-size: .86rem; }
table { width: 100%; border-collapse: collapse; }
.table-wrap { overflow-x: auto; }
th, td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .86rem; }
td a { font-weight: 700; }
td a span { color: var(--text); font-weight: 450; margin-left: .35rem; }
article { border-top: 1px solid var(--line); padding: .85rem 0 .35rem; overflow-wrap: anywhere; }
.entry-head { display: flex; gap: .3rem 1rem; flex-wrap: wrap; justify-content: space-between; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
dl { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 0; }
dd { margin: .2rem 0 0; }
label { display: grid; gap: .3rem; margin: .7rem 0; font-weight: 600; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; background: #10150e; color: var(--text); border: 1px solid #56624e; border-radius: .35rem; padding: .55rem .65rem; }
textarea { min-height: 6rem; resize: vertical; }
button { cursor: pointer; border: 1px solid var(--gold); color: #17160e; font-weight: 750; background: var(--gold); border-radius: .35rem; padding: .45rem .8rem; }
button:hover { background: #ffda7c; }
:focus-visible { outline: 2px solid #f8d983; outline-offset: 3px; }
summary { cursor: pointer; color: var(--gold); font-weight: 700; }
.toolbar form { display: flex; align-items: end; gap: .65rem; margin-bottom: 1rem; }
.toolbar label { margin: 0; width: min(100%, 28rem); }
.signed-out { display: grid; grid-template-columns: 1fr; place-items: center; padding: 1rem; }
.signed-out main { width: min(100%, 34rem); }
.registration-link { margin: 1rem 0 0; }
.rights-actions { display: grid; gap: .35rem; margin: .5rem 0 1rem; }
.check { display: flex; align-items: center; gap: .6rem; margin: 0; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--gold); }
@media (max-width: 760px) {
  body { display: block; }
  aside { border-right: 0; border-bottom: 1px solid var(--line); }
  nav { display: flex; flex-wrap: wrap; padding: 1rem 0; }
  .account { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; }
  .account small { margin: 0; }
  .reports { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .stats, .columns { grid-template-columns: 1fr; } }
