:root {
  color-scheme: dark;
  --surface: #15191f;
  --canvas: #101216;
  --border: #303945;
  --gold: #e6be6c;
  --blue: #9ad9ff;
  --text: #f1f3f7;
  --muted: #aab5c4;
  font-family: Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; background: var(--canvas); color: var(--text); }
aside { width: 15.5rem; flex-shrink: 0; background: #11151a; border-inline-end: 1px solid var(--border); padding: 1.5rem 1rem; }
.brand { letter-spacing: .10em; font-weight: 800; font-size: 1.3rem; color: var(--gold); direction: ltr; text-align: right; margin: .4rem .65rem 1.8rem; }
.brand span { color: var(--text); font-size: .9rem; }
nav { display: grid; gap: .3rem; }
nav a { border-radius: .55rem; padding: .8rem; text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current] { background: #20262e; color: var(--gold); }
main { width: 100%; min-width: 0; padding: clamp(1rem, 3vw, 2.5rem); }
header { margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); margin: .4rem 0 1.1rem; }
h2 { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; color: var(--gold); }
p { line-height: 1.75; }
section, .table-scroll { background: var(--surface); border: 1px solid var(--border); border-radius: .75rem; margin-bottom: 1rem; }
section { padding: 1.1rem; }
section .table-scroll { margin-bottom: .65rem; }
.summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(10rem,1fr)); gap: .65rem; margin-bottom: 1rem; }
.summary > div { background: #181d24; border: 1px solid var(--border); border-radius: .65rem; padding: 1rem; min-width: 0; }
.summary strong { display: block; font-size: 1.15rem; margin-top: .55rem; color: var(--blue); overflow-wrap: anywhere; }
.summary span { font-size: .88rem; color: var(--muted); }
a { color: var(--blue); }
.identifier, code { direction: ltr; unicode-bidi: isolate; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; min-width: 100%; text-align: right; }
th, td { padding: .75rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); background: #1a2027; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
form { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; padding-block: .65rem; }
label { display: grid; gap: .35rem; font-size: .87rem; min-width: 8rem; max-width: 100%; color: var(--muted); }
input, select, textarea, button { font: inherit; border: 1px solid var(--border); color: var(--text); border-radius: .45rem; padding: .55rem .7rem; background: #101419; max-width: 100%; }
textarea { min-height: 5rem; min-width: min(22rem, 65vw); }
button { cursor: pointer; background: var(--gold); color: #19150b; font-weight: 800; }
button:hover { background: #f8d58f; }
details { padding: .6rem 0; }
summary { color: var(--blue); cursor: pointer; }
meter { width: 100%; accent-color: var(--blue); }
.bars > div { display: grid; grid-template-columns: 8rem 1fr 5rem; gap: .7rem; padding: .3rem; }
.login { max-width: 34rem; margin: 4vh auto; }
.login form, .login label { display: grid; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  body { display: block; }
  aside { width: 100%; padding: .65rem; border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .brand { margin: .4rem .4rem .65rem; }
  nav { display: flex; overflow-x: auto; }
  nav a { white-space: nowrap; padding: .55rem; }
}
