:root {
  color-scheme: dark;
  --paper: #1d171a;
  --border: #49363d;
  --text: #f2e7e2;
  --muted: #c5b3b5;
  --accent: #e2a479;
  font: 16px/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #130f11; }
header, footer { padding: 1.1rem max(1.25rem, calc((100% - 1120px) / 2)); background: #1b1317; }
header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 1px solid var(--border); }
header strong { color: var(--accent); font: bold 1.35rem Georgia, serif; }
nav, .session { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; }
nav { margin-top: .65rem; }
nav a { color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current] { color: var(--text); border-color: var(--accent); }
main { max-width: 1160px; min-height: 74vh; margin: auto; padding: 1.8rem 1.25rem 3rem; }
h1, h2, h3 { line-height: 1.2; font-family: Georgia, serif; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1.3rem; }
h2 { font-size: 1.45rem; margin-top: 0; }
.cards, .panels { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px),1fr)); }
section, article { background: var(--paper); border: 1px solid var(--border); padding: 1.2rem; border-radius: .55rem; margin-bottom: 1rem; min-width: 0; }
article p, .muted, small, footer { color: var(--muted); }
article p:first-child { margin-top: 0; }
.balance { color: var(--accent); font-size: 1.6rem; }
.signin { max-width: 420px; margin: 2rem auto; }
form { display: grid; gap: .65rem; align-items: end; }
label { display: grid; gap: .2rem; }
input, button, select, textarea { font: inherit; border: 1px solid var(--border); border-radius: .3rem; padding: .45rem .65rem; }
input, select, textarea { width: 100%; color: var(--text); background: #141013; }
button { cursor: pointer; justify-self: start; color: #221415; background: var(--accent); font-weight: 650; }
button:hover { background: #f4c19e; }
:focus-visible { outline: 2px solid #ffd1a9; outline-offset: 3px; }
.filters { grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); margin: 1rem 0; }
.tabs { margin-bottom: 1rem; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .5rem .65rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--accent); }
details { margin-top: .85rem; }
details form { margin-top: .6rem; }
summary { cursor: pointer; }
.notice { border-left: 4px solid var(--accent); padding: .6rem 1rem; background: var(--paper); }
.error { border-color: #ff828c; }
@media (max-width: 600px) {
  header { flex-direction: column; }
}
