:root { color-scheme: light; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; background: #f6f7f9; color: #1f2933; }
.topbar { height: 56px; background: #16202a; color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.brand { font-weight: 700; }
.layout { display: flex; min-height: calc(100vh - 56px); }
.nav { width: 230px; background: #ffffff; border-right: 1px solid #d9dee5; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.nav a { color: #243447; text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.nav a:hover { background: #eef3f8; }
.nav-label { color: #718096; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 12px 12px 4px; text-transform: uppercase; }
.content { flex: 1; padding: 24px; overflow-x: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card, .login-panel { background: white; border: 1px solid #d9dee5; border-radius: 8px; padding: 18px; }
.label { color: #637083; font-size: 13px; margin-bottom: 8px; }
.value { font-weight: 650; overflow-wrap: anywhere; }
.login-panel { max-width: 390px; margin: 8vh auto; }
label { display: block; margin: 14px 0; font-weight: 600; }
input, select { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px; border: 1px solid #cbd3dd; border-radius: 6px; background: white; }
button { background: #1168a8; color: white; border: 0; padding: 9px 14px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.flash { padding: 10px 12px; margin-bottom: 14px; border-radius: 6px; background: #e8f3ff; }
.flash.error { background: #ffe8e8; }
.flash.success { background: #e7f8ed; }
.muted { color: #637083; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.button { display: inline-block; background: #1168a8; color: white; text-decoration: none; padding: 9px 14px; border-radius: 6px; font-weight: 700; }
.danger, button.danger { background: #b42318; }
table { width: 100%; border-collapse: collapse; background: white; border: 1px solid #d9dee5; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; border-bottom: 1px solid #e6ebf1; padding: 10px 12px; vertical-align: top; }
th { color: #526173; font-size: 13px; background: #f8fafc; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.active, .badge.ok { background: #dcfce7; color: #166534; }
.badge.suspended { background: #fee2e2; color: #991b1b; }
.badge.muted { background: #e5e7eb; color: #4b5563; }
.form-panel { background: white; border: 1px solid #d9dee5; border-radius: 8px; padding: 18px; max-width: 560px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; align-items: end; }
.inline, .inline-form { display: inline-flex; gap: 8px; align-items: center; margin: 0 8px 0 0; }
.inline input, .inline-form input { width: auto; margin: 0; }
.details { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px 16px; background: white; border: 1px solid #d9dee5; border-radius: 8px; padding: 18px; max-width: 800px; }
.details dt { color: #526173; font-weight: 800; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 12px; color: #7c2d12; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: auto; margin-top: 3px; }
@media (max-width: 780px) { .layout { flex-direction: column; } .nav { width: auto; border-right: 0; border-bottom: 1px solid #d9dee5; } .page-head { align-items: flex-start; flex-direction: column; } .details { grid-template-columns: 1fr; } }

.logbox { background: #101820; color: #f4f7fb; border-radius: 8px; padding: 14px; overflow: auto; max-height: 620px; line-height: 1.45; font-size: 13px; }
