:root {
  --bg: #0c0c0e;
  --panel: #15151a;
  --fg: #e8e6e3;
  --muted: #9a978f;
  --accent: #7fc0ac;
  --border: #2a2a30;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 10%, #1a2030, var(--bg) 40%);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 0.75rem;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
}

.lede {
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.actions {
  margin: 1rem 0 0;
  display: flex;
  gap: 0.6rem;
}

.link,
button {
  border: 1px solid var(--border);
  background: #171a20;
  color: var(--fg);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.92rem;
}

button {
  cursor: pointer;
}

.status {
  color: var(--muted);
  min-height: 1.4rem;
}

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #17171d, var(--panel));
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: #ddd6ca;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: #ddd6ca;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.history-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #d8cfbf;
}

input,
select {
  border: 1px solid var(--border);
  background: #10131a;
  color: var(--fg);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.button-row {
  align-self: end;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #23232a;
  border-radius: 10px;
  background: rgba(14, 16, 22, 0.55);
}

th,
td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #2a2a32;
  white-space: nowrap;
  vertical-align: top;
}

th {
  color: #d8cfbf;
  font-weight: 600;
  position: sticky;
  top: 0;
  background: #171a21;
  z-index: 1;
}

article .table-wrap {
  max-height: 560px;
}

.muted {
  color: var(--muted);
}
