* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f4f7fb; color: #111827; }
a { color: #155eef; text-decoration: none; }
.admin-shell .topbar, .page-width, .download-card, .auth-card { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 16px; }
.topbar-actions, .actions, .button-group { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.table-card, .form-card, .auth-card, .download-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08); }
.detail-card, .metric-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08); }
.compact-card { padding: 18px 20px; }
.auth-card { width: min(420px, calc(100% - 32px)); margin-top: 10vh; }
.stack { display: grid; gap: 16px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric-card strong { display: block; margin-top: 10px; font-size: 30px; }
.inline-form { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.inline-form label { min-width: 180px; }
.inline-form .grow { flex: 1 1 320px; }
.pending-list { display: grid; gap: 10px; }
.hidden { display: none; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
input, textarea { width: 100%; border: 1px solid #d0d7e2; border-radius: 12px; padding: 12px 14px; font: inherit; }
input[type="file"] { padding: 8px; }
.checkbox { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
.checkbox input { width: auto; }
button, .button { border: 0; border-radius: 12px; background: #111827; color: #fff; padding: 11px 16px; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.button.secondary { background: #155eef; }
.button.danger-solid { background: #dc2626; }
.button.ghost, .link { background: transparent; color: #111827; padding: 0; }
.link.danger { color: #dc2626; }
.button.secondary, .button.ghost, .button { text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #eef4ff; color: #1d4ed8; }
.muted { color: #6b7280; }
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.alert.error { background: #fef2f2; color: #b91c1c; }
.alert.note { background: #eff6ff; color: #1d4ed8; }
.warning-card { border: 1px solid #fecaca; background: #fff7f7; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.off { background: #e5e7eb; color: #374151; }
.ok-text { color: #166534; font-weight: 700; }
.danger-text { color: #b91c1c; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.empty { text-align: center; color: #6b7280; }
.underline { text-decoration: underline; }
.download-card { width: min(720px, calc(100% - 32px)); margin-top: 10vh; }
.meta-list { display: grid; gap: 10px; margin: 20px 0; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.meta-list dd { text-align: right; margin: 0; word-break: break-all; }
.meta-list dt { font-weight: 700; }
.stats { margin-top: 18px; }
.progress-track { width: 100%; height: 14px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, #155eef, #36a2ff); transition: width 0.2s ease; }
@media (max-width: 720px) {
  .grid-two { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: start; gap: 12px; }
  .section-head { flex-direction: column; align-items: start; }
  .meta-list div { flex-direction: column; }
  .meta-list dd { text-align: left; }
  .inline-form { flex-direction: column; align-items: stretch; }
}
