:root {
  --bg: #171310;
  --panel: #1f1a15;
  --panel-2: #241e18;
  --ink: #f4ead9;
  --ink-soft: #b8a892;
  --gold: #c8963e;
  --line: #332a20;
  --green: #7fb069;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
}
h1, h2, h3 { font-family: 'Fraunces', serif; margin: 0 0 .3em; color: #fff; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; border-bottom: 1px solid var(--line);
}
.logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 19px; color: #fff; text-decoration: none; }
.badge {
  background: var(--gold); color: #241a0d; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; margin-left: 10px; vertical-align: middle;
}
.topbar-right { display: flex; align-items: center; gap: 16px; color: var(--ink-soft); font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); display: inline-block; }

main { padding: 40px 0 80px; }
.page-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; }
.page-title p { color: var(--ink-soft); margin: 4px 0 0; font-size: 14px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 34px;
}
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.stat-card .label { color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.stat-card .value { font-family: 'Fraunces', serif; font-size: 30px; color: #fff; margin-top: 6px; }
.stat-card .delta { font-size: 12.5px; margin-top: 6px; color: var(--green); }
.stat-card .delta.down { color: #d9776b; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.panel h2 { font-size: 17px; margin-bottom: 16px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; font-size: 14px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-soft); font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
td { color: var(--ink); }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-pill.ok { background: rgba(127,176,105,.15); color: var(--green); }
.status-pill.low { background: rgba(217,119,107,.15); color: #d9776b; }

.notice {
  background: var(--panel-2); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 16px 20px; color: var(--ink-soft); font-size: 13.5px; margin-bottom: 28px;
}
