.members-shell {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem;
}

.members-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.members-section {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.members-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #6c63ff;
    margin-bottom: 1rem;
}

.members-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.members-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.members-name {
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    min-width: 80px;
}

.members-badge {
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 20px;
}

.members-badge.parent {
    background: #ede9fe;
    color: #6c63ff;
}

.members-badge.child {
    background: #fef3c7;
    color: #d97706;
}

.members-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.members-action-form {
    margin: 0;
}

.members-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 20px;
    padding: .4rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
    transition: background .2s;
}

.members-btn-secondary:hover {
    background: #e5e7eb;
}

.members-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 20px;
    padding: .4rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
    transition: background .2s;
}

.members-btn-danger:hover {
    background: #fecaca;
}

.members-empty {
    color: #9ca3af;
    font-size: .9rem;
    font-style: italic;
}

.members-add-section {}

.members-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.members-form-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.members-label {
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
}

.members-optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: .8rem;
}

.members-input {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: .65rem .9rem;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
}

.members-input:focus {
    border-color: #6c63ff;
}

.members-btn-primary {
    background: linear-gradient(135deg, #6c63ff, #857dff);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: .75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(108,99,255,.3);
    transition: transform .15s, box-shadow .15s;
    align-self: flex-start;
}

.members-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108,99,255,.4);
}

.members-error {
    background: #fee2e2;
    color: #dc2626;
    border-radius: 10px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 600;
}
