body {
    background: #f5f7fb;
    color: #1f2937;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1d4ed8, #60a5fa 55%, #eff6ff);
}

.login-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .22);
    padding: 32px;
}

.register-card {
    margin: 24px 0;
}

.invalid-hint {
    min-height: 18px;
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

.auth-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.auth-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 236px;
    background: #172033;
    color: #fff;
    flex-shrink: 0;
}

.sidebar .brand {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 22px;
    font-size: 15px;
}

.sidebar a:hover,
.sidebar a.active {
    color: #fff;
    background: #2563eb;
}

.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.content {
    padding: 24px;
}

.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.stat {
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.stat .num {
    font-size: 28px;
    font-weight: 700;
}

.table th {
    white-space: nowrap;
}

.bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 50px;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.bar {
    height: 14px;
    background: #dbeafe;
    border-radius: 6px;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    min-width: 10px;
    background: #2563eb;
}

.chart-box {
    width: 100%;
    height: 320px;
}

.detail-list dt {
    color: #64748b;
    font-weight: 600;
}
