* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f4f6f8; color: #1a1a1a; line-height: 1.5; }
.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.topbar { background: #1e293b; color: #fff; }
.topbar-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #cbd5e1; text-decoration: none; margin-right: 1rem; }
.topbar a:hover { color: #fff; }
.brand { font-weight: 700; color: #fff !important; }
.logout-form { margin-left: auto; }
.logout-form button { background: #334155; color: #fff; border: 0; padding: 0.4rem 0.8rem; border-radius: 4px; cursor: pointer; }
.card { background: #fff; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { font-size: 1.75rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
th { background: #f8fafc; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .03em; }
.btn { display: inline-block; padding: 0.45rem 0.85rem; border-radius: 4px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; text-decoration: none; font-size: 0.9rem; cursor: pointer; }
.btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.alert { background: #ecfdf5; border: 1px solid #6ee7b7; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.card label,
.auth-card label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.card input,
.card textarea,
.card select,
.auth-card input,
.auth-card textarea,
.auth-card select { width: 100%; padding: 0.5rem; margin-bottom: 0.75rem; border: 1px solid #cbd5e1; border-radius: 4px; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-off { background: #fee2e2; color: #991b1b; }
.method { font-family: ui-monospace, monospace; font-weight: 700; }
pre.json { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 6px; overflow: auto; font-size: 0.85rem; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 400px; }
.page-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.refresh-control { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; background: #fff; padding: 0.5rem 0.75rem; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.refresh-control label { display: inline; margin: 0; font-weight: 600; font-size: 0.85rem; }
.refresh-control select { width: auto; min-width: 5rem; margin: 0; padding: 0.35rem 0.5rem; border: 1px solid #cbd5e1; border-radius: 4px; }
.refresh-status { font-size: 0.8rem; color: #64748b; }
