/* Admin pane — builds on styles.css tokens. */
main { padding-bottom: max(64px, env(safe-area-inset-bottom)); }
.admin-tag { font-size: 14px; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--text-2); font: 14px var(--font); cursor: pointer; }
.link-btn:hover { color: var(--text); }
.admin-h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.025em; margin-top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.signin { max-width: 480px; margin: 0 auto; padding-top: 96px; }
.signin .form { margin-top: 32px; }

.dash { padding-top: 48px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.dash-actions { display: flex; gap: 8px; }
.dash-actions .button { margin-top: 0; min-height: 44px; padding: 0 20px; font-size: 15px; }
.button-quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin: 40px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-size: 13px; color: var(--text-2); }
.stats dd { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }

.panels { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 900px) { .panels { grid-template-columns: 7fr 5fr; gap: 64px; } }
.panel-title { font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 0; max-width: none; }

.chart { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 6px; height: 160px; margin-top: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); position: relative; }
.chart .col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.chart .fill { background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart .fill.zero { background: var(--line); }
.chart .n { font-size: 11px; color: var(--text-2); text-align: center; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.chart .d { position: absolute; bottom: -22px; left: 0; right: 0; font-size: 11px; color: var(--text-2); text-align: center; }

.roles-list { margin-top: 20px; border-top: 1px solid var(--line); }
.roles-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.roles-list .meter { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.roles-list .meter i { display: block; height: 100%; background: var(--text); }
.roles-list b { font-weight: 600; font-variant-numeric: tabular-nums; }

.table-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 64px; }
.search {
  width: 100%; max-width: 360px; min-height: 44px; padding: 0 14px;
  font: 16px var(--font); color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); -webkit-appearance: none; appearance: none;
}
.search:focus { outline: none; border-color: var(--accent); }
.table-wrap { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.table .num { color: var(--text-2); font-variant-numeric: tabular-nums; width: 1%; }
.table td:last-child { text-align: right; padding-right: 0; }
.table a { color: inherit; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.pill { font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); text-transform: capitalize; }
.del { min-height: 36px; min-width: 44px; padding: 0 10px; border: 0; background: none; color: var(--text-2); font: 14px var(--font); cursor: pointer; border-radius: 6px; }
.del:hover { color: #c0392b; }
.empty { padding: 32px 0; }
