* { box-sizing: border-box; font-family: Arial, sans-serif; }
body { margin: 0; background: #0f172a; color: #e2e8f0; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #111827; border-bottom: 1px solid #334155; }
.topbar a { color: #93c5fd; text-decoration: none; margin-left: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; padding: 14px; }
.card { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 14px; }
h1, h2, h3 { margin-top: 0; }
input, select, button, textarea { width: 100%; margin-bottom: 8px; padding: 8px; border-radius: 7px; border: 1px solid #475569; background: #0f172a; color: #e2e8f0; }
button { cursor: pointer; background: #0369a1; border-color: #0284c7; }
button:hover { background: #0284c7; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 8px; margin-bottom: 8px; }
.status-card { border: 1px solid #334155; border-radius: 8px; padding: 8px; background: #0b1220; display: flex; flex-direction: column; min-width: 0; }
.status-card strong { color: #93c5fd; margin-bottom: 4px; }
.status-card span { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.status-grid > * { min-width: 0; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.inline-form input { margin-bottom: 0; }
pre { max-height: 250px; overflow: auto; background: #0b1220; border: 1px solid #334155; border-radius: 8px; padding: 8px; }

.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: min(420px, 96vw); }
.alert.error { background: #7f1d1d; border: 1px solid #ef4444; padding: 8px; border-radius: 8px; margin-bottom: 8px; }
.alert.success { background: #14532d; border: 1px solid #22c55e; padding: 8px; border-radius: 8px; margin-bottom: 8px; }

