body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #f5f7fb;
    margin: 0;
    color: #1f2937;
}
.container {
    max-width: 980px;
    margin: 30px auto;
    padding: 0 16px;
}
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.card h2 {
    margin-top: 0;
}
.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}
button, .btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
}
.btn-secondary {
    background: #6b7280;
}
.btn-danger {
    background: #dc2626;
}
.notice {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.notice.success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.notice.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.notice.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table th, .table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}
.table code {
    background: #f3f4f6;
    padding: 2px 4px;
    border-radius: 4px;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge.active { background: #dcfce7; color: #166534; }
.badge.inactive { background: #fee2e2; color: #991b1b; }
.actions form { display: inline-block; margin-right: 6px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
small { color: #6b7280; }
