body { margin: 0; font-family: Arial, sans-serif; background: #f4f7fb; color: #172033; }
        .wrap { max-width: 1220px; margin: 2rem auto 4rem; padding: 0 1rem; }
        .topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
        .topbar a { color: #1d4ed8; text-decoration: none; font-weight: 700; }
        .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; }
        .card { background: #fff; border-radius: 18px; box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08); padding: 1.5rem; }
        h1, h2, h3 { margin-top: 0; }
        .muted { color: #64748b; }
        .alert { border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 1rem; }
        .alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
        .alert-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #166534; }
        label { display: block; font-weight: 700; margin: 0.95rem 0 0.35rem; }
        input, select, textarea { width: 100%; box-sizing: border-box; border: 1px solid #d6dfec; border-radius: 10px; padding: 0.75rem 0.85rem; font-size: 0.98rem; }
        textarea { min-height: 120px; resize: vertical; }
        .checkbox-row { display: flex; align-items: center; gap: 0.55rem; margin-top: 1rem; }
        .checkbox-row input { width: auto; }
        .actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.2rem; flex-wrap: wrap; }
        button, .btn-link { border: 0; background: #1d4ed8; color: #fff; padding: 0.8rem 1rem; border-radius: 10px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
        .btn-link.secondary { background: #e2e8f0; color: #172033; }
        table { width: 100%; border-collapse: collapse; }
        th, td { text-align: left; padding: 0.7rem 0.55rem; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
        th { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.03em; color: #64748b; }
        .pill { display: inline-block; border-radius: 999px; padding: 0.18rem 0.6rem; font-size: 0.78rem; font-weight: 700; }
        .pill.ok { background: #dcfce7; color: #166534; }
        .pill.off { background: #e5e7eb; color: #374151; }
        .small { font-size: 0.9rem; }
        .stack { display: grid; gap: 1.25rem; }
        @media (max-width: 980px) {
            .grid { grid-template-columns: 1fr; }
        }

.topbar-inline-form {
  display: inline;
  margin: 0;
}

.topbar-link-button {
  all: unset;
  color: #1d4ed8;
  text-decoration: underline;
  cursor: pointer;
}

.card-login {
  max-width: 460px;
}

.card-denied {
  max-width: 520px;
}

