* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f6f7f9; color: #222; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.topbar .brand { font-weight: 700; font-size: 18px; color: #111; text-decoration: none; }
.topbar nav { display: flex; gap: 14px; align-items: center; margin-left: auto; }
.topbar nav a { color: #444; text-decoration: none; font-size: 14px; }
.topbar nav a:hover { color: #000; }
.topbar .user { color: #888; font-size: 13px; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 24px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 24px 0 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; vertical-align: top; }
th { background: #fafbfc; font-weight: 600; }
.btn, button.link { background: #111; color: #fff; border: 0; padding: 8px 14px; border-radius: 6px; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.secondary { background: #e5e7eb; color: #111; }
.btn.danger { background: #c62828; }
button.link { background: none; color: #444; padding: 0; font-size: 14px; }
form.inline { display: inline; }
.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input[type=number], .field textarea, .field select {
  width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font: inherit;
}
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.alert.error { background: #fee; color: #900; border: 1px solid #fbb; }
.alert.ok { background: #efe; color: #060; border: 1px solid #bdb; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.stat .v { font-size: 26px; font-weight: 700; }
.stat .k { font-size: 12px; color: #888; text-transform: uppercase; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.muted { color: #888; }
.row-actions { white-space: nowrap; }
.row-actions form, .row-actions a { display: inline-block; margin-right: 6px; }
.interstitial { max-width: 520px; margin: 80px auto; text-align: center; background:#fff; padding: 40px 30px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.interstitial .target { word-break: break-all; background: #f6f7f9; padding: 10px; border-radius: 6px; font-family: ui-monospace,monospace; margin: 16px 0; }
.interstitial .count { font-size: 42px; font-weight: 700; margin: 18px 0; }
