*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: #111;
  color: #f3f3f3;
  font-family: Arial, sans-serif;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.45;
}
img { max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; }
p, h1, h2, h3, td, th, li, a { overflow-wrap: anywhere; }
a { color: #f0d48a; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; padding-block: clamp(1rem, 0.8rem + 1vw, 2rem); }
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #1b1b1b;
  border-bottom: 1px solid #333;
}
.brand { margin: 0; font-weight: 700; letter-spacing: 0.04em; }
nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
nav a, button, .linkish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 0;
  border-radius: 6px;
  background: #333;
  color: #fff;
  text-decoration: none;
}
button { cursor: pointer; }
nav a[aria-current="page"], button.primary { background: #8a6a22; }
.tiles {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  margin-bottom: 1.25rem;
}
.tile { background: #1c1c1c; border-radius: 8px; padding: 0.9rem 1rem; }
.tile span { display: block; color: #bbb; font-size: 0.85rem; }
.tile strong { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 0.75rem; }
.note, .banner {
  background: #2a2418;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.banner { background: #3a2a14; }
.filters, .actions, .stack { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin-bottom: 1rem; }
label { display: grid; gap: 0.25rem; flex: 1 1 12rem; }
input, select {
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fff;
  font-size: 16px;
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }
table { width: 100%; min-width: 40rem; border-collapse: collapse; }
th, td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid #333; vertical-align: top; }
th { background: #242424; }
tr:nth-child(even) { background: #1a1a1a; }
.login {
  width: min(100% - 2rem, 24rem);
  margin: 12vh auto 0;
}
.login h1 { text-align: center; }
.error { color: #ff8d8d; text-align: center; }
details { background: #1c1c1c; border-radius: 8px; padding: 0.6rem 0.8rem; margin-bottom: 0.75rem; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.group-accounts { color: #ddd; margin: 0.4rem 0 0.8rem; }
@media (min-width: 768px) {
  table { min-width: 52rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
