body { margin: 0; min-height: 100vh; background: #101820; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.hero { padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; background:
  radial-gradient(800px 300px at 20% 10%, rgba(240,140,24,.25), transparent 60%),
  linear-gradient(160deg, #1a3148, #101820 55%);
  border-right: 1px solid #243646;
}
.hero h1 { font-size: 42px; margin: 0 0 8px; }
.hero h1 span { color: var(--orange); }
.hero p { max-width: 460px; color: var(--muted); line-height: 1.5; }
.panel { display: grid; place-items: center; padding: 24px; }
form { width: min(380px, 100%); }
form h2 { margin: 0 0 6px; }
form .hint { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
input { width: 100%; background: #0d141c; border: 1px solid #314556; border-radius: 4px; padding: 10px; }
.primary { width: 100%; margin-top: 16px; height: 40px; border: 0; border-radius: 4px; background: linear-gradient(#f09a28, #d4740a); color: #1a1206; font-weight: 800; }
.err { color: #ff8d8d; min-height: 1.2em; font-size: 13px; }
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: #162230; border-right: 1px solid #0e1620; padding: 16px 12px; }
.side button { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: #d5e2ef; padding: 8px 10px; border-radius: 4px; }
.side button.on, .side button:hover { background: #24384c; }
.main { padding: 22px 24px 48px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: #1a2836; border: 1px solid #2c4156; border-radius: 6px; padding: 14px; }
.stat b { display: block; font-size: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #2a3d50; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
input, select { background: #0d141c; border: 1px solid #314556; border-radius: 4px; padding: 7px 8px; }
.grid-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: #1a2836; padding: 12px; border-radius: 6px; margin-bottom: 14px; }
.primary-sm, .ghost, .danger { border: 0; border-radius: 4px; height: 32px; padding: 0 10px; }
.primary-sm { background: #1f8f3f; color: white; font-weight: 700; }
.ghost { background: #314354; color: white; }
.danger { background: #8d2424; color: white; }
.badge { font-size: 11px; padding: 2px 6px; border-radius: 99px; background: #314354; }
.badge.ok { background: #146c32; }
.badge.warn { background: #8a5a10; }
.badge.bad { background: #8d2424; }
@media (max-width: 900px) {
  .login-wrap, .admin { grid-template-columns: 1fr; }
  .cards, .grid-form { grid-template-columns: 1fr; }
  .hero { min-height: 180px; }
}
.guest-body { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: #101820; }
.guest-card { width: min(480px, 100%); background: #1a2836; border: 1px solid #2c4156; border-radius: 10px; padding: 16px; }
.guest-card video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 6px; }
.guest-card h1 { font-size: 22px; margin: 8px 0; }
.guest-card p { color: var(--muted); }
.guest-card .primary { width: 100%; height: 46px; border: 0; border-radius: 6px; background: #1faa45; color: white; font-weight: 800; font-size: 16px; }
