.profile-shell {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.profile-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 106, 0.14);
    box-shadow: 0 18px 50px rgba(15, 118, 106, 0.12);
}

.avatar-preview {
    display: grid;
    gap: 0.5rem;
    justify-items: start;
}

.avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(15, 118, 106, 0.25);
}

.avatar-large.fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f766a, #12a292);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 1.6rem;
}

.profile-meta {
    display: grid;
    gap: 0.4rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 118, 106, 0.14);
    border-radius: 16px;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    box-shadow: 0 16px 48px rgba(15, 118, 106, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.field {
    display: grid;
    gap: 0.3rem;
}

.video-box {
    width: 100%;
    border: 1px dashed rgba(15, 118, 106, 0.2);
    border-radius: 14px;
    padding: 0.5rem;
    background: rgba(229, 243, 238, 0.35);
}

.video-preview {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.note {
    font-weight: 600;
}

.note.success {
    color: #0f5132;
}

.note.error {
    color: #b42318;
}

.lr-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 118, 106, 0.18);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.lr-input:focus {
    outline: 2px solid rgba(15, 118, 106, 0.25);
    border-color: rgba(15, 118, 106, 0.35);
}

.pill.soft {
    background: rgba(15, 118, 106, 0.12);
    color: #0f4f45;
}

@media (max-width: 720px) {
    .profile-shell {
        width: calc(100% - 1.25rem);
    }

    .actions {
        width: 100%;
        justify-content: space-between;
    }
}

.table-settings-toggle {
    margin-top: 0.75rem;
}

.checkbox-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1f1f1f;
}

.checkbox-field input[type="checkbox"]:focus {
    outline: none;
}
