body { margin: 0; font-family: Inter, Arial, sans-serif; background: #eef3ff; color: #1f2937; overflow-x: hidden; }
.shell { width: 100vw; min-height: 100vh; margin: 0; background: #fff; border-radius: 0; box-shadow: none; overflow: hidden; display: grid; grid-template-columns: 1fr; }
/* left nav handled by leftnav.css; main content will account for fixed sidebar */
.main { padding: 16px; box-sizing: border-box; margin-left: var(--left-nav-width, 220px); }
.brand { padding: 6px 0 14px; text-align: center; }
.logo { width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 8px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg,#5ba7ff,#2d57d9); }
.nav a { display: block; text-decoration: none; color: #334155; padding: 10px; border-radius: 8px; margin-bottom: 6px; }
.nav a.active { background: #1f2741; color: #fff; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; background: #f4f7ff; border: 1px solid #d9e2ff; border-radius: 12px; padding: 10px 12px; }
.btn { border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.btn-primary { background: #2f3a68; color: #fff; }
.btn-logout { background: #fff; color: #f59e0b; border: 1px solid #f7d8a4; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.card { border: 1px solid #e4eaff; border-radius: 12px; padding: 12px; background: #fff; margin-bottom: 12px; max-width: 900px; }
.card h3 { margin: 0 0 10px; font-size: 18px; }
label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; }
input, select { width: 100%; box-sizing: border-box; border: 1px solid #d7def8; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.status { font-size: 13px; color: #475569; margin-top: 8px; }
.ok { color: #059669; }
.err { color: #dc2626; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #eef2ff; padding: 8px; font-size: 13px; text-align: left; }

@media (max-width: 900px) {
    .main { margin-left: 0; padding: 14px; }
    .grid { grid-template-columns: 1fr; }
    .card { max-width: 100%; }
}
