.control-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.role-legend {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.add-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.add-form input,
.add-form select,
.roles-table select,
.roles-table input {
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.85rem;
    background: #fff;
}

.add-form input {
    flex: 1 1 240px;
}

.primary-button {
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.primary-button:hover {
    filter: brightness(0.92);
}

.days-input {
    width: 4.5rem;
}

.control-container {
    max-width: 1100px;
}

.hint {
    margin: 0.35rem 0 1rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.message {
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: var(--accent-light);
    color: var(--accent);
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.roles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.roles-table th {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
}

.roles-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.person {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.person img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.person-name {
    font-weight: 600;
}

.person-email,
.role-note {
    color: var(--muted);
    font-size: 0.8rem;
}

.badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
}

@media (max-width: 600px) {
    .roles-table thead {
        display: none;
    }

    .roles-table tr,
    .roles-table td {
        display: block;
    }

    .roles-table td:first-child {
        border-bottom: none;
        padding-bottom: 0.25rem;
    }
}
