* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

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

a {
    color: #2563eb;
    text-decoration: none;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #0f172a;
    color: #e2e8f0;
}

.top-actions a {
    margin-left: 12px;
    color: #e2e8f0;
}

.brand {
    font-weight: 700;
}

.user-chip {
    background: #1e293b;
    padding: 6px 10px;
    border-radius: 12px;
    margin-left: 12px;
}

.layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 56px);
}

.sidebar {
    background: #111827;
    color: #e5e7eb;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar a {
    color: #e5e7eb;
    padding: 10px 12px;
    border-radius: 6px;
    background: #1f2937;
}

.page {max-width:1280px;width:100%;margin:10px auto;padding:0 10px;}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.table th,
.table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.table .actions {display:flex;gap:14px;flex-wrap:wrap;}

.btn {
    display: inline-block;
    padding: 10px 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary {
    background: #94a3b8;
    margin-left: 10px;
}

.btn-ghost {background:#f1f5f9;color:#0f172a;border:1px solid #e2e8f0;transition:all .15s ease;padding:11px 16px;border-radius:8px;font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,0.05);}
.btn-ghost:hover {background:#e2e8f0;border-color:#cbd5e1;transform:translateY(-1px);}
.actions form {margin:0;}
.actions form button {background:#fee2e2;color:#b91c1c;border:1px solid #fca5a5;font-weight:700;padding:11px 16px;border-radius:8px;box-shadow:0 1px 2px rgba(0,0,0,0.05);}
.actions form button:hover {background:#fecdd3;border-color:#f87171;transform:translateY(-1px);}

.field {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}
.filter-form {display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;}
.filter-form .field {margin:0;}
.filter-form .actions {display:flex;gap:8px;align-items:flex-end;}
.filter-form select {padding:10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;min-width:140px;}

.field input,
.field textarea {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.checkbox {
    flex-direction: row;
    align-items: center;
}

.pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    background: #e2e8f0;
    font-size: 12px;
}
.status-badge {display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-weight:700;font-size:12px;}
.status-active {background:#dcfce7;color:#166534;}
.status-passive {background:#fee2e2;color:#991b1b;}

.pagination {display:flex;align-items:center;gap:12px;margin-top:14px;}
.page-btn {padding:10px 14px;background:#111827;color:#f8fafc;border-radius:8px;font-weight:600;}
.page-btn:hover {background:#0b1224;}
.page-info {color:#475569;font-weight:600;}

.alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
}

.auth-card {
    width: 360px;
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    margin-bottom: 16px;
    text-align: center;
}

.list-row {display:flex;align-items:center;gap:12px;}
.space-between {justify-content:space-between;}
.muted {color:#6b7280;}
.divider {border:none;border-top:1px solid #e5e7eb;margin:16px 0;}
.question-list {display:flex;flex-direction:column;gap:12px;}
.question-list.relaxed {gap:16px;}
.question-list.compact {gap:10px;max-width:760px;width:100%;}
.question-card {border:1px solid #e2e8f0;background:#f8fafc;border-radius:10px;padding:12px;}
.question-list.compact .question-card {padding:8px 10px;border-radius:8px;}
.question-top {display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}
.question-top.two-actions {align-items:flex-start;}
.vertical-actions {display:flex;flex-direction:column;gap:8px;}
.question-top .text-strong {font-weight:700;line-height:1.4;}
.question-meta {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.question-card .btn-ghost {padding:8px 12px;}
.btn-ghost.btn-ghost-sm {padding:8px 10px;font-size:13px;}
.two-col {display:grid;grid-template-columns:1.1fr 0.9fr;gap:16px;align-items:start;}
@media (max-width: 960px){.two-col {grid-template-columns:1fr;}}
.pill-plain {background:#e2e8f0;color:#111827;}
.pill-plain strong {margin-right:4px;font-size:11px;text-transform:uppercase;letter-spacing:0.02em;}

