:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f5f8;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { min-height: 62px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; background: #111827; color: #fff; }
.topbar nav { display: flex; gap: 18px; align-items: center; }
.topbar a, .link-button { color: #fff; }
.brand { font-weight: 700; font-size: 18px; }
.version { margin-left: 8px; font-size: 12px; opacity: .65; }
.container { max-width: 1240px; margin: 32px auto; padding: 0 18px; }
.grid.two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid #dfe3ea; border-radius: 10px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.03); margin-bottom: 20px; }
.narrow { max-width: 440px; margin: 80px auto; }
.narrow-confirm { max-width: 900px; margin-left: auto; margin-right: auto; }
h1 { margin-top: 0; font-size: 26px; }
h2 { font-size: 18px; margin-top: 24px; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input:not([type]) { width: 100%; padding: 10px 12px; border: 1px solid #c8ced8; border-radius: 6px; font: inherit; background: #fff; }
input:focus { outline: 2px solid #93b4ff; outline-offset: 1px; border-color: #3b82f6; }
input[type=file] { font: inherit; }
.hint, .muted { color: #667085; font-size: 14px; font-weight: 400; }
button, .button { border: 0; border-radius: 6px; padding: 10px 15px; font: inherit; font-weight: 650; cursor: pointer; display: inline-block; }
.primary { background: #1d4ed8; color: #fff; }
.secondary { background: #e9edf3; color: #172033; }
.danger { background: #b42318; color: #fff; }
.link-button { background: none; padding: 0; font-weight: 400; }
.inline-form { display: inline; }
.alert { border-radius: 7px; padding: 12px 14px; margin: 14px 0; }
.alert.error { background: #fff0ef; border: 1px solid #f5b7b1; color: #8a1c13; }
.alert.success { background: #ecfdf3; border: 1px solid #a6f4c5; color: #067647; }
.alert.info { background: #eff8ff; border: 1px solid #b2ddff; color: #175cd3; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: #dcfae6; color: #067647; }
.badge.warn { background: #fef0c7; color: #93370d; }
.status-list, .summary-grid { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
dt { font-weight: 650; }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.compact { padding-left: 20px; }
.heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; white-space: nowrap; }
th { background: #f8fafc; font-weight: 700; }
td:nth-child(5), td:nth-child(6), td:nth-child(7) { white-space: normal; }
.danger-zone { border-top: 1px solid #e5e7eb; margin-top: 20px; padding-top: 20px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .grid.two { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; align-items: flex-start; gap: 12px; }
  .topbar nav { flex-wrap: wrap; justify-content: flex-end; }
  .heading-row { flex-direction: column; }
  .summary-grid, .status-list { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 9px; }
}
